Yoshi714
  • Yoshi714
  • 100% (Exalted)
  • Major Topic Starter
18 years ago
I am attempting to add the mammoth tank from the Shock Wave mod to the regular USA general with no Mod. I will list the section of each file I edited below:

ComamndSet.ini

CommandSet AmericaWarFactoryCommandSet
1 = Command_ConstructAmericaTankCrusader
2 = Command_ConstructAmericaVehicleTomahawk
3 = Command_ConstructAmericaVehicleHumvee
4 = Command_ConstructAmericaVehicleMedic
5 = Command_ConstructAmericaVehiclePaladin
6 = Command_ConstructAmericaVehicleSentryDrone
7 = Command_ConstructAmericaVehicleAvenger
8 = Command_ConstructAmericaVehicleMicrowave
9 = Command_UpgradeAmericaSentryDroneGun
10 = Armor_Command_ConstructAmericaVehiclePaladin
11 = Command_UpgradeAmericaTOWMissile
13 = Command_SetRallyPoint
14 = Command_Sell
End

CommandButton.ini

CommandButton Armor_Command_ConstructAmericaVehiclePaladin
Command = UNIT_BUILD
Object = Armor_AmericaTankPaladin
TextLabel = CONTROLBAR:ConstructAmericaTankPaladin
ButtonImage = SAPaladin
ButtonBorderType = BUILD ; Identifier for the User as to what kind of button this is
DescriptLabel = CONTROLBAR:ToolTipUSABuildPaladin
End

I have created a file within the Objects folder called Mammoth (must I use a file already being referenced such as AmericaVehicle?) I wont post its contents becuase its the entire object description, but all I altered were the prereq's (removed) and the 'side' changed to 'America'.

Weapon.ini - I realize I will have to add buttons for the upgrades available, but I will do that once I have gotten somewhere and can atleast purchase the tank in game.

Weapon MammothTankGun
PrimaryDamage = 65
PrimaryDamageRadius = 5.0
ScatterRadiusVsInfantry = 10.0 ;When this weapon is used against infantry, it can randomly miss by as much as this distance.
SecondaryDamage = 10.0
SecondaryDamageRadius = 10.0
AttackRange = 175.0
MinTargetPitch = -15 ; we may not target anything outside of this pitch range
MaxTargetPitch = 15 ; ditto
DamageType = ARMOR_PIERCING
DeathType = NORMAL
WeaponSpeed = 300 ; dist/sec
WeaponRecoil = 5 ; angle to deflect the model when firing
ProjectileObject = OverlordTankShell
FireFX = WeaponFX_GenericTankGunNoTracer
VeterancyFireFX = HEROIC WeaponFX_HeroicGenericTankGunNoTracer
ProjectileDetonationFX = WeaponFX_GenericTankShellDetonation
FireSound = MammothTankWeapon
RadiusDamageAffects = ALLIES ENEMIES NEUTRALS
DelayBetweenShots = 300 ; time between shots, msec
ShotsPerBarrel = 1 ; By default, shoot one shot per barrel
ClipSize = 2 ; how many shots in a Clip (0 == infinite)
ClipReloadTime = 2000 ; how long to reload a Clip, msec
AutoReloadWhenIdle = 2001
ProjectileCollidesWith = STRUCTURES WALLS
AntiAirborneVehicle = No
End

Weapon MammothTankTuskMissiles
PrimaryDamage = 40.0
PrimaryDamageRadius = 10.0
ScatterRadius = 15.0
AttackRange = 175.0
DamageType = EXPLOSION ; ignored for projectile weapons
DeathType = EXPLODED
WeaponSpeed = 600 ; ignored for projectile weapons
ProjectileDetonationFX = WeaponFX_RocketBuggyMissileDetonation
ProjectileObject = AdvancedCrusaderMissile
ProjectileExhaust = MissileDefenderMissileExhaust
VeterancyProjectileExhaust = HEROIC HeroicMissileDefenderMissileExhaust
RadiusDamageAffects = ALLIES ENEMIES NEUTRALS
DelayBetweenShots = 200 ; time between shots, msec
ClipSize = 4 ; how many shots in a Clip (0 == infinite) ; You have to have a clip size as a missile weapon
ClipReloadTime = 5000 how long to reload a Clip, msec
AutoReloadsClip = Yes
FireSound = MammothRocketTuskWeapon
ProjectileDetonationFX = FX_MammothTuskMissileExplosion
AntiAirborneVehicle = No
AntiAirborneInfantry = No
AntiGround = Yes
ProjectileCollidesWith = STRUCTURES

Locomoter.ini

Locomotor MammothLocomotor
Surfaces = GROUND
Speed = 33
SpeedDamaged = 33
TurnRate = 75
TurnRateDamaged = 75
Acceleration = 35
AccelerationDamaged = 35
Braking = 50
MinTurnSpeed = 0
ZAxisBehavior = NO_Z_MOTIVE_FORCE
Appearance = TREADS

