Java Powder Game

  • Lord_Bowserinator
    20th Apr 2015 Member 0 Permalink

    https://github.com/simtr/The-Powder-Toy/blob/develop/src/client/GameSave.cpp#L1739

    Thats the code for the format. Boxiem had a website for it but now it gives a 404...

  • jacob1
    20th Apr 2015 Developer 0 Permalink
    @WinstonsDomain (View Post)
    I suggest not reading .cps files, create your own format which does what you need. But if you really want to ... readOPS() will initialize what you need. It's really scattered though, there's some stuff in Simulation.cpp also. And you need two libs, one for bzip2 and another for bson (binary version of json)
    Edited once by jacob1. Last: 20th Apr 2015
  • WinstonsDomain
    20th Apr 2015 Member 0 Permalink

    Alright, thanks!

     

    @jacob1 (View Post)

    I'm kind of seeing the trouble with loading them now with version specific parts as updates happened. I'll probably make my own format then when needed but possibly attempt loading cps when other parts are finished.

    Edited once by WinstonsDomain. Last: 20th Apr 2015
  • boxmein
    21st Apr 2015 Former Staff 0 Permalink
    @WinstonsDomain (View Post)
    If you really want a peek into the save format, I wrote a thing here:
    http://tptelements.boxmein.net/reference/save-format.html
  • WinstonsDomain
    26th Apr 2015 Member 0 Permalink

    New version uploaded:

    • New Icon
    • Stacking Particles: working with some problems
    • Circle cursor & improved drawing on dragging.
    • Fancy-ish View (Bad on fps currently)
    • Placeable walls
    • Toggle HUD
    • FILL particle
    • ANT (Langton's Ant): doesn't work as it should
    • KeyBinds over KeyListener
    • Element menu selection highlights
    • Uploaded as JPowder-sp.jar (stacked-part)

    @boxmein (View Post)

     That will be really helpful! I'll definitely use that when I start working on loading cps files.

    Edited 3 times by WinstonsDomain. Last: 26th Apr 2015