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.
Edited by user
18 years ago |
Reason: Not specified
Turtling is not a strategy, its a weakness