Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Variants

Reply
 
Thread Tools Display Modes
Old September 1, 2014, 19:05   #1
Therem Harth
Knight
 
Join Date: Jan 2008
Posts: 926
Therem Harth is on a distinguished road
tome2-ah: integer overflow in black market?

Black market run by Gary Gygaz the half-troll, cap of 20,000 AU. Character is a half-elf Paladin. Trying to sell either the quarterstaff Eriril or the Spear of Orome results in a requested sale price of 1 AU. I know the black market is stingy, but that's just ridiculous.
Therem Harth is offline   Reply With Quote
Old September 1, 2014, 20:58   #2
AnonymousHero
Veteran
 
AnonymousHero's Avatar
 
Join Date: Jun 2007
Posts: 1,372
AnonymousHero is on a distinguished road
Quote:
Originally Posted by Therem Harth View Post
Black market run by Gary Gygaz the half-troll, cap of 20,000 AU. Character is a half-elf Paladin. Trying to sell either the quarterstaff Eriril or the Spear of Orome results in a requested sale price of 1 AU. I know the black market is stingy, but that's just ridiculous.
Hah!

If you're feeling adventurous you could try setting a debugging break point in the routine which calculates the to see if you can give me clues to reproduce and/or fix it. If you can do this in a fresh game with debug commands (i.e. to spawn the spear), then I'd appreciate if you let me know.

(Btw, I'm among one the people who hate CHA in computer-driven RPGs, so I think I'm going to remove it... which might in turn fix this issue.)
AnonymousHero is offline   Reply With Quote
Old September 1, 2014, 21:45   #3
Therem Harth
Knight
 
Join Date: Jan 2008
Posts: 926
Therem Harth is on a distinguished road
Thanks. I lost the character this happened for, but I'll see if I can reproduce it. You know which files/functions are involved or is that up to me?
Therem Harth is offline   Reply With Quote
Old September 1, 2014, 22:26   #4
AnonymousHero
Veteran
 
AnonymousHero's Avatar
 
Join Date: Jun 2007
Posts: 1,372
AnonymousHero is on a distinguished road
Quote:
Originally Posted by Therem Harth View Post
Thanks. I lost the character this happened for, but I'll see if I can reproduce it. You know which files/functions are involved or is that up to me?
(Depending on which branch you're in, files might be named *.c or *.cc. The latter is the more recent code.)

I think store.cc might be the initial place to look. I can't recall exactly what/where the pricing routine is, but it's got to be called from store.cc .
AnonymousHero is offline   Reply With Quote
Old September 1, 2014, 23:00   #5
Therem Harth
Knight
 
Join Date: Jan 2008
Posts: 926
Therem Harth is on a distinguished road
Okay, this was the master version so it's still store.c.

Maybe I should first see if it's reproducible in the C++ branch?
Therem Harth is offline   Reply With Quote
Old September 1, 2014, 23:36   #6
AnonymousHero
Veteran
 
AnonymousHero's Avatar
 
Join Date: Jun 2007
Posts: 1,372
AnonymousHero is on a distinguished road
Quote:
Originally Posted by Therem Harth View Post
Okay, this was the master version so it's still store.c.

Maybe I should first see if it's reproducible in the C++ branch?
It probably is (not much change around this kind of thing), but confirmation would be good.
AnonymousHero is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ToME2.3.5 question Estie ToME 0 May 7, 2014 09:36
Ulfang the black drops 12 good objects Haladon Vanilla 5 September 5, 2013 09:51
Robe of Permanence or Black Dragon Scale? ElectricPaladin Vanilla 9 May 28, 2009 14:41
Black Breath in Oangband jbissell Variants 1 January 21, 2009 06:37
Black Stone background for Angband Malak Darkhunter Vanilla 8 April 14, 2008 07:21


All times are GMT +1. The time now is 04:01.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.