TPT saves

  • LordOfPotatoes
    8th Jun 2020 Member 0 Permalink

    Hi, I want to make a program that uses saves from TPT, at first I thought the .cps files were modified .cs files but I got something like that:

     

    OPS1^?`k1?BZh91AY&SYJ??yK??????????????????????????P????????U@?@?E??????????????????d?`3mR???2?,?JACL[k,???6e(?kET?4?   ?,?m?kY[jh?m?j???X????,???3[mP??*)??U??d?)?IU??P?IEU??1D
    F?KFe??bV?kp??X??????????z?*?f??vM??Y??B?o?9?wA%$?[Q???g#?j???
    Q??.z??m?UB??M?nv????DPH??*???????????????????????????????>??-
     
    Does anyone know how TPT files are saved or encrypted?
    Edited once by LordOfPotatoes. Last: 8th Jun 2020
  • INFINITY-BOI
    8th Jun 2020 Banned 0 Permalink
    This post is hidden because the user is banned
  • LordOfPotatoes
    8th Jun 2020 Member 0 Permalink

    cgi for personal use, cuz is inlegal to upload cgi saves

  • INFINITY-BOI
    8th Jun 2020 Banned 0 Permalink
    This post is hidden because the user is banned
  • LordOfPotatoes
    8th Jun 2020 Member 0 Permalink

    BTW, is there any way to edit saves using, for example, visual studio

    Edited once by LordOfPotatoes. Last: 8th Jun 2020
  • moonheart08
    8th Jun 2020 Member 0 Permalink

    Personal use is 100% allowed. As long as you're not uploading it for public access. (private saves are fine)

    No. why would you edit a save using Visual Studio????
    Just use a lua script.

  • jacob1
    8th Jun 2020 Developer 0 Permalink
    @LordOfPotatoes (View Post)
    I think you are on the wrong track here, it would be much easier to generate a Lua script to write out the save, than it would be to understand the save format and generate your own saves.

    The save code itself is in https://github.com/The-Powder-Toy/The-Powder-Toy/blob/master/src/client/GameSave.cpp
    See serializeOPS (for creating the save) and readOPS (for parsing the save)

    CGI saves are not allowed, even for private use. You cannot upload a cgi save and spread it around or link it anywhere. CGI saves, even unpublished, may be deleted.