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 > Civilization: Call To Power > CtP-Creation > Units.txt problems
Show a Printable Version | Email This Page to Someone! | Receive updates to this thread | Report this to Apolyton news!
12.Sep: `CTP CHALLENGE LADDER` - SEPTEMBER UPDATE
09.Sep: EARLY BUILD SPRITE EDITOR
02.Aug: `SUPERLEAGUE` SIGN-UP

bottom of page
  - CIVILIZATION: CALL TO POWER @ GAMESTOP $9.99 - CIVILIZATION: CALL TO POWER @ AMAZON $9.99
Author
Thread    < Last Thread     Next Thread > Post New Thread     Post A Reply
Grandpa Troll is offline Grandpa Troll

Immortal
I owe..I owe..it's off to work I go
Jul 2000
time: 00:19
  Old Post 20-05-2002 08:19
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
Units.txt problems Increase Your PM Length

I am not sure how many people out there have played with units.txt, nice file, NICE BIG FILE!!

I am making a scenario, testing and all is great, except when I tried to make it so no units could pirate, I got an error message after crashing to desktop, something very similiar to "CANT_PIRATE line 490 is not a flag"

I have altered files befooore, when workng on my civil war scenario and had it down pat, but now I am back having a go at it.

My question is this,-

How can i tell what line i am on? Is there a way?

I know what I could do, start over, change one unit at a time, and start game, process of elimination I reckon, to se what it is I messed up.

I am just looking for any way to count lines, does the file count line down from top of page, or does it start with I believe "73 units" or whatever the count is or does it count only lines actually using a description, ect.?? just wanted to know if anyone has encountered this situation, that way you could go straight to that line and repair the code you messed up.

Thanks

Troll

P.S.

I am going to work on a Civil War Scenario, a little at a time, but it takes soo much work, I may just be whizzing in the wind, albeit my own whizz, my own wind...so it may not actually get past the "Want to" stage

Troll

Locutus is offline Locutus
ACS CTP1/2 Manager & Civ4 Co-Manager
Hengelo, The Netherlands
Nov 1999
time: 06:19
  Old Post 20-05-2002 16:11 Visit Locutus<br><img src=/forums/images/staff-icon.gif>'s homepage!
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Inflate your Upload Space

Your using NotePad (or WordPad) now, I assume? You don't want to count lines manually, that's gonna go horribly wrong. You want to use a decent text editor instead. I'm a big fan of EditPlus myself, but that's also because it has support for SLIC files (if you download an additional syntax file). Another popular editor is UltraEdit. Both these programs are shareware but I'm sure there are also similar freeware programs out there (but at least in case of EditPlus it's no problem to use the unregistered version if you want).

Grandpa Troll is offline Grandpa Troll

Immortal
I owe..I owe..it's off to work I go
Jul 2000
time: 00:19
  Old Post 20-05-2002 18:35
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Tired of ads?

quote:
Originally posted by Locutus
Your using NotePad (or WordPad) now, I assume? You don't want to count lines manually, that's gonna go horribly wrong. You want to use a decent text editor instead. I'm a big fan of EditPlus myself, but that's also because it has support for SLIC files (if you download an additional syntax file). Another popular editor is UltraEdit. Both these programs are shareware but I'm sure there are also similar freeware programs out there (but at least in case of EditPlus it's no problem to use the unregistered version if you want).


Thanks a lot!

Thats exactly what I wanted and needed!

I am using EditPlus, works great, although the command lines are off 1 number(no biggie) from what error is reported to the actual line the error is on, as in "CANT_PILLAGE is not a unit flag" on say line 627, and the actual line is line 626 according to EditPlus.

Ok, nowthats resolved, NEXT biggie


As I start deleting theses errors I am finding that all my "CANT_PILLAGE" & CANT_PIRATE" Lines seem to have to come out, I have removed 7 so far, a total of 14 errors.

My next question, and my feeble 2 mb of Brain has long since been used up! is, Is there a way to keep from pirating or keep from pillaging, I am currently simply addding a letter "T" to CAN_PILLAGE & CAN_PIRATE under special flags in the units.txt.

I successfully did this before, but alas, forgot exactly how it took place??

