Tech Png's

Discussion in 'Open' started by Gayvid`, Jul 7, 2018.

  1. Gayvid`

    Gayvid` Yes, I'm a well-known member

    Joined:
    Sep 12, 2015
    Messages:
    544
    Likes Received:
    186
    How does TT store an entire tech in a PNG? Seriously, that makes no sense! It's a picture!

     
  2. layer1

    layer1 Well-Known Member

    Joined:
    Jun 14, 2017
    Messages:
    227
    Likes Received:
    264
    You can save metadata in PNGs and snapshots are a nice implementation of doing that.

     
    Lord Zarnox likes this.
  3. WhitePaw2002

    WhitePaw2002 Modding Husky

    Joined:
    Jan 7, 2016
    Messages:
    732
    Likes Received:
    1,296
    Techs are saved in the color of PNGs.
    It's a type of encryption that I don't remember the name of, and is hard to see.

     
    HAL and Lord Zarnox like this.
  4. ZeroGravitas

    ZeroGravitas Breaker of Games

    Joined:
    Jun 29, 2017
    Messages:
    2,722
    Likes Received:
    2,998
    Steganography.

    Probably. Although I don't remember hearing that from the devs, directly, and I don't know enough about PNGs to be sure they can't just store enough info for a tech in their textual metadata. (Or beyond the readable image data range of the file, as this page talks about as an option.)

     
  5. harpo99999

    harpo99999 ah kick till it starts

    Joined:
    Aug 14, 2014
    Messages:
    1,940
    Likes Received:
    884
    I DID hear of it from the devs during the KICKSTARTER. and from what dim distant details that I have a vague memory of reading, the encoding uses the least significant bit of the colour info in the png, which is why the editing of the png destroys the tech data

     
    HAL and ZeroGravitas like this.
  6. Lost Ninja

    Lost Ninja Well-Known Member

    Joined:
    Jul 17, 2015
    Messages:
    1,191
    Likes Received:
    843
    Having looked at the metadata of a snapshot it doesn't appear to be stored there... :(

    That would have been too easy though. :D

     
    ZeroGravitas likes this.
  7. HAL

    HAL Well-Known Member
    TT Translator

    Joined:
    Oct 7, 2016
    Messages:
    22
    Likes Received:
    70
    I think, Tech info is written in the RGB least significant bit(LSB).

    sample1 (Snapshot)
    [​IMG]
    7(W)×7(D)×6(H) Blocks
    GSO Cosmonaut SAP Cab×1 + Venture Standard Block×294

    sample2 (Snapshot)
    [​IMG]
    7(W)×7(D)×12(H) Blocks
    GSO Cosmonaut SAP Cab×1 + Venture Standard Block×588
    Double sample1 volume.

    I accentuated the LSB.

    sample1
    [​IMG]
    There is a noise on the bottom of the picture.

    sample2
    [​IMG]
    The noise increase about 2 times.

     
    WhitePaw2002, ZeroGravitas and layer1 like this.
  8. ZeroGravitas

    ZeroGravitas Breaker of Games

    Joined:
    Jun 29, 2017
    Messages:
    2,722
    Likes Received:
    2,998
    How did you do that? Just a Photoshop manipulation?

    I wonder if you could manage to make a snapshot look totally black (or white), by glitching the camera inside something, for example, so you could literally just see the data pattern on the Alpha channel...

     
  9. Gayvid`

    Gayvid` Yes, I'm a well-known member

    Joined:
    Sep 12, 2015
    Messages:
    544
    Likes Received:
    186
    That is the most efficient way of storing data that i know of. Yet the PNG's still don't take up much space. It probably copies the binary code from your tech and your CPU converts it to an image like that, atleast that is my theory.

     
  10. HAL

    HAL Well-Known Member
    TT Translator

    Joined:
    Oct 7, 2016
    Messages:
    22
    Likes Received:
    70
    I used a "青い空を見上げればいつもそこに白い猫".
    It is a general-purpose file analyzer.

    If you use it, you'll extract just the LSB from the PNG and make it output a image.(of course, you can analyze Alpha channel)
    However, it is not English support:(

     
    ZeroGravitas likes this.

Share This Page