It seems that you're using an outdated browser. Some things may not work as they should (or don't work at all).
We suggest you upgrade newer and better browser like: Chrome, Firefox, Internet Explorer or Opera

×
I've been playing Secret of the Silver Blades for a few days and just noticed on the purchase of my 3rd Wand of Magic Missiles, Marcus is taking WAY too much of my money. Marcus's fighter is charging 26,464 GP for this "trinket" and I have 23,300 PP in the pool (lol, I just said "pee pee in the pool"). When I make the purchase, I only have 4,900 Platinum left in the pool. That's 18,400 PP that he took which is 92,000 GP!

I remember CotAB that Zhentil Keep sold one with a weird combo of numbers (not divisible by 10) and in Stephen Lee's excellent walkthrough guide, he explained this is because of an "unsigned 16-bit integer overflow". I'm assuming something similar is happening here? I don't recall getting ripped off in Curse, but I also wasn't paying attention like I am right now.

I've been all over the interwebs reading about these games since I started playing PoR but I don't recall anyone mentioning this. Is it a bug or is it a problem with my game?
LOL, now the woman is taking advantage of me! I just defeated everyone at the Marcus "trinket" shop and now there's a woman there. She's selling the same stuff but now the Wand of Magic Missile is "only" 23,000 GP. I pooled my money, showing 18,125 PP and made the purchase, and now I'm left with 667 PP and 4 GP. That's 87,286 GP! She's also selling Arrow +1 for only 50 (the fighter was selling them for 200) and alas, when I purchase, my 667 PP turns into 657, so that works correctly at least.

Luckily it's an RPG, so I'm swimming in PP (*snicker*) and don't care if it's 23K or 87K but wow, what an error! :-P
avatar
thisisfutile: I've been playing Secret of the Silver Blades for a few days and just noticed on the purchase of my 3rd Wand of Magic Missiles, Marcus is taking WAY too much of my money. Marcus's fighter is charging 26,464 GP for this "trinket" and I have 23,300 PP in the pool (lol, I just said "pee pee in the pool"). When I make the purchase, I only have 4,900 Platinum left in the pool. That's 18,400 PP that he took which is 92,000 GP!

I remember CotAB that Zhentil Keep sold one with a weird combo of numbers (not divisible by 10) and in Stephen Lee's excellent walkthrough guide, he explained this is because of an "unsigned 16-bit integer overflow". I'm assuming something similar is happening here? I don't recall getting ripped off in Curse, but I also wasn't paying attention like I am right now.

I've been all over the interwebs reading about these games since I started playing PoR but I don't recall anyone mentioning this. Is it a bug or is it a problem with my game?
26464 + 65536 = 92000

So, yes, it is most likely, indeed, an issue with a 16-bit integer overflow.

My guess is that the price is stored in platinum pieces but converted to gold pieces for display, which just so happens to trigger an integer overflow, but then the correct number is what's actually subtracted from your funds.

I'm reminded of a similar bug in Dragon Warrior 2, where, at high levels, the princess needs over 65535 XP to level up; when you talk to the save person, you're told she might only need a few thousand, but then you get the XP, she doesn't level up, and now the save person says you need over 60,000! (At least this particular game has remakes that fix this bug, unlike SotSB.)
avatar
dtgreene: 26464 + 65536 = 92000

So, yes, it is most likely, indeed, an issue with a 16-bit integer overflow.

My guess is that the price is stored in platinum pieces but converted to gold pieces for display, which just so happens to trigger an integer overflow, but then the correct number is what's actually subtracted from your funds.

I'm reminded of a similar bug in Dragon Warrior 2, where, at high levels, the princess needs over 65535 XP to level up; when you talk to the save person, you're told she might only need a few thousand, but then you get the XP, she doesn't level up, and now the save person says you need over 60,000! (At least this particular game has remakes that fix this bug, unlike SotSB.)
Ah, ok, thanks for showing the math, I didn't see it as simple arithmatic. So it's trying to show 92,000 but once it hits the max (2^16), it has to wrap around. Surprised bugs like this didn't cause it to crash.

Ha, thanks for sharing about Dragon Warrior 2. So many games that I'll never get to but it's always fun to hear about quirks and bugs.
Post edited September 06, 2022 by thisisfutile
avatar
thisisfutile: Ha, thanks for sharing about Dragon Warrior 2. So many games that I'll never get to but it's always fun to hear about quirks and bugs.
You're welcome.

