[REL] PA Stats (Decommissioned)

Discussion in 'Released Mods' started by cola_colin, August 15, 2013.

  1. wondible

    wondible Post Master General

    Messages:
    3,315
    Likes Received:
    2,089
    Hrm. I'm getting 404s from IS games, but I doubled checked and ones from regular new_game work fine. Are you sending 404 explicitly on data errors, or is it an actual routing problem?

    So far all I've done is setup up the localStorage values listed above, but leaving wantsToSend alone.
  2. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    That's a weirdness of the lift framework that pa stats uses to create the webservices. If the data you send missmatches with the expected data structure you get a 404. It sure is stupid of liftweb to do that but well it does and I have not yet looked into making it throw a better error message.
    So there most likely is an error in the structure of either the team data or the system data.
    Maybe look at the data it sends when playing normally. Especially the very first package it sends. Compare it with what you are trying to send. There should be a difference.
  3. tatsujb

    tatsujb Post Master General

    Messages:
    12,902
    Likes Received:
    5,385
    did the reg with the two edited paths, it launches the game but login process (since i'm not logged in) interupts the process, how do you get around this? are you on steam PA?

    EDIT: fixed that with autologin trick
    but it still doesn't do anything after opening PA :'(
  4. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    If it does not do anything even a few seconds after login something is most likely wrong with either the setup of your startpa:// protocol or you do not have the PA Stats mod installed.
    Check the taskmanager. A correctly started replay looks like this:
    [​IMG]
  5. wondible

    wondible Post Master General

    Messages:
    3,315
    Likes Received:
    2,089
    Okay, you wanted AI colors to be present with empty strings; my first pass left them out entirely.

    http://www.pastats.com/chart?gameId=90429

    Everything look okay on your end? (other than the sandbox biome ;^) )
  6. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    apart from your slow network reordering some packages yet again it looks fine.
    There isn't even a sandbox biome images in PA itself xD
  7. emraldis

    emraldis Post Master General

    Messages:
    2,641
    Likes Received:
    1,843

    Wow, sorry cola colin, but I can't read this at all, even if I've had some experience with code... :( I want to make these changes, but I don't know what i'm supposed to edit, where i'm supposed to put what, and what to name the new file! Could you either change PAMM (or get raeven to change it), or give a step-by-step instructions? I'd really like to use this feature...
  8. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    I am trying to get @raevn to change it for sure.
    What I am trying to tell you is you need to make a textfile with the extension .reg
    You need to put that stuff in there. Modifiy the 2 occurences of the pa.exe path to match yours.
    Then store the file and double click it. Click okay.
    That should be it.
  9. emraldis

    emraldis Post Master General

    Messages:
    2,641
    Likes Received:
    1,843
    Nope, lost me! I'll just wait for Raevn.
  10. cptconundrum

    cptconundrum Post Master General

    Messages:
    4,186
    Likes Received:
    4,900
    • Make a new .txt file on your desktop. (You can use Notepad for this)
    • Copy and paste this into the file:
    Code:
    Windows Registry Editor Version 5.00
    
    [HKEY_CLASSES_ROOT\Wow6432Node\startpa]
    @=""
    "URL Protocol"=""
    
    [HKEY_CLASSES_ROOT\Wow6432Node\startpa\shell]
    
    [HKEY_CLASSES_ROOT\Wow6432Node\startpa\shell\open]
    
    [HKEY_CLASSES_ROOT\Wow6432Node\startpa\shell\open\command]
    @="C:\\Program Files (x86)\\PA\\Planetary Annihilation\\stable\\PA.exe --username \"%1\""
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\startpa]
    @=""
    "URL Protocol"=""
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\startpa\shell]
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\startpa\shell\open]
    
    [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\startpa\shell\open\command]
    @="C:\\Program Files (x86)\\PA\\Planetary Annihilation\\stable\\PA.exe --username \"%1\""
    

    • Find both places with this string: "C:\\Program Files (x86)\\PA\\Planetary Annihilation\\stable\\PA.exe" and replace it with the actual path to your PA.exe (Don't forget to use double backslashes like in the original example.)
      • If you use Steam and need to find the game files, follow these instructions:
        • Open the Steam library and right click on PA, then select "Properties".
        • Go to the Local Files tab and click "Browse local files".
    • Save the file. Go to the desktop and rename it to "pastats.reg"
    • Double-click on the file to run it as a program.
  11. emraldis

    emraldis Post Master General

    Messages:
    2,641
    Likes Received:
    1,843

    Thank you! That was much more clear! It works now.
  12. superouman

    superouman Post Master General

    Messages:
    1,007
    Likes Received:
    1,139
    @cola_colin Please copy this post to your OP, i spend some minutes trying to find that post again.


    Also, PA crashes when i watch a replay on the PTE. It happens approximatively when the first factory starts building something.
    I did that because it fixes my lightings and shadows.
    Last edited: May 4, 2014
  13. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    The OP as well as all replays link my post on it, which in turn links the full sticky in the video and replays forums that explains it for all platforms, including the info you quoted.
    So all you need to do is follow a few links already.
  14. cptconundrum

    cptconundrum Post Master General

    Messages:
    4,186
    Likes Received:
    4,900
    https://forums.uberent.com/threads/info-how-to-open-replay-links.59212/
    totalannihilation and reptarking like this.
  15. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    That should probably reported in the PTE thread, or is it only happening for PA Stats started replays?
  16. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    Released a small server side update. To get all new features do a ctrl F5 on the game page or clear your cache in whatever other way you want.

    @Illmaren: The winners webservice now tells you the game version.
  17. SatanPetitCul

    SatanPetitCul Active Member

    Messages:
    267
    Likes Received:
    197
    I have not yet said it, PA stat is awesome ! many thanks for this excellent mod.

    I have a request for the stats, could you add a curve showing the ratio between energy gross income and metal gross income ?

    I think this value should never exceed 100, because 100 energy per metal is one of the worst building ratio (T1 fabbers). Then if you produce more energy than 100 time metal, there is no way you can sensibly spend this energy. And this mean you have too much energy and you should stop investing in energy power plant.

    But i have no values to work on it. Then if it is not too much work, is it possible to add this curve energy/metal please ? :)
  18. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    That is a good idea and should be possible with very less extra code. Good idea.
  19. tatsujb

    tatsujb Post Master General

    Messages:
    12,902
    Likes Received:
    5,385
    would it be possible to display the rating from @Illmaren 's ladder in lobby?
  20. cptconundrum

    cptconundrum Post Master General

    Messages:
    4,186
    Likes Received:
    4,900
    This should be done as a standalone mod that uses Illmaren's web api to request user ranks.
    totalannihilation and reptarking like this.

Share This Page