Page 1 of 2
Sprite causing game to crash
Posted: Wed Dec 20, 2006 7:19 pm
by Ardis
I got permission to use a sprite from someone else's mod. The copy of the sprite is in .GRP format. The problem is that whenever that sprite appears on screen, it crashes the game. The sprite is in the MPQ in the unit\zerg\ directory. Any ideas?
EDIT: Also, this copy of the sprite is one I extracted from the other mod itself and it worked perfectly there.
Re: Sprite causing game to crash
Posted: Wed Dec 20, 2006 7:21 pm
by IskatuMesk
You need to use icecc to sync the animations with the grp.
Re: Sprite causing game to crash
Posted: Thu Dec 21, 2006 1:19 pm
by Lord_Jeremy
When it's back online, head over to
http://www.staredit.net/ - They're probably the most active SC modding community around...
Re: Sprite causing game to crash
Posted: Thu Dec 21, 2006 6:21 pm
by Ardis
Sadly, I don't know how to use IceCC that well and I can't find proper tutorials.
Re: Sprite causing game to crash
Posted: Thu Dec 21, 2006 8:58 pm
by IskatuMesk
I had made pretty much the only icecc tutorial in existence but it was on the old cc site which imploded.
Re: Sprite causing game to crash
Posted: Fri Dec 22, 2006 3:29 am
by xen_thanatos
Imploded?What happened?
Re: Sprite causing game to crash
Posted: Fri Dec 22, 2006 10:20 am
by IskatuMesk
I think recon or whatever it was decided CC should no longer exist and they pulled the plug, of course there was no backups since my thread had been created.
Re: Sprite causing game to crash
Posted: Fri Dec 22, 2006 11:08 am
by Lavarinth
Yep, Recon's a bastard.
Re: Sprite causing game to crash
Posted: Fri Dec 22, 2006 2:25 pm
by Ardis
I'll post the Script entry and see if you think it looks like it should work. It's replacing the Infested Kerrigan sprite with the Iron Claw sprite from Final Destiny. And as I mentioned earlier, I got permission to use the sprite from RazorclawX. Well anyway, here's the script for it, but it doesn't seem to work, the sprite is crashing the game still. Also note that I attempted to copy and past parts of the Battlecruiser entry and edit from there. Can someone tell me what I'm doing wrong?
# ----------------------------------------------------------------------------- #
# This header is used by images.dat entries:
# 033 IronClaw (Zerg\uikerr.grp)
.headerstart
IsId 20
Type 12
Init IronClawInit
Death IronClawDeath
GndAttkInit IronClawGndAttkInit
AirAttkInit IronClawAirAttkInit
SpAbility1 [NONE]
GndAttkRpt IronClawGndAttkInit
AirAttkRpt IronClawAirAttkInit
SpAbility2 IronClawSpAbility2
GndAttkToIdle IronClawGndAttkToIdle
AirAttkToIdle IronClawGndAttkToIdle
SpAbility3 [NONE]
Walking IronClawWalking
Other IronClawOther
BurrowInit [NONE]
.headerend
# ----------------------------------------------------------------------------- #
IronClawInit:
imgul09 34 0 0 # IronClawShad (zerg\uikerr.grp)
playfram 0x00 # frame set 0
goto IronClawGndAttkToIdle
IronClawGndAttkToIdle:
wait 125
goto IronClawGndAttkToIdle
IronClawDeath:
playsnd 177 # Terran\BATTLE\tbaDth00.wav
imgol08 333 0 0 # TerranBuildingExplosionmedium (thingy\tBangL.grp)
wait 3
end
IronClawGndAttkInit:
imgol08 446 0 0 # BCLaserFireOverlay (thingy\elbBat.grp)
goto local104
local03:
wait 1
attack25 1
gotorepeatattk
goto BattlecruiserGndAttkToIdle
IronClawAirAttkInit:
imgol08 446 0 0 # BCLaserFireOverlay (thingy\elbBat.grp)
goto local106
local104:
wait 1
attack25 2
gotorepeatattk
goto IronClawGndAttkToIdle
IronClawSpAbility2:
imgol0a 543 # Unknown543 (thingy\eycBlast.grp)
goto IronClawGndAttkToIdle
IronClawWalking:
imgol08 220 0 0 # IronClawGlow (thingy\tbaGlow.grp)
goto IronClawGndAttkToIdle
IronClawOther:
shvertpos 1
waitrand 8 10
shvertpos 2
waitrand 8 10
shvertpos 1
waitrand 8 10
shvertpos 0
waitrand 8 10
goto IronClawOther
Re: Sprite causing game to crash
Posted: Fri Dec 22, 2006 8:10 pm
by Lord_Jeremy
Hmmm... I think the best way to do this is to:
1) Replace the Infested Kerrigan grp with the Iron Claw grp
2) In images.dat, under the Infested Kerrigan entry, change the iscript ID to 66 (the Battlecruiser's script)
3) Play!
If this doesn't work, then it's possible you're bungling injecting the grp into the mpq. RSVP!
Re: Sprite causing game to crash
Posted: Sat Dec 23, 2006 8:22 am
by Ardis
Problem is now it's using the Battlecruiser sprite.
And I put the GRP (uikerr.grp) into unit\Zerg\uikerr.grp into the mod MPQ file.
EDIT: Never mind the Battlecruiser sprite problem, I tried to go around the crash by temporarily setting the unit sprite to battlecruiser. And now it works, thanks guys.
EDIT, AGAIN: It seems in all of my attempts to make it able to move, I accidentally took away it's ability to move.
Re: Sprite causing game to crash
Posted: Sat Dec 23, 2006 9:22 am
by Ardis
Umm... Heh, I fixed the no moving problem, something in the flingy.dat had to be set. But I have a new problem, I don't know how to describe it, so I'll post a screenshot.

The glitch is that there is only one battlecruiser unit, something went weird with the shadow.
The same thing happened with the Iron Claw, it has a full battlecruiser for a shadow.
EDIT: In the Image Editor on Arsenal III, when I compare the Battlecruiser Shad and Battlecruiser, the file number is the same, are they supposed to be that way?
Re: Sprite causing game to crash
Posted: Sat Dec 23, 2006 9:53 am
by IskatuMesk
The file name is calling on the grp, which is what you want. You need to set its render state to the same as the other shadows (look at air units for an example).
Re: Sprite causing game to crash
Posted: Sat Dec 23, 2006 10:52 am
by Ardis
According to the Image Editor, all of them are the same, but only the Battlecruiser goofs.
Re: Sprite causing game to crash
Posted: Sat Dec 23, 2006 11:07 am
by IskatuMesk
Never ever use arsenal 3 for editing images.dat. NEVER. It will corrupt it, usually instantly. Use arsenal zero. Arsenal zero also has the option you are looking for.