Recent stamp recover bug

  • yclee126
    14th Dec 2014 Member 0 Permalink

    See this. I certainly delete 'B' stamp, but if I load recent stamp, It's recovered..?

    http://youtu.be/xfV4sD-ODsw

    Edited 7 times by yclee126. Last: 14th Dec 2014
  • jacob1
    14th Dec 2014 Developer 0 Permalink
    The last stamp you have used or save is cached, so instead of loading the stamp from disk it just keeps it in memory. Apparently that isn't cleared when you delete a stamp ... I can probably fix it
  • yclee126
    14th Dec 2014 Member 0 Permalink
  • cctvdude99
    14th Dec 2014 Member 1 Permalink
    Actually, I can see this being useful if you accidentally delete the most recent stamp. It's not exactly a major or game breaking bug is it? All it does is literally load the most recent stamp, deleted or not.
    I don't see how it could annoy anyone?
    Edited once by cctvdude99. Last: 14th Dec 2014
  • yclee126
    14th Dec 2014 Member 0 Permalink

    @cctvdude99 (View Post)

    But for someone, It can be a bug.
    As you can see, Wiki says "L : Load last saved stamp", But actually it isn't.
    It means that this function is working wrong.

    Edited 4 times by yclee126. Last: 20th Feb 2016
  • cctvdude99
    14th Dec 2014 Member 0 Permalink
    @yclee126 (View Post)
    But fixing it doesn't really have any use. Leaving it as it does have a use, recovering a deleted stamp.
    There are no disadvantages to keeping the 'bug', but there are disadvantages to 'fixing' it (stamp permanently gone).
    There are advantages to keeping it (recovery of deleted stamp), but no advantages to 'fixing' it.
    Edited 2 times by cctvdude99. Last: 14th Dec 2014
  • yclee126
    15th Dec 2014 Member 0 Permalink

    @cctvdude99 (View Post)

     Well... Let's take a situation.

    I maked bomb A and bomb B.

    Then I saved stamp bomb A , then bomb B.

    Open a save to test, then I typed 'L' to load bomb B.

    But its test result was terrible, bomb B was failure.

    So I deleted the stamp of bomb B, then I reset the save.

    And I type 'L' to load the stamp of bomb A, but strangely loaded the stamp of bomb B.

    Why don't you uncomfortable then?

  • cctvdude99
    15th Dec 2014 Member 0 Permalink
    @yclee126 (View Post)
    because I can press K and load bomb B...
  • jacob1
    15th Dec 2014 Developer 0 Permalink
    I just got rid of the cache for the last stamp you loaded. 'l' will now always load the latest stamp from disk: https://github.com/simtr/The-Powder-Toy/commit/35782fdd10934a00595fff69bf9485265f887872
  • cctvdude99
    15th Dec 2014 Member 0 Permalink