Apolyton Archive  |  Preserved copy of the Apolyton Civilization Site forums as they ran on Ultimate Bulletin Board, 1998–2001. Read-only; nothing here can be posted to or replied to.  |  Forum index |  About this archive |  The 2005 site & forums

  Apolyton Civilization Site Forums
  CtP2-Creation
  Need help with mod prob

Post New Topic  Post A ReplyPost A Reply In A New Window

profile | register | preferences | faq | search next newest topic | next oldest topic bottom of page
Author
Topic:   Need help with mod prob Format for Better Printing
XMon
Chieftain
Tampa, Florida
Sep 2000
posted February 05, 2001 15:45   Click Here to See the Profile for XMonClick Here to Email XMon  send a private message to XMon
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
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

Immortal Wombat
Settler
uk
Dec 2000
posted February 05, 2001 15:57   Click Here to See the Profile for Immortal Wombat   send a private message to Immortal Wombat
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
It actually souns like the problem lies in uniticon.txt. It may be that there is a spelling error in the ICON_UNIT_IRONCLAD line, so when the game looks for ICON_UNIT_IRONCLAD, it can't find it, hence it says "unknown token".
I hope this helps

Ben

Locutus
Prince
Apolyton Borg Hengelo/Enschede, The Netherlands
Nov 1999
posted February 05, 2001 16:14   Click Here to See the Profile for LocutusClick Here to Email Locutus  send a private message to LocutusSend a Message to UIN: 52912776 Visit Locutus's Homepage!
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
Description isn't used in the game, so DESCRIPTION_UNIT_IRONCLAD probably doens't exist. Replace it with DESCRIPTION_UNIT_WARRIOR or whatever and the problem should go away...
Paul
Emperor
Zwolle, The Netherlands
Mar 99
posted February 05, 2001 16:19   Click Here to See the Profile for PaulClick Here to Email Paul  send a private message to PaulSend a Message to UIN: 83134477 Visit Paul's Homepage!
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
I think it is more likely that the entry for the previous unit wasn't properly closed with a }. In that case the game would think that UNIT_IRONCLAD is a flag for the unit coming before it. This sort of problems in units.txt often result from non-matching numbers of left { and right } brackets.

Edit: or Locutus may be right. I hadn't noticed that yet.
[This message has been edited by Paul (edited February 05, 2001).]

Immortal Wombat
Settler
uk
Dec 2000
posted February 05, 2001 16:48   Click Here to See the Profile for Immortal Wombat   send a private message to Immortal Wombat
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
DESCRIPTIONS are in place and the ironclad decription is there. The lines may not be used as such, but they are in junk_str.txt.

According to strings.txt the stuff in junk_str.txt is needed for the executable.


XMon
Chieftain
Tampa, Florida
Sep 2000
posted February 05, 2001 17:49   Click Here to See the Profile for XMonClick Here to Email XMon  send a private message to XMon
Edit/Delete Message    Reply To And Quote This Message
IP: Logged, Admin Access Only
Paul, you are correct. The previous unit was missing a "}" Thanks very much!

Now I've gotta go search out all the other bugs...like how many times I spelled "Mountain" as "Moutain."

Apolyton Civilization Site Forums
> > > CtP2-Creation Forum

next newest topic | next oldest topictop of page

All times are EDT

Administrative Options: Close Topic | Archive/Move | Delete Topic | Top
Post New Topic  Post A ReplyPost A Reply In A New Window
Hop to:

Contact Us
Apolyton Civilization Site

Powered by: Ultimate Bulletin Board, Version 5.44a
© Infopop Corporation (formerly Madrona Park, Inc.), 1998 - 2000.

Front Page | Civilization III | Dinosaurs | Civilization II | Call to Power | Call to Power II | Alpha Centauri | Alternative Civs | Misc | Links | About ACS | GameStats
GameLeague | Scenario League | HAC | Civilization Scenario Collection | Spanish CivII Site | Clash of Civs | CtP Maps | Art of War | WesW's Ctp1/2 Site