Use the In-Game Community Mods - Cross Platform PA Mod Manager (PAMM) is Obsolete

Discussion in 'Released Mods' started by Mereth, May 24, 2014.

  1. sigmud2

    sigmud2 Member

    Messages:
    89
    Likes Received:
    24
    I have figured out the reason as to why it breaks! It has to do with the enabling of mods.
  2. Fr33Lancer

    Fr33Lancer Well-Known Member

    Messages:
    595
    Likes Received:
    288
    If I understand this correctly, one should have to log every 24h into PAMM to get it working, right ?
    Because I must have logged once on Sunday and I'm still logged on PAMM and PA seems OK.

    Not complaining, this is awesome as it is :cool:
  3. stuart98

    stuart98 Post Master General

    Messages:
    6,009
    Likes Received:
    3,888
    Would it be possible to have links that redirect to the pamm protocol so that we can have one click download buttons for mods?
  4. Mereth

    Mereth Active Member

    Messages:
    330
    Likes Received:
    164
    Could you be more specific please ? I'm not sure to understand your request.
  5. Mereth

    Mereth Active Member

    Messages:
    330
    Likes Received:
    164
    It's very unclear when Uber revoke a session ticket, but they do. Even using the PALauncher doesn't revoke it right away. The longer, the better :D
  6. wondible

    wondible Post Master General

    Messages:
    3,315
    Likes Received:
    2,089
    Ran into a login issue, although it's certainly a unique case - feel free to ignore if it's too unique.

    I have a secondary account. When I log into the secondary account, it shows the name of my primary account and uses that to run the game.
  7. Mereth

    Mereth Active Member

    Messages:
    330
    Likes Received:
    164
    That's weird, I don't want to ignore it, but I can't find what could cause the issue.

    Could you add "devmode" arg to your pamm shortcut ? It will open up the chromium devtools, and you will see the login object in the console, maybe it will light up the problem.
    This arg also disable the "download counter", to be used with "caution" ^^
  8. wondible

    wondible Post Master General

    Messages:
    3,315
    Likes Received:
    2,089
    Well that helps a bit - when I login through pamm, it says the DisplayName of the alt account is the same as my main account and that carries over to PA; but if I log in directly, the name is displayed normally. It's not the wrong account, it's just picking up the wrong display name somehow, which is still confusing.
  9. Mereth

    Mereth Active Member

    Messages:
    330
    Likes Received:
    164
    The more confusing is they both provide only the ticket as argument to PA, at least on windows.

    I know the display name can be managed in the uber account management, and also that starting PA from Steam change the DisplayName "on the fly". Changing your name ingame (right click in the uberbar) change the TitleDisplayName but it isn't used when you restart PA.
  10. Fr33Lancer

    Fr33Lancer Well-Known Member

    Messages:
    595
    Likes Received:
    288
    Hi Mereth,

    Any news about this ?
    People are getting mad here with the argument --nomods

    On my side, if anyone is interested in the meantime, I tweaked :
    • C:\Users\%username%\AppData\Local\Uber Entertainment\Planetary Annihilation\pamm\resources\app\index.html
      by adding
    HTML:
    <input id="btnLaunchSM" type="button" value="Safe Mod" class="LOC_Launch_PA_SM" onClick="LaunchPASM()"/>
    • C:\Users\%username%\AppData\Local\Uber Entertainment\Planetary Annihilation\pamm\resources\app\assets\js\pamm.js
      by adding

    HTML:
    function LaunchPASM() {
        if(pamm.getStream() === 'steam') {
            shell.openExternal('steam://rungameid/233250');
        }
        else {
            var child_process = require('child_process');
            var path = require('path');
          
            var binpath = pa.streams[pamm.getStream()].bin;
            var wd = path.dirname(binpath);
          
            var args = [];
            if(uberent.getSessionTicket()) {
                args = ['--ticket', uberent.getSessionTicket(),'--nomods'];
            }
          
            var child = child_process.spawn(binpath, args, { cwd: wd, detached: true });
            child.unref();
        }
        ClosePAMM();
    }
    And it looks and works fine :
    [​IMG]
  11. Mereth

    Mereth Active Member

    Messages:
    330
    Likes Received:
    164
    Fun fact, I was just adding it, and I like your "Safe Mod" label idea ! I'm droping the "profile" idea for the time being, I'm not codding that much lately ;)
    Fr33Lancer likes this.
  12. Raevn

    Raevn Moderator Alumni

    Messages:
    4,226
    Likes Received:
    4,324
    *Mode ;)
  13. Mereth

    Mereth Active Member

    Messages:
    330
    Likes Received:
    164
    It's "live" !
    Fr33Lancer likes this.
  14. Fr33Lancer

    Fr33Lancer Well-Known Member

    Messages:
    595
    Likes Received:
    288
    Well, that was supposed to be the point (double meaning), everyone knows "Safe Mode", but here we're dealing with Mod(s) !
    Sad panda now :(

    ...

    Joking :p
  15. buttermage

    buttermage New Member

    Messages:
    10
    Likes Received:
    1
    I am on a mac and it says that we need to run install.sh but what do I run it with
  16. kryovow

    kryovow Well-Known Member

    Messages:
    1,112
    Likes Received:
    240
    after the latest PAMM update i cant launch the game with it.
    Reason is, i think, the PA install location field is empty, but i cant select something either.
  17. LmalukoBR

    LmalukoBR Well-Known Member

    Messages:
    327
    Likes Received:
    278
    Please remove Process event handler framework from PAMM
    This mod inserts a serious game breaking bug that makes the keyboard get stuck on chat and removing your ability of controlling your units, this mod should be removed until fixed.
  18. kosmosprime

    kosmosprime Member

    Messages:
    97
    Likes Received:
    6
    Is there a reason why I can't make PAMM load a mod from my computer? Are you planning to implement that?
  19. liquius

    liquius Well-Known Member

    Messages:
    731
    Likes Received:
    482
    It does work with mods that are not hosted on PAMM. I am guessing your mod isn't in the correct folder and/or it's missing modinfo.json.
  20. someonewhoisnobody

    someonewhoisnobody Well-Known Member

    Messages:
    657
    Likes Received:
    361
    That would be cool. Maybe if I have some time I can write that in and submit a pull request.

    Initial idea:
    Protocol Name: pamm://
    Format: pamm:// <action>/<modId>
    Example: pamm://instal/inGameBrowser

    The tech:
    It looks like Atom does support creating custom protocols via
    Code:
    protocol.registerProtocol(prefix, handler);
    after Atom's
    Code:
    will-finish-launching
    event has fired.

    So this could all be done by adding:
    Code:
    app.on('will-finish-launcher', function(){
        var protocol = require('protocol');
        protocol.registerProtocol('pamm', function(req){
            var url = req.url.substring(7);
            var action = url.split('/')[0];
            var target = url.split('/')[1];
            //Do stuff w/ action and target
        });
    });
    So that is very possible.

    Atom Protocol Docs

    Exuce any syntax errors, writen on my phone
    Last edited: August 10, 2014

Share This Page