AccelerationPitchLimit = 2 ; Angle limit how far chassis will lift or roll from acceleration.
DecelerationPitchLimit = 2 ; Angle limit how far chassis will dip from deceleration.
PitchStiffness = 0.05 ; stiffness of the "springs" in the suspension forward & back.
RollStiffness = 0.05 ; stiffness of the "springs" in the suspension side to side.
PitchDamping = 0.8 ; How fast it damps. 0=perfect spring, bounces forever. 1=glued to terrain.
RollDamping = 0.3 ; How fast it damps. 0=perfect spring, bounces forever. 1=glued to terrain.
ForwardAccelerationPitchFactor = 0.5 ; How much acceleration will cause the front to lift, or dip for stops.
LateralAccelerationRollFactor = 0.33 ; How much cornering will cause the chassis to roll.
End

I have also copied the entire folder called 'TextureSize_512' and added in the files regarding the mammoth tank. I also copied all audio files regarding the mammoth tank into the corresponding folder.

At this point I do not recieve an error on game launch or during game play. After making the WarFactory I can see the image of the tank (although it still has the paladin image and not the mammoth image, not sure why) but I cannot click it, and hovering over it DOES NOT cause the game to crash. Also it does not show me the price of the tank, or the prereqs (even if I add one). This tells me that the game does not see the object description file, since those things come from there, but I see no reason why it shouldnt see it unless it needs a specific name. I will try just adding the tank to the AmericaVehicle.ini file and placing that file in place of the Mammoth.ini file to see if that works. Any thoughts??

EDIT - I found a crucial, and stupid error. My object description was a .txt extention not .ini. I fixed that. Now it shows price and prereq's and allows me to purchase. However, it does not have the correct picture with the button, and the image that shows on the right during the buid time is just blue, so it doesnt find that either. As soon as the unit is produced the game crashes.

Reason Uncaught Exception in GameEngine::update

EDIT - I found a section in the SoundEffects.ini file regarding the mammoth tank so I went ahead and copied that section into the original SoundEffects.ini file and placed it in the INI folder. I already had the actual sounds in the audio folder so the sounds that this file references are there. Also, the FXList.ini file I cannot get the section from the mammoth tank out. This file is all scattered and difficult to use. The original one is not like that and I can easily see the structure of the file but the one I extracted from final big is difficult so I am not sure I can get the section on the mammoth tank (although I know from searching that the file has a section on the mammoth). All of the images appear correctly now and other units can still be produced without error. Still same crash when I build the mammoth.
Turtling is not a strategy, its a weakness
Sponsor
Me Myself and Pi
18 years ago
Did you copy the model files & the skin files too?
Yoshi714
  • Yoshi714
  • 100% (Exalted)
  • Major Topic Starter
18 years ago
Yes, I went through the object description line for line and then searched for each of the models. Found them in the shockwave files and then copied them over to the Art folder within my directory. I am attempting to upload my files so you can see them, have been for a few hours now but I keep getting a connection problem that I believe is my routers fault. I'll keep trying.

EDIT - Wow, ok... so I figured out that I had another set of models not in the game. They were in relation to the energy shield. So I added them as well as the textures for them. Now, I went ahead and used World Builder to find remaining errors. World builder gave me the following errors.

DamageEnergyShield - Not Found

OCL_AmericaEnergyShieldUpdate_Mammoth - Not Found

Invalid Sound Mammoth Tank Voice Create

FXList FX_AnthraxGammaBomb - Not Found

AdvancedCrusadorMissile - Not Found

Now, I'm not so sure about the gamma thing as well as the cursader missile, neither of those would cause a crash when the tank is created. So I suppose FOR NOW I can limit to the first couple of issues.

EDIT - I changed the DamageFX for the energy shield so that it was not a new sound but rather the same sound that happens with no energy shield.

I removed the energy shield as a purchasable upgrade that way it didnt need to be in the Object creation list.

I added the voice create sound to my files as well as voice select and the others of that type.

Making those changes managed to make world builder not get those errors on start, but it still gets the errors regarding the anthrax bomb and the missile thing. Those however shouldnt cause a game crash when a mammoth tank is created as long as they have nothing to do with the tank. I still get the crash.


OKAY - So a lil persistence paid off... the mammoth tank now creates with no issue and I attacked with it to make sure it functioned correctly and it seemed good. I'm so happy. Now I would like to slowly reintegrate the upgrades back into the tank. Although not all of them, it had like 4, lol. I just want to get one or two so it is upgradable like most other units. Thanks Pi, sorry I work too fast for anyone to effectively help me sometimes, I get irritated when things don't work like I expect them to. I'm sure I'll post back here tomorrow night when I attempt to get attack upgrades working for the tank, the rockets that are shot from it would be an easy and worth while upgrade but for now I'm just going to up the cost, life, and attack of this beast so its more on par with the overlord.

Turtling is not a strategy, its a weakness