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. Mereth

    Mereth Active Member

    Messages:
    330
    Likes Received:
    164
    PLEASE USE THE IN-GAME COMMUNITY MODS.

    This is a port of Raevn PA Mod Manager for Windows with Atom Shell, a framework that lets you write cross-platform desktop applications using JavaScript, HTML and CSS. It is based on node.js and Chromium.

    pamm.png

    Installation

    DON'T. Planetary Annihilation now provide a in-game mod manager and conflict with PAMM.

    Sources

    Project sources repository : https://github.com/pamods/pamm-atom

    Modder ?

    See the following thread on how to get your mod added to PAMM: [GUIDE] Getting your mod on PAMM
    Last edited by a moderator: February 4, 2018
  2. Fr33Lancer

    Fr33Lancer Well-Known Member

    Messages:
    595
    Likes Received:
    288
    Wow, it's blazing fast compared to the classic one !
    Yet, it doesn't like going fullscreen it seems :
    [​IMG]
    Is it just me ? I'm going heavy on the use of mods, so fullscreen would help a lot :p

    EDIT : tried to modify some .js file (absolute noob here coding-wise) with width: 1900 / heigth 1200 (my screen resolution), but it didn't change a thing
    Last edited: May 25, 2014
  3. Mereth

    Mereth Active Member

    Messages:
    330
    Likes Received:
    164
    No, it's not just you :) I had to set a fixed height as a quick warkaround, else there were a vertical scrollbar at all time. I hope we will be able to find a solution for a truly resizable window.

    edit.: the fixed height is on body element in pamm.css
    Fr33Lancer likes this.
  4. Fr33Lancer

    Fr33Lancer Well-Known Member

    Messages:
    595
    Likes Received:
    288
    Yup, just found that too and put 900 :)
    It looks perfect now, thanks for your work ;)
  5. Fr33Lancer

    Fr33Lancer Well-Known Member

    Messages:
    595
    Likes Received:
    288
    If anyone is wondering why notepad is launched when clicking on Launch PA, in pamm.js
    Change it with the path to your launcher, and use "/" for folders, not "\" ;)

    Like
    lokiCML likes this.
  6. tatsujb

    tatsujb Post Master General

    Messages:
    12,902
    Likes Received:
    5,385
    i don't get what's going on here @_@

    could someone explain?
  7. Fr33Lancer

    Fr33Lancer Well-Known Member

    Messages:
    595
    Likes Received:
    288
    To my understanding (no dev nor web specialist), PAMM from raevn is launched with an hta, which is rendered with IE, which is laggy as hell.
    This one is rendered with Chromium, which is blazing fast, night and day difference.
  8. tatsujb

    tatsujb Post Master General

    Messages:
    12,902
    Likes Received:
    5,385
    uhmm, I see no difference.
  9. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    It stays clear of any windows IE stuff. That alone certainly sounds nice. Might mean less issues with AV software for example.
    cptconundrum and reptarking like this.
  10. tatsujb

    tatsujb Post Master General

    Messages:
    12,902
    Likes Received:
    5,385
    that would indeed be welcome.
  11. Mereth

    Mereth Active Member

    Messages:
    330
    Likes Received:
    164
    It has been fixed, it will use the configured value like before :) Forgot to use the right value after my PoC with notepad ...

    Sorry for my bad english.

    The main idea would be to have a cross-platform mod manager, using a well known language in the PA modding context : html & javascript. The community could also focus on one application instead of 2 if we need to change the way the current "api" works (hopefully not 3 ...).

    The current windows version use the Internet Explorer (html&javascript) + VBScript + ActiveX, it works, but it's nasty, and you can't download a github archive because of the cross-domain "protection" defined in IE settings... I love the raevn idea to make an application with html&js, but the HTA framework is just too limited. 95% of the raevn work is still there, I just had to port the vbscript stuff and the activex calls.

    I can't tell for the OSX/Linux version with QT, I guess we should be able to make it works on Windows too, but it would probably reduce the number of people capable to contribute to it significantly.

    And like I stated in the thread title, it's a WIP, close to something which could replace the existing apps, but I will not try to force your hands, and I can't and I don't want to.
    tatsujb likes this.
  12. wondible

    wondible Post Master General

    Messages:
    3,315
    Likes Received:
    2,089
    OS X mostly OK. Things were weird until I manually disabled DeathByDenim PAMM mod.

    Why does it try to open a document on open?

    It doesn't use the default screen setting.
    Last edited: May 25, 2014
  13. Mereth

    Mereth Active Member

    Messages:
    330
    Likes Received:
    164
    Oh, the the OSX/Linux version by DeathByDenim doesn't name his PAMM mod folder 'rPamm' ? I will have to handle this api difference on *NIX platforms for an easier migration.

    It's because it can't find your PA binary and it is asking you where it is. Maybe the test don't work as expected on *NIX platforms. But at least it need a explanation message (it's in the open dialog title on windows).

    What do you mean by that ? It's probably something managed by Atom Shell itself, but maybe I can find some fix.

    By the way, thanks for you testing to Fr33Lancer and you :)
  14. wondible

    wondible Post Master General

    Messages:
    3,315
    Likes Received:
    2,089
    The directory is PAMM, and has the module identifier com.pa.deathbydenim.dpamm. It's probably in the github repo.

    Yeah, OSX tries to be clever and not make it a separate window.

    Screen Shot 2014-05-25 at 08.35.25 .png


    In settings there is an option properly called "Default Tab". I'm mostly flipping things on and off so I want to start in Installed Mods.
  15. Mereth

    Mereth Active Member

    Messages:
    330
    Likes Received:
    164
    Gonna fix this asap !

    It definitely need a message before the open file dialog. But does the "LaunchPA" works as expected after selecting the PA binary ? Does it stop to asking you where it on the following PAMM use ?

    It was my fault, and it's now fixed on master :)
  16. wondible

    wondible Post Master General

    Messages:
    3,315
    Likes Received:
    2,089
    It definitely need a message before the open file dialog. But does the "LaunchPA" works as expected after selecting the PA binary ? Does it stop to asking you where it on the following PAMM use ?

    It stops asking, but we've got a major issue: the open dialog doesn't have the "show package contents" option, so I can't select the PA binary. Then, the path field doesn't appear be editable, and pressing backspace really messes things up (I discovered that I can cmd-R to get it back)

    I guess if you see a .app selected you could add /Contents/MacOS/PA

    The default location when using the UberLauncher is

    /Users/jlove/Library/Application Support/Uber Entertainment/Planetary Annihilation/data/streams/stable/PA.app

    Even more fun: the Library directory isn't visible by default, so to browse it you have to use the Go menu.
  17. Raevn

    Raevn Moderator Alumni

    Messages:
    4,226
    Likes Received:
    4,324
    Good work! I was avoiding the need for any 3rd party software, which is why I chose hta. It does have its downsides though.

    Note that I am most of the way through a re-write of the internals of PAMM though, allowing things like extensions and command-line functionality, plus quite a bit more, and will include support for both client and transient server mods. In the re-write, the VBA code is all separated, so it shouldn't be hard to drop in any of your changes.

    Im currently away from my computer for the next few weeks, but I'll finish it off then, and we can look at integrating the two.
  18. Mereth

    Mereth Active Member

    Messages:
    330
    Likes Received:
    164
    I'm not sure I will be able to find a way for the "Open file" dialog to work properly on OSX, but I found out that the DeathByDenim PAMM use the PA Coherent log files to find where are the binary by itself ! I will reproduce this behavior, even for windows, and it should make this dialog useless.

    Does Launch PA works on OSX with the DeathByDenim PAMM ? A comment in sources code says it has been tested on linux only.
    Could you please provide me one of your log files ? (in "/Users/jlove/Library/Application Support/Uber Entertainment/Planetary Annihilation/log" if I guess right)

    I have fixed the rPAMM/PAMM mod issue on master, but you will have to uninstall the rPAMM mod by yourself.

    The 30MiB binaries is clearly one of the cons of atom-shell against the .hta lightweight solution. It's sad Mono.net doesn't support WPF.
    See you in a few weeks :) I'll try to validate the "crossplatform" aspect in the meanwhile, because it's the main purpose of this version after all.
  19. wondible

    wondible Post Master General

    Messages:
    3,315
    Likes Received:
    2,089
    I think DBD's used to work, but I started using it before the UberLauncher when I just copied the program into Applications. Hopefully it won't move again, but that's something to think about.

    Attached Files:

    DeathByDenim likes this.
  20. Mereth

    Mereth Active Member

    Messages:
    330
    Likes Received:
    164
    Thanks, looking in log files is clearly the way to go.

    [15:26:50.221] INFO Coherent host dir: "/Users/jlove/Library/Application Support/Uber Entertainment/Planetary Annihilation/data/streams/stable/PA.app/Contents/MacOS/host"

Share This Page