Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: I was trading...  (Read 505 times)

kilozombie

  • Bay Watcher
    • View Profile
I was trading...
« on: June 23, 2011, 10:19:42 pm »

and apparently, 214,496,729,643 dwarf bucks makes a trader stop trading. Do traders just stop trading once you give them something of amazing value?
Logged

FuzzyZergling

  • Bay Watcher
  • Zergin' erry day.
    • View Profile
Re: I was trading...
« Reply #1 on: June 23, 2011, 10:46:06 pm »

Was there some sort of message from the trader?
Logged

kilozombie

  • Bay Watcher
    • View Profile
Re: I was trading...
« Reply #2 on: June 23, 2011, 10:49:56 pm »

It just said "Blablabla doesn't seem willing to trade" after I traded the wealth.
Logged

Lamey

  • Bay Watcher
    • View Profile
Re: I was trading...
« Reply #3 on: June 24, 2011, 12:37:34 am »

Just a guess, but assuming the value is being treated as a signed 32 bit integer the highest value that can be stored would be 2147483647.  Add one to that and the computer will see it as -2147483648.

The number you gave is so large it will actually wrap around several times.  My binary math is really rusty but I if this the case then as far the trader is concerned you are offering him a 251,635,157 deficit in trading value.  He is understandably unwilling to take a 250 million buck loss on a trade.

Of course this whole post begs the question of what exactly is worth over 200 billion dorf bucks?  Glitched artifact?

For reference: 214,496,729,643 in binary is 11000111110001000000000101101000101011.  Only the last 32 bits will be kept because the number is too large.  Leaving us with 11110001000000000101101000101011.  A signed integer sees the last 1 as an indication that the number is negative.  To get the positive value of the same magnitude we must take the complement of that binary number (all 0s become 1s, and 1s become 0s) and add 1.

      11110001000000000101101000101011
xor 11111111111111111111111111111111
     ---------------------------------------------
=    00001110111111111010010111010100
+    00000000000000000000000000000001
     ---------------------------------------------
=    00001110111111111010010111010101

In decimal that's 251,635,157. (so the computer sees it as -251,635,157)
Logged

Lagslayer

  • Bay Watcher
  • stand-up philosopher
    • View Profile
Re: I was trading...
« Reply #4 on: June 24, 2011, 12:54:57 am »

They saw you offering so much that it was obviously too good to be true and called you out on your "scam".

Merchant: WOW! A 500000% profit for some trash we got out of our garage?
Admiral Ackbar: IT'S A TRAP!

Also, you weren't trading with elves were you? Perhaps you offered some taboo items.

JJtoocool

  • Bay Watcher
  • Unfortunate Accident: ∞
    • View Profile
Re: I was trading...
« Reply #5 on: June 24, 2011, 01:46:14 am »

I would agree with the Ackbar theory if Lamey wasn't right.
Logged
Quote from: Goblin 3 to Goblin 1
I heard that I died.
Quote from: Goblin 1 to Goblin 3
It was inevitable.
Quote from: Goblin 3 to Goblin 1
Goodbye.
Quote from: Goblin 1 to Goblin 3
Goodbye.

AutomataKittay

  • Bay Watcher
  • Grinding gears
    • View Profile
Re: I was trading...
« Reply #6 on: June 24, 2011, 03:10:45 am »

Does the high value actually cause it to roll around?

To op, was it elves you traded with?
Logged

Psieye

  • Bay Watcher
    • View Profile
Re: I was trading...
« Reply #7 on: June 24, 2011, 03:50:19 am »

Uh guys? Take into account the very high probability the OP is exaggerating with that number? It's probably elves and wooden bins.
Logged
Military Training EXP Analysis
Congrats, Psieye. This is the first time I've seen a derailed thread get put back on the rails.