Results 1 to 16 of 16

Thread: Building DB error?

  1. #1
    Member Member Big Jake's Avatar
    Join Date
    Jul 2007
    Location
    under your bed
    Posts
    16

    Default Building DB error?

    ok so I tried to limit the use of large stone walls, make rome the only place that can build epic stone walls and also limit the size a city can become using hidden resources. it all works on the campaign map but when i go into a siege i get a CTD and the error message is this:

    Script error in RTRPE/data/export_descr_building.txt at line 6776, column 4
    (^this is the very last line in the document)
    Building DB error - faction romans julii has gap in building prior to the epic_stone_wall (unavailable at level zero)

    im using Rome Total Realism Platinum Edition if that makes a difference.


    i would be very greatful for any help as i am completly clueless

  2. #2

    Default Re: Building DB error?

    Tried this one? EDB Guide

    Have you made the large stone walls also available to the guys that can build the Epic ones? Do the settlement_min_level tags match?

    Norman Invasion - The fate of England lies in your hands...

    Viking Invasion II - Unite Britain in the best TW campaign ever!

    Gods and Fighting Men: Total War - Enter the Mists of Myth in Ancient Ireland

  3. #3
    Member Member Big Jake's Avatar
    Join Date
    Jul 2007
    Location
    under your bed
    Posts
    16

    Default Re: Building DB error?

    couldn't find what i was looking for there but thanks for your help.

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

    Default Re: Building DB error?

    You have a gap in the building tree as per the error message. Do not leave gaps.
    "One of the most sophisticated Total War mods ever developed..."

  5. #5
    Member Member Big Jake's Avatar
    Join Date
    Jul 2007
    Location
    under your bed
    Posts
    16

    Default Re: Building DB error?

    sorry dol guldur im not sure i understand

  6. #6
    Anything that isn't 'member' Member Squid's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    596

    Default Re: Building DB error?

    Quote Originally Posted by Big Jake
    sorry dol guldur im not sure i understand
    In the building tree for your walls you will have something that resembles the following.

    Code:
    building defenses
    {
        levels wooden_pallisade wooden_wall stone_wall large_stone_wall epic_stone_wall
        {
            wooden_pallisade requires factions { carthaginian, } 
            {
                capability
                {
                    wall_level 0
                    tower_level 1
                }
                construction  1 
                cost  6400 
                settlement_min town
                upgrades
                {
                    wooden_wall
                }
            }
            wooden_wall requires factions { carthaginian, romans_julii, } 
            {
                capability
                {
                    wall_level 1
                    gate_strength 1
                    tower_level 1
                }
                construction  2 
                cost  10800 
                settlement_min large_town
                upgrades
                {
                    stone_wall
                }
            }
            stone_wall requires factions {  carthaginian, romans_julii, }
            {
                capability
                {
                    wall_level 2
                    tower_level 1
                    gate_defences 1
                    gate_strength 1
                }
                construction  4 
                cost  16600 
                settlement_min city
                upgrades
                {
                    large_stone_wall
                }
            }
            large_stone_wall requires factions { carthaginian, romans_julii, }
            {
                capability
                {
                    wall_level 4
                    tower_level 1
                    gate_defences 2
                    gate_strength 2
                }
                construction  8 
                cost  26200 
                settlement_min large_city
                upgrades
                {
                    epic_stone_wall
                }
            }
            epic_stone_wall requires factions {  carthaginian, romans_julii,  }  
            {
                capability
                {
                    wall_level 4
                    tower_level 2
                    gate_defences 3
                    gate_strength 3
                }
                construction  9 
                cost  42000 
                settlement_min huge_city
                upgrades
                {
                }
            }
        }
        plugins 
        {
        }
    }
    So notice that the romans_julii are listed as a required faction for wooden_wall, stone_wall, large_stone_wall and epic_stone_wall, but aren't listed for wooden_palisade. That not being listed for wooden palisade is the "gap" because they can't build one level but can build subsequent levels. To get rid of this error, you have to allow a faction to build all levels up to maximum level you want them to be able to build.
    Last edited by Squid; 08-15-2007 at 23:30.

    -Trait/Ancillary/Building Editor

    "Two things are infinite: the universe and human stupidity;
    and I'm not sure about the universe." -----Albert Einstein

  7. #7

    Default Re: Building DB error?

    Sorry if I wasn't clear before, that's what I meant when I asked if you had made the large stone walls also available to the faction that could build the epic ones. I meant to include all previous levels there...

    Norman Invasion - The fate of England lies in your hands...

    Viking Invasion II - Unite Britain in the best TW campaign ever!

    Gods and Fighting Men: Total War - Enter the Mists of Myth in Ancient Ireland

  8. #8
    Member Member Big Jake's Avatar
    Join Date
    Jul 2007
    Location
    under your bed
    Posts
    16

    Default Re: Building DB error?

    this is my from my EDB doc. and i cant find the gap

    Code:
    building defenses
    {
    levels wooden_pallisade wooden_wall stone_wall large_stone_wall epic_stone_wall 
    {
    wooden_pallisade requires factions { barbarian, carthaginian, eastern, parthia, egyptian, greek, roman, } and not hidden_resource unit_sparta
    {
    capability
    {
    wall_level 0
    tower_level 1
    law_bonus bonus 1
    }
    construction 1
    cost 400 
    settlement_min town
    upgrades
    {
    wooden_wall
    }
    }
    wooden_wall requires factions { barbarian, carthaginian, eastern, parthia, egyptian, greek, roman, } and not hidden_resource unit_sparta
    {
    capability
    {
    wall_level 1
    gate_strength 1
    tower_level 1
    law_bonus bonus 1
    }
    construction 1 
    cost 800 
    settlement_min large_town
    upgrades
    {
    stone_wall
    }
    }
    stone_wall requires factions { britons, gauls, germans, dacia, spain, carthaginian, eastern, parthia, egyptian, greek, roman, } and not hidden_resource unit_sparta
    {
    capability
    {
    wall_level 2
    tower_level 1
    gate_defences 1
    gate_strength 1
    law_bonus bonus 2
    }
    construction 3 
    cost 1600 
    settlement_min city
    upgrades
    {
    large_stone_wall
    }
    }
    large_stone_wall requires factions { carthaginian, eastern, parthia, egyptian, greek, roman, } and not hidden_resource unit_sparta and hidden_resource large_walls 
    {
    capability
    {
    wall_level 3
    tower_level 1
    gate_defences 2
    gate_strength 2
    law_bonus bonus 3
    }
    construction 4 
    cost 3200 
    settlement_min large_city
    upgrades
    {
    epic_stone_wall
    }
    }
    epic_stone_wall requires factions { roman, } and hidden_resource rome
    {
    capability
    {
    wall_level 3
    tower_level 2
    gate_defences 2
    gate_strength 2
    law_bonus bonus 4
    }
    construction 5 
    cost 6400 
    settlement_min huge_city
    upgrades
    {
    }
    }
    }
    plugins

    i noticed in the error thing that it says the error is found at line 6776.
    would this have anything to do with it?


    Code:
    building temple_of_trade
    {
    levels temple_of_trade_shrine temple_of_trade_temple temple_of_trade_large_temple temple_of_trade_awesome_temple temple_of_trade_pantheon 
    {
    temple_of_trade_shrine requires factions { romans_brutii, greek_cities, macedon, seleucid, pontus, carthaginian, egyptian, thrace, } 
    {
    capability
    {
    happiness_bonus bonus 1
    }
    construction 1 
    cost 400 
    settlement_min town
    upgrades
    {
    temple_of_trade_temple
    }
    }
    temple_of_trade_temple requires factions { romans_brutii, greek_cities, macedon, seleucid, pontus, carthaginian, egyptian, thrace, } 
    {
    capability
    {
    happiness_bonus bonus 1 requires not hidden_resource large
    trade_base_income_bonus bonus 1
    happiness_bonus bonus 2 requires hidden_resource large
    }
    construction 2 
    cost 800 
    settlement_min large_town
    upgrades
    {
    temple_of_trade_large_temple
    }
    }
    temple_of_trade_large_temple requires factions { romans_brutii, greek_cities, macedon, seleucid, pontus, carthaginian, egyptian, thrace, } 
    {
    capability
    {
    happiness_bonus bonus 1 requires not hidden_resource large
    happiness_bonus bonus 3 requires hidden_resource large
    trade_base_income_bonus bonus 2
    }
    construction 3 
    cost 1600 
    settlement_min city
    upgrades
    {
    temple_of_trade_awesome_temple
    }
    }
    temple_of_trade_awesome_temple requires factions { romans_brutii, greek_cities, macedon, seleucid, pontus, carthaginian, egyptian, thrace, } and hidden_resource large
    {
    capability
    {
    happiness_bonus bonus 4 requires hidden_resource large
    trade_base_income_bonus bonus 3
    }
    construction 5 
    cost 3200 
    settlement_min large_city
    upgrades
    {
    }
    }
    }
    plugins 
    {
    }
    }

  9. #9
    Member Member Big Jake's Avatar
    Join Date
    Jul 2007
    Location
    under your bed
    Posts
    16

    Default Re: Building DB error?

    sorry for the duoble post but i forgot to mention how grateful i am for your help so far guys/gals

  10. #10
    Finder of Little Oddities Senior Member Makanyane's Avatar
    Join Date
    Jan 2006
    Posts
    2,220

    Default Re: Building DB error?

    think the others were all guys so time for the gal to have a go....

    I'd try changing your hidden resource lines for the walls - the earlier ones have
    and not hidden_resource unit_sparta
    but the epic one doesn't - having the rome resource as a requirement probably actually restricts it more, but the game probably doesn't check which regions the resources are in before moaning at you!

    try :
    and hidden_resource large_walls and hidden_resource rome and not hidden_resource unit_sparta

    on the epic walls so all the resources that previously restricted the lower walls are still in place (just guessing but it sounds plausible)

    No idea why its quoting a line number in the other section though - exactly which line is it?
    Last edited by Makanyane; 08-16-2007 at 08:21.
    Not used mods before? Looking for something small and fun?!
    Download the:

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

    Default Re: Building DB error?

    The game will report the error as being at the end line number of a file when it cannot locate the correct line - so do do not worry about that.

    A gap in the tree is not caused only by the absence of the culture/faction as previously pointed out but also by effectively blinding the game to the building level by the use of certain conditionals.

    I would recommend not using "not" conditionals. They mess up the building browser and, as an astute coder once said, that almost certainly spells problems at some point.

    I think you will find this to be the problem.

    If you want walls to work in all areas except Sparta and large walls only in certain regions, and epic walls just in rome - and this for all factions listed - then remove all your 'not conditionals' and make the first wall level (palisade) require a resource/hidden resource that is available everywhere except sparta. You'll see this in mods where they use such HRs as not_roads etc. I am not sure how the resources/HRs are set up for the mod you are trying to change.

    There are other things you might look at, depending on what exactly you are trying to achieve.
    "One of the most sophisticated Total War mods ever developed..."

  12. #12
    Member Member Big Jake's Avatar
    Join Date
    Jul 2007
    Location
    under your bed
    Posts
    16

    Default Re: Building DB error?

    thanks for the help. i'll try these now

  13. #13
    Member Member Big Jake's Avatar
    Join Date
    Jul 2007
    Location
    under your bed
    Posts
    16

    Default Re: Building DB error?

    ok so it has now stopped bothering me about the damn building DB error(which i owe to you three ) but now it has found a new problem that i was hopeing you could all help me with.

    while loading a siege it gets half way and the CTDand gives me this error...
    Code:
    Generic Error:
    
    Failed to find texture 'RTRPE/data/RTR/models_unit/textures/unit_greek_peltast_illyria.tga'.
    i looked in the descr_mondel_battle.txt file and couldn't find any units trying to use the texture 'unit_greek_peltast_illyria.tga'.
    what is the problem?

  14. #14
    Finder of Little Oddities Senior Member Makanyane's Avatar
    Join Date
    Jan 2006
    Posts
    2,220

    Default Re: Building DB error?

    sometimes it does that if that name its looking for was the default skin for the model, and you haven't specified a skin for the faction that is trying to use the model. When re-assigning units make sure you've looked at skins for officers and crew as well as basic soldier.

    Look at any units you recently tried assigning to other factions (if you did). Also try and narrow down problem to which faction and units are doing it, either through custom battles or by going back on your saves.


    If it really is doing it only on sieges though - I'm afraid I'm a bit clueless what that would be.


    Oh P.S. have also had it do that to me even when skin was specified correctly - you can in that case do a dodge and make spare copy of any other skin and rename copy to what it's looking for. (don't ask but it works...)
    Not used mods before? Looking for something small and fun?!
    Download the:

  15. #15
    Notepad user Member Red Spot's Avatar
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    491

    Default Re: Building DB error?

    have skimmed through this topic, hope I'm not missing the point here, but I'd like to say that I once removed an unused faction from being able to build the core_building and it give me the same error (iirc)

    making me believe the game is possibly hardcoded to need certain factions able to build every wall-level up to [x] level.
    as suggested, the masking of buildings might just mess this up ...


    G

  16. #16
    Member Member Big Jake's Avatar
    Join Date
    Jul 2007
    Location
    under your bed
    Posts
    16

    Default Re: Building DB error?

    It is all working now, my thanks to Aradan, Dol Guldur, Squid and Makanyane. without your help i would have trashed the whole idea.

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