![]() |
#1 |
Knight
Join Date: Jan 2008
Posts: 926
![]() |
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.
![]() |
![]() |
![]() |
![]() |
#2 | |
Veteran
Join Date: Jun 2007
Posts: 1,391
![]() |
Quote:
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.) |
|
![]() |
![]() |
![]() |
#3 |
Knight
Join Date: Jan 2008
Posts: 926
![]() |
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?
![]() |
![]() |
![]() |
![]() |
#4 | |
Veteran
Join Date: Jun 2007
Posts: 1,391
![]() |
Quote:
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 ![]() |
|
![]() |
![]() |
![]() |
#5 |
Knight
Join Date: Jan 2008
Posts: 926
![]() |
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? |
![]() |
![]() |
![]() |
#6 |
Veteran
Join Date: Jun 2007
Posts: 1,391
![]() |
|
![]() |
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
ToME2.3.5 question | Estie | ToME | 0 | May 7, 2014 10:36 |
Ulfang the black drops 12 good objects | Haladon | Vanilla | 5 | September 5, 2013 10:51 |
Robe of Permanence or Black Dragon Scale? | ElectricPaladin | Vanilla | 9 | May 28, 2009 15:41 |
Black Breath in Oangband | jbissell | Variants | 1 | January 21, 2009 07:37 |
Black Stone background for Angband | Malak Darkhunter | Vanilla | 8 | April 14, 2008 08:21 |