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

[Lua] Trouble Overwriting Artifacts.lua: Rewarding two artifacts instead of one

Discussion in 'CivBE - Modding Help & Mod Creation' started by Galgus, Sep 5, 2020.

  1. Galgus

    Galgus Emperor

    Joined:
    Aug 22, 2012
    Messages:
    1,705
    EDIT

    Ryika solved the problem on Reddit.

    I had the file as Content in InGameUiAddin while also setting Import into VHS to True, which made two copies of the file.

    __________________________

    My recent Artifacts Overhaul mod has a bug in the Artifacts.lua file, which overwrites the file of the same name in the base game to disable Artifact spawns from Resource Pods and Alien Nests while guaranteeing them from non-Satellite Expeditions.

    It does all of that properly, but it gives the player two Artifacts (of the proper type) per expedition instead of one, and I don't know why and I don't recognize anything relevant in the logs.

    I included the mod's Artifacts.lua file as an .txt file so it would upload.

    My changed are marked by Galgus Change comments.

    Any help would be appreciated.
     

    Attached Files:

    Last edited: Sep 5, 2020

Share This Page