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.
[04:05 am]
O)FaRTy1billion[MM] -- the setting exists, it's just hidden in a weird place
[04:04 am]
O)FaRTy1billion[MM] -- instead change "Microtile Overlay" to "Impassable"
[04:04 am]
O)FaRTy1billion[MM] -- er, wait, idk why i was looking for height
[04:03 am]
O)FaRTy1billion[MM] -- below the minimap should be a thing that says "Overlay Settings" with a little + button in the corner, press the + to expand it, uncheck Use Defaults, then change "Tile Overlay" to "Height"
[03:57 am]
Sylph-Of-Space -- Unless I'm dum (possible)
[03:57 am]
Sylph-Of-Space -- It would be so so so nice if SCMDraft had some kind of dedicated "walkability" view for the tilesets.
[03:53 am]
Sylph-Of-Space -- :'( dont cry for me cat-gentina
[09:18 pm]
Ultraviolet -- 🔪🐈
[12:34 pm]
NudeRaider -- curiosity kills the cat!
[2024-5-19. : 6:18 am]
Sylph-Of-Space -- No complaints here, i'm just curious!
Please log in to shout.


Members Online: Roy