As the tag suggests, I need help.
I figured out how to mod after downloading Notepad ++. After increasing the size of a building's capacity, I decided to make the tanks a little more better. What I planned to do was add auto-shot to the Tank/Cannon (Since the gun is 20mm-30mm afterall. Kinda thought it'd work like a Bushmaster 25), the Tank/Laser Cannon and the Hovertank/Plasma.
After about an hour of attempts...I kinda gave up. I tried everything. Looking at other mods for reference, taking the Unit and Corpse codes into my document and everything. But I still couldn't give them autoshot (and increase their TU's to 100.)
I also tried to make the regular and laser Cannons to be useful and make the Interceptor a little better, but that's a whole thread on it's own.
Anyways, here's my code that I tried to get to work.
items:
- type: STR_TANK_CANNON
size: 6
costBuy: 420000
costSell: 340000
transferTime: 96
weight: 1
bigSprite: 43
floorSprite: 0
handSprite: 0
bulletSprite: 4
fireSound: 12
compatibleAmmo:
- STR_HWP_CANNON_SHELLS
accuracySnap: 60
accuracyAuto: 50
accuracyAimed: 90
tuSnap: 33
tuAuto: 40
tuAimed: 80
battleType: 1
fixedWeapon: true
invWidth: 2
invHeight: 3
turretType: 0
units:
- type: STR_TANK_CANNON
race: STR_TANK_CANNON
stats:
tu: 100
stamina: 100
health: 90
bravery: 110
reactions: 20
firing: 60
throwing: 0
strength: 60
psiStrength: 100
psiSkill: 0
melee: 70
armors:
armor: TANK_ARMOR
standHeight: 16
kneelHeight: 16
value: 20
deathSound: 23
moveSound: 14
energyRecovery: 50
- type: TANK_ARMOR
spriteSheet: TANKS.PCK
corpseBattle:
- TANK_CORPSE_1
- TANK_CORPSE_2
- TANK_CORPSE_3
- TANK_CORPSE_4
frontArmor: 90
sideArmor: 75
rearArmor: 60
underArmor: 60
drawingRoutine: 2
size: 2
damageModifier:
- 1.0
- 1.0
- 0.4
- 0.75
- 1.0
- 1.0
- 0.0
- 0.9
- 0.4
- 0.0
loftempsSet: [ 92, 89, 90, 91 ]
items:
- type: STR_TANK_LASER_CANNON
size: 6
costSell: 594000
transferTime: 96
weight: 1
bigSprite: 54
floorSprite: 0
handSprite: 0
bulletSprite: 5
fireSound: 11
hitSound: 19
hitAnimation: 36
power: 110
damageType: 4
accuracySnap: 50
accuracyAuto: 50
accuracyAimed: 85
tuSnap: 33
tuAuto: 40
tuAimed: 75
battleType: 1
fixedWeapon: true
clipSize: -1
invWidth: 2
invHeight: 3
turretType: 2
units:
- type: STR_TANK_LASER_CANNON
race: STR_TANK_LASER_CANNON
stats:
tu: 100
stamina: 100
health: 90
bravery: 110
reactions: 20
firing: 60
throwing: 0
strength: 60
psiStrength: 100
psiSkill: 0
melee: 7
armor: TANK_ARMOR
standHeight: 16
kneelHeight: 16
value: 20
deathSound: 23
moveSound: 14
energyRecovery: 50
armors:
armor: TANK_ARMOR
standHeight: 16
kneelHeight: 16
value: 20
deathSound: 23
moveSound: 14
energyRecovery: 50
- type: TANK_ARMOR
spriteSheet: TANKS.PCK
corpseBattle:
- TANK_CORPSE_1
- TANK_CORPSE_2
- TANK_CORPSE_3
- TANK_CORPSE_4
frontArmor: 90
sideArmor: 75
rearArmor: 60
underArmor: 60
drawingRoutine: 2
size: 2
damageModifier:
- 1.0
- 1.0
- 0.4
- 0.75
- 1.0
- 1.0
- 0.0
- 0.9
- 0.4
- 0.0
loftempsSet: [ 92, 89, 90, 91 ]
items:
- type: STR_HOVERTANK_PLASMA
size: 6
costSell: 980000
transferTime: 96
weight: 1
bigSprite: 40
floorSprite: 0
handSprite: 0
bulletSprite: 8
fireSound: 18
hitSound: 19
power: 110
damageType: 5
hitAnimation: 46
accuracySnap: 85
accuracyAuto: 50
accuracyAimed: 100
tuSnap: 30
tuAuto: 40
tuAimed: 60
battleType: 1
fixedWeapon: true
clipSize: -1
invWidth: 2
invHeight: 3
turretType: 3
armors:
- type: HOVERTANK_ARMOR
spriteSheet: NEWTANKS.PCK
corpseBattle:
- HOVERTANK_CORPSE_1
- HOVERTANK_CORPSE_2
- HOVERTANK_CORPSE_3
- HOVERTANK_CORPSE_4
frontArmor: 130
sideArmor: 130
rearArmor: 130
underArmor: 100
drawingRoutine: 2
movementType: 1
size: 2
damageModifier:
- 1.0
- 1.0
- 0.4
- 0.75
- 1.0
- 1.0
- 0.0
- 0.9
- 0.4
- 0.0
loftempsSet: [ 92, 89, 90, 91 ]
I hope someone experienced can see where I went wrong.
(It was probably something stupid, wasn't it?)
Despite my best efforts, I still can't get autofire. I've gotten the 100 TU's and I got the mod to semi-work, but no autofire. As shown below:
https://i.imgur.com/F2XBXqy.png (https://i.imgur.com/F2XBXqy.png)
Here is my code again...
items:
- type: STR_TANK_CANNON
size:6
costBuy:420000
costSell:340000
transferTime:96
weight:1
bigSprite:43
floorSprite:0
handSprite:0
bulletSprite:4
fireSound:12
compatibleAmmo:STR_HWP_CANNON_SHELLS
accuracySnap:60
accuracyAimed:115
accuracyAuto:50
tuAuto:45
tuSnap:25
tuAimed:50
battleType:1
fixedWeapon:true
invWidth:2
invHeight:3
turretType:0
units:
- type: STR_TANK_CANNON
race: STR_TANK_CANNON
stats:
tu: 100
stamina: 100
health: 90
bravery: 110
reactions: 20
firing: 60
throwing: 0
strength: 60
psiStrength: 100
psiSkill: 0
melee: 70
armor: TANK_ARMOR
standHeight: 16
kneelHeight: 16
value: 20
deathSound: 23
moveSound: 14
energyRecovery: 50
armors:
- type: TANK_ARMOR
spriteSheet: TANKS.PCK
corpseBattle:
- TANK_CORPSE_1
- TANK_CORPSE_2
- TANK_CORPSE_3
- TANK_CORPSE_4
frontArmor: 90
sideArmor: 75
rearArmor: 60
underArmor: 60
drawingRoutine: 2
size: 2
damageModifier:
- 1.0
- 1.0
- 0.4
- 0.75
- 1.0
- 1.0
- 0.0
- 0.9
- 0.4
- 0.0
loftempsSet: [ 92, 89, 90, 91 ]
I feel like I have my tail between my legs...