How do I begin making my mod compatible with Titans?

Discussion in 'Mod Discussions' started by bsergent, December 25, 2015.

  1. bsergent

    bsergent Active Member

    Messages:
    236
    Likes Received:
    73
  2. wondible

    wondible Post Master General

    Messages:
    3,315
    Likes Received:
    2,089

  3. bsergent

    bsergent Active Member

    Messages:
    236
    Likes Received:
    73
    That works! Thank you. :)

    Is there any way to leave the other cards locked and unlocked as normal?

    Also, with the mod now working my intended balance is broken.

    In unlocking the SXX I've also apparently unlocked the advanced orbital units in Titans as well.

    Couple questions: If I remove them explicitly (via inventory.removeUnits) will they still be unavailable even if I pick up complete orbital tech during the course of a game? And if not, where are the jsons for stuff like the Omega? I don't see it in orbital.

    Thank again though, it's great to have it working :)
  4. wondible

    wondible Post Master General

    Messages:
    3,315
    Likes Received:
    2,089
    Well, since it's not really possible to have two such mods loaded at once, you could use the index of your mod card, like they did with the first one. So something like

    Code:
                    if (index !== 0 && index !== 8 && !GW.bank.hasStartCard(cardData))
    
    Yeah, Uber tried to do unlocks with as few units as possible, which means most things are available by default and controlled by their factory/fabber. You enabled orbital factory, which granted access to everything it builds.

    If this comment is accurate, removeUnits should work:

    All the Titans specific units and updated units are under pa_ex1
  5. bsergent

    bsergent Active Member

    Messages:
    236
    Likes Received:
    73
    Eh, the card thing is ok for now. I'll tinker as you suggest later maybe.

    Code:
                        ]);
                        inventory.removeUnits([
                            "/pa/units/sea/naval_factory/naval_factory.json",
                            "/pa_ex1/units/orbital/orbital_battleship.json"
                        ]);
    This didn't work, I can still build the omega.

    The comment says "single" remove... so I tried listing it twice, still there.

    Any other ideas how to remove it?
  6. bsergent

    bsergent Active Member

    Messages:
    236
    Likes Received:
    73
    Link to currently working but incomplete version of this mod. It should work for titans and classic but I need to install titans to be sure. Having issues getting it to work via the download folder, currently it will only work in the old client mods folder.

    Not sure why.

    https://mega.nz/#!ImYSCAoC!YIHeI_wQHcfVvoD5X6vsqrFAlBEbR2EM8Nm9awPpicM

    Never used mega before, hope that link works. It's been so long that copy.com and dropbox became worthless in the interim.

    Once I get it working properly I'll update the main mod thread. If anyone can tell me why it's not working from download I'd appreciate it.

    Related steam thread: http://steamcommunity.com/app/233250/discussions/0/135513901704761484/

Share This Page