DW2 also has one special item you can buy in a store, though done in such a way that you don't get to see the price or what the item is before you buy it. It turns out that the amount of money you need to have on hand to buy the item is greater than the amount that's actually subtracted from your funds. (Too bad it's not the other way around; in SaGa 3 (Final Fantasy Legend 3) on the game boy, it's possible for an enemy to steal more money from you than you have.)
avatar
thisisfutile: I've been playing Secret of the Silver Blades for a few days and just noticed on the purchase of my 3rd Wand of Magic Missiles, Marcus is taking WAY too much of my money. Marcus's fighter is charging 26,464 GP for this "trinket" and I have 23,300 PP in the pool (lol, I just said "pee pee in the pool"). When I make the purchase, I only have 4,900 Platinum left in the pool. That's 18,400 PP that he took which is 92,000 GP!

I remember CotAB that Zhentil Keep sold one with a weird combo of numbers (not divisible by 10) and in Stephen Lee's excellent walkthrough guide, he explained this is because of an "unsigned 16-bit integer overflow". I'm assuming something similar is happening here? I don't recall getting ripped off in Curse, but I also wasn't paying attention like I am right now.

I've been all over the interwebs reading about these games since I started playing PoR but I don't recall anyone mentioning this. Is it a bug or is it a problem with my game?
On the topic of funny things happening....
Firstly, one of my characters used a Javelin of Piercing and then straight after that it turned into 255 Javelins and he was encumbered badly.
Then when I went to Store, I pooled money and had an insane amount of Jewelry.
This was in Curse. Screenshot attached. I just don't know what happened. I dropped it all and kept only a small amount but some real strange things been happening....
This all happened after Alias and Dragonbait become playable NPC's....
Attachments:
multiply.png (56 Kb)
avatar
thisisfutile: I've been playing Secret of the Silver Blades for a few days and just noticed on the purchase of my 3rd Wand of Magic Missiles, Marcus is taking WAY too much of my money. Marcus's fighter is charging 26,464 GP for this "trinket" and I have 23,300 PP in the pool (lol, I just said "pee pee in the pool"). When I make the purchase, I only have 4,900 Platinum left in the pool. That's 18,400 PP that he took which is 92,000 GP!

I remember CotAB that Zhentil Keep sold one with a weird combo of numbers (not divisible by 10) and in Stephen Lee's excellent walkthrough guide, he explained this is because of an "unsigned 16-bit integer overflow". I'm assuming something similar is happening here? I don't recall getting ripped off in Curse, but I also wasn't paying attention like I am right now.

I've been all over the interwebs reading about these games since I started playing PoR but I don't recall anyone mentioning this. Is it a bug or is it a problem with my game?
avatar
Arcticwolf15: On the topic of funny things happening....
Firstly, one of my characters used a Javelin of Piercing and then straight after that it turned into 255 Javelins and he was encumbered badly.
Then when I went to Store, I pooled money and had an insane amount of Jewelry.
This was in Curse. Screenshot attached. I just don't know what happened. I dropped it all and kept only a small amount but some real strange things been happening....
This all happened after Alias and Dragonbait become playable NPC's....
65536 is barely enough to not fit in a 16-bit integer.
avatar
thisisfutile: I've been playing Secret of the Silver Blades for a few days and just noticed on the purchase of my 3rd Wand of Magic Missiles, Marcus is taking WAY too much of my money. Marcus's fighter is charging 26,464 GP for this "trinket" and I have 23,300 PP in the pool (lol, I just said "pee pee in the pool"). When I make the purchase, I only have 4,900 Platinum left in the pool. That's 18,400 PP that he took which is 92,000 GP!

I remember CotAB that Zhentil Keep sold one with a weird combo of numbers (not divisible by 10) and in Stephen Lee's excellent walkthrough guide, he explained this is because of an "unsigned 16-bit integer overflow". I'm assuming something similar is happening here? I don't recall getting ripped off in Curse, but I also wasn't paying attention like I am right now.

I've been all over the interwebs reading about these games since I started playing PoR but I don't recall anyone mentioning this. Is it a bug or is it a problem with my game?
avatar
Arcticwolf15: On the topic of funny things happening....
Firstly, one of my characters used a Javelin of Piercing and then straight after that it turned into 255 Javelins and he was encumbered badly.
Then when I went to Store, I pooled money and had an insane amount of Jewelry.
This was in Curse. Screenshot attached. I just don't know what happened. I dropped it all and kept only a small amount but some real strange things been happening....
This all happened after Alias and Dragonbait become playable NPC's....
I had the jewelry thing too! It happened 3 times, I think. I never did figure out what caused it, but interestingly, if you Share the pool, everyone walks away with full encumbrance of jewelry. However, if you try to manually select more than what you came there with, it will only let you take the original amount.
avatar
dtgreene: 65536 is barely enough to not fit in a 16-bit integer.
If I recall, when this happened to me, it did show MORE than 2^16. We had 5 jewelry and the pool generated 65535 more, showing 65540. Guessing Arcticwolf15 went into the transaction with 1 jewelry.
Post edited September 10, 2022 by thisisfutile