I was wondering should I move the "CANT_PILLAGE" & "CANT_PIRATE" above the special flags??..or am I missing something??
I shall look in the archives to see if I can find if someone answered this previously or not, or did I accidently discover this on my own, deep within the dark confines of my catle chemistry lab?

Off to modding work I go!!

Troll

Grandpa Troll is offline Grandpa Troll

Immortal
I owe..I owe..it's off to work I go
Jul 2000
time: 00:19
  Old Post 20-05-2002 19:07
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Get a bigger avatar today!

quote:
Originally posted by Troll


Thanks a lot!

Thats exactly what I wanted and needed!

I am using EditPlus, works great, although the command lines are off 1 number(no biggie) from what error is reported to the actual line the error is on, as in "CANT_PILLAGE is not a unit flag" on say line 627, and the actual line is line 626 according to EditPlus.

Ok, nowthats resolved, NEXT biggie


As I start deleting theses errors I am finding that all my "CANT_PILLAGE" & CANT_PIRATE" Lines seem to have to come out, I have removed 7 so far, a total of 14 errors.

My next question, and my feeble 2 mb of Brain has long since been used up! is, Is there a way to keep from pirating or keep from pillaging, I am currently simply addding a letter "T" to CAN_PILLAGE & CAN_PIRATE under special flags in the units.txt.

I successfully did this before, but alas, forgot exactly how it took place??

I was wondering should I move the "CANT_PILLAGE" & "CANT_PIRATE" above the special flags??..or am I missing something??
I shall look in the archives to see if I can find if someone answered this previously or not, or did I accidently discover this on my own, deep within the dark confines of my catle chemistry lab?

Off to modding work I go!!

Troll


No, I tried to move to another location the "CANT_PIRATE & CANT_PILLAGE" but the computer files look for the default command that should go there, like "BATTLEFIELD_RANGE" in this particular instance.

Off to see more options, as one fine individual said to me..once, a long time ago>>>>>>>

*EDIT*

*TEST*

+EDIT+

+TEST+

I shall perservere!

Troll

Grandpa Troll is offline Grandpa Troll

Immortal
I owe..I owe..it's off to work I go
Jul 2000
time: 00:19
  Old Post 20-05-2002 19:15
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Forgive my ignorance,forgive my memory loss and forgive me for posting three in a row Support Apolyton, buy Galactic Civilizations: Deluxe Edition

Immortal Wombat
Prince
forever.

Dec 2000

08-04-2002 01:42



CANT_BUILD is a flag, CANT_PIRATE and CANT_PILLAGE are not, if you wish to remove that ability, just delete the flag entirely.

ie. Find the unit you wish to remove the ability, and delete the line CAN_PILLAGE and CAN_PIRATE.




__________________
Wasted Life
Creative Consultant, CTP2 MODCO (...we listen to OUR fans)
"I don't believe in giving scripting languages because the only additional power they give users is the power to create bugs." - Mike Breitkreutz, Firaxis


This was from a previous post!

I am sorry to keep posting, i shall now move forward!

