Staredit Network

Staredit Network -> Modding Assistance -> Psi Storm Issue
Report, edit, etc...Posted by TheStrategist on 2006-10-11 at 20:59:12
Just like the topic title says, I'm having some issues with psi storm.

I changed the unit graphics of the high templar to a dragoon through DatEdit, and everytime I use psi storm it crashes. I have tried to solve the problem through IceCC, but can't find any reasonable result.

CODE
HighTemplarUnknown21:
imgol08         128 0 0 # Unknown128 (protoss\templar.grp)
goto            local17


Through trial and error, I have found out what causes the crash, which is imgol08 128 0 0 # Unknown128 (protoss\templar.grp). When I remove it, the high templar attempts to cast the spell, and somewhat succedes, since the energy is drained but no graphics of the psi storm shows up.

Is there any way to let my high templar cast psi storm without changing back to its high templar graphics in DatEdit and without using RetroGRP to change the unit graphics?
Report, edit, etc...Posted by Lord_Agamemnon(MM) on 2006-10-11 at 22:00:30
Are you absolutely sure it's that? Unknown21 is usually just a pre-init animation, and Unknown128 is just a warp flash that uses the Dragoon's graphic to generate it with the standard warp flash iscript. I bet the problem is more likely the Dragoon's lack of a SpAbility2 animation. There is, however, a fairly easy solution for this:
Give the Dragoon a SpAbility2 animation. You could just copy-paste the attack script (bear in mind that Dragoons, like Marines and Ghosts, only use the GndAttkInit to set up the attack and the GndAttkRpt is where the action takes place) but replace the "attack25 x" command with
CODE
castspell
sigorder 2

Not too hard, see?

I seriously doubt that Unknown21 is causing the problem, as it's not used after the unit has finished appearing (nothing actually calls it.) So try what I suggested and if it doesn't work, report it.

Note: Quite a few of the headers in ICECC's decompiles are mislabelled. Check out This Topic for some coverage of what the actually do.
Next Page (1)