Gold disappears in shops

Think you've found a bug? Please report it here.
Thorbear
Two-Headed Troll
Posts: 131
Joined: Wed 12.01.2005, 15:00
Contact:

Re: Gold disappears in shops

Post by Thorbear » Wed 12.08.2009, 12:50

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.
I am Thorbear...

PowerWyrm
Balrog
Posts: 1574
Joined: Sun 27.11.2005, 15:57

Re: Gold disappears in shops

Post by PowerWyrm » Sat 22.08.2009, 12:17

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)?

serina
Crystal Ooze
Posts: 373
Joined: Sat 15.09.2007, 18:42

Re: Gold disappears in shops

Post by serina » Sat 22.08.2009, 13:24

I just found 279000 in my house 2 maps South of town... Probably from purchases made by other players. ZalPri was char-name

ZAL

User avatar
Warrior
Evil Iggy
Posts: 667
Joined: Sat 26.10.2002, 15:00
Location: Norway
Contact:

Re: Gold disappears in shops

Post by Warrior » Sat 22.08.2009, 14:53

Hi Zal, can you check via accounts to see some details about these trades please?
-- Mangband Project Team Member

serina
Crystal Ooze
Posts: 373
Joined: Sat 15.09.2007, 18:42

Re: Gold disappears in shops

Post by serina » Sat 22.08.2009, 16:45

Warrior: I don't understand what you mean.

Ace
Crystal Ooze
Posts: 368
Joined: Fri 15.02.2008, 12:50

Re: Gold disappears in shops

Post by Ace » Sat 22.08.2009, 22:15

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! :)

Ardor
Giant Gnat
Posts: 38
Joined: Sat 15.08.2009, 18:13

Re: Gold disappears in shops

Post by Ardor » Tue 25.08.2009, 07:04

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.

Thorbear
Two-Headed Troll
Posts: 131
Joined: Wed 12.01.2005, 15:00
Contact:

Re: Gold disappears in shops

Post by Thorbear » Mon 31.08.2009, 17:05

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
Last edited by Thorbear on Mon 31.08.2009, 17:36, edited 1 time in total.
I am Thorbear...

User avatar
Warrior
Evil Iggy
Posts: 667
Joined: Sat 26.10.2002, 15:00
Location: Norway
Contact:

Re: Gold disappears in shops

Post by Warrior » Mon 31.08.2009, 17:56

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.
-- Mangband Project Team Member

Ace
Crystal Ooze
Posts: 368
Joined: Fri 15.02.2008, 12:50

Re: Gold disappears in shops

Post by Ace » Mon 31.08.2009, 19:44

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...

PowerWyrm
Balrog
Posts: 1574
Joined: Sun 27.11.2005, 15:57

Re: Gold disappears in shops

Post by PowerWyrm » Tue 01.09.2009, 11:45

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.

Thorbear
Two-Headed Troll
Posts: 131
Joined: Wed 12.01.2005, 15:00
Contact:

Re: Gold disappears in shops

Post by Thorbear » Tue 01.09.2009, 13:39

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.
I am Thorbear...

Ardor
Giant Gnat
Posts: 38
Joined: Sat 15.08.2009, 18:13

Re: Gold disappears in shops

Post by Ardor » Wed 02.09.2009, 01:13

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...

PowerWyrm
Balrog
Posts: 1574
Joined: Sun 27.11.2005, 15:57

Re: Gold disappears in shops

Post by PowerWyrm » Wed 02.09.2009, 11:39

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...

Billsey
King Vampire
Posts: 272
Joined: Sun 12.02.2006, 14:36
Location: Oregon, USA
Contact:

Re: Gold disappears in shops

Post by Billsey » Thu 03.09.2009, 16:10

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.
Mangband Project Team Member

Post Reply