Sprite causing game to crash

User avatar
Ardis
Terran Nuclear Silo Safety Inspector
Terran Nuclear Silo Safety Inspector
Posts: 228
Joined: Tue Sep 05, 2006 5:03 pm
Location: Ohio, USA

Sprite causing game to crash

Post 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.
I'm not unstable.
Unstable implies that I could BECOME more dangerous than I am now.
User avatar
IskatuMesk
Xel'naga World Shaper
Xel'naga World Shaper
Posts: 8332
Joined: Sat Feb 07, 2009 1:40 pm
Location: M͈̙̞͍͞ͅE̹H̨͇̰͈͕͇̫Ì̩̳CO̼̩̤͖͘ జ్ఞ‌ా
Contact:

Re: Sprite causing game to crash

Post by IskatuMesk »

You need to use icecc to sync the animations with the grp.
Gameproc
Though we stand alone, stand we shall.
Lord_Jeremy
Terran Supply Depot Clerk
Terran Supply Depot Clerk
Posts: 17
Joined: Sun Nov 12, 2006 11:23 pm

Re: Sprite causing game to crash

Post 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...
User avatar
Ardis
Terran Nuclear Silo Safety Inspector
Terran Nuclear Silo Safety Inspector
Posts: 228
Joined: Tue Sep 05, 2006 5:03 pm
Location: Ohio, USA

Re: Sprite causing game to crash

Post by Ardis »

Sadly, I don't know how to use IceCC that well and I can't find proper tutorials.
I'm not unstable.
Unstable implies that I could BECOME more dangerous than I am now.
User avatar
IskatuMesk
Xel'naga World Shaper
Xel'naga World Shaper
Posts: 8332
Joined: Sat Feb 07, 2009 1:40 pm
Location: M͈̙̞͍͞ͅE̹H̨͇̰͈͕͇̫Ì̩̳CO̼̩̤͖͘ జ్ఞ‌ా
Contact:

Re: Sprite causing game to crash

Post by IskatuMesk »

I had made pretty much the only icecc tutorial in existence but it was on the old cc site which imploded.
Gameproc
Though we stand alone, stand we shall.
User avatar
xen_thanatos
Terran Refinery Attendant
Terran Refinery Attendant
Posts: 21
Joined: Fri Nov 10, 2006 2:28 am
Location: In the shadows...

Re: Sprite causing game to crash

Post by xen_thanatos »

Imploded?What happened?
User avatar
IskatuMesk
Xel'naga World Shaper
Xel'naga World Shaper
Posts: 8332
Joined: Sat Feb 07, 2009 1:40 pm
Location: M͈̙̞͍͞ͅE̹H̨͇̰͈͕͇̫Ì̩̳CO̼̩̤͖͘ జ్ఞ‌ా
Contact:

Re: Sprite causing game to crash

Post 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.
Gameproc
Though we stand alone, stand we shall.
User avatar
Lavarinth
Xel'naga Administrator
Xel'naga Administrator
Posts: 6539
Joined: Wed Aug 16, 2006 5:21 pm
Location: His Ashworld Planet

Re: Sprite causing game to crash

Post by Lavarinth »

Yep, Recon's a bastard.
- - Lavarinth
Campaign Creations Administrator
User avatar
Ardis
Terran Nuclear Silo Safety Inspector
Terran Nuclear Silo Safety Inspector
Posts: 228
Joined: Tue Sep 05, 2006 5:03 pm
Location: Ohio, USA

Re: Sprite causing game to crash

Post 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
I'm not unstable.
Unstable implies that I could BECOME more dangerous than I am now.
Lord_Jeremy
Terran Supply Depot Clerk
Terran Supply Depot Clerk
Posts: 17
Joined: Sun Nov 12, 2006 11:23 pm

Re: Sprite causing game to crash

Post 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!
User avatar
Ardis
Terran Nuclear Silo Safety Inspector
Terran Nuclear Silo Safety Inspector
Posts: 228
Joined: Tue Sep 05, 2006 5:03 pm
Location: Ohio, USA

Re: Sprite causing game to crash

Post 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.
Last edited by Ardis on Sat Dec 23, 2006 8:28 am, edited 1 time in total.
I'm not unstable.
Unstable implies that I could BECOME more dangerous than I am now.
User avatar
Ardis
Terran Nuclear Silo Safety Inspector
Terran Nuclear Silo Safety Inspector
Posts: 228
Joined: Tue Sep 05, 2006 5:03 pm
Location: Ohio, USA

Re: Sprite causing game to crash

Post 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.
Image
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?
Last edited by Ardis on Sat Dec 23, 2006 9:38 am, edited 1 time in total.
I'm not unstable.
Unstable implies that I could BECOME more dangerous than I am now.
User avatar
IskatuMesk
Xel'naga World Shaper
Xel'naga World Shaper
Posts: 8332
Joined: Sat Feb 07, 2009 1:40 pm
Location: M͈̙̞͍͞ͅE̹H̨͇̰͈͕͇̫Ì̩̳CO̼̩̤͖͘ జ్ఞ‌ా
Contact:

Re: Sprite causing game to crash

Post 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).
Gameproc
Though we stand alone, stand we shall.
User avatar
Ardis
Terran Nuclear Silo Safety Inspector
Terran Nuclear Silo Safety Inspector
Posts: 228
Joined: Tue Sep 05, 2006 5:03 pm
Location: Ohio, USA

Re: Sprite causing game to crash

Post by Ardis »

According to the Image Editor, all of them are the same, but only the Battlecruiser goofs.
I'm not unstable.
Unstable implies that I could BECOME more dangerous than I am now.
User avatar
IskatuMesk
Xel'naga World Shaper
Xel'naga World Shaper
Posts: 8332
Joined: Sat Feb 07, 2009 1:40 pm
Location: M͈̙̞͍͞ͅE̹H̨͇̰͈͕͇̫Ì̩̳CO̼̩̤͖͘ జ్ఞ‌ా
Contact:

Re: Sprite causing game to crash

Post 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.
Gameproc
Though we stand alone, stand we shall.
Post Reply