View Full Version : Giving Tank Mode Siege Turret
MidnightGladius
12-28-2005, 5:36 PM
It's all in the title. For my next mod, I'd like to give the Tank in tank mode the Siege Mode turret. When it's just firing, it's fine. However, when I try to move the Tank, the turret rotates perhaps one frame and SC crashes.
What is causing this problem, and how can I fix it? Thanks in advance.
Gee thats a tough one. It almost sounds like its in the Iscript but I'm not sure.
I kinda had the same problem when I turned the Frag Grenade into a Nuke and that was in the Iscript. But, other I don't know. Sorry I can't help anymore:) .
U-238
Basan
12-29-2005, 11:44 AM
MG, try n' wait for/ask to Grim' since in his latest mod (http://www.warboards.org/showthread.php?t=13393) all the Tanks (no matter which form, if recalled right) had a curious rotating slingshot SFX that captured my eyes amongst others. ;)
GrimTerror
12-29-2005, 1:47 PM
I'd love to help, but i'm not sure if what i did with the tanks in The Grim Mod would help MG out here. Still anything's better than nothing, so here's my theory.
In The Grim Mod, all i did was add turnccwise into the gndattk code. If i take a quick look at the tanks code right now, there are unkowns that relate to the corresponding turret (siege Tank Turret for the siege tank base, and Siege Turret for the Siege Tank.) That may be due to the old version of IceCC that's being used, but there is a connection bewteen the Tank and the turret depending on what mode it's in. I've seen this before with the S-Mine and Vulture, there was some unkown in the Vulture (I think) that related to the spider mine, and the codes i've found here seem to be similar.
# ----------------------------------------------------------------------------- #
# This is a decompile of the iscript.bin file 'data\scripts\iscript.bin'
# created on: Thu Dec 29 18:28:38 2005
# ----------------------------------------------------------------------------- #
# ----------------------------------------------------------------------------- #
# This header is used by images.dat entries:
# 250 SiegeTankTankBase (terran\tank.grp)
.headerstart
IsId 90
Type 23
Init SiegeTankTankBaseInit
Death SiegeTankTankBaseDeath
GndAttkInit [NONE]
AirAttkInit [NONE]
SpAbility1 [NONE]
GndAttkRpt [NONE]
AirAttkRpt [NONE]
SpAbility2 [NONE]
GndAttkToIdle [NONE]
AirAttkToIdle [NONE]
SpAbility3 [NONE]
Walking SiegeTankTankBaseWalking
Other SiegeTankTankBaseOther
BurrowInit [NONE]
ConstrctHarvst [NONE]
IsWorking [NONE]
Landing [NONE]
LiftOff [NONE]
Unknown18 [NONE]
Unknown19 [NONE]
Unknown20 [NONE]
Unknown21 [NONE]
Unknown22 [NONE]
Unknown23 SiegeTankTankBaseUnknown23
.headerend
# ----------------------------------------------------------------------------- #
SiegeTankTankBaseUnknown23:
playframno 12
imgol0d 251 2 0 # SiegeTankTankTurret (terran\tankt.grp)
This is for Tank Mode, and you can see in red the imgol0d code that has the relation to The Tank Turret. The Siege Tank in Siege mode has a similar unkown code.
# ----------------------------------------------------------------------------- #
# This header is used by images.dat entries:
# 253 SiegeTankSiegeBase (terran\stank.grp)
.headerstart
IsId 92
Type 23
Init SiegeTankSiegeBaseInit
Death SiegeTankSiegeBaseDeath
GndAttkInit [NONE]
AirAttkInit [NONE]
SpAbility1 [NONE]
GndAttkRpt [NONE]
AirAttkRpt [NONE]
SpAbility2 [NONE]
GndAttkToIdle [NONE]
AirAttkToIdle [NONE]
SpAbility3 [NONE]
Walking [NONE]
Other [NONE]
BurrowInit [NONE]
ConstrctHarvst SiegeTankSiegeBaseConstrctHarvst
IsWorking [NONE]
Landing [NONE]
LiftOff [NONE]
Unknown18 [NONE]
Unknown19 [NONE]
Unknown20 [NONE]
Unknown21 [NONE]
Unknown22 [NONE]
Unknown23 SiegeTankSiegeBaseUnknown23
.headerend
# ----------------------------------------------------------------------------- #
SiegeTankSiegeBaseUnknown23:
imgol0d 254 2 0 # SiegeTankSiegeTurret (terran\stankt.grp)
This code here is for the Siege Tank in Siege mode, and like before you can see the relation to the corresponding Turret (Highlighted in Blue.) Again its an imgol0d, so if i remember correctly it has something to do with the images or graphic of the unit. Seeing as there is only one header for the Turret Graphic, if you replaced the Siege Tank's unknown imgol0d (in red) with the one in the Siege Tank (siege mode, in blue) Then it might just work. However, i dont know what would happen when you switched to Siege Mode when the Siege mode turret is already being used in tank mode.
I'll test this myself and hope it works, I would like to be of some use for once in my life:P
Edit: Well that was really disappointing! It didn't even crash...Nothing happened whatsoever. Maybe i did a bit wrong somewhere...I'll try again.
Edit 2: I just fail at life! Not only did i just type out a massive passage for nothing but i didn't even help MG find the answer!
But anyway, if you're wanting to change graphics shouldn't you be using RetroGRP?
MidnightGladius
12-29-2005, 4:57 PM
Heh, I think we're overcomplicating this. All I did was just go to A3 Units and change the subunit for Tank Mode to Tank Turret (Siege).
The odd part is that this seems to work perfectly fine with Goli-heads on Tank-bases. Gives you a nice Gattling Tank effect.
I've seen a golie legs with tank turret but i can't help you here. Btw why are the tank heads and golie heds sub units and ot part of the oringal unit?
GrimTerror
01-01-2006, 11:46 AM
I think it's more of A graphical thing. It might not be as bad with the Goliath (because it swivels around anyway) but imagine in the tank just twirled around just to fire when it has a Turret? And think about Siege mode. If you see these big claws stuck into the Ground but it couldn't move the turret, so the tank itself had to face the correct direction, it'd look pretty stupid. I think it's to add a more realistic effect to the units more than anything. Tanks today do have rotatable turrets, and it look cool anyway:P Especially when the Golies watch an enemy as the run by it:)
MidnightGladius
01-01-2006, 12:00 PM
I'm just trying to get the Tank to look like an Artillery piece, with the elevated turret and all. I could do without it, but it'd take away the image I'm looking for.
Well, can't you just use RetroGRP like Grim suggested a few posts back?
Here, I made it for you :rolleyes:
JarquaFelmu
01-01-2006, 4:06 PM
I've seen a golie legs with tank turret but i can't help you here. Btw why are the tank heads and golie heds sub units and ot part of the oringal unit?Lol, ceaser you saw the tank turret on goliath legs in my mod:), But ya, I put the Siege Mode Turret on the Golieth Legs, and it didn't fire at all, that make sense to anyone here?
vBulletin® v3.7.2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.