Results 1 to 4 of 4

Thread: Request for Squid

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    dvk901's Avatar Consummatum est
    Patrician

    Join Date
    Mar 2006
    Location
    Michigan
    Posts
    20,984

    Default Request for Squid

    Squid......I need another pair of 'eyes' to try and resolve an issue. For some reason, the building description for the first building in the 'wine, salt, fish, olive_oil' building tree...the one for 'wine1' refuses to show up in the game. All the other ones work fine beyond it...but I just can't figure out what is wrong with that description...the code, or what. The tree works fine. The building cards work..but the building description is blank. Could you have a look at it and see if you can figure it out? Please.

    Creator of: "Ecce, Roma Surrectum....Behold, Rome Arises!"
    R.I.P. My Beloved Father

  2. #2
    Squid's Avatar Opifex
    Patrician Artifex Technical Staff

    Join Date
    Feb 2007
    Location
    Frozen waste lands of the north
    Posts
    17,751
    Blog Entries
    3

    Default Re: Request for Squid

    I accidentally mucked up my install, so I'm redoing it and then I'll take a look.
    Under the patronage of Roman_Man#3, Patron of Ishan
    Click for my tools and tutorials
    "Two things are infinite: the universe and human stupidity; and I'm not sure about the universe." -----Albert Einstein

  3. #3
    Squid's Avatar Opifex
    Patrician Artifex Technical Staff

    Join Date
    Feb 2007
    Location
    Frozen waste lands of the north
    Posts
    17,751
    Blog Entries
    3

    Default Re: Request for Squid

    OK I found the problem, and fixed it.

    1) The main problem was a backslash problem. I know you know this so I'm not actually sure why I'm going to point this out but anyways, if you use a backslash \ in any file in the text directory, if it isn't being used as part of \t or \n it needs to have two backslashes \\ otherwise when RTW is reading it it's assuming you are referring to an escape character, if the escape character happens not to exist then it won't display the text. There were a bunch of these errors in the file and I fixed them all.

    2) Other point I'll point out because I fixed this in the file as well, for the building names (i.e. wine1), or any other entry where the description is on the same line as the internal name, The two pieces should be separated by a single tab and nothing else. If you use any other separator it will add leading spaces into the entries (see the governor building names for the nomad culture, mouse over the buidings in the building browser). There were a significant number of these problems in the file (2000+ lines had this problem).

    If you're using a text editor that allows regular expression searches and replaces (I use notepad++) finding these errors is easy.

    1)

    1. Search for \\[^tn\\]
    2. Fix as needed, since it will always catch the second backslash in a \\ pair
    3. Repeat 1 & 2 until you get to the end of the document


    2)

    1. Replace All }\t<space> with }\t
    2. Replace All \t<space> with \t
    3. Repeat 2 until no replacements are done.

    Anyways everything was minor typos and has been fixed, so I've attached the corrected version of the file.
    Under the patronage of Roman_Man#3, Patron of Ishan
    Click for my tools and tutorials
    "Two things are infinite: the universe and human stupidity; and I'm not sure about the universe." -----Albert Einstein

  4. #4
    dvk901's Avatar Consummatum est
    Patrician

    Join Date
    Mar 2006
    Location
    Michigan
    Posts
    20,984

    Default Re: Request for Squid

    Thanks Squid...I would NEVER have found that backslash problem....didn't even think of it.

    Creator of: "Ecce, Roma Surrectum....Behold, Rome Arises!"
    R.I.P. My Beloved Father

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •