Loading...

Solved Gold in stash

Discussion in 'Help Desk' started by Lolipop1777, Jul 4, 2018.

Thread Status:
Not open for further replies.
  1. Lolipop1777

    Lolipop1777 Active Member

    Joined:
    Apr 12, 2018
    Messages:
    151
    Likes Received:
    8
    Trophy Points:
    18
    Hi all!
    I can not put more than 33-34 mil gold in my stash.
    When I put few millions more and exit game and create new my gold balance is ~33 millons again.
    Thx!
     
  2. RandAlThor

    RandAlThor Senior Member

    Joined:
    Apr 18, 2018
    Messages:
    114
    Likes Received:
    202
    Trophy Points:
    43
    Taken from the "Custom Features" Page: Stash gold limit has been increased to 33,554,431
     
    BadKid and Kefflar32 like this.
  3. Atox

    Atox Senior Game Master Moderator

    Joined:
    Dec 21, 2015
    Messages:
    7,541
    Likes Received:
    2,781
    Trophy Points:
    113

    Hi there @Lolipop1777 , your question has been already answered by @Gix in a similar thread
    Regards.
     
    RandAlThor likes this.
  4. RandAlThor

    RandAlThor Senior Member

    Joined:
    Apr 18, 2018
    Messages:
    114
    Likes Received:
    202
    Trophy Points:
    43
    @Atox thanks for showing me the post....I thought it was intentionally set that way for w/e reason. Easy to fix, see below.
    EDIT: Change this value to resolve gold issue @Gix, @inayat

    [​IMG]

    The gold only stops at 33,554,431 because a 25 bit integer only goes that high. 2^25=33554432 You need to increase to a 32-bit integer, which is as high as you can go without code editing...thatll increase capacity to 2^32 or 4,294,967,295
     
    Last edited: Jul 4, 2018
    Atox likes this.
  5. inayat

    inayat Head Game Master Moderator

    Joined:
    Sep 12, 2016
    Messages:
    23,394
    Likes Received:
    5,982
    Trophy Points:
    113

    If you make it too high, there is a chance of roll-over.
    Making you lose the gold.
    same way as if you max clay golem and all synergies, his hp goes to 1 and gets one-shotted.
    We decided on this to prevent possible roll-over.

    stash of 33m is already a huge improvement compared to the 2.5m it previously was.
     
  6. RandAlThor

    RandAlThor Senior Member

    Joined:
    Apr 18, 2018
    Messages:
    114
    Likes Received:
    202
    Trophy Points:
    43
    Roll-over only occurs when the data limit was reached(you exceed the 4.3b) or you surpass the send bit limit. The send bit for gold is already set at a 32bit integer, so a 32 bit csv is safe to use.

    I'm not complaining about the gold limit, just letting you know how it can be fixed after seeing this:
    "It seems the gold cap is 33,554,431 even though it's been set to a much higher value" - Gix
    Cheers :)
     
  7. Gix

    Gix Founder

    Joined:
    Jan 1, 2005
    Messages:
    54,541
    Likes Received:
    5,145
    Trophy Points:
    113

    It was initially set higher but 33,554,431 is indeed the max possible value you can get without having to edit the bits size. We were initially thinking to increase it to 99,999,999 at first which should be more than enough, however modifying the bits size right now will corrupt existing characters and will require a new character to be created which is definetly something we want to avoid besides the current value already allows you to store more than then times the gold you can originally store per character anyway.

    The limit may be increased even more in the future, until then we will be adding a server side limit so it won't roll-over if you try to add more gold than the current limit is set to.
     
    Kefflar32 likes this.
  • Loading...
    Thread Status:
    Not open for further replies.
    Loading...