Submod help

Thread: Submod help

  1. Auxor's Avatar

    Auxor said:

    Icon5 Submod help

    Trying to make my own submod and this keeps happening after I export_desc_buildings

    16:04:12.188 [script.err] [error] Script Error in C:/Program Files (x86)/SEGA/Medieval II Total War/mods/EBII - Copy/data/export_descr_buildings.txt, at line 1, column 1
    Expected 'building', found ''

    Doesn't seem to be anything at the top of the file that might suggest this is the case

    Couldn't find anywhere else to post this
    And when he reaches the gates of Heaven, to Saint Peter he will tell, "Just one more soldier reporting for duty, i've served my time in hell"
     
  2. _Tartaros_'s Avatar

    _Tartaros_ said:

    Default Re: Submod help

    i think you are in the wrong forum
    this has to be going to the scripting department of the medieval II mod workshop, as this has nothing to do with EB2 bugs.

    regarding your problem, can you describe what you have done or added?
     
  3. Auxor's Avatar

    Auxor said:

    Default Re: Submod help

    Quote Originally Posted by _Tartaros_ View Post
    i think you are in the wrong forum
    this has to be going to the scripting department of the medieval II mod workshop, as this has nothing to do with EB2 bugs.

    regarding your problem, can you describe what you have done or added?
    Oh, apologies. It's been a while since i've been on these forums.

    Mostly what I added was a placeholder government building chain for Atropatene
    Spoiler Alert, click show to read: 
    building govaturpatakan{
    religion rel_d
    levels aturpatakanprec aturpatakan1 aturpatakan2 aturpatakan3
    {
    aturpatakanprec city requires factions { f_aturpatakan, } and not building_present govallied and hidden_resource caucasus
    {
    capability
    {
    happiness_bonus bonus -3
    }
    material stone
    construction 2
    cost 1200
    settlement_min village
    upgrades
    {
    aturpatakan1
    aturpatakan2
    aturpatakan3
    }
    }
    aturpatakan1 city requires factions { f_aturpatakan, } and not building_present govallied and hidden_resource eastern
    {
    capability
    {
    recruit_pool "eastern infantry skirmisher" 1 0.08 2 0 requires factions { f_aturpatakan, }
    recruit_pool "eastern infantry slinger" 1 0.12 2 0 requires factions { f_aturpatakan, }
    recruit_pool "eastern cavalry asitaikoi hippakontistai" 1 0.12 4 0 requires factions { f_aturpatakan, }
    recruit_pool "eastern infantry nizagan eranshahr" 1 0.12 4 0 requires factions { f_aturpatakan, }
    happiness_bonus bonus 2 requires factions { f_aturpatakan, }
    law_bonus bonus 1 requires factions { f_aturpatakan, }
    agent diplomat 1 requires factions { f_aturpatakan, }
    agent_limit diplomat 1
    recruitment_slots 1 requires factions { f_aturpatakan, } and not event_counter ecWinter 1
    recruitment_slots 4 requires factions { f_aturpatakan, } and event_counter ecWinter 1
    }
    material stone
    construction 4
    cost 2400
    settlement_min village
    upgrades
    {
    aturpatakan1
    aturpatakan2
    aturpatakan3
    }
    }
    aturpatakan2 city requires factions { f_aturpatakan, } and not building_present govallied and building_present_min_level market market_two
    {
    capability
    {
    recruit_pool "eastern infantry skirmisher" 1 0.08 2 0 requires factions { f_aturpatakan, }
    recruit_pool "eastern infantry slinger" 1 0.12 2 0 requires factions { f_aturpatakan, }
    recruit_pool "eastern cavalry asitaikoi hippakontistai" 1 0.12 4 0 requires factions { f_aturpatakan, }
    recruit_pool "eastern infantry nizagan eranshahr" 1 0.12 4 0 requires factions { f_aturpatakan, } and hidden_resource eastern
    recruit_pool "eastern infantry cappadoccian tribesmen" 1 0.12 4 0 requires factions { f_aturpatakan, } and hidden_resource eastern
    recruit_pool "eastern infantry archer" 1 0.08 2 0 requires factions { f_aturpatakan, }
    recruit_pool "eastern infantry verkhana kofyaren" 1 0.08 2 0 requires factions { f_aturpatakan, } and hidden_resource eastern
    recruit_pool "eastern cavalry mada asabara" 1 0.08 2 0 requires factions { f_aturpatakan, } and hidden_resource eastern
    recruit_pool "eastern cavalry asitaikoi hippeis" 1 0.08 2 0 requires factions { f_aturpatakan, }
    happiness_bonus bonus 3 requires factions { f_aturpatakan, }
    law_bonus bonus 1 requires factions { f_aturpatakan, }
    free_upkeep bonus 3
    agent diplomat 1 requires factions { f_aturpatakan, }
    agent_limit diplomat 1
    recruitment_slots 3 requires factions { f_aturpatakan, } and not event_counter ecWinter 1
    recruitment_slots 8 requires factions { f_aturpatakan, } and event_counter ecWinter 1
    }
    material stone
    construction 8
    cost 4000
    settlement_min city
    upgrades
    {
    aturpatakan3
    }
    }
    aturpatakan3 city requires factions { f_aturpatakan, } and not building_present govallied and hidden_resource eastern
    {
    capability
    {
    recruit_pool "eastern infantry skirmisher" 1 0.08 2 0 requires factions { f_aturpatakan, }
    recruit_pool "eastern infantry slinger" 1 0.12 2 0 requires factions { f_aturpatakan, }
    recruit_pool "eastern cavalry asitaikoi hippakontistai" 1 0.12 4 0 requires factions { f_aturpatakan, }
    recruit_pool "eastern infantry nizagan eranshahr" 1 0.12 4 0 requires factions { f_aturpatakan, }
    recruit_pool "eastern infantry cappadoccian tribesmen" 1 0.12 4 0 requires factions { f_aturpatakan, }
    recruit_pool "eastern infantry archer" 1 0.08 2 0 requires factions { f_aturpatakan, }
    recruit_pool "eastern infantry verkhana kofyaren" 1 0.08 2 0 requires factions { f_aturpatakan, }
    recruit_pool "eastern cavalry mada asabara" 1 0.08 2 0 requires factions { f_aturpatakan, }
    recruit_pool "eastern cavalry asitaikoi hippeis" 1 0.08 2 0 requires factions { f_aturpatakan, }
    recruit_pool "eastern cavalry khuveshavagan" 1 0.08 2 0 requires factions { f_aturpatakan, }
    law_bonus bonus 1 requires factions { f_aturpatakan, }
    agent diplomat 1 requires factions { f_ aturpatakan, }
    agent_limit diplomat 1
    recruitment_slots 3 requires factions { f_aturpatakan, } and not event_counter ecWinter 1
    recruitment_slots 8 requires factions { f_aturpatakan, } and event_counter ecWinter 1
    }
    material stone
    construction 4
    cost 9600
    settlement_min town
    upgrades
    {
    }
    }
    }
    plugins
    {
    }
    }


    That was essentially all I added plus govaturpatakan to a few lists that required it. Formatting is messed up by the way.
    And when he reaches the gates of Heaven, to Saint Peter he will tell, "Just one more soldier reporting for duty, i've served my time in hell"
     
  4. _Tartaros_'s Avatar

    _Tartaros_ said:

    Default Re: Submod help

    did you add the names for the building?
     
  5. Auxor's Avatar

    Auxor said:

    Default Re: Submod help

    What do you mean? I thought this file was where you put the name of it, i.e. building govaturpatakan. I've laid it out the same way as the rest of them (hopefully). Is there another file I need to mess with?

    Does the error log not specifically point at line 1 column 1 or does it just mean something is wrong in the file somewhere, i'm rather new to this.
    And when he reaches the gates of Heaven, to Saint Peter he will tell, "Just one more soldier reporting for duty, i've served my time in hell"
     
  6. _Tartaros_'s Avatar

    _Tartaros_ said:

    Default Re: Submod help

    maybe this tutorial will help you

    you need to add/edit the new building in the data/text/export_buildings.txt (and delete the export_buildings.strings.bin)
    +
    data/export_descr_building_enums.txt
    Last edited by _Tartaros_; August 29, 2014 at 11:06 AM.
     
  7. Auxor's Avatar

    Auxor said:

    Default Re: Submod help

    Thank you, i'll take a look at it.
    And when he reaches the gates of Heaven, to Saint Peter he will tell, "Just one more soldier reporting for duty, i've served my time in hell"
     
  8. Seljuq Prince's Avatar

    Seljuq Prince said:

    Default Re: Submod help

    I think you are editing with the most basic notepad.. Try to open it with ''rich text decument' or with microsoft word.. I had the same error and this helped me.
     
  9. Rotaran said:

    Default Re: Submod help

    Quote Originally Posted by Seljuq Prince View Post
    I think you are editing with the most basic notepad.. Try to open it with ''rich text decument' or with microsoft word.. I had the same error and this helped me.
    Aaaaah, thanks a lot! Was wondering why the original notepad file worked, but whenever i edited and saved, even if i changed the values exactly to what they used to be it bugged out.

    Weird tho, i've used notepad to change files for loads of other mods, only ever had a problem with this one
     
  10. _Tartaros_'s Avatar

    _Tartaros_ said:

    Default Re: Submod help

    i´ve got the best workflow with notepad++
    http://notepad-plus-plus.org
     
  11. Auxor's Avatar

    Auxor said:

    Default Re: Submod help

    Yeah after redoing the changes and googling it seems to be that notepad (which is what i'm using) has a habit of screwing stuff up, download Notepad++ now.

    Thanks guys, any recommendations for what I need to do? Just add the changes to the original file again?
    And when he reaches the gates of Heaven, to Saint Peter he will tell, "Just one more soldier reporting for duty, i've served my time in hell"