News:

11 March 2016 - Forum Rules

Main Menu

Lufia-Patches by Artemis

Started by FlamePurge, September 01, 2015, 04:42:13 AM

Previous topic - Next topic

rainponcho

#160
That's the method used for current hp, mp save fix - find save routine and add limits when saving to sram.

max hp, max mp, str, agl, int, gut, mgr bonus potions are very similar but work a little differently. It's trickier since there's several values in play - base, potion and gear.

Artemis requests 999 for max hp, mp. So I need to take 999 - base = updated sram potion value. I guess I can do this for the other stats because someone may hack it higher and mess up the actual saved game.


edit: Guess I'm just slow patching it up. Don't want to undo the v1 hp-mp savefix but it works better if I redo and combine everything into a new aio.

Thanks for the idea though. I'll try to finish this up.


edit2: Really messy work. Take more time.


edit3: Undo old save_999 patch completely. Then apply
http://s000.tinyupload.com/index.php?file_id=57660109089249577510

Artemis

So this one treats the maximum values the same way as the current values are treated - that is capping them at 999, if and only if they are bigger, right?

And the other stats like ATP, DFP etc. are completely unaffected, right?
My silly RPG Maker 2k game (German language, and be warned: it's as trollish as Kureji Lufia):
https://www.mediafire.com/file/fe11rhmcd5ldo4o/Flannida_Tales_-_TPoD_-_v1-2.zip/file

rainponcho

Values capped at 999 when saving only:
hp, mp, max hp, max mp, str, agl, int, gut, mgr


They're all affected by large values problem - it can happen where stats roll down to 0.

Artemis

But you only cap the base stats, right?

So if you have lets say base str 1200 and additional 500 str due to equipment bonus, it gets to:
base 999 + additional 500 str.

And base str 800 + additional equipment bonus 1200 str remains 800 + 1200, right?
My silly RPG Maker 2k game (German language, and be warned: it's as trollish as Kureji Lufia):
https://www.mediafire.com/file/fe11rhmcd5ldo4o/Flannida_Tales_-_TPoD_-_v1-2.zip/file

rainponcho

That part needs more work on what to be done.


There's 3 values.
base
potion bonus
equip bonus


base = doesn't seem to matter?

potion bonus = 1023 max value can be saved before your save gets corrupted. This must be bound protected.

equip bonus = doesn't seem to matter



There's 2 ways to limit:
1) base + potion = 999
2) potion = 999

Final value = 999 + equip

Currently option 1 is used. If you'd like option 2, I'll fix them.

Artemis

I have to think about it. But before that another question:

