TPT is now free to play!

  • 4e616d65
    1st Apr 2018 Member 0 Permalink

    I use 93.1

  • nonnymoose
    1st Apr 2018 Member 0 Permalink

    @jacob1 This build is unacceptable. Even if it's just for April Fools', it was NOT built from the sources on GitHub!

    (citation: cannot transfer powder.pref between the two, even when I take into account that you changed the salt)
    What good is open source software if the OFFICIAL UPDATE BINARY is NOT BUILT FROM THE SOURCE?????

  • jacob1
    1st Apr 2018 Developer 0 Permalink
    @nonnymoose (View Post)
    Correct me if i'm wrong, but I do not need to provide the exact compile flags used.

    You can see here, if you add -DSALT=whatever to the command line, you can change the salt: https://github.com/ThePowderToy/The-Powder-Toy/blob/master/src/gui/game/GameController.cpp#L46

    The build server doesn't support editing the code before compiling. It doesn't look like I published the official build server code, but the snapshot build server code is here: https://git.starcatcher.us/Jacob/buildserver-snapshot
    Edited 2 times by jacob1. Last: 1st Apr 2018
  • nonnymoose
    1st Apr 2018 Member 0 Permalink

    @jacob1 (View Post)

     (By the way, the anger is for April Fools; I'm actually just miffed)

     

    I was actually not talking about that. I extracted the salt from the official binary using strings and built TPT with that salt. It still didn't load my powder.pref file.

     

    EDIT: Wait, I just read your entire post. Now I think it's some kind of bug.

    Edited 2 times by nonnymoose. Last: 1st Apr 2018
  • jacob1
    1st Apr 2018 Developer 0 Permalink
    @nonnymoose (View Post)
    Someone else on IRC is also having difficulties, I'll play around with it after I eat lunch. It starts with X6hc and ends with iXe. Literally just used
    export CPPDEFINES='SALT="\"[REDACTED]\"" SERVERSALT="\"[DATA EXPUNGED]\""'
  • nonnymoose
    1st Apr 2018 Member 0 Permalink

    @jacob1 The issue might be that I didn't include the server salt. I'll try it again.

     

    EDIT: No, it still has the problem. I included both hashes and checked to ensure that they ended up in the binary, and it still didn't work :(

    Edited once by nonnymoose. Last: 1st Apr 2018
  • DiamondChef
    1st Apr 2018 Member 0 Permalink

    @jacob1 (View Post)

     Is your lawyers Fighters?! I hope not..

  • Lockheedmartin
    1st Apr 2018 Moderator 1 Permalink
  • nonnymoose
    1st Apr 2018 Member 0 Permalink

    jacob1- Actually, never mind. Sorry to waste your time. I don't care anymore (spending the entire day on something that will go away at the end of the day?)

  • jacob1
    1st Apr 2018 Developer 0 Permalink
    @nonnymoose (View Post)
    Actually I am pretty interested. I did figure it out. It's a bug in the code, it's a miracle the code works as is, it could easily cause crashes or broken hashes.

    On this line it's adding the coins as an int to the char* "-", instead of first converting it to std::string. I did some very basic testing and that's definitely not working properly and can cause weird issues.

    You'll probably have to compile a c++ program to get the same behavior and replicate the hashes.
    Edited once by jacob1. Last: 1st Apr 2018
Locked by jacob1: april fools