4Dimensions Forum

General Category => Suggestions & Ideas => Topic started by: erwin on May 15, 2008, 05:04:13 am

Title: Gold bug..
Post by: erwin on May 15, 2008, 05:04:13 am
..is a nice story by Edgar Allan Poe.

But seriously..there's a small bug with split.

'gold'

        _                   4 DIMENSIONS FINANCIAL SERVICES
  _    |-|  _   -------------------------------------------
 |-|_  |-|_|-|  Gold in Bank:         [        176,698,033]
 |_|-| |_|-|_|  ------------------------------------------- 
 |_|-| |_|-|_|  Gold Carried:         [         25,730,089]
   |_|   |_|    -------------------------------------------
                Total Balance:        [        202,428,122]
                -------------------------------------------
                Tokens on file:     0 brass,      1 bronze.
                                    0 silver,     0 gold.
                -------------------------------------------
                Tradepoints   :     0 

'split 1'

You split 1 coins among 2 members -- 0 coins each.
1 coin was not splitable, so you keep the money.

*Edit: Need to be grouped to do this.

'gold'

        _                   4 DIMENSIONS FINANCIAL SERVICES
  _    |-|  _   -------------------------------------------
 |-|_  |-|_|-|  Gold in Bank:         [        176,698,033]
 |_|-| |_|-|_|  ------------------------------------------- 
 |_|-| |_|-|_|  Gold Carried:         [         25,730,090]
   |_|   |_|    -------------------------------------------
                Total Balance:        [        202,428,122]
                -------------------------------------------
                Tokens on file:     0 brass,      1 bronze.
                                    0 silver,     0 gold.
                -------------------------------------------
                Tradepoints   :     0 

So, you can earn about..86400 gold coins per day with this..
Title: Re: Gold bug..
Post by: Prometheus on May 15, 2008, 06:20:47 am
Okay this was in a group with 2 people. Split 1 by itself doesn't do anything. But for some reason in a group it does a split of 1 but it is probably trying to round up 1 for some reason.

Prometheus.
Title: Re: Gold bug..
Post by: erwin on May 15, 2008, 06:56:53 am
Something interesting.

If you are in a group with n number of people, and split (2n-1) coins, there's a potential gain of (n-1) coins.

Eg, I group with Lionheart and Amaimon, and I type split 5.

The number of coins on me don't increase / decrease, Amaimon gains 1 coin, Lionheart gains 1 coin.

Net gain of 2 coins.

Not very serious (can't really be exploited on a wide scale), but quite interesting.
Title: Re: Gold bug..
Post by: Prometheus on May 15, 2008, 07:01:37 am
Something else to take a look at. Make sure to bug it as well in case I can't figure this out.

Prometheus.
Title: Re: Gold bug..
Post by: Mordecai on May 18, 2008, 03:38:41 am
Is this fixed?
Title: Re: Gold bug..
Post by: Prometheus on May 18, 2008, 05:06:19 am
I fixed the 1 gold issues. I'm still trying to get my head wrapped around the code of the group split. It looks like it divides it by group_members and then also takes the remainder and that is where I get a little lost on it.Trying to figure this out.

Prometheus.