Dismiss Notice
This Section is READ ONLY - All Posts Are Archived

64 bit integer for character gold variable

Discussion in 'Release 3 Feedback' started by jlpicard2, Feb 24, 2014.

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

    jlpicard2 Avatar

    Messages:
    33
    Likes Received:
    14
    Trophy Points:
    8
    I posted this in comment to a picture in the Funny Pictures thread, but I think it needs separated out into its own thread. Current, the amount of gold per character seems to be a 32 bit signed integer, which gives a maximum amount of 2,147,483,647 gold. Given that this project will run for many years, I think this could be too low a value.

    I think we need a 64 bit integer instead of a 32 bit integer for the gold variable. That would give a max gold of 9,223,372,036,854,775,807. This is assuming that the integer stays signed, in case we needed negative gold or debt.
     
  2. Dermott

    Dermott Avatar

    Messages:
    761
    Likes Received:
    1,346
    Trophy Points:
    105
    Gender:
    Male
    Location:
    Florida
    Or, conversely, balance the game in terms of drops, weight, values, NPC merchant interactions, etc so that reaching the 2.147Billion mark is difficult to impossible for YEARS to achieve.

    Also, commas/number separators. Those need to be added in as well.

    Edit: Adding in some specific gold limiting examples:

    - Item Weight and Carry Capacity. I should not be able to carry tens of thousands of an item much less tens of millions to begin with

    - Currency Drops. These should be kept low with loot drops being geared more towards equipment and resources for crafting.

    - Tiered Currency. Many people consider higher numbers in general the basis of an economy in trouble and lower numbers to be more healthy. Tiered currencies (Copper, Silver, Electrum, Gold, Paladium, Platinum) helps hide the higher number of the base currency (Copper) in favor of a higher tier (Gold, Platinum) such as 1,000 gold = 1,000,000 Copper.

    - NPC Vendor Limitations. This was one aspect that kept early UO in check yet allowed players to make a decent profit while they were building a crafter's skill. The NPC vendor should never buy from the player millions of an item at a time. The vendor should have a base "need" of X items at Y price with it scaling to a "max stock" where the vendor will not buy anymore until some are "sold off" either to other players or to a timer-based reset. The X and Y values would scale inversely. In older UO, you could only sell 5 items at a time (stacked or not), however in this case, the only limit should be how many of an item the vendor will buy at the Y price shown.
     
    Phredicon likes this.
  3. Sinclair

    Sinclair Avatar

    Messages:
    522
    Likes Received:
    840
    Trophy Points:
    75
    Gender:
    Male
    Location:
    Germany
    But this would assume the client is in 64 Bit compiled?
     
  4. jlpicard2

    jlpicard2 Avatar

    Messages:
    33
    Likes Received:
    14
    Trophy Points:
    8
    No. It just means that internally 8 bytes (64 bits) are used to store the gold value instead of 4 bytes (32 bits). It has nothing to do with how the program is compiled.

    Integer (computer science)
     
    NRaas likes this.
  5. Sinclair

    Sinclair Avatar

    Messages:
    522
    Likes Received:
    840
    Trophy Points:
    75
    Gender:
    Male
    Location:
    Germany
    Ah you mean the data type ^^
     
  6. tekkamansoul

    tekkamansoul Avatar

    Messages:
    958
    Likes Received:
    1,401
    Trophy Points:
    105
    Gender:
    Male
    Location:
    SF
    2 billion gold is too few?

    WHAT LOL
     
    Phredicon likes this.
  7. SmokerKGB

    SmokerKGB Avatar

    Messages:
    2,227
    Likes Received:
    2,805
    Trophy Points:
    165
    Gender:
    Male
    Location:
    Pittsburg, CA

    Excuse me for saying, but "are you nut's"?

    -I was hoping they would limit Gold to 1 million
    -I was hoping for Zero Gold in loot, just items to sell or resources
    -I was hoping NPCs would get over stocked and stop buying every single item.
    -I was hoping they would add wagons/carts and pack horses to gather at least 10 logs/ores at a time (I see weight being a real problem)

    And now you're suggesting the "number" is too small at 2 billion, and you want it to be more like 9.223 Trillion (what comes after a trillion? is that a googleplex? Yes, that's a real name for a very large number, 10^googol), I guess you don't believe that currency should have any value. And the economy should just run wild...
     
    Phredicon likes this.
  8. NRaas

    NRaas Avatar

    Messages:
    3,984
    Likes Received:
    5,841
    Trophy Points:
    165
    Gender:
    Male
    Location:
    Glenraas

    9,223,372,036,854,775,808 ?

    That is 9.223 Quintillion. :)
     
  9. Dermott

    Dermott Avatar

    Messages:
    761
    Likes Received:
    1,346
    Trophy Points:
    105
    Gender:
    Male
    Location:
    Florida
    Quadrillion comes after Trillion.

    Also as an aside, the largest currency bill in (real life) existence is 100 Trillion (100,000,000,000,000) and I have one :)
     
  10. Asclepius

    Asclepius Avatar

    Messages:
    1,651
    Likes Received:
    6,030
    Trophy Points:
    125
    Gender:
    Male
    Location:
    Perth West Australia
    Umm, was that wise? Telling everyone about your fabulous wealth??? :eek:

    I recommend a nest of machine guns facing the front door, land mines all around your property, and explosive alarms on all entrances.

    (Not that I or anyone else would even consider anything evil....:rolleyes:)

    I suppose it's in some currency like the Vietnamese dhong.......
     
    NRaas likes this.
  11. SmokerKGB

    SmokerKGB Avatar

    Messages:
    2,227
    Likes Received:
    2,805
    Trophy Points:
    165
    Gender:
    Male
    Location:
    Pittsburg, CA

    hehe, is that Peso's or Ruble's? As far as I know the largest USD note was $100,000 made strictly for bank to bank transfers. They were talking about minting a 1 trillion coin made of Platinum to replace the paper bills but they can't make up their minds... I don't think China wants it.

    Dude, you could pay the National Debit and have change due...
     
  12. Athelstan

    Athelstan Avatar

    Messages:
    135
    Likes Received:
    177
    Trophy Points:
    18
    I guessing it's a Zimbabwean dollar (Z$) :D
     
  13. jlpicard2

    jlpicard2 Avatar

    Messages:
    33
    Likes Received:
    14
    Trophy Points:
    8
    Most currencies are reissued before such valuations are reached. You have to turn in all of your old dollars in exchange for new dollars by X date, or the old dollars become completely worthless.

    Zimbabwean dollar
     
  14. Dermott

    Dermott Avatar

    Messages:
    761
    Likes Received:
    1,346
    Trophy Points:
    105
    Gender:
    Male
    Location:
    Florida
    Yes, it's Zimbabwean and it's such a valuable note you can get one for about $5. :p
     
    Athelstan likes this.
  15. Curt

    Curt Avatar

    Messages:
    1,639
    Likes Received:
    2,356
    Trophy Points:
    125
    Gender:
    Male
    Location:
    Sweden
    9,223,372,036,854,775,808 is
    9 trillion
    223 billiard
    372 billion
    36 milliard
    854 million
    775 thousand
    and 808
    as i see it
     
    Pyro likes this.
  16. NRaas

    NRaas Avatar

    Messages:
    3,984
    Likes Received:
    5,841
    Trophy Points:
    165
    Gender:
    Male
    Location:
    Glenraas
    British Long Scale ?

    Sound call, considering the background of the game. :)
     
  17. Pyro

    Pyro Avatar

    Messages:
    183
    Likes Received:
    157
    Trophy Points:
    28

    I was wondering if this was going to come up at all. People look at me funny when I say numbers like this, however. Pity.
     
  18. NRaas

    NRaas Avatar

    Messages:
    3,984
    Likes Received:
    5,841
    Trophy Points:
    165
    Gender:
    Male
    Location:
    Glenraas
    Looks at @Pyro funny. :)
     
  19. jlpicard2

    jlpicard2 Avatar

    Messages:
    33
    Likes Received:
    14
    Trophy Points:
    8
    Bill Gates is worth 76 billion USD. He would be capped at 2 billion with only a 32 bit integer.

    The World's Billionaires
     
Thread Status:
Not open for further replies.