Log in

View Full Version : Script Error my ear!



SRMacPherson
11-30-2004, 04:52
:help:
problem: during debugging recieve a Constant CTD. Solution: reinstall game and renew all new campaign files from backup.

new problem:
Script error in data/world/maps/campaign/achaeron_campaign/descr_regions.txt line 1, column 1
couldn't find 'Culzean in string table.


I had never recieved this error during the previous installation of the game. I had debugged my way through the desc_regions file and was starting the debugging of my desc_strat file when I was getting my unexplained CTDs.

Nothing else changed, yet now RTW can no longer locate this region in my "string table"

Checking through my related files
(decr_regions_and_ settlement_name_lookup.txt; achaeron_campaign_regions_and_settlement_names.txt; desc_regions.txt)
Its all there right at the top.

achaeron_campaign_regions_and_settlement_names.txt:
{Culzean} (3 tabs) Culzean


decr_regions_and_ settlement_name_lookup.txt:
Culzean

desc_regions.txt:
Culzean
Culzean
romans_senate
Chaos
255 6 11
wine, dogs, pigs
5
10

the RGB is the same as in the regions targa and the region and city are the same in the desc_strat. Just as they all were before.

WHY is it not finding this region/city anymore?
WHAT is the string table?
:furious3:
and why did I have to make half my maps a solid colour JUST to get from CTD to the debugging stage?

dclare4
11-30-2004, 04:58
Maybe you could try making the province and city names different? Sometimes there is a conflict with them or with others that you didn't know about. I had a problem with the Brigantes tribe for my mod and I fixed the entry to be Tribus_Brigantes and it worked.

Best of luck!
Clare

tommh
11-30-2004, 05:13
Your problem is in your [your mod here]regions_and_settlement_names.txt file. First off the internal name of your settlement and region cannot be the same (although the display name can be). It's best if they're different. That being the case the region_and_settlement_names.txt file needs two lines one for the region and one for the settlement i.e.:

achaeron_campaign_regions_and_settlement_names.txt :
{Culzean} (3 tabs) Culzean
{Culzean_settlement} (3 tabs) Culzea town


then your other entries should look like this:

in decr_regions_and_ settlement_name_lookup.txt (this needs both entries as well):

Culzean
...
Culzean_settlement

and in desr_regions

Culzean
Culzean_settlement


Hope this helps. Don't understand your map problem. Maybe you could give a little more info?

SRMacPherson
11-30-2004, 05:13
[QUOTE=dclare4]Maybe you could try making the province and city names different?

Renamed "Culzean" to "Empire" across the board.

Repeat the same error message, only replace "Culzean" with "Empire"

What exactly is this "String Table" it is referring to?
I had assumed that it was the Campaign_names_and_regions files. The lookup file and the one that sits in the /data/text dir.

again, prior to the fresh install, it made no difference to the game that many of my cities had the same name as the region. So long as all the files contained the correct spelling.

tommh
11-30-2004, 05:16
The String table is constructed by connecting identifers with strings. This is so that you can have different language versions of province names for example. You are missing nessecary entries (since you don't have an entry for the province and the settlement) and s o you get a missing string table entry.

SRMacPherson
11-30-2004, 05:34
again, I have re-written the three region files and updated the desc_strat file as required.

All the regions that shared the same name as the city now look like so:

achaeron_campaign_regions_and_settlementnames.txt:
{The_Empire} Culzean
{Culzean} Culzean
{Abarraden} Abarraden
{Abarraden_town} Abarraden
{Secker} Secker
{Secker_town} Secker
etc.

descr_regions_and_settlement_name_lookup.txt:
The_Empire
Culzean
Abarraden
Abarraden_town
Secker
Secker_town
etc.

descr_regions.txt
The_Empire
Culzean
romans_senate
Chaos
255 6 11
wine, dogs, pigs
5
10

Abarraden
Abarraden_town
romans_julii
Chaos
62 6 250
pottery, timber, dogs, pigs
5
9

Secker
Secker_town
romans_julii
Chaos
195 250 10
timber, textiles, dogs, pigs
5
8

Still I receive this message:
"Die you insolent program!"

oh wait, no, thats just what I scream.

I recieve this error message:
"Script Error in data/world/maps/campaign/achaeron_campaign/desc_regions.txt line 1, column 1
Couldn't find 'The_Empire' in string table"

three changes in a row, there has to be something utterly stupidly glaringly obviously simple we're missing here.

and my map problems are a whole other thread for the future.

tommh
11-30-2004, 05:37
I hate to even write this but since we've all been guilty of it...did you remeber to delete the map.rwm?

SRMacPherson
11-30-2004, 05:41
I hate to even write this but since we've all been guilty of it...did you remeber to delete the map.rwm?

every time.
unless there is another popping up elsewhere, but I havn't found it.


before my re-install, my debugging went smoothly (as soon as I removed half my maps) to a point. it had previously debugged through the region files only to crash three repairs into the descr_strat.txt file.

tommh
11-30-2004, 05:50
Well taking the error at face value it is not recognizing your province name as a province. Is it acctually the first province in the file? If it is try moving it down several provinces and see what happens. If the next one is also new and doesn't work, next try moving all of your new ones down. That will tell us if our whole text table is screwed or just your new entries.

tommh
11-30-2004, 05:54
I've also noticed that the order in the region_and_settlement_names is EXACTLY the same as in the lookup file. Check to make sure its the exact same order for you as well.

SRMacPherson
11-30-2004, 06:50
following your advice I have moved The_Empire/Culzean down, making Abarraden/Abarraden the first region in the file.

my new error message is:

Script Error in data/world/maps/campaign/achaeron_campaign/descr_regions.txt, at line 1, column1.
Couldn't find region name 'Abarraden' in stringtable.

Now.
I've done a complete re-install of the game, lest I accidently erased a file I shouldn't have.
returned all my existing campaing files to the new folder.
So the stringtable isn't piecing together my provinces any longer.

Yes, it is referring to the very first province in the descr_regions.txt file.

Yes, My region settlement & names file and it's lookup are in the same order (this is how I've been keeping track of the 111 provinces)
And it is the same order actually as the descr_region.txt file.
They are all the same order as one another.

