Results 1 to 18 of 18

Thread: Script Error my ear!

  1. #1
    Member Member SRMacPherson's Avatar
    Join Date
    Nov 2004
    Location
    Canada
    Posts
    13

    Question Script Error my ear!


    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?

    and why did I have to make half my maps a solid colour JUST to get from CTD to the debugging stage?

  2. #2

    Default Re: Script Error my ear!

    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
    "Ad majoram Dei gloriam"

  3. #3

    Default Re: Script Error my ear!

    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?

  4. #4
    Member Member SRMacPherson's Avatar
    Join Date
    Nov 2004
    Location
    Canada
    Posts
    13

    Default Re: Script Error my ear!

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

  5. #5

    Default Re: Script Error my ear!

    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.

  6. #6
    Member Member SRMacPherson's Avatar
    Join Date
    Nov 2004
    Location
    Canada
    Posts
    13

    Default Re: Script Error my ear!

    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.

  7. #7

    Default Re: Script Error my ear!

    I hate to even write this but since we've all been guilty of it...did you remeber to delete the map.rwm?

  8. #8
    Member Member SRMacPherson's Avatar
    Join Date
    Nov 2004
    Location
    Canada
    Posts
    13

    Default Re: Script Error my ear!

    Quote Originally Posted by tommh
    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.

  9. #9

    Default Re: Script Error my ear!

    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.

  10. #10

    Default Re: Script Error my ear!

    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.

  11. #11
    Member Member SRMacPherson's Avatar
    Join Date
    Nov 2004
    Location
    Canada
    Posts
    13

    Default Re: Script Error my ear!

    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.

  12. #12
    Member Member SRMacPherson's Avatar
    Join Date
    Nov 2004
    Location
    Canada
    Posts
    13

    Default Re: Script Error my ear!

    still having problems with this. If there is anyone out there who knows a way to combat this, let me know, thanks.

  13. #13
    Member Member SRMacPherson's Avatar
    Join Date
    Nov 2004
    Location
    Canada
    Posts
    13

    Exclamation Re: Script Error my ear!

    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.

  14. #14

    Default Re: Script Error my ear!

    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.

  15. #15
    Member Member SRMacPherson's Avatar
    Join Date
    Nov 2004
    Location
    Canada
    Posts
    13

    Default Re: Script Error my ear!

    Quote Originally Posted by tommh
    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.

  16. #16

    Default Re: Script Error my ear!

    If you post a message at the TWC with the files attached I'll take a look, otherwise I can't think of anything.

  17. #17

    Default Re: Script Error my ear!

    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)...
    Last edited by NaeBlis; 12-08-2004 at 05:16.

  18. #18
    Member Member SRMacPherson's Avatar
    Join Date
    Nov 2004
    Location
    Canada
    Posts
    13

    Default Re: Script Error my ear!

    That was completely unhelpful.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Single Sign On provided by vBSSO