Results 1 to 14 of 14

Thread: Changing a castle building into a city building library academy

  1. #1

    Default Changing a castle building into a city building library academy

    I am trying to make this castle building set into a city building set but around 300 turns or so I have to rebuild it again in the city, any suggestions?

    building academic
    {
    levels library academy
    {
    library city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, mesoamerican, } and event_counter earthquake_in_alexandria 1
    {
    capability
    {
    recruits_morale_bonus bonus 1 requires factions { all, }
    recruits_exp_bonus bonus 1 requires factions { all, }
    }
    material wooden
    construction 2
    cost 1000
    settlement_min village
    upgrades
    {
    academy
    }
    }
    academy city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, mesoamerican, } and event_counter earthquake_in_naples 1
    {
    capability
    {
    recruits_morale_bonus bonus 2 requires factions { all, }
    recruits_exp_bonus bonus 2 requires factions { all, }
    }
    material wooden
    construction 4
    cost 2000
    settlement_min large_town
    upgrades
    {
    }
    }
    }
    plugins
    {
    }
    }
    building castle_academic
    {
    levels library academy
    {
    library castle requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, mesoamerican, } and event_counter earthquake_in_alexandria 1
    {
    capability
    {
    recruits_morale_bonus bonus 1 requires factions { all, }
    recruits_exp_bonus bonus 1 requires factions { all, }
    }
    material wooden
    construction 2
    cost 1000
    settlement_min village
    upgrades
    {
    academy
    }
    }
    academy castle requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, mesoamerican, } and event_counter earthquake_in_naples 1
    {
    capability
    {
    recruits_morale_bonus bonus 2 requires factions { all, }
    recruits_exp_bonus bonus 2 requires factions { all, }
    }
    material wooden
    construction 4
    cost 2000
    settlement_min large_town
    upgrades
    {
    }
    }
    }
    plugins
    {
    }
    }
    Attached Files Attached Files

  2. #2
    Gigantus's Avatar I am not special - I am a limited edition.
    Patrician took an arrow to the knee spy of the council

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    53,363
    Blog Entries
    37

    Default Re: Changing a castle building into a city building library academy

    You did a 'mix and match' when it comes to where the different levels can be build: 'city' and 'castle' are doing just that. In your case the first level has 'city' and all others have 'castle' which will have the effect you describe when the settlement gets upgraded. Make sure this is consistent through all levels.

    Curiosity: why do you want (different) earth quakes to build each level?










  3. #3

    Default Re: Changing a castle building into a city building library academy

    Do I just need to flip the order in the EDB castle set than city set? For the curiosity part in this mod it event based on when buildings can be built so you are unable to build all the tier buildings by turn 50.

  4. #4
    Gigantus's Avatar I am not special - I am a limited edition.
    Patrician took an arrow to the knee spy of the council

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    53,363
    Blog Entries
    37

    Default Re: Changing a castle building into a city building library academy

    Oh wait, I somehow missed that it's actually TWO building trees. You will need to use different names for the levels, eg c_academy and c_library for the second set.

    Still doesn't really explain why you would need to rebuild unless the building got destroyed (capture, actual earth quake near settlement, change from settlement to castle and vice versa).
    The latter can be avoided by using the 'convert' entry - see churches.
    Last edited by Gigantus; January 21, 2025 at 12:04 AM.










  5. #5

    Default Re: Changing a castle building into a city building library academy

    since c_acedemy and c_library don't exist can you just add them into the export_descr_buildings_enums.txt for the game to recognize them?

  6. #6
    Gigantus's Avatar I am not special - I am a limited edition.
    Patrician took an arrow to the knee spy of the council

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    53,363
    Blog Entries
    37

    Default Re: Changing a castle building into a city building library academy

    enums files are not processed by M2TW, text only needs to be entered in data\text\export_buildings










  7. #7

    Default Re: Changing a castle building into a city building library academy

    My data/text folder only shows export_buildings.txt.strings is there somewhere I can download or copy the original one?

  8. #8
    Gigantus's Avatar I am not special - I am a limited edition.
    Patrician took an arrow to the knee spy of the council

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    53,363
    Blog Entries
    37

    Default Re: Changing a castle building into a city building library academy

    Install my Bare Geomod mod setup - it has most of the commonly modded files, that one included.
    For other files you may have to unpack the game.










  9. #9

    Default Re: Changing a castle building into a city building library academy

    In your mod is export_buildings named building_battle? I am currently using Bare_Geomod_2.2.5.

  10. #10
    Gigantus's Avatar I am not special - I am a limited edition.
    Patrician took an arrow to the knee spy of the council

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    53,363
    Blog Entries
    37

    Default Re: Changing a castle building into a city building library academy

    building_battle relates to (as the name suggests) buildings that are present in a battle, like the gate and tower.
    The file directly related to the EDB entries is export_buildings.

    And now I see that for some reason I do not have that file in my set up, need to add it to the next revision. I suggest you unpack your game so you have access to more files. Sorry about that.

    I'll make sure that every single STRING.BIN file from the text directory will be present in it's TXT format in the next version. Maybe in a weeks time....










  11. #11
    Gigantus's Avatar I am not special - I am a limited edition.
    Patrician took an arrow to the knee spy of the council

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    53,363
    Blog Entries
    37

    Default Re: Changing a castle building into a city building library academy

    building_battle relates to (as the name suggests) buildings that are present in a battle, like the gate and tower.
    The file directly related to the EDB entries is export_buildings.

    And now I see that I do not have that file in my set up, most likely because it can be easily converted with the provided converter in the data\text directory. I does require Python version less then 2.7. Alternatively you can use the BinEditor.

    Sorry about that.
    Last edited by Gigantus; January 23, 2025 at 06:20 AM.










  12. #12

    Default Re: Changing a castle building into a city building library academy

    So once I open it using the BinEditor and than export it to the data/txt file I can start creating new buildings?

  13. #13

    Default Re: Changing a castle building into a city building library academy

    Yes, once you open the file using BinEditor and export it to the data/text folder, you can start creating new buildings. Ensure everything is set up properly, and double-check your entries for consistency with the EDB file to avoid issues.
    Meine Heisst Ehre Treue

  14. #14
    Gigantus's Avatar I am not special - I am a limited edition.
    Patrician took an arrow to the knee spy of the council

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    53,363
    Blog Entries
    37

    Default Re: Changing a castle building into a city building library academy

    Quote Originally Posted by rouennara View Post
    So once I open it using the BinEditor and than export it to the data/txt file I can start creating new buildings?
    That is the correct way to create the TXT file from the STRING.BIN one. You can now edit the TXT file directly and the game will then automatically generate new STRING.BIN files to read from. Together with editing the EDB file you can then create new buildings. You may also want to create new building pictures as otherwise you will end up with the 'Roman Barracks' placeholder.

    If you are running into issues then I recommend to use the EDB validator to check for errors.
    Last edited by Gigantus; January 24, 2025 at 10:38 PM.










Posting Permissions

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