Hey
I'm working on a mod for personal use and when I try and load the scenario I get this error message:
units.txt:2061:Unknown token
Line 2061 is the second line below: UNIT_IRONCLAD {
I don't see anything wrong with that line or with the entire unit section. Anybody see anything I missed?
## UNIT 35
UNIT_IRONCLAD {
Description DESCRIPTION_UNIT_IRONCLAD
DefaultIcon ICON_UNIT_IRONCLAD
DefaultSprite SPRITE_IRONCLAD
Category UNIT_CATEGORY_NAVAL
Attack 40
Defense 30
ZBRangeAttack 40
Firepower 3
Armor 3
MaxHP 10
ShieldCost 500
PowerPoints 100
ShieldHunger 5
FoodHunger 0
MaxMovePoints 300
VisionRange 1
EnableAdvance ADVANCE_MODERN_METALLURGY
ObsoleteAdvance ADVANCE_ADV_NAVAL_TACTICS
BombRounds 5
BombardRange 1
ActiveDefenseRange 0
LossMoveToDmgNone
MaxFuel 0
IgnoreZOC
NoZoc
CanPillage
CanPirate
CantCaptureCity
ExertsMartialLaw
DeathEffectsHappy
Explodes
IsFlanker
SoundSelect1 SOUND_SELECT1_IRONCLAD
SoundSelect2 SOUND_SELECT2_IRONCLAD
SoundMove SOUND_MOVE_IRONCLAD
SoundAcknowledge SOUND_ACKNOWLEDGE_IRONCLAD
SoundCantMove SOUND_CANTMOVE_IRONCLAD
SoundAttack SOUND_ATTACK_IRONCLAD
SoundWork SOUND_WORK_IRONCLAD
SoundVictory SOUND_VICTORY_IRONCLAD
SoundDeath SOUND_DEATH_IRONCLAD
CanAttack: Sea
CanAttack: ShallowWater
CanBombard: Water
CanSee: Standard
MovementType: Sea
MovementType: ShallowWater
Size: Large
VisionClass: Underwater
CanReform {
Sound SOUND_ID_REFORM_CITY
Effect SPECEFFECT_REFORMCITY
}
}
Made a couple of changes, changed the vision class and added the IgnoreZOC and NoZoc tags and removed CanExpel. Oh yeah, also added IsFlanker but I did that with several other units also. I can't figure it out. Any help?
Btw, have Diplomod installed and also have the PWSlic and Frenzy SLIC in this scenario.
Thanks in advance
I'm working on a mod for personal use and when I try and load the scenario I get this error message:
units.txt:2061:Unknown token
Line 2061 is the second line below: UNIT_IRONCLAD {
I don't see anything wrong with that line or with the entire unit section. Anybody see anything I missed?
## UNIT 35
UNIT_IRONCLAD {
Description DESCRIPTION_UNIT_IRONCLAD
DefaultIcon ICON_UNIT_IRONCLAD
DefaultSprite SPRITE_IRONCLAD
Category UNIT_CATEGORY_NAVAL
Attack 40
Defense 30
ZBRangeAttack 40
Firepower 3
Armor 3
MaxHP 10
ShieldCost 500
PowerPoints 100
ShieldHunger 5
FoodHunger 0
MaxMovePoints 300
VisionRange 1
EnableAdvance ADVANCE_MODERN_METALLURGY
ObsoleteAdvance ADVANCE_ADV_NAVAL_TACTICS
BombRounds 5
BombardRange 1
ActiveDefenseRange 0
LossMoveToDmgNone
MaxFuel 0
IgnoreZOC
NoZoc
CanPillage
CanPirate
CantCaptureCity
ExertsMartialLaw
DeathEffectsHappy
Explodes
IsFlanker
SoundSelect1 SOUND_SELECT1_IRONCLAD
SoundSelect2 SOUND_SELECT2_IRONCLAD
SoundMove SOUND_MOVE_IRONCLAD
SoundAcknowledge SOUND_ACKNOWLEDGE_IRONCLAD
SoundCantMove SOUND_CANTMOVE_IRONCLAD
SoundAttack SOUND_ATTACK_IRONCLAD
SoundWork SOUND_WORK_IRONCLAD
SoundVictory SOUND_VICTORY_IRONCLAD
SoundDeath SOUND_DEATH_IRONCLAD
CanAttack: Sea
CanAttack: ShallowWater
CanBombard: Water
CanSee: Standard
MovementType: Sea
MovementType: ShallowWater
Size: Large
VisionClass: Underwater
CanReform {
Sound SOUND_ID_REFORM_CITY
Effect SPECEFFECT_REFORMCITY
}
}
Made a couple of changes, changed the vision class and added the IgnoreZOC and NoZoc tags and removed CanExpel. Oh yeah, also added IsFlanker but I did that with several other units also. I can't figure it out. Any help?
Btw, have Diplomod installed and also have the PWSlic and Frenzy SLIC in this scenario.
Thanks in advance
Comment