Page 2 of 3

Re: Gold disappears in shops

Posted: Wed 12.08.2009, 12:50
by Thorbear
ThorMag have his two houses in -50ft and -150ft
I have not noticed any loss of money there, and I am pretty sure things have been sold after this bug was noticed.

Re: Gold disappears in shops

Posted: Sat 22.08.2009, 12:17
by PowerWyrm
Beholder wrote:well well, that's weird because i've over 900K in my house, and when i log yesretady after 3 days, i found nothing.
I've to sell some magic things, to recover some money.
it seems in not only in shops. Something must be bugged.
And.. Pleaseeeeee, i want my money back!.
Got 3 characters on the main server with a house. No gold in any of them. And two of the characters are level 50...
I can be wrong (because I didn't play in 3 weeks), but these chars had gold in their houses. One in town, the other two in the wild, so it's not related to depth. None of them have things for sale. Problem in the object compacting routine (I know the routine squishes gold first if the max number of objects has been reached)?

Re: Gold disappears in shops

Posted: Sat 22.08.2009, 13:24
by serina
I just found 279000 in my house 2 maps South of town... Probably from purchases made by other players. ZalPri was char-name

ZAL

Re: Gold disappears in shops

Posted: Sat 22.08.2009, 14:53
by Warrior
Hi Zal, can you check via accounts to see some details about these trades please?

Re: Gold disappears in shops

Posted: Sat 22.08.2009, 16:45
by serina
Warrior: I don't understand what you mean.

Re: Gold disappears in shops

Posted: Sat 22.08.2009, 22:15
by Ace
If you go to mangband.org and in the menue you see "accounts" in there you log yourself and and if necessary link to your game c´haracters. then you are able to review buy and sell histories on the website! :)

Re: Gold disappears in shops

Posted: Tue 25.08.2009, 07:04
by Ardor
In my home server I have had money disappear twice (from my house). The second time my door was open and an amulet was gone too, and I KNOW I closed that door.

Re: Gold disappears in shops

Posted: Mon 31.08.2009, 17:05
by Thorbear
RECENT HAPPENING: (Right, all of a sudden I'm struck by this bug too -.-)

Code: Select all

2009-08-31 18:24:39 [ThorMag] non, c'est la mort
You see a Ring of Speed (+7) {for sale}.
You drop 1600000 pieces of gold.
Time out Mark: 5910000, Last: 1325
2009-08-31 18:24:53 [ThorMag] Or something like that
2009-08-31 18:25:06 [ThorMag] Been a few years since I did french
2009-08-31 18:25:16 [ESinclair] i had a nice char...
2009-08-31 18:25:18 [ThorMag] O.o
Should be pretty well documentation to use if you're searching the log files... I hope.


EDIT:
Someone suggested we could have reached the maximum number of Gold Piles, and any overflow would disappear.
Shortly after my 1600000 AU disappeared, I made a test...
Image
I guess we have NOT reached the maximum number of piles...


EDIT 2:
Suggesting it only counts for houses...
http://thorbear.navhost.com/mangband/images/GOLD2.png

-Thorbear

Re: Gold disappears in shops

Posted: Mon 31.08.2009, 17:56
by Warrior
I am fairly sure this is related to the ancient bug with shooting magic missiles on rations of food. Will verify asap.
(thats a joke. we (and especially I) are clueless about this)

I've just had this happen to my test char, WarriorGOLD. He had three or four piles in two different houses, about 30k$ in total but now everything is gone. West of town.

Re: Gold disappears in shops

Posted: Mon 31.08.2009, 19:44
by Ace
its no bug but a feature ...

inflation is hitting the pits hard these days.... due to the financial crisis caused by the orks wandering around defgrading crops quality significantly...

Re: Gold disappears in shops

Posted: Tue 01.09.2009, 11:45
by PowerWyrm
A few ideas:
- http://mangband.org/developer/ticket/906
- http://mangband.org/developer/ticket/890
- http://mangband.org/developer/changeset/1085 (I've skipped this one when updating my variant because I found it suspicious...)
- I've fixed a lot of things in excise_object_idx(), delete_object_idx(), compact_objects_aux(), compact_objects() for my variant, you should probably check my source code (object2.c)
- in compact_objects(), gold is wiped first, whether it's in a house or not!!!
- note that items in houses are protected in compact_objects() from wiping only if they are in town houses... all items in wilderness houses are subject to wiping just like dungeon items

My idea about the subject is that the wilderness is now full of junk and the maximal number of objects has been reached, leading to object compaction. Since gold is wiped first and no check is made whether the pile is in a house or not, we get gold disappearing from houses... I know TomeNET has a "wilderness cleaner" which is launched periodically to wipe any unused object left in the wilderness, and we should probably implement something similar in MAngband.

Re: Gold disappears in shops

Posted: Tue 01.09.2009, 13:39
by Thorbear
PowerWyrm wrote:My idea about the subject is that the wilderness is now full of junk and the maximal number of objects has been reached, leading to object compaction. Since gold is wiped first and no check is made whether the pile is in a house or not, we get gold disappearing from houses... I know TomeNET has a "wilderness cleaner" which is launched periodically to wipe any unused object left in the wilderness, and we should probably implement something similar in MAngband.
May I question this theory by referring to the image above? 178 Piles of gold, dropped in the wilderness.
Or will this only apply every time the server "saves"?
I'll gladly sacrifice a couple piles of 10AU if it solves this bug =P

EDIT:
I hereby state that this bug is not caused by too many items dropped in wilderness.
I dropped 110 piles of 10 AU, and left it there for 2 hours and 20 minutes, without a single pile disappearing.

Re: Gold disappears in shops

Posted: Wed 02.09.2009, 01:13
by Ardor
Thorbear wrote:I hereby state that this bug is not caused by too many items dropped in wilderness.
I dropped 110 piles of 10 AU, and left it there for 2 hours and 20 minutes, without a single pile disappearing.
Yea, on my home server their should me almost no items in the wilderness, but my home was in the wilderness...

Re: Gold disappears in shops

Posted: Wed 02.09.2009, 11:39
by PowerWyrm
Yea, on my home server their should me almost no items in the wilderness, but my home was in the wilderness...
So gold disappears on local servers even when there are no objects in the wilderness?
Then I would suggest trying to rollback changeset 1085 and see if it fixes the issue...

Re: Gold disappears in shops

Posted: Thu 03.09.2009, 16:10
by Billsey
PowerWyrm wrote:Then I would suggest trying to rollback changeset 1085 and see if it fixes the issue...
Changeset 1085 looks valid to me. It deals only with the instance of purchasing a worthless item (price is zero). In that case it's OK to add the payment to a stack of gold (value of stack + 0 = value of stack) but not OK to create a new stack of gold with zero pieces.

My suggestion is two fold, we protect items within wilderness houses as we do with items in town houses and we move vegetables to the top of the list for items to remove when we fill up, instead of gold. We normally have more vegetables than anything else, and having them rot away when left too long makes sense, they're not prepared food like the other rations.