1. We have added a Gift Upgrades feature that allows you to gift an account upgrade to another member, just in time for the holiday season. You can see the gift option when going to the Account Upgrades screen, or on any user profile screen.
    Dismiss Notice

[Improvement] How do you create Improvements?

Discussion in 'CivBE - Modding Help & Mod Creation' started by Naeshar, Oct 24, 2016.

  1. Naeshar

    Naeshar Warlord

    Joined:
    Oct 22, 2016
    Messages:
    285
    Gender:
    Male
    Hello fellow Civfanatics!

    I started modding a while ago and I enjoy it a lot. However I already hit limits in what can be done, and it is good.
    Except I cannot add an improvement without breaking UI and found no hint on the forums.

    What I did: (actually I tested this with Machiavellis xml (a Mine duplicate) - thanks!)
    add improvement into Improvements table;
    entries in Improvement_ResourceTypes and Improvement_ResourceType_Yields;
    add build into Builds, Unit_Builds, BuildsonFeatures.

    It works, the improvement is buildable, it is listed within civilopedia, but ...
    It broke the unit UI in left bottom corner. It disappeared, in other case it was a different row of builds that did not make any sense. But hotkeys for commands work. Is there anything more I must do to make a usable Improvement?
    Learn lua?
    Is there another xml table?

    I appreciate any help :)
    Naeshar
     
  2. Ryika

    Ryika Lazy Wannabe Artista

    Joined:
    Aug 30, 2013
    Messages:
    9,395
    It's a known bug, adding UnitBuilds and UnitPromotions will force you to load mods twice by activating them, then going back to the Mod Menu and activating them again.
     
  3. Naeshar

    Naeshar Warlord

    Joined:
    Oct 22, 2016
    Messages:
    285
    Gender:
    Male
    I should have guessed it is something like that. I have seen the workaround, but never knew what is it related.
    And it did not work at my place. However at my mod it worked. Even though I need another 3 minutes for loading when testing :(.
    Is it needed to tick "reload landmark system/units/_"?

    Anyway, big thanks, Ryika!
     
  4. Ryika

    Ryika Lazy Wannabe Artista

    Joined:
    Aug 30, 2013
    Messages:
    9,395
    No, those options are not required in this case.

    Quick addition in case that wasn't clear: You only have to re-enable mods the first time after you launch the client, not everytime you go back to the main menu.
     

Share This Page