Values like ATP and DFP, which are determined by other values, aren't stored on their own and therfore they completely don't matter, right?
My silly RPG Maker 2k game (German language, and be warned: it's as trollish as Kureji Lufia):
https://www.mediafire.com/file/fe11rhmcd5ldo4o/Flannida_Tales_-_TPoD_-_v1-2.zip/file

rainponcho

#166
atp, dfp are computed in real-time. Not fully tested but I didn't see anything very obvious.


max hp, mp (total) are computed real-time also.


ex.
max hp = 600 base + 399 potion = 999
max hp = 600 base + 999 potion = 1599
max hp = 600 base + 1023 potion = 1623

Base value is probably not stored either.


edit:
bad news. use this correct patch (option 1)
http://s000.tinyupload.com/index.php?file_id=04744326626973366887

Artemis

Would it be possible to choose option 1 for:

hp, mp, max hp, max mp


But instead choose option 2 for:

str, agl, int, gut, mgr
My silly RPG Maker 2k game (German language, and be warned: it's as trollish as Kureji Lufia):
https://www.mediafire.com/file/fe11rhmcd5ldo4o/Flannida_Tales_-_TPoD_-_v1-2.zip/file

rainponcho

done. v3
http://s000.tinyupload.com/index.php?file_id=67500283765089286499


hp, mp, max hp, max mp ~~ base + bonus = 999
str, agl, int, gut, mgr ~~ bonus = 999

Artemis

#169
Just to be fully clear: So the patch only affects these stats in the case of saving+reloading, but does let them completely unaffected in every other case.

And it doesn't affect any of the other patches? So I can use these later patches at any order, right?

---
And some questions: For example HP... So which values will be stored for base and potion (or for whatever gets actually saved) in case of:

#1
base: 800
potion: 400

#2
base: 1000
potion: 1000
My silly RPG Maker 2k game (German language, and be warned: it's as trollish as Kureji Lufia):
https://www.mediafire.com/file/fe11rhmcd5ldo4o/Flannida_Tales_-_TPoD_-_v1-2.zip/file

rainponcho

Only save/load file is affected, not in-game play. Patch is not affected by other ones - they are all independent.



#1 base: 800, potion: 400
max hp,mp - potion stat = 999 - 800 = 199

str,agl,int,mgr,gut - potion stat = 400


#2 base: 1000, potion: 1000
max hp,mp - potion stat = 999 - 1000 = ...hmm... that could glitch out. I should fixme potion = 0, since there's no negative #s allowed.

str,agl,int,mgr,gut - potion stat = 999


Artemis

#171
I think it's impossible for any base stat to reach 1000. However, there is one place in the game where I'm not completely sure.

That is, the plate in the Spirit Shrine where you step atop and then get your (base?) stats increased. If the amount of increase somehow can get affected by potion stats, it might be possible???

October 31, 2016, 06:27:30 PM - (Auto Merged - Double Posts are not allowed before 7 days.)

Here's a save. Can you tell how these increasements work?

http://www.mediafire.com/file/vi9dpb1hucpl5bp/lufia2.008
My silly RPG Maker 2k game (German language, and be warned: it's as trollish as Kureji Lufia):
https://www.mediafire.com/file/fe11rhmcd5ldo4o/Flannida_Tales_-_TPoD_-_v1-2.zip/file

rainponcho

Spirit tile increases the "potion" stats. Maybe it should be called "permanent bonus".

Let me try and figure out how base max hp,mp is calculated before fixing anything.

Artemis

And level ups increase the "base" stats?

And what determines the amount of increase from the spirit tile?

However, I guess if the spirit tile doesn't affect the "base" stats, there's definitely no way for them to exceed 1000. And therefore v3 cannot get into scenario #2 and therefore nothing to fix at all?
My silly RPG Maker 2k game (German language, and be warned: it's as trollish as Kureji Lufia):
https://www.mediafire.com/file/fe11rhmcd5ldo4o/Flannida_Tales_-_TPoD_-_v1-2.zip/file

rainponcho

"Fixed" it anyway.
http://s000.tinyupload.com/index.php?file_id=09206533014133421223


Level ups increase base stats. Rom source, not save game.

Most other hacker/cheat-caused issues I'm indifferent to.


"And what determines the amount of increase from the spirit tile?"

Maxim #s - check BFE, C00, C02, C04, C06, C08, C0A. Tile bonus somehow scales off these values.

Artemis

But in this final version it's still like this, right?

hp, mp, max hp, max mp ~~ base + bonus = 999
str, agl, int, gut, mgr ~~ bonus = 999
My silly RPG Maker 2k game (German language, and be warned: it's as trollish as Kureji Lufia):
https://www.mediafire.com/file/fe11rhmcd5ldo4o/Flannida_Tales_-_TPoD_-_v1-2.zip/file

rainponcho

#176
When base <= 999, it remains this formula:
hp, mp, max hp, max mp ~~ base + bonus = 999
str, agl, int, gut, mgr ~~ bonus = 999


If someone messes with me and sets base >= 1000, then bonus = 0.


edit: Cheat code for monster feeding. Disables their picky eating behavior.
82C6FE00

Artemis

#177
And would you say this patch is stable?

I tested a little bit playing with HP and MP and everything went fine. Though I cannot test the cap for the other stats actually coming into effect as I know no way to get that permanent bonus up to 999.

And if these values are below 999, there will be absolutely no change at all, of course, right? As far as I've tested there aren't any problems regarding this as well.

October 31, 2016, 09:45:33 PM - (Auto Merged - Double Posts are not allowed before 7 days.)

And what exactly does 82C6FE00? Is it just making sure they know how to say Thank you when getting their item wish? And absolutely nothing else?
My silly RPG Maker 2k game (German language, and be warned: it's as trollish as Kureji Lufia):
https://www.mediafire.com/file/fe11rhmcd5ldo4o/Flannida_Tales_-_TPoD_-_v1-2.zip/file

rainponcho

#178
No known problems

October 31, 2016, 10:00:53 PM - (Auto Merged - Double Posts are not allowed before 7 days.)

Quote
And what exactly does 82C6FE00? Is it just making sure they know how to say Thank you when getting their item wish? And absolutely nothing else?

It's a cheat code that makes feeding them pathetic easy - they'll eat almost any item all the time. Rank 01-0F always works.


Got tired of playing their "game". Not meant for your patch collection - only for casual gamers. It's a "cheat code" for people like me. Less hassle.

Artemis

So that's it really, then?

Okay, I'll put it together then for real this time!
My silly RPG Maker 2k game (German language, and be warned: it's as trollish as Kureji Lufia):
https://www.mediafire.com/file/fe11rhmcd5ldo4o/Flannida_Tales_-_TPoD_-_v1-2.zip/file