Results 1 to 17 of 17

Thread: Buildings showing up as default (but wrong) culture

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Buildings showing up as default (but wrong) culture

    I'm pretty used to export_descr_buildings.txt and export_buildings.txt by now, but this has given me absolute fits.

    For some reason totally unknown to me, with some building complexes, when I try to place the building at the start of the game in descr_strat.txt, it shows up as the default culture type instead of the proper culture type. This can cause "Warning! This text should not appear..." descriptions, incorrect titles, incorrect graphics, etc. So as you can see it's a nasty problem. This *only* happens with buildings that are placed before the start of the game though. It *never* *ever* happens with building built once the game starts.

    We got around this problem a few times by placing the problem buildings with campaign_script.txt using this command:

    console_command create_building Sidon threeone

    (where threeone is the building name and Sidon is the city).

    But now that is having the same problems too. Again, I'm 100% sure the coding is fine, because once the game is started, you can build the building and it has the proper faction variant in title, description, graphics, etc. Here are the clues as to what is causing this problem:

    1. The market complex was doing ok, but then I added a new level in between the trader and market levels. This new level was working fine when I had it added at the bottom of the complex (as the "highest" level), but when I moved it to the trader and market level, even though I didn't touch anything at all having anything to do with the market level itself, the market level suddenly started having this problem.

    2. I'm currently having the problem in a complex where all variants of the buildings that start off in faction-controlled-territories are correct, but those that start in rebel-controlled-territories are showing the default (incorrect).

    3. Once we had the problem with a port level, and eadingas tried using "all" instead of listing all the factions individually, and the problem stopped with that level. This hasn't worked for all instances of the problem elsewhere though, and sometimes it just isn't possible to use "all" if we want to limit who can construct the building.

    This is giving me fits and just makes me want to cry. I've been working with this problem for more than a year now, and I don't even know if other mods have seen it, but it's causing me a lot of problems. If anyone has any ideas or has run into it before, I'd love to hear how you might have resolved it. Any thoughts at all?

  2. #2
    Axebitten Modder Senior Member Dol Guldur's Avatar
    Join Date
    Apr 2005
    Location
    England
    Posts
    1,550

    Default Re: Buildings showing up as default (but wrong) culture

    I have not come across this problem in my modding (BI 1.6).

    Have you considered how the following elements may play a part:

    - descr_ui_buildings.txt

    - faction-specific text (and its listing order relative to the parent culture entry)

    - listing new buildings in the building enums file


    I'd really need to look at .81 to see what's going on and I'm not sure I'd have time
    "One of the most sophisticated Total War mods ever developed..."

  3. #3

    Default Re: Buildings showing up as default (but wrong) culture

    Is there anything good on the buildings enum file anywhere (like your EDB guide - or even much less)? I don't know as much about it, so our problem could be coming from there.

  4. #4

    Default Re: Buildings showing up as default (but wrong) culture

    Here is one example. First the EDB.txt level:

    Code:
    building uniques1
    {
        levels oneone onetwo onethree onefour onefive onesix oneseven oneeight
        {
            oneone requires factions { all, } and hidden_resource not_here
    ;         1 Worth 20,000 each for destroying
    ;         oneone barbarian = 
    ;         oneone greeks = Akropolis Athenaia - ATTIKE Athenai
    ;         oneone egyptian = Artemision Ephesou - LYDIA Sardis
    ;         oneone carthaginian = Ba'al Complex - ZEUGITANA Kart-Hadast
    ;         oneone nomad
    ;         oneone eastern
    ;         oneone roman = Capitoline - LATIUM2 Rome
            {
                capability
                {
    ;             Akropolis Athenaia bonuses:
                    law_bonus bonus 1 requires factions { all, } and hidden_resource variantgr
                    happiness_bonus bonus 1 requires factions { all, } and hidden_resource variantgr
                    recruits_morale_bonus bonus 1 requires factions { greek_cities, thrace, numidia, romans_julii, romans_brutii, } and hidden_resource variantgr
                    law_bonus bonus 1 requires factions { greek_cities, } and hidden_resource variantgr
    ;             Artemesion Ephesou bonuses:
                    recruits_morale_bonus bonus 1 requires factions { all, } and hidden_resource varianteg
                    trade_base_income_bonus bonus 1 requires factions { all, } and hidden_resource varianteg
    ;             Ba'al Complex bonuses:
                    recruits_morale_bonus bonus 1 requires factions { all, } and hidden_resource variantca
                    trade_base_income_bonus bonus 1 requires factions { all, } and hidden_resource variantca
                    happiness_bonus bonus 1 requires factions { egypt, } and hidden_resource variantca
                    recruits_exp_bonus bonus 1 requires factions { egypt, } and hidden_resource variantca
    ;             Capitoline bonuses:
                    trade_level_bonus bonus 1 requires factions { all, } and hidden_resource variantro
                    happiness_bonus bonus 1 requires factions { all, } and hidden_resource variantro
                    recruits_morale_bonus bonus 2 requires factions { seleucid, } and hidden_resource variantro
                }
                construction  1
                cost  60000
                settlement_min town
                upgrades
                {
                   onetwo
                }
            }
    Then the export_buildings.txt entries for that one level:
    Code:
    {oneone}	oneone
    {oneone_desc}
    WARNING! This baseline description should never appear on screen!
    {oneone_desc_short}
    WARNING! This baseline short description should never appear on screen!
    
    {oneone_greek}	Akropolis Athenaia\n(The Athenian Akropolis)
    {oneone_greek_desc}
    The importance of the Athenian Akropolis is hard to underestimate. The Parthenon, a temple dedicated to the patron goddess of the city Athena, is one of the most recognizable buildings in all of history. It was also considered the pinnacle of Greek craftsmanship and art. The even holier Erechtheion with the ancient statue of Athena also sat on the Akropolis, as did the Temple of Athena Nike and the massive and grand Propylaia. On one slope of the Athenian Akropolis sits the Theater of Dionysos, the birthplace of tragedy and comedy and the showplace of Athenian cult and festival, while on the other is found the world's most famous and earliest democracy, centered in the Athenians' Agora.
    {oneone_greek_desc_short}
    You have repaired the destruction on the famed Athenian Akropolis. Athena herself smiles down upon you!
    
    {oneone_egyptian}	Artemision Ephesou\n(Temple of Artemis at Ephesos)
    {oneone_egyptian_desc}
    The people of Ephesos built a magnificently beautiful temple to honor Artemis, goddess of hunting, nature, and fertility. They built it upon the foundations of a previous temple to Artemis sponsored by King Kroisos of Lydia, whose wealth was vast enough to be considered proverbial. The original temple burned to the ground in 356 BC, on the very night of Megas Alexandros’ birth. The arsonist Herostratos claimed he wanted his own name to be remembered for all time. Plutarchos would later declare the goddess was too busy watching over Alexandros to look after her own temple!\n\nIt was eventually restored in 323 BC, after the death of Alexandros. The sculptors Pheidias, Polykleitos, Kresilas, and Phradmon contributed great works to the temple. Filled with precious treasures and works of art, it continued to attract thousands of visitors and pilgrims from across the ancient world.
    {oneone_egyptian_desc_short}
    You have repaired the destruction at the Temple of Artemis at Ephesos.
    
    {oneone_carthaginian}	Ba'al Temple Complex
    {oneone_carthaginian_desc}
    Four huge and powerful structures in the magnificent city of Karthadast stood as examples of Karthadastim might: the temple districts of Ba’al and Astarte, the harbor, and the triple wall.\n\nThe temple of Ba’al was famed for its cyclopean architecture that blended Greek and Phoenician styles. A massive academy was connected to the temple itself. The learned citizens of Karthadast attended what was essentially one of the first universities of antiquity. The priesthood of Ba’al-Hammon was based in this district, where it directly supported the élite fighting force known as the Sacred Band.\n\nThe district of Astarte, as well as the training grounds outside the city, was equally magnificent in both Carthage and its northern neighbor, Utica. Though her temple was less impressive than that of Ba’al, the massive estates controlled by the priesthood allowed a special division of cavalry: Astarte's own Sacred Band.\n\nThe circular harbor was a wonder in and of itself. This marvel of engineering allowed Carthaginian fleets to better prepare and equip themselves than the harbors of their rivals.\n\nThe final wonder was Carthage’s massive triple wall. According to many ancient historians, this defense system could comfortably house 19,000 troops, several thousand horses, and over seventy elephants within its massive structure.\n\nSTRATEGY: The Temple Complex provides additional happiness and troop experience bonuses when possessed by the Qarthadastim.
    {oneone_carthaginian_desc_short}
    You have repaired the destruction at ...
    
    {oneone_roman}	Capitolinvm Templvm Iovis Optimi Maximi\n(Capitoline Temple of Jupiter Optimus Maximus)
    {oneone_roman_desc}
    This temple was the most magnificent in all of Roma. According to tradition it was dedicated in the first year of the Republic's formation and housed the Sibylline Books, the chief oracle of the Roman state. This collection of oracular responses given by the Cumaean Sibyl was the most important and holy set of documents possessed by the Republic. Legend has it that the early Etruscan king Tarquinius Priscus bought the three books from the Sibyl and placed them in the care of a priestly college, where they were to be consulted only at the command of the Senate. The books were lost in 83 BC during a fire on the Capitoline.\n\nSTRATEGY: Public order bonus due to loyalty: 5% (Romani only)\nMorale bonus to troops trained here: +1 (Romani only)
    {oneone_roman_desc_short}
    You have repaired the destruction at the Capitoline Temple of Jupiter.
    Finally the edb enums entries:
    Code:
    oneone
    oneone_desc
    oneone_desc_short
    oneone_greek
    oneone_greek_desc
    oneone_greek_desc_short
    oneone_egyptian
    oneone_egyptian_desc
    oneone_egyptian_desc_short
    oneone_carthaginian
    oneone_carthaginian_desc
    oneone_carthaginian_desc_short
    oneone_roman
    oneone_roman_desc
    oneone_roman_desc_short
    But while in a regular carthaginian city if I put a "oneone" building there in descr_strat.txt and it shows up correctly as the Ba'al Complex, if I put the same entry into a carthaginian rebel city, it shows up as (Western Greek) and gives the title/description/images of the Acropolis instead. Western Greek being the slave default culture. If I change that to Roman, then the building shows up as the Capitoline Temple. This is a province that is very clearly carthaginian in culture/creator/owner though, and the other buildings show up as carthie variants.

  5. #5
    Axebitten Modder Senior Member Dol Guldur's Avatar
    Join Date
    Apr 2005
    Location
    England
    Posts
    1,550

    Default Re: Buildings showing up as default (but wrong) culture

    Can you give me an in-game (0.81) example so I can start a campaign and check the problem out? I'm a little unfamiliar with all the faction/culture/building name on-screen/internals at present :)
    "One of the most sophisticated Total War mods ever developed..."

  6. #6

    Default Re: Buildings showing up as default (but wrong) culture

    I believe in 0.81 we had the problem with the level called "nomadism" when it was found in rebel settlements. Again, *only* when placed by descr_strat.txt or campaign_script.txt, and never a problem when it is built after the game starts (by AI or human). In the settlement of Bin-Kath north of Baktria the problem was occurring. We got around it by just making a default title/description/image for the western greek culture (our default one) so that the problem wouldn't be noticeable even though it still existed. As you will see, half the buildings in that town show up as (Nomad) and half show up as (Western Greek). We have no idea why. That's our big problem.

    There is something I don't understand that Makanyane posted here:
    https://forums.totalwar.org/vb/showp...75&postcount=8
    that seems like it might pertain to the issue. Mak said that one variant was showing up in start buildings, but another would show up once you built it in the game. That is pretty much what is happening with us, but I'm not sure what the parallel is.

    edit: sad to link to this, but here is my poor attempt to explain the problem nearly two years ago https://forums.totalwar.org/vb/showthread.php?p=826064
    Last edited by Teleklos Archelaou; 03-15-2007 at 18:42.

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