Staredit Network > Forums > Modding Assistance > Topic: code not working?
code not working?
Mar 6 2009, 10:20 am
By: thunderaga  

Mar 6 2009, 10:20 am thunderaga Post #1



Code
PylonIsWorking:
    playfram               0x00     # Frame set 0
    wait                   1
    playfram               1     # Frame set 0, direction 1
    wait                   1
    playfram               2     # Frame set 0, direction 2
    wait                   1
    playfram               3     # Frame set 0, direction 3
    wait                   1
    playfram               4     # Frame set 0, direction 4
    wait                   1
    playfram               5     # Frame set 0, direction 5
    wait                   1
    playfram               6     # Frame set 0, direction 6
    wait                   1
    playfram               7     # Frame set 0, direction 7
    wait                   1
    playfram               8     # Frame set 0, direction 8
    wait                   1
    playfram               9     # Frame set 0, direction 9
    wait                   1
    playfram               10     # Frame set 0, direction 10
    wait                   1
    playfram               11     # Frame set 0, direction 11
    wait                   1
    playfram               12     # Frame set 0, direction 12
    wait                   1
    playfram               13     # Frame set 0, direction 13
    wait                   1
    playfram               14     # Frame set 0, direction 14
    wait                   1
    playfram               15     # Frame set 0, direction 15
    wait                   1
    playfram               16     # Frame set 0, direction 16
    wait                   1
    playfram               0x11     # Frame set 1
    wait                   1
    playfram               18     # Frame set 1, direction 1
    wait                   1
    playfram               19     # Frame set 1, direction 2
    wait                   1
    goto                   PylonIsWorking




None.

Mar 6 2009, 4:12 pm Yawgmoth Post #2



As I understand, are your pylon frames supposed to be a turning feature?

Maybe the problem is that you have selected the "Graphic Turns" option in the images.dat entry of the pylon. Try deselecting it.

If not, in the images.dat, select the "Graphic Turns" option and in the script, use 19 times the "turncwise 1" opcode, one per frame (with the wait between them). That should work fine. If not, in the pylon's flingy.dat entry, change the "Turn Type" option from "0" to "127".



None.

Mar 6 2009, 7:44 pm Biophysicist Post #3



What are you trying to do, and what's not working? DETALEZ PLZ.



None.

Mar 6 2009, 8:10 pm thunderaga Post #4



I was experimenting with something with the terran command center, and saw that when it was staying still that I could make it do something else and play another image. So I tried it out and every second it went to almost build command center then back. so I was like "cool". but then I thought I could do the same with my pylon like I saw in those videos of Starcraft 2. So instead of 1 image showing, I wanted it to spin like this:




None.

Mar 6 2009, 8:18 pm Biophysicist Post #5



What's not working?

Make sure you didn't break your GRP like I did once...

Oh, you might want to post the entire iscript for your Pylon.



None.

Mar 6 2009, 8:52 pm thunderaga Post #6



well it warps in and then it crashes



None.

Mar 6 2009, 8:59 pm Biophysicist Post #7



Then that's probably something else breaking. Maybe you forgot to save the modified GRP, or saved it incorrectly.



None.

Mar 6 2009, 9:19 pm thunderaga Post #8



but I think I did all the GRP's right by replacing every frame, could it be the shadow or the code?



None.

Mar 6 2009, 9:20 pm Symmetry Post #9

Dungeon Master

How many frames does your grp have?



:voy: :jaff: :voy: :jaff:

Mar 6 2009, 9:21 pm Biophysicist Post #10



It COULD be the shadow, take it out and see what happens.

Also, what's the Pylon saved as in the mpq? "unit\protoss\pylon.grp"?

And what K_K said.



None.

Mar 6 2009, 9:22 pm thunderaga Post #11



Quote
How many frames does your grp have?
20



None.

Mar 6 2009, 9:24 pm thunderaga Post #12



Quote
It COULD be the shadow, take it out and see what happens.

Also, what's the Pylon saved as in the mpq? "unit\protoss\pylon.grp"?

And what K_K said.

yes of course I did that right! when I left the pylon code with the original, it showed... just didn't play the other frames (of course)



None.

Mar 6 2009, 10:44 pm Corbo Post #13

ALL PRAISE YOUR SUPREME LORD CORBO

Play the individual frames only and not the whole framesets and tell us if that worked.



fuck you all

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[11:38 pm]
Symmetry -- :wob:
[2026-6-21. : 4:56 am]
Ultraviolet -- I suppose we'll likely never know, but my guess would be that they already saw it operating successfully and there was no monetary incentive to finish the original work. And the dev cycle in old school Blizzard was so hectic, it's possible it just got forgotten about after the original game got released. Plus there's an element of existing MPQ files that were packaged with the original discs becoming outdated if they updated it. And it's not like they remade the original MPQs, they just made new ones for BW specifically
[2026-6-21. : 4:26 am]
Oh_Man -- so that makes me think maybe the theory they are unfinished is not true and its a deliberate design decision, coz why not finish them wen ur making brood war?
[2026-6-21. : 4:25 am]
Oh_Man -- the thing is thos buildings are from classic. that means they went ahead and made brood war without ever finishing the 'unfinished' buildings
[2026-6-20. : 6:15 pm]
Ultraviolet -- Yeah he's talked about a lot of that stuff in his casts before. It seems plausible. Especially knowing how Blizzard of yesteryear operated.
[2026-6-20. : 3:47 pm]
NudeRaider -- to clarify: couldn't recall the behavior for every single Protoss building but I was aware the disparity exists.
[2026-6-20. : 3:43 pm]
NudeRaider -- Contained nothing new for me. Didn't know all building's behavior, but very much all unit's. Also Terran balance whine - also nothing new :lol:
[2026-6-19. : 9:57 am]
Oh_Man -- makes me wonder if SEN knows anything about the topic
[2026-6-19. : 9:57 am]
Oh_Man -- artosis dropped pretty interesting vid: https://youtu.be/EqZHB8Blra4
[2026-6-18. : 5:01 pm]
Ultraviolet -- :wob:
Please log in to shout.


Members Online: Zoan