(Hoping Solver Hall doesnt summons his number up!!


Troll

Solver is offline Solver
Apolyton Duke Of Something
Latvia, Riga
Sep 2000
time: 07:19
  Old Post 20-05-2002 20:58 Visit Solver<br><img src=/forums/images/staff-icon.gif>'s homepage!
Edit/Delete Message Reply w/Quote
#6 Report this post to a moderator
Help yourself to an AD-FREE life

* Solver watching

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

Good to see you figured it out on your own and that you're making progress

And don't worry, Solver officially has no jurisdiction here. If he wants to give you a hard time, he'll have to get past me first

Solver is offline Solver
Apolyton Duke Of Something
Latvia, Riga
Sep 2000
time: 07:19
  Old Post 20-05-2002 21:56 Visit Solver<br><img src=/forums/images/staff-icon.gif>'s homepage!
Edit/Delete Message Reply w/Quote
#8 Report this post to a moderator
Support Apolyton buy from Amazon

Past you first? Hardly Locutus, I would give him a nice runner if I wished .

Locutus is offline Locutus
ACS CTP1/2 Manager & Civ4 Co-Manager
Hengelo, The Netherlands
Nov 1999
time: 06:19
  Old Post 20-05-2002 22:24 Visit Locutus<br><img src=/forums/images/staff-icon.gif>'s homepage!
Edit/Delete Message Reply w/Quote
#9 Report this post to a moderator
Support Apolyton or Terrorists Win

Ah, but I would take the matter up to the Supreme Court of Apolyton, aka the Staff Room Torture of regular posters is prohibited by the Miranda act you know

Immortal Wombat is offline Immortal Wombat
Prince
in perpetuity
Dec 2000
time: 05:19
  Old Post 20-05-2002 22:28 Visit Immortal Wombat's homepage!
Edit/Delete Message Reply w/Quote
#10 Report this post to a moderator
Support Apolyton buy from Amazon

* Immortal Wombat wonders if he should mention theBigMc's mental torture

Locutus is offline Locutus
ACS CTP1/2 Manager & Civ4 Co-Manager
Hengelo, The Netherlands
Nov 1999
time: 06:19
  Old Post 20-05-2002 22:32 Visit Locutus<br><img src=/forums/images/staff-icon.gif>'s homepage!
Edit/Delete Message Reply w/Quote
#11 Report this post to a moderator
Support Apolyton, buy Galactic Civilizations



but he's not a staff member...

Immortal Wombat is offline Immortal Wombat
Prince
in perpetuity
Dec 2000
time: 05:19
  Old Post 20-05-2002 22:36 Visit Immortal Wombat's homepage!
Edit/Delete Message Reply w/Quote
#12 Report this post to a moderator
Support Apolyton, buy Civilization 2

It was my understanding that the Miranda Act covered torture by any poster

Locutus is offline Locutus
ACS CTP1/2 Manager & Civ4 Co-Manager
Hengelo, The Netherlands
Nov 1999
time: 06:19
  Old Post 20-05-2002 22:43 Visit Locutus<br><img src=/forums/images/staff-icon.gif>'s homepage!
Edit/Delete Message Reply w/Quote
#13 Report this post to a moderator
Suffering from ads?

Well, they never convicted ottok

Immortal Wombat is offline Immortal Wombat
Prince
in perpetuity
Dec 2000
time: 05:19
  Old Post 20-05-2002 22:58 Visit Immortal Wombat's homepage!
Edit/Delete Message Reply w/Quote
#14 Report this post to a moderator
Support Apolyton or Terrorists Win

He was acquited on the grounds of Suomi Ridiculum no?

Locutus is offline Locutus
ACS CTP1/2 Manager & Civ4 Co-Manager
Hengelo, The Netherlands
Nov 1999
time: 06:19
  Old Post 20-05-2002 23:07 Visit Locutus<br><img src=/forums/images/staff-icon.gif>'s homepage!
Edit/Delete Message Reply w/Quote
#15 Report this post to a moderator
Support Apolyton buy from Amazon

Ah, yes, that's true...

Well, I'm sure we could make The Big Mc an honourary Fin...

Immortal Wombat is offline Immortal Wombat
Prince
in perpetuity
Dec 2000
time: 05:19
  Old Post 20-05-2002 23:11 Visit Immortal Wombat's homepage!
Edit/Delete Message Reply w/Quote
#16 Report this post to a moderator
Inflate your Upload Space



Ming, please close this thread.
Question asked, question answered.

Grandpa Troll is offline Grandpa Troll

Immortal
I owe..I owe..it's off to work I go
Jul 2000
time: 00:19
  Old Post 20-05-2002 23:40
Edit/Delete Message Reply w/Quote
#17 Report this post to a moderator
MING Please Close! Full PM-box? Change here!

Yes I agree!
I have had my fill of "tauting & Tempting" and want no part of any suspension,revocations,banishment,censorship or givin anyone a hardtime.. Now F G is yet another issue... )

But yes thanks for the help and please Solver keep an eye on me, I need all the help I can get!! I get off on the wrong pathway now and then!

But yes my question is answered and thanks for the hint on EditPlus!

Troll

  < Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:19.
Apolyton Time is 00:19.
    top of page
Rate This Thread:
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.0615 seconds (91.80% PHP - 8.20% MySQL) with 30 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