For the second time in the last few games, I've been locked out of a shop for no good reason I can think of:

You have 2 scrolls of Word of Recall (e).
Arghhh! I have had enough abuse for one day!
Out, out, out!
The doors are locked.

What I was trying to do was buy a whole stack of identity scrolls...

I thought it should be impossible to insult a shopkeeper with haggling off? And I couldn't have stolen something by mistake because that command isn't even accessible in roguelike keys...

NerdanelVampire: The same thing just happened to me.

Buying 3 scrolls of Enchant Weapon To-Hit (e).
You quickly agree about the price.
You'd better be kidding!
Hmmm, nice weather we're having.
Arghhh! I have had enough abuse for one day!
Out, out, out!

I think buying a stack of things seems to be the common thread here. I also had haggling off, and by reflex I enter-keyed quickly past any prompts. For me the event took place in a dungeon store.

NerdanelVampire: I have now extra information. The bug is unrelated to stacks, but for me at least it seems to be connected with dungeon stores (in Theme). If anyone is interested, I have a savefile which is about to exhibit this problem. Go to the potion store, try to buy anything, and the problem appears. I haven't tried all the shops, but at least the rare jewelry one has the same problem, but several other's don't, like the speed ring shop, the ordinary jewelry shop, and the rare footwear shop.

MassimilianoMarangio: You can send the savefile to me (m.marangio@web.de).

NeilStevens: "in Theme?" Please distinguish ToME bugs from module bugs more clearly in the future.

NerdanelVampire: Note that I only confirmed the bug. I assumed the bug was also to be found in the main ToME as the original poster didn't mention otherwise, although after a while I was starting to get suspicions.

MassimilianoMarangio: I've received the savefile, thank you. There are some errors with the shop owners of the Theme module. One error was reported in the forum: max inflate (second number of I-lines) + hated cost (first number of C-lines) should be lesser than 400, otherwise the selling price will be always 1 AU.

Changing the values of the shop-owner in the savefile, Zamin, in the same way (e.g. 180 + 150 = 330 instead of 300 + 300 = 600) seems to fix this bug, but some more testing is needed.

MassimilianoMarangio: The values of the ow_info.txt file are stored in bytes, i.e. values over 255 produce some wrap-around-errors. One of these errors sets the last_offer variable to a higher value than the auto-haggled price and produces the reported error.

To fix both bugs, all values greater than 200 hese should be replaced e.g. by 190.

NeilStevens: So the original poster must also have been running Theme?

JulesBean: No, I was running ToME v2.2.7

MassimilianoMarangio: There are two shop owners without C-lines and some values are also over 200 in the ow_info.txt file of ToME. I've added the two missing C-lines since I got an owner with a purse of 0.

BugReport91 (last edited 2004-09-20 14:49:00 by MassimilianoMarangio)