Save powder toy!

  • Minishooz
    13th Feb 2012 Member 0 Permalink
    apparently when tpt server is full of saves (IDs get over 999999) then tpt server will crash. There needs to be a way to stop so many saves from being created. There should be a rule to prevent constantly creating saves. also I would like to ask if old IDs of deleted saves can be replaced. Also is there a way of creating space for more saves as it could save the server :D?
  • Xorite
    13th Feb 2012 Member 0 Permalink
    @Minishooz (View Post)
    Reusable ID's - bad idea.
  • jacksonmj
    13th Feb 2012 Developer 0 Permalink
    No, it will not crash. Why do you think it will? And why over 999999?

    Provided Simon has used a sensible data type for save IDs in the database, there is no need to worry until save IDs start approaching 2,147,483,647. Even then, any problems are likely to happen in the client not the server.

    The only time problems happened in the past was when the filesystem reached the maximum number of files it could store, and I believe that has been fixed so that it won't cause problems again.
  • tommig
    13th Feb 2012 Member 0 Permalink

    jacksonmj:

    2,147,483,647 
    Tad random???
  • jacksonmj
    13th Feb 2012 Developer 0 Permalink
    @tommig (View Post)
    Not quite, it's the maximum size of a 4 byte signed integer. 231-1

    For example, the "!load" command in the console stores the save ID in a signed int. I'm not sure why, because it doesn't do much with it, only checks whether it's not equal to zero and then passes the original character string to another function. There might be other places in the game where save ID is stored as an int, I haven't bothered to check.
  • Finalflash50
    13th Feb 2012 Banned 0 Permalink
    This post is hidden because the user is banned
  • tommig
    13th Feb 2012 Member 0 Permalink

    @jacksonmj (View Post)

    Ah... That... I see how...

  • Minishooz
    13th Feb 2012 Member 0 Permalink
    @Finalflash50 (View Post)

    what do you mean?
    @jacksonmj (View Post)

    somebody said it would so i thought it was true. 999999 I just thought that because all the IDs I see are 6 digit.
  • MasterMind555
    13th Feb 2012 Member 0 Permalink
    @Minishooz (View Post)

    *facepalm* Because we didn't go over it! Will TPT crash when we will have V74.0 ? Of course not, and we aren't there yet
    ( For people in the future, Please don't necro this )
  • SkinnySatinTiger
    13th Feb 2012 Member 0 Permalink
    Edited once by SkinnySatinTiger. Last: 3rd Oct 2022