Staredit Network > Forums > Modding Assistance > Topic: Change unit GRP
Change unit GRP
Aug 12 2011, 1:45 pm
By: Jack  

Aug 12 2011, 1:45 pm Jack Post #1

>be faceless void >mfw I have no face

I have http://maplantis.mikelat.com/index.php?mod=106
I want to replace the hero dark templar with that. I don't want to replace the standard dark templar. The way I understand it I have to edit the images.dat reference to point the hero dark templar to an unused GRP, such as ion.grp, and then call the lancer grp ion.grp and import to units\neutral\
Then I change the ion cannon iscript to be the same as the dark templar iscript. However, in game you can't see the hero dark templar or zeratul and after a few seconds the game freezes.

I'd settle for simply replacing the dark templar grp with the lancer grp, by renaming to dtemplar.grp and placing in either units\protoss\ or protoss\ (tried both and neither worked). Halp.



Red classic.

"In short, their absurdities are so extreme that it is painful even to quote them."

Aug 12 2011, 2:05 pm Pr0nogo Post #2



Not all of your .dat reference pointers are pointed correctly. Make sure nothing else is using ion.grp and make sure your new script uses the ion headers, because to my knowledge you need to use proper headers for it to work properly.




Aug 12 2011, 2:05 pm Raitaki Post #3



Bad news: You have to edit the WHOLE iscript, not just telling it what GRP to use, because your GRP can have many frames and SC needs to know what frame is used for what animation. I don't know much about frames myself, so you might need to ask Mesk :P



None.

Aug 12 2011, 2:23 pm Dem0n Post #4

ᕕ( ᐛ )ᕗ

Quote from Jack
I have http://maplantis.mikelat.com/index.php?mod=106
I want to replace the hero dark templar with that. I don't want to replace the standard dark templar. The way I understand it I have to edit the images.dat reference to point the hero dark templar to an unused GRP, such as ion.grp, and then call the lancer grp ion.grp and import to units\neutral\
Then I change the ion cannon iscript to be the same as the dark templar iscript. However, in game you can't see the hero dark templar or zeratul and after a few seconds the game freezes.

I'd settle for simply replacing the dark templar grp with the lancer grp, by renaming to dtemplar.grp and placing in either units\protoss\ or protoss\ (tried both and neither worked). Halp.
If the game freezes or something, that's definitely an iscript problem. You'll have to edit the Ion cannon's iscript to make sure that it has the same amount of frames as the dark templar. But I don't know how to do that. Iscript doesn't make any sense. :3




Aug 12 2011, 2:42 pm Raitaki Post #5



Quote from name:Dem0nS1ayer
Quote from Jack
I have http://maplantis.mikelat.com/index.php?mod=106
I want to replace the hero dark templar with that. I don't want to replace the standard dark templar. The way I understand it I have to edit the images.dat reference to point the hero dark templar to an unused GRP, such as ion.grp, and then call the lancer grp ion.grp and import to units\neutral\
Then I change the ion cannon iscript to be the same as the dark templar iscript. However, in game you can't see the hero dark templar or zeratul and after a few seconds the game freezes.

I'd settle for simply replacing the dark templar grp with the lancer grp, by renaming to dtemplar.grp and placing in either units\protoss\ or protoss\ (tried both and neither worked). Halp.
If the game freezes or something, that's definitely an iscript problem. You'll have to edit the Ion cannon's iscript to make sure that it has the same amount of frames as the dark templar. But I don't know how to do that. Iscript doesn't make any sense. :3
No, you're saying it wrong. This has nothing to do with the ion cannon (as long as Jack doesn't place one in his maps). I think the problem might be because dark templar's GRP has a few frames that the lancer GRP doesn't have, and when the hero dark templar tries to do an action that results in an animation involving frames that the lancer grp doesn't even have, and crash :|



None.

Aug 12 2011, 3:00 pm Dem0n Post #6

ᕕ( ᐛ )ᕗ

Right. I got it mixed up. It's the dark templar that has to have its frames adjusted to work with the lancer.




Aug 12 2011, 3:11 pm Voyager7456 Post #7

Responsible for my own happiness? I can't even be responsible for my own breakfast

