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

Are Shipwrecks hardcoded to the Cultural Heritage Civic?

Discussion in 'Mod Creation Help' started by kingchris20, Jan 14, 2018.

  1. kingchris20

    kingchris20 Wisdom Seeker

    Joined:
    Jul 30, 2012
    Messages:
    1,328
    Location:
    Resident of Heaven; Currently in the Waiting Room
    I have tried several things to get shipwrecks to unlock earlier than Cultural Heritage, but nothing works. Game Effects log shows that the modifiers are valid and attaching correctly, but the "sea antiquities" will not activate until the Cultural Heritage Civic is researched.

    I've tried attaching its modifier to buildings, districts, other civics, other technologies, and updating the core game files to make it go at an earlier civic, but even with the update changing the civic it is tied to, it still only happens when Cultural Heritage is researched.

    It's modifier is <ModifierType>MODIFIER_GAME_TRIGGER_MECHANIC</ModifierType>, and that modifier type is only used with <ModifierId>CIVIC_GENERATE_SEA_ANTIQUITIES</ModifierId> and <ModifierId>CIVIC_GENERATE_LAND_ANTIQUITIES</ModifierId>
     
  2. LeeS

    LeeS Imperator

    Joined:
    Jul 23, 2013
    Messages:
    5,681
    Location:
    Illinois, USA
  3. kingchris20

    kingchris20 Wisdom Seeker

    Joined:
    Jul 30, 2012
    Messages:
    1,328
    Location:
    Resident of Heaven; Currently in the Waiting Room
    Yes, that is where I started, I took the Great Scientist James Young (his pop reveals oil early) as an example, and added that modifier [MODIFIER_PLAYER_GRANT_FREE_RESOURCE_VISIBILITY] to my civ trait and set it to go off at Tech_Economics, but nothing......
     
  4. Barbarian King

    Barbarian King Chieftain

    Joined:
    May 4, 2010
    Messages:
    311
    I've successfully reattached the shipwrecks and ruins to later civics, so I assume the process is the same for attaching to earlier civics, like you want to do. First, delete the attachment of the modifiers to the Cultural Heritage civic. Then attach the modifiers that were being attached to Cultural Heritage (CIVIC_GENERATE_SEA_ANTIQUITIES and CIVIC_EXTRACT_SEA_ARTIFACTS) to whatever civic you want to give it to. Last, update the PrereqCivic for shipwrecks to match the civic you just gave the CIVIC_GENERATE_SEA_ANTIQUITIES modifier to. And, you're done. Also note, make sure that when you are testing this to test in a new game: once the resources have been generated on a map, they are there for good.
     
    kingchris20 likes this.

Share This Page