Autologin

Discussion in 'Mod Discussions' started by tatsujb, February 25, 2014.

  1. tatsujb

    tatsujb Post Master General

    Messages:
    12,902
    Likes Received:
    5,385
    go to \Programs Files (x86)\Planetary Annihilation\(Stable or PTE)\media\ui\main\game\start\
    and open "start.js" with notepad++ or another editor that has line numbers.
    • Skip EULA
    at line 864, after:
    Code:
                        self.getUbernetBuildNumber();
    
    put
    Code:
                        $("#dialog_eula").dialog("close");
                        model.ubernetLoginIn(); model.mode(1);
    
    like this:
    Code:
                        }
    
                        self.readyToLogin(true);
    
                        self.getUbernetBuildNumber();
                        $("#dialog_eula").dialog("close");
                        model.ubernetLoginIn(); model.mode(1);
                    });
    

    • Automatic Login
    add you password in line 130:
    Code:
    self.password = ko.observable('TYPEYOURPASSWORDHERE');
    credit goes to @sneakyness, great modder. and me, lovely chap as well.

    There. No more Eula accept and login.
    this just makes my day as a PA player and a modder and a tester that much easier, hope it does for you too :)
    dfghjk.jpg
    Last edited: July 20, 2014
    LavaSnake, fr2ed, dekate and 3 others like this.
  2. wheeledgoat

    wheeledgoat Well-Known Member

    Messages:
    409
    Likes Received:
    302
    you're my new favorite person.

    i'll rescind that if it doesn't work in linux when i get home.
    Geers likes this.
  3. cptconundrum

    cptconundrum Post Master General

    Messages:
    4,186
    Likes Received:
    4,900
    I suspect this will need an update after the gamma release.
  4. lokiCML

    lokiCML Post Master General

    Messages:
    1,973
    Likes Received:
    953
    You do know once the new launcher is deployed isn't going to work. The new launcher will just replace the modified file with an unmodified one.

    ninja'd
  5. cptconundrum

    cptconundrum Post Master General

    Messages:
    4,186
    Likes Received:
    4,900
    Works in Linux. It just probably won't work in a couple days.
  6. tatsujb

    tatsujb Post Master General

    Messages:
    12,902
    Likes Received:
    5,385
    this bit of code has been hoping around the file since the beginning to keep up with Uber's changes.
    If Gamma doesn't include auto login and remove eula accept on it's own then I suspect the code will hop again.
    Last edited: February 25, 2014
  7. lokiCML

    lokiCML Post Master General

    Messages:
    1,973
    Likes Received:
    953
    Security Advisory

    Storing a password in the clear is not secure at all specially if you're using it for multiple websites.
  8. tatsujb

    tatsujb Post Master General

    Messages:
    12,902
    Likes Received:
    5,385
    yup.

    you take the risk.

    that said if someone decrypted the entirety of your netpacks or hacked into your PC in some other way to find the PA pass you put in the file there's nothing else he couldn't have gotten at that point.
    cptconundrum likes this.
  9. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    I'd guess not gamma but the new launcher should bring such changes.
  10. tatsujb

    tatsujb Post Master General

    Messages:
    12,902
    Likes Received:
    5,385
    You were right. hope the new launcher does.
  11. tatsujb

    tatsujb Post Master General

    Messages:
    12,902
    Likes Received:
    5,385
    updated for 62110
  12. Raevn

    Raevn Moderator Alumni

    Messages:
    4,226
    Likes Received:
    4,324
    Modding forum is this way --->
    lokiCML likes this.
  13. tatsujb

    tatsujb Post Master General

    Messages:
    12,902
    Likes Received:
    5,385
    was in general for visibility people were happy i put it there. watevs'
  14. Raevn

    Raevn Moderator Alumni

    Messages:
    4,226
    Likes Received:
    4,324
    General Discussion isn't just a more visible Mod Developer forum. Discussions about game modifications belong here.
  15. tatsujb

    tatsujb Post Master General

    Messages:
    12,902
    Likes Received:
    5,385
    I'm trying to do the same edit but within acceptance mod, since I can't locate start.js anymore.

    can anyone help me?
  16. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    I don't have PA handy, but I would expect it is now in PA/media/ui/main/game/start/start.js out of my head?
  17. tatsujb

    tatsujb Post Master General

    Messages:
    12,902
    Likes Received:
    5,385
    yes, thank you.
  18. tatsujb

    tatsujb Post Master General

    Messages:
    12,902
    Likes Received:
    5,385
  19. tatsujb

    tatsujb Post Master General

    Messages:
    12,902
    Likes Received:
    5,385
    Read OP, I turn to you.
  20. tatsujb

    tatsujb Post Master General

    Messages:
    12,902
    Likes Received:
    5,385

Share This Page