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

change to modding from the Gathering Storm patch

Discussion in 'Civ6 - Creation & Customization' started by Gedemon, Feb 14, 2019.

  1. ruby_sauce

    ruby_sauce Outside the box

    Joined:
    Jun 17, 2007
    Messages:
    704
    Location:
    Netherlands
    So Ive recently tried getting into modding, but the modbuddy asset editor tells me that the version of artdef Im trying to use is too new, and I need newer tools. I noticed that names of assets are named ARMOR_01 and in the old version they're named ARMORC, for example. Should I wait for an update on the SDK or is this something I can work around easily? I cant preview files in the asset editor because it has assets from the "letter era" when I need them from the number era. So I can only view assets with the letters...
     
  2. Deliverator

    Deliverator Graphical Hackificator

    Joined:
    Feb 12, 2008
    Messages:
    4,712
    Location:
    London, UK
    As mentioned elsewhere you need to wait for the SDK Assets update from Firaxis.
     
  3. TheMarshmallowBear

    TheMarshmallowBear Benelovent Chieftain of the BearKingdom

    Joined:
    Dec 27, 2006
    Messages:
    7,621
    Location:
    Inside an Ikanda.
    So we have finally been given the power to grant modifiers via lua as seen in the BlackPlague, as well as custom notifications via lua without hte need to modify the Notification UI file.

    I also discovered that EFFECT_SET_PROPERTY works with the "Key" being used for Name and the name of the parameter in "Value"

    Oddly, it returns what seems to be a table, and I have been unable to specify or grab anything from said table.

    But, via lua it actually does seem to recognise itself. when tested with a dummy variable that wasn't a property I got a nil, but when I referenced the exact same name as in the modifier, I was able to grab the property needed.

    So now I have a way to check if a player has a specific agenda.. sweet. (well, as long as a modifier is granted via said agenda/trait).

    Sweeeeeeet.

    I do think our doors have been opened widely now if one knows where to look for guidance.
     
  4. LeeS

    LeeS Imperator Supporter

    Joined:
    Jul 23, 2013
    Messages:
    7,176
    Location:
    Illinois, USA
    If you're talking about this from the BlackDeathScenario_Support.lua
    Code:
    function ShowPopupEvent(sEventKey : string, iForPlayerID : number, pParams : table, hideUnlocks : boolean)
         .............
         ReportingEvents.Send("EVENT_POPUP_REQUEST", pPopupData)
         .............
    end
    The ability to create pop-up events was added quite some time ago and was used in the Nubia Scenario. But I'm not sure if you actually needed the Nubia DLC (but I don't believe you did). I was running a custom version of a city-state meeting mod that used the
    Code:
    ReportingEvents.Send("EVENT_POPUP_REQUEST", pPopupData)
    In tandem with new rows in the <EventPopupData> table in Vanilla.
     
  5. Gedemon

    Gedemon Modder Super Moderator

    Joined:
    Oct 4, 2004
    Messages:
    9,765
    Location:
    France
    that's answered in the updated doc (making your actions occur before another mod), which seems to imply that <References> should also work now.
     
  6. TheMarshmallowBear

    TheMarshmallowBear Benelovent Chieftain of the BearKingdom

    Joined:
    Dec 27, 2006
    Messages:
    7,621
    Location:
    Inside an Ikanda.
    References worked for a while, at least with DLCs, since it circumnavigated the issue of certain DLCs loading AFTER my mod and subsequently preventing some of my updates from working or being able to affect DLC Civs.
     
  7. qqqbbb

    qqqbbb Prince

    Joined:
    Sep 25, 2010
    Messages:
    530
    Can you give example where it's used?
     
  8. TheMarshmallowBear

    TheMarshmallowBear Benelovent Chieftain of the BearKingdom

    Joined:
    Dec 27, 2006
    Messages:
    7,621
    Location:
    Inside an Ikanda.
    Sorry for the late reply.

    The Black Plague scenario uses custom notifications and it is used entirely through gameplay scripts. I've tested and found it works with UI scripts as well.
     
    dbergan likes this.
  9. CypRyan

    CypRyan Chieftain

    Joined:
    Feb 21, 2021
    Messages:
    10
    Gender:
    Male
    Hello, sorry for the reply to this necro post.

    @LeeS Do you have any information on how to reuse the images from those scenarios? Using 'BlackDeathScenario_EventBG_Gods' for example does not show correctly.

    Thank you in advance! :)
     

Share This Page