PDA

View Full Version : Building DB error?



Big Jake
08-14-2007, 23:47
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:dizzy2:

Aradan
08-14-2007, 23:58
Tried this one? EDB Guide (https://forums.totalwar.org/vb/showthread.php?t=50439)

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?

Big Jake
08-15-2007, 12:40
couldn't find what i was looking for there but thanks for your help.

Dol Guldur
08-15-2007, 13:26
You have a gap in the building tree as per the error message. Do not leave gaps.

Big Jake
08-15-2007, 22:42
sorry dol guldur im not sure i understand

Squid
08-15-2007, 23:29
sorry dol guldur im not sure i understand
In the building tree for your walls you will have something that resembles the following.


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.

Aradan
08-16-2007, 00:12
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...

Big Jake
08-16-2007, 05:35
this is my from my EDB doc. and i cant find the gap


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?



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
{
}
}

Big Jake
08-16-2007, 05:40
sorry for the duoble post but i forgot to mention how grateful i am for your help so far guys/gals

Makanyane
08-16-2007, 08:20
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?

Dol Guldur
08-16-2007, 09:55
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.

Big Jake
08-16-2007, 09:59
thanks for the help. i'll try these now

Big Jake
08-16-2007, 10:48
ok so it has now stopped bothering me about the damn building DB error(which i owe to you three :2thumbsup: ) 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...

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?

Makanyane
08-16-2007, 11:15
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...)

Red Spot
08-16-2007, 13:10
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

Big Jake
08-16-2007, 21:15
It is all working now, my thanks to Aradan, Dol Guldur, Squid and Makanyane. without your help i would have trashed the whole idea.:2thumbsup: