Enable/Disable Auto-optimize - Printable Version +- FF6 Hacking (https://www.ff6hacking.com/forums) +-- Forum: Discussion Forums (https://www.ff6hacking.com/forums/forum-5.html) +--- Forum: Magitek Research Facility (https://www.ff6hacking.com/forums/forum-9.html) +--- Thread: Enable/Disable Auto-optimize (/thread-3748.html) Pages:
1
2
|
Enable/Disable Auto-optimize - Lightning - 09-19-2018 There are actually two parts to this question: 1. Can I stop certain items from being equipped through the "Optimum" option in the equip screen? For example, if a cursed object gives a defense of 100, can I make it so it will not auto-equip with the optimum feature? 2. I created a new set of beefed up Genji Gloves specifically for Leo/Cyan (not called Genji Gloves), but I need to make it so this item takes the player to the Equip screen when they equip the relic (just like the Gauntlet and Genji Glove). Can I do this? The item in question uses a new relic slot and does not replace the old Genji Gloves or Gauntlet (hence the reason it does not take the player to the equip screen as it should). Edit: I found a few threads in which people tried this, but the answers weren't very clear. If it might break something to do these things, I might just scrap the idea and skip this. RE: Enable/Disable Auto-optimize - Warrax - 09-19-2018 I made a thread about this about a year ago in case that thread didn't appear in your search result. Most information should be there. https://www.ff6hacking.com/forums/thread-3546.html Items must be converted from decimal (as listed in FF3usME) to hex. Changing the list is quite easy to do. Starting at ED82E4, there's currently 10 items and there's apparently room for 16 total. RE: Enable/Disable Auto-optimize - Lightning - 09-19-2018 (09-19-2018, 09:53 PM)Warrax Wrote: I made a thread about this about a year ago in case that thread didn't appear in your search result. Most information should be there. Wasn't there a warning in that thread about using the remaining 6 slots? something about how the game uses those slots for something else? I actually did read that thread before posting this one, but it seemed like there was a question mark over the solution! RE: Enable/Disable Auto-optimize - madsiur - 09-19-2018 For question #1, Warrax has linked the right thread. Add your items to the $ED82E4 list. Just make sure to adjust the loop like assassin suggested which is right now for 10 items, the CPX #$000A at $C39834 and $C39860. If you got more than 16 items you would even relocate that list and just change the CMP $ED82E4,X at $C3982D and $C39859. I think that is all there would be to it. For question #2, you'd need to relocate this code and add entries to the middle fork, the one who compare old and new relics. There would also be a JSR to change at $C39EF8. The more elegant way would be to relocate the code at end of bank $C3 where you have free space. Code: Determine whether to trigger Reequip in Relic menu RE: Enable/Disable Auto-optimize - Lightning - 09-19-2018 (09-19-2018, 11:03 PM)madsiur Wrote: For question #1, Warrax has linked the right thread. Add your items to the $ED82E4 list. Just make sure to adjust the loop like assassin suggested which is right now for 10 items, the CPX #$000A at $C39834 and $C39860. If you got more than 16 items you would even relocate that list and just change the CMP $ED82E4,X at $C3982D and $C39859. I think that is all there would be to it. For question #1, you lost me at "adjust the loop" (I also read Assassin's post and it didn't help). It took me 40 minutes just to find and add my items to the end of $ED82E4 using a decimal to hex converter (for the right ID numbers). LOL. I only added two items to the list. Can you tell me exactly what code to change to make the game recognize 12 items instead of 10? I am guessing this is the loop you are referring to at $C39834 and $C39860, but I don't know what to modify. It all looks like another language to me! I haven't tackled #2 yet, but it looks like I might break something attempting it. I might just get rid of my beefed up glove and replace it with something else! RE: Enable/Disable Auto-optimize - madsiur - 09-20-2018 (09-19-2018, 11:28 PM)Lightning Wrote: Can you tell me exactly what code to change to make the game recognize 12 items instead of 10? I am guessing this is the loop you are referring to at $C39834 and $C39860, but I don't know what to modify. You need to modify the two CPX #$000A (E0 0A 00) to CPX #$000C (E0 0C 00). If you would check the $C3 disassembly when you work on things like this it would greatly help you.. RE: Enable/Disable Auto-optimize - Lightning - 09-20-2018 (09-20-2018, 08:55 AM)madsiur Wrote:(09-19-2018, 11:28 PM)Lightning Wrote: Can you tell me exactly what code to change to make the game recognize 12 items instead of 10? I am guessing this is the loop you are referring to at $C39834 and $C39860, but I don't know what to modify. I figured it out now, thanks! When it comes to coding, I usually need my hand held. Lol. If it wasn't for FF3usME and FF3SE, my mod would not exist. My strong points are graphics, sound effects, game play, and story writing. I basically suck at code! RE: Enable/Disable Auto-optimize - madsiur - 09-21-2018 Well I did this in about 10min, you can test it. You only need to change the 4 CMPs with the dirk ID (00) to your good item ID. Note that you might need to change the org $C3F091 if that free space is used by other patches, check your ROM first. Code: hirom RE: Enable/Disable Auto-optimize - assassin - 09-21-2018 iirc, if you are expanding the list of Optimum-incompatible items, you need to make sure that no single category (e.g. Helmets) has more than 8 such items, or be ready to expand an earlier loop. from my post in the linked thread: "the way the game is written, it relies on fallback FFs in the generated Item list to use should Optimum run out of options." this list of FFs is just a token 9 entries (which matches the # of rows on an equip screen). however, if your character-compatible list has a bunch of Optimum-incompatible items in it, it overflows the backup list. if the game has success when scanning for an Optimum candidate, you're alright, but if not, the game will load from uninitialized gibberish for its fallback. see C3/9C2A. RE: Enable/Disable Auto-optimize - Lightning - 09-21-2018 (09-21-2018, 11:10 AM)assassin Wrote: iirc, if you are expanding the list of Optimum-incompatible items, you need to make sure that no single category (e.g. Helmets) has more than 8 such items, or be ready to expand an earlier loop. So, if I sell all my normal equipment and just hold on to all the Imp gear, cursed equipment, the Ultima Weapon and my two new items I excluded from the optimum list, the game might glitch out when I press the optimum option? Am I understanding you right? Edit: Ah, I think I understand now. So, I guess I should be ok if there are the following items in my mod not compatible with Optimum: 4 swords, 1 spear, 1 rod, 2 shields, 2 helmets, and 2 armors - because none of these categories exceed 8, right? |