Accessing game data with python

  • heretik
    28th Jun 2012 Member 0 Permalink

    Is there some way to go look into the game's data with python to go look at pressure or temperature of specific coordinates? If i know how/where to look i could find a way to create data points and actually analyze data that comes out of PT; such as the temperature in a reactor, pressure or ect. Plus, you can print pretty charts and plots and do anything you want with all that data.

     

    And if someone really knows how; we could reverse it and trigger, for example, appearance of sparks...

  • Xenocide
    28th Jun 2012 Former Staff 0 Permalink

    Not without re-integrating the Python Console, which was mostly removed a while ago due to cross-compilation issues and file size. Other than that, you'd need to attach python the process. Not something I believe is do-able at the moment.

  • Simon
    28th Jun 2012 Administrator 0 Permalink
    You may be able to enable the python console by compiling with the PYTHONCONSOLE flag (while removing LUACONSOLE flag).
    If you aren't aware of the Lua console, I suggest you take a look at what that can do https://powdertoy.co.uk/Wiki/W/Lua.html
  • Xenocide
    28th Jun 2012 Former Staff 0 Permalink

    Didn't you blitz most of that out?