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

Help with First Mod: Effects Not Reflected In Game

Discussion in 'CivBE - Modding Help & Mod Creation' started by Phanixis, Sep 18, 2016.

  1. Phanixis

    Phanixis Chieftain

    Joined:
    Dec 30, 2010
    Messages:
    26
    I am experimenting with modding in Beyond Earth. After watching the Firaxis tutorial, I have attempted to make a simple mod.

    This is what I have done:

    I made a copy of CivBEBuildings.xml and put it in my project folder.

    I selected add existing item and added the copy of CivBEBuildings.xml to my project.

    I edited the xml file to increase the cost of the Laboratory improvement from 80 hammers to 160 hammers.

    I set the mod to Update the Database using the copy of CivVEBuildings.xml on OnModActivated.

    I built the mod.

    I launched Beyond Earth, loaded the mod and started a new game.

    I looked at the Laboratory upgrade in the tech tree, but the change I made did not take place.

    I have no idea what I did wrong, can anyone help me with this matter?

    Thanks.
     
  2. Phanixis

    Phanixis Chieftain

    Joined:
    Dec 30, 2010
    Messages:
    26
    Ok, I have discovered that if I want to change an already existing building instead of adding a new one, I need a different set of commands. I need to use the update, set and where commands, which is not made apparent in most tutorials. After learning this, I was able to adjust the cost and technology prerequisites of buildings. Unfortunately, I cannot seem to adjust yield modifiers using the same methodology. Attempting to change the yield of the laboratory for instance just eliminates the science it generates entirely.
     
  3. Ryika

    Ryika Lazy Wannabe Artista

    Joined:
    Aug 30, 2013
    Messages:
    9,395
    You're probably not using the correct tags then, they must reflect the ones used in the table.

    Must look similar to this:

    Code:
    		<Update>
    			<Where BuildingType="BUILDING_LABORATORY" YieldType="YIELD_SCIENCE"/>
    			<Set Yield="9001"/>
    		</Update>
     
  4. Phanixis

    Phanixis Chieftain

    Joined:
    Dec 30, 2010
    Messages:
    26
    I found the mistake. I was setting YieldType instead of settings the Yield. It works now.

    Thanks for the help.
     

Share This Page