 |
|  |
 |
|
Grandpa Troll

|
 |
I owe..I owe..it's off to work I go
Jul 2000 time: 00:19
|
|
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
|
|
|  |
 |
|
Grandpa Troll

|
 |
I owe..I owe..it's off to work I go
Jul 2000 time: 00:19
|
|
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

|
 |
I owe..I owe..it's off to work I go
Jul 2000 time: 00:19
|
|
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
|
|
|  |
 |
|  |
All times are GMT. The time now is 05:19. Apolyton Time is 00:19. |
top of page
|
|
|
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
|
|
|
|
|
|