Page 1 of 3 123 LastLast
Results 1 to 20 of 51

Thread: what? gap in building unavailable at level zero??

Hybrid View

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

    Default what? gap in building unavailable at level zero??

    I had this problem with DTW after editing EDD.txt, the fact is I don't think I've done anything strange. When I quit the game this message appears: Script error in DTW\data\export_descr_building.txt at line 5218, column 2. Building DB error, faction seleucid has gap in building prior to barb_native (unavailable at level zero). The strange things are that line 5218 is the last line in that file, so it doesn't even tell me where the error is, that I only edited building upgrades\requirements, and that seleucids don't use that building!! This is my edb.txt, if someone can give a look at it and spot any error in the requirements\upgrades (the culture buildings are at the end of the file) I would really appreciate it...

    -------- double post merged (Brusilov) - please edit and append

    sorry I have problems with I don't know what, sometimes I can only write these awful walls of text and not being able to edit a post after I've written it..
    Last edited by Brusilov; June 04, 2009 at 01:19 PM.


  2. #2
    Brusilov's Avatar Local Moderator
    Citizen

    Join Date
    Sep 2005
    Location
    Dublin, ROI
    Posts
    18,588

    Default Re: what? gap in building unavailable at level zero??

    Moved to modding forum as it's a modding problem.

    Local Forum Moderator (Total War: Eras Technical Help, Shogun 2: Total War, RSII, RTR, World Of Tanks) - please no PMs

    War Thunder TWC Player Names: here


  3. #3
    Ramashan's Avatar Artifex
    Join Date
    Apr 2007
    Location
    Los Angeles, CA
    Posts
    4,981

    Default Re: what? gap in building unavailable at level zero??

    I think it parsed the file, got the barb-native coding and stopped.

    I believe your problem is that you have no 'requires faction { }' for this building.

    Here's your code:

    Code:
    barb_native requires hidden_resource nobuild
    try adding a faction requirement to all your native building levels; east, west, barb.

    So they look like this:

    Code:
    barb_native requires faction {babarian, thrace, } and hidden_resource nobuild
    Under the Patronage of Lord Condormanius

  4. #4
    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: what? gap in building unavailable at level zero??

    A building does not require a faction condition, the problem is the last level of the last building:

    Code:
            east_native requires hidden_resource nobuild
    It has no faction requirements, so every faction can build it, but all previous levels of the building are not buildable by all factions. Change the line as follows:

    Code:
            east_native requires factions { eastern, carthaginian, egyptian, } and hidden_resource nobuild
    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

  5. #5

    Default Re: what? gap in building unavailable at level zero??

    Or add "or hidden_resource nobuild" to every previous level, as in XGM.

    Expand your borders, a mod based on XGM 5.

  6. #6
    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: what? gap in building unavailable at level zero??

    Quote Originally Posted by CaesarVincens View Post
    Or add "or hidden_resource nobuild" to every previous level, as in XGM.
    That doesn't help as the gap still exists. The game isn't smart enough to know that the hidden resource isn't present in any city. Any faction could, in theory, build the building if the resource was in the settlement, it doesn't matter that it isn't.
    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

  7. #7

    Default Re: what? gap in building unavailable at level zero??

    Quote Originally Posted by Sqυιd View Post
    That doesn't help as the gap still exists. The game isn't smart enough to know that the hidden resource isn't present in any city. Any faction could, in theory, build the building if the resource was in the settlement, it doesn't matter that it isn't.
    Which is why one adds it to the earlier levels. If every level could be built by the Seleucids, given this resource, no gap.

    Expand your borders, a mod based on XGM 5.

  8. #8

    Default Re: what? gap in building unavailable at level zero??

    Thanks everyone for the help provided with that issue.

    But after adding a building, a similar problem emerged. Basically I added a 4th colony, and from there tragedies started to happen. I still get errors telling of gaps for faction which shouldn't use that building, even by adding\removing factions requirements.

    Here's my "new" EDB.txt. The colonies are at the end of the file, but probably there are problems also with barracks requirements (barrack_greek, barracks_roman, etc).

    Thanks for any suggestion you can give..


  9. #9
    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: what? gap in building unavailable at level zero??

    What's the error message?
    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

  10. #10

    Default Re: what? gap in building unavailable at level zero??

    I didn't see any problems with the colonies, they should all work. Also, I cleaned up the barracks requirements a bit.
    Last edited by CaesarVincens; July 12, 2009 at 04:37 PM.

    Expand your borders, a mod based on XGM 5.

  11. #11

    Default Re: what? gap in building unavailable at level zero??

    @ Squid: The error message is about "faction seleucid has gap in east_native, unavailable at level zero".

    @ Caesar: I didn't see any error too, that's why I am banging my head against the wall to find what's wrong! I'll try your solution, thank you!


  12. #12

    Default Re: what? gap in building unavailable at level zero??

    Caesar, I tried your file but now it gives me this error: "faction egypt has gap for building barracks_5_eastern, unavailable at level zero"


  13. #13
    Ramashan's Avatar Artifex
    Join Date
    Apr 2007
    Location
    Los Angeles, CA
    Posts
    4,981

    Default Re: what? gap in building unavailable at level zero??

    I think its because you don't have the 'or' requirement at level 5 which the game then sees as that level being available at 0 since there's no egyptian faction in the first set of { } for the previous levels.

    This is the only odd thing I see that could be a problem.
    Under the Patronage of Lord Condormanius

  14. #14

    Default Re: what? gap in building unavailable at level zero??

    Oops, sorry, I must've made a typo. Just look at how the Greek barracks is set up to fix it.

    Oh, and if you want, I know a method to make it possible for Egypt and Thrace to be bi-cultural.

    Expand your borders, a mod based on XGM 5.

  15. #15

    Default Re: what? gap in building unavailable at level zero??

    @ Ramashan: also the 5th level for greeks don't have the "or" requirement, but that gives no problem. I tried to make something like barracks_5_eastern requires factions { eastern, carthaginian, } and hidden_resource nobuil or faction { egyptian, } and hidden_resource nobuild, but then it crashes with no error message.

    @ Caesar: greek barracks are set up like this: barracks_5_greek requires factions { } and hidden_resource nobuild . By making the eastern look in the same way, so barracks_5_eastern requires factions { } and hidden_resource nobuild , the game crashes at the start with no error message.

    Well I think making them bi-cultural is easier cause it doesn't needs all these "or this and that", "and that...but not this...".


  16. #16

    Default Re: what? gap in building unavailable at level zero??

    When I get home, I'll try to recode them better. And with a new method.

    Edit:

    Okay, try this.
    Last edited by CaesarVincens; July 12, 2009 at 04:37 PM.

    Expand your borders, a mod based on XGM 5.

  17. #17

    Default Re: what? gap in building unavailable at level zero??

    "gap for egypt at barracks_5_greek, unavailable at level zero."

    Is it possible that the file somehow got corrupted and now it gives errors just because it has fun in giving them?


  18. #18
    makanyane's Avatar Praeses
    Content Emeritus

    Join Date
    Feb 2006
    Posts
    9,093
    Blog Entries
    1

    Default Re: what? gap in building unavailable at level zero??

    Quote Originally Posted by Spartan 666 View Post
    "gap for egypt at barracks_5_greek, unavailable at level zero."

    Is it possible that the file somehow got corrupted and now it gives errors just because it has fun in giving them?
    if you added buildings to Carthage / carthaginian - didn't sort out the double reference in descr_ui_buildings.txt and didn't delete the map.rwm you get weird messages (instead of what you get after deleting map.rwm which is straight CTD)

    check you fixed descr_ui_buildings.txt as some of your buildings seem to be used by carthage - you just need to delete one of the lines in italics if both are there
    lookup_variants
    {
    carthaginian eastern
    carthaginian egyptian
    eastern egyptian
    - do also try deleting your map.rwm anyway if you haven't recently - I know EDB isn't map file but it does inter-relate sometimes as above.....



    anyway as you're using quite unusual coding I suspect you might be doing something it doesn't like... suggest you try the condition for the level 5 barracks placed in the upgrade line as you've done for the other levels, it might read the restriction in the upgrade line differently

  19. #19

    Default Re: what? gap in building unavailable at level zero??

    this is my descr_ui_buildings, is it fine?


  20. #20
    makanyane's Avatar Praeses
    Content Emeritus

    Join Date
    Feb 2006
    Posts
    9,093
    Blog Entries
    1

    Default Re: what? gap in building unavailable at level zero??

    should be OK it was only that original double entry that caused problems

Page 1 of 3 123 LastLast

Posting Permissions

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