Quote from Jack
I have http://maplantis.mikelat.com/index.php?mod=106
I want to replace the hero dark templar with that. I don't want to replace the standard dark templar. The way I understand it I have to edit the images.dat reference to point the hero dark templar to an unused GRP, such as ion.grp, and then call the lancer grp ion.grp and import to units\neutral\
Then I change the ion cannon iscript to be the same as the dark templar iscript. However, in game you can't see the hero dark templar or zeratul and after a few seconds the game freezes.

I'd settle for simply replacing the dark templar grp with the lancer grp, by renaming to dtemplar.grp and placing in either units\protoss\ or protoss\ (tried both and neither worked). Halp.

The correct path is unit\neutral\ not units\.

If you do that and change the images.dat pointer to point at the DT's iscript, it should work fine, they have the same number of frames.



all i am is a contrary canary
but i'm crazy for you
i watched you cradling a tissue box
sneezing and sniffling, you were still a fox


Modding Resources: The Necromodicon [WIP] | Mod Night
My Projects: SCFC | ARAI | Excision [WIP] | SCFC2 [BETA] | Robots vs. Humans | Leviathan Wakes [BETA]


Aug 12 2011, 9:46 pm Jack Post #8

>be faceless void >mfw I have no face

I had copied the DT iscript exactly into the ion cannon iscript, replacing it entirely. Would that not be the right way to do it?



Red classic.

"In short, their absurdities are so extreme that it is painful even to quote them."

Aug 12 2011, 10:20 pm Raitaki Post #9



Quote from Jack
I had copied the DT iscript exactly into the ion cannon iscript, replacing it entirely. Would that not be the right way to do it?
Um, no. You just duplicated the DT into the ion's cannon's slot.

How bout you do as Voy said and check if both your lancer GRP is located at and your DT hero unit is linked to unit\neutral instead of units\neutral.



None.

Aug 13 2011, 1:03 am Jack Post #10

>be faceless void >mfw I have no face

OK I got it to work. Now the firebat graphic is lancer.grp (renamed of course) and I can have both the standard DT and a lancer zeratul. Of course, the firebats are both lancers as well, but that's fine.



Red classic.

"In short, their absurdities are so extreme that it is painful even to quote them."

Aug 13 2011, 1:28 am Raitaki Post #11



Quote from Jack
OK I got it to work. Now the firebat graphic is lancer.grp (renamed of course) and I can have both the standard DT and a lancer zeratul. Of course, the firebats are both lancers as well, but that's fine.
Huh. So you have two variety of lancers: One melees and bursts into the protossflamethingy when they die, while one conjures flames and explodes on death. :wtfawesome:

As a side note, you should test a firebat and do everything with it for a while to see if there is any problem. It would most likely crash when the firebat does the turning around that all terran infantries do while idle.



None.

Aug 13 2011, 1:34 am Jack Post #12

>be faceless void >mfw I have no face

Quote from Raitaki
Quote from Jack
OK I got it to work. Now the firebat graphic is lancer.grp (renamed of course) and I can have both the standard DT and a lancer zeratul. Of course, the firebats are both lancers as well, but that's fine.
Huh. So you have two variety of lancers: One melees and bursts into the protossflamethingy when they die, while one conjures flames and explodes on death. :wtfawesome:

As a side note, you should test a firebat and do everything with it for a while to see if there is any problem. It would most likely crash when the firebat does the turning around that all terran infantries do while idle.
No, both firebats AND zeratul act exactly the same. They both use protoss flamethingy when they die and attack normally. Just zeratul is cloaked.



Red classic.

"In short, their absurdities are so extreme that it is painful even to quote them."

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[01:56 am]
Oh_Man -- cool bit of history, spellsword creator talking about the history of EUD ^
[09:24 pm]
Moose -- denis
[05:00 pm]
lil-Inferno -- benis
[10:41 am]
v9bettel -- Nice
[2024-4-19. : 1:39 am]
Ultraviolet -- no u elky skeleton guy, I'll use em better
[2024-4-18. : 10:50 pm]
Vrael -- Ultraviolet
Ultraviolet shouted: How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
hey cut it out I'm getting all the minerals
[2024-4-18. : 10:11 pm]
Ultraviolet -- :P
[2024-4-18. : 10:11 pm]
Ultraviolet -- How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
[2024-4-17. : 11:50 pm]
O)FaRTy1billion[MM] -- nice, now i have more than enough
Please log in to shout.


Members Online: jun3hong, Oh_Man, Ultraviolet