Secret of Mana "Item Limit" patch for SoM1 / SD2?

wee_bee

Newbie
Mitglied seit
28.08.2009
Beiträge
7
Is it possible to edit the "Item Limit" so that more than 4 items can be purchased from shops? It always annoyed me how you can only have 4 of each item. I tried using a Hex Editor, but I can't find the address which causes the "Limit of 4 Items" at shops. If someone could create an "IPS patch" that could alter the limit, I would be very happy.

Ist es möglich, zu bearbeiten, die "Artikel-Limit", so dass mehr als 4 Artikel können von den Geschäften erworben werden? Ich habe versucht mit einem Hex-Editor, aber ich nicht finden können, die Adresse, die die "Limit von 4 Artikel Ursachen" in den Läden. Wenn jemand ein "IPS Patch", dass die Grenzwerte verändern könnten, schaffen könnte, wäre ich sehr glücklich.
 

moon

Held
Mitglied seit
07.09.2006
Beiträge
193
I can only tell you that it is possible, but I'm not advanced enough in ROM-hacking.

Masterflow kann vielleicht helfen. ;-)
 

Masterflow

Newbie
Teammitglied
SDC-Team
Mitglied seit
27.08.2001
Beiträge
2.457
Well I can provide you a small patch which will alter the maximum amount to 6.
A higher maximum will only be possible with more code editing...

PS: Please write only in English, the translator output really sucks ;)
 
Zuletzt bearbeitet:
OP
OP
W

wee_bee

Newbie
Mitglied seit
28.08.2009
Beiträge
7
Whoops... sorry about that. I used Google Trans. ^^;;

Anyways, I was fiddling around with Pro Action Replay codes "7ECC48'8'0" and by replacing the '8' with E, I can set a slot to have 7 of an item (still can't figure out the right hex value to get it to be 8 or 9) and I have to make a code like this for every slot, but even with that code on, I still can't buy more than 4 items from a shop, and a side effect of the codes is that when I do go to a shop and try to buy an item, it automatically resets the value of the item from whatever it is back down to 4. I tried to find the particular address which sets the max number of items you can buy at shops, using Hexe, but I have had no luck. And yes, I would be interested in the patch.
 
Zuletzt bearbeitet:

Masterflow

Newbie
Teammitglied
SDC-Team
Mitglied seit
27.08.2001
Beiträge
2.457
As i'm feeling a bit lazy at the moment, please do it by yourself:

Search the ROM for:
Code:
69 20 C9 9F
change to:
Code:
69 20 C9 DF
Now you can buy/find up to 6 items...
Allowing a higher limit is only possible, if the way how the item count is saved would be changed.

Your PAR code only changes the amount of one item in the RAM.
It doesn't affect the routine which checks the maxlimit.
 
Zuletzt bearbeitet:
OP
OP
W

wee_bee

Newbie
Mitglied seit
28.08.2009
Beiträge
7
I am having trouble locating that sequence with Hexecute.

UPDATE: Downloaded Hex Workshop, it works alot better and
it has a search function which highlights results. Located the
string and I am playing around with it now.

I tried "E" instead of "D" to see if it was possible to set max
item limit beyond 6. It -seemed- to work, letting me keep
buying items infinitely, and also taking my money, but as
I looked, when you go over 7, the numbers start over.
And when I used an item, it still went away after 0 or 1.

Continuing to experiment, if I change the "69" in the sequence
to "E9" it limits maximum items to just "1."

If I change it from "69 20 C9 DF" to
"69 20 C6 EF" It changes the limit to 7.
 
Zuletzt bearbeitet:

Masterflow

Newbie
Teammitglied
SDC-Team
Mitglied seit
27.08.2001
Beiträge
2.457
If I change it from "69 20 C9 DF" to
"69 20 C6 EF" It changes the limit to 7.
Changing the C9 to C6 isn't really a good idea.

Code:
$C0/6559 C9 9F       CMP #$9F                A:0080 X:0049 Y:0001 P:eNVMxdIzc
This will replace the opcode from CMP to DEC which disables the routine which checks the maxlimit.
Sounds good but doesn't not solve your problem.

Allowing more items is only possible if you would change the way how the number which indicates the amount of items is stored.
At the moment this number overflows if you have more than 7 items:

20 = 1 item
40 = 2 items
60 = 3 items
80 = 4 items
A0 = 5 items
C0 = 6 items
E0 = 7 items
adding 20 again will result in
10 = 0 items

To change this behaviour, more than 10 routines must be edited.
If you have patience i will create a patch in a few days.
 
Zuletzt bearbeitet:
OP
OP
W

wee_bee

Newbie
Mitglied seit
28.08.2009
Beiträge
7
To change this behaviour, more than 10 routines must be edited. If you have patience i will create a patch in a few days.
I have plenty of patience. I was just messing around out of curiosity, and because you said to do it myself. If you do get around to making a patch, I think a max of 9 items would be fair, as that is also the max in Seiken Densetsu 3.
 

TheTiger

Newbie
Mitglied seit
11.10.2009
Beiträge
1
moin also bei mir geht das nicht kann immer noch nur 4 item kaufen max. ...
hmm hab den patsh installiert....spiele mein alten spielstand weiter oder muss ich neu anfangen.... oder vielleicht mit hex editor ändern aber wie genau ?
 
OP
OP
W

wee_bee

Newbie
Mitglied seit
28.08.2009
Beiträge
7
moin also bei mir geht das nicht kann immer noch nur 4 item kaufen max. ...
hmm hab den patsh installiert....spiele mein alten spielstand weiter oder muss ich neu anfangen.... oder vielleicht mit hex editor ändern aber wie genau ?
Strange. The patch worked perfectly for me.
Maybe it is an issue with your version of the rom?
 
Oben