No, the problem region is not located after old regions. This is a completely new map from the original campaign.

No, I did not follow the exact conventions CA did when making their lists.
mine are
Province-a
Settlement-a
Province-b
Settlement-b
etc
in the same order that I created descr_regions.

the descr_regions of the original campaign does not match exactly with the other two files either, even though the other two files match themselves.

and moving around the provinces in descr_regions doesn't seem to matter as it will always find fault with the very first one and stop there.

This aggravates me as like I've mentioned before, I have in the past debugged beyond these three files. The only problems I had before in the descr_regions.txt file was spelling errors or not putting an underscore between names and resources and the like.

SRMacPherson
12-03-2004, 01:25
still having problems with this. If there is anyone out there who knows a way to combat this, let me know, thanks.

SRMacPherson
12-07-2004, 06:30
New info on the above problem:

I've been informed that my error could stem from a possible incompatability with the text editor I used.
I used both Textpad and notepad for editing these files.

I noticed the error after I had made alterations and saved using the microsoft program.

Has anyone else noticed this problem? If so, how did it arise, and how does one correct it?
I tried reloading and saving my text files in texpad, but to no avail. I'm going to go through the arduous task of re-writing them from scratch later on this week when I'm not too busy smacking down the Germans and the Britons using troops bought (stolen) from my foolish allies.

I'll keep you updated if it works, or better yet, if someone has already encountered and combated this problem, let us know.

tommh
12-07-2004, 08:37
Oh thats quite possible. The text files use unicode. This is a longer byte format then a normal text file. This to support localization to certain languages. You need to use an editior that will not save the file out as standard text.
Notice if you open a file in the text directory in notepad and go to the "save as" dialog you will see a pull down called encoding. Normal text files will be ANSI but the files in the text directory MUST be unicode.

SRMacPherson
12-08-2004, 00:05
Oh thats quite possible. The text files use unicode. This is a longer byte format then a normal text file. This to support localization to certain languages. You need to use an editior that will not save the file out as standard text.
Notice if you open a file in the text directory in notepad and go to the "save as" dialog you will see a pull down called encoding. Normal text files will be ANSI but the files in the text directory MUST be unicode.


Ok, I just tried saving the /text file in unicode. Still it failed to work.

The format is
{province_name} [3 tabs] Province Name

its still failing to find the first province in the stringtable. regardless of what I make the first province in the other two files to be, it doesn't locate them in the string table.

tommh
12-08-2004, 03:31
If you post a message at the TWC with the files attached I'll take a look, otherwise I can't think of anything.

NaeBlis
12-08-2004, 05:14
I had the same problem with the stringtable - i fixed it by adding (not removing anything) the data to imperial_campaign_region_and_settlement_names.txt" and then I either ran the provincial campaign, or i overwrote the imperial campaign folder (can't remember which, sorry - it still gave me errors (prob because the map i designed was incorrect), so i just gave up on map modding)...

SRMacPherson
12-23-2004, 20:15
That was completely unhelpful. :dizzy2: