Apolyton Archive  |  Preserved copy of the Apolyton Civilization Site and its forums as they stood in September 2005. Read-only; nothing here can be posted to or replied to.  |  Forum index |  About this archive |  The 1998–2001 UBB forums
Today on Apolyton WARDELL INTERVIEW PROMO A.C.S. HISTORY CHAPTER 4 GET CIV4 /w FREE PLUS! A.C.S. PHOTO GALLERY GET A.O.M. V1.1
Apolyton Civilization Forums
main| civ2| civ3| civ4| smac| ctp2| ron| moo3| galciv| galciv2| alt| about|
ApolytonPLUS | register | search | faq | new posts | pm (-/-) | upload | members
hall of fame new! | civgroups | civgroups news | interviews | the column | radio | chat | directory | news | store | PLUS
Apolyton Civilization Forums : Powered by vBulletin version 2.0.3 Apolyton Civilization Forums > Miscellaneous > Archive > CtP2-Creation/AI/Mods/Scenarios-Archive > Need help with mod prob
Show a Printable Version | Email This Page to Someone! | Receive updates to this thread | Report this to Apolyton news!

bottom of page
  
Author
Thread    < Last Thread     Next Thread > Post New Thread     Post A Reply
XMon is offline XMon
Warlord
Tampa, Florida
Sep 2000
time: 00:14
Red face  Old Post 06-02-2001 01:45
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
Need help with mod prob Increase Your PM Length

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 is offline Immortal Wombat
Prince
in perpetuity
Dec 2000
time: 05:14
Smile  Old Post 06-02-2001 01:57 Visit Immortal Wombat's homepage!
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Lose 30 kilos (of popups)

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 is offline Locutus
ACS CTP1/2 Manager & Civ4 Co-Manager
Hengelo, The Netherlands
Nov 1999
time: 06:14
Post  Old Post 06-02-2001 02:14 Visit Locutus<br><img src=/forums/images/staff-icon.gif>'s homepage!
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Support Apolyton buy from Amazon

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 is offline Paul
Emperor
Zwolle, The Netherlands
Mar 1999
time: 06:14
Post  Old Post 06-02-2001 02:19 Visit Paul's homepage!
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Increase Your PM Length

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 is offline Immortal Wombat
Prince
in perpetuity
Dec 2000
time: 05:14
Post  Old Post 06-02-2001 02:48 Visit Immortal Wombat's homepage!
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Increase the size of your Attachments

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 is offline XMon
Warlord
Tampa, Florida
Sep 2000
time: 00:14
Post  Old Post 06-02-2001 03:49
Edit/Delete Message Reply w/Quote
#6 Report this post to a moderator
Support Apolyton, buy Civilization 2

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."

  < Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:14.
Apolyton Time is 00:14.
    top of page
Rate This Thread:
archivepost
Forum Jump:
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is ON
vB code is ON
Smilies are ON
[IMG] code is ON
 




Contact Us - Apolyton Civilization Site - Support Us!

Building a better Apolyton through better information. Click here and take our poll!
Non-US visitors, click here!

Powered by: vBulletin Version 2.0.3
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Page generated in 0.0316 seconds (87.11% PHP - 12.89% MySQL) with 31 queries
Page Loading Time:

Support Apolyton: Amazon USA | Amazon UK | Amazon DE | Amazon FR |
Support Apolyton and get FREE PLUS, Buy from Chips&Bits: Galactic Civilizations | Galactic Civilizations: Deluxe Edition | Call to Power 2 | Civilization: The Boardgame | GURPS/ Alpha Centauri | Alpha Centauri | Civilization IV | Civilization III: Complete |


Front Page | Civilization IV | Civilization III | Civilization II | Call to Power II | Alpha Centauri | Master of Orion III
Rise of Nations | Galactic Civilizations | Galactic Civilizations II | Misc
Alt.Civs | Civ I | C:CtP I | About | News | Directory | Apolyton Store | Forums | Chat | Columns | Interviews | Newsletter
Scenario League | CSC | Clash of Civs | Spanish Site | CtP Maps | Cradle of Civ | WesW's Ctp1/2 Site | Civ3 Haven

apolyton.net | apolyton.com | civilization2.net | civilization3.net | civilization4.net | civilizationiv.info | calltopower.net | galciv.net | galciv2.net | moo3.net