Toggle shoutbox Shoutbox
|
Well.. I'm lost with this...
#1
Posted 30 December 2009 - 12:01 PM
QUOTE (Xeld) | ||
This hack seems to work.
Good luck figuring out how to apply it, though. Also, Lawliet apparently did this much easier. I'm not sure his solution is as functional though. Edit: Yeah, Lawliet's version of this hack screws up the stat and weapon level menus. This hack doesn't, and is still compatible with expanded item tables despite using the item table for getting the item data outside of battle. |
Anyone else at a loss on how to apply it? XD
He deserves two kinds of thanks:
1. Thanks for doing this in the first place
2. Thanks for losing me on how to apply this thing >_>
#2
Posted 30 December 2009 - 03:22 PM
It's not nearly as good as Nintenlord's but eh, it'd do for now. Nintenlord's code is more elaborate and works on actually implementing both stats at once as opposed to just fixing the problem with having a magic weapon and a physical weapon at the same time.
EDIT: Eh, I'm probably completely wrong on this but ITEM_TABLE_REF looks like a variable that is supposed to be used in conjunction with some other ASM code (probably something of FEditor). In otherwords ITEM_TABLE_REF is an offset to the item table, which could be almost anywhere due to expansion of said item tables. So instead of just using the default address for the item table it's likely using whatever the repointed address is and I think some separate code actually defines the item table in terms of an offset (possibly by recognition of a pointer to the item table in terms of a pointer, since the location of that pointer wouldn't change despite the actual data it points to/the location of the item table changing).
That being said if you knew assembly you could probably substitute an offset in there and have the hack work the same way but only on a definite area as opposed to a variable area described by "ITEM_TABLE_REF".
Signature thanks to Shu.
#4
Posted 31 December 2009 - 03:44 AM
Oh well... not like I'll be using this anytime soon...
Signature thanks to Shu.
#5
Posted 31 December 2009 - 05:14 AM
Also, really interesting work, Xeld. I should really analyze it to see if I can pick up a few details, but I think I can indeed read how you did it. The optimum solution, it seems, I don't think I would have created a simpler one.
QUOTE (Akaihinata) |
No Grey you have gay needs |
QUOTE (Holy Kensai) |
BECAUSE HE CAN CREATE ALL LIFE AND ALL EXISTANCE, BUT HE NEEDS YOUR MONEY! |
#6
Posted 31 December 2009 - 05:16 AM
Just a side note.
Signature thanks to Shu.
#7
Posted 31 December 2009 - 09:33 AM
#8
Posted 31 December 2009 - 09:45 AM
CODE |
.org 0x08018A58 .thumb push {lr} @ @-------------------------------@Get uses/equipped weapon of unit pointed at by r0 bl 0x08016B28 lsl r0, r0, #0x18 @ lsr r0, r0, #0x18 @ ldr r1, ITEM_TABLE_REF ldr r1, [r1] @r1 points to item table mov r2, #0x24 @ mul r0, r2 @ add r0, r0, r1 @Indexing of item table complete ldrb r0, [r0, #0x08] @ mov r1, #0x02 @"Use magic animation?" and r0, r1 @ lsr r0, r0, #0x01 @r0 == 1 or 0, guaranteed pop {pc} @ .align 2 ITEM_TABLE_REF: .long 0x08016410 |
#9
Posted 31 December 2009 - 07:18 PM
...
<_>
I don't like the idea of an autopatch...
In any case, more props to Xeld for his work.
Signature thanks to Shu.
#10
Posted 31 December 2009 - 07:27 PM
He was talking about how there's more space in FE6 for instructions since the code wasn't refined...
Maybe he's just gonna stick to manually patching this...
#11
Posted 31 December 2009 - 08:13 PM
I personally would have made this an IPS patch, except patches are silly. Releasing source is far better. In fact, I think next time I update FEditor I'll be including the source for all of the auto patches in a folder called "asm".
QUOTE (Blazer @ December 30, 2009 09:22 am) |
Also he may or may not like you sharing this with other people. |
If you're talking about me, that's a load. You know I don't keep things to myself.
QUOTE (Blazer @ December 30, 2009 11:16 pm) |
He could have written a shorter code that would be a bit less efficient (not sure that's the best term) but he didn't. He decided to load things the same way that the original assembly did as opposed to using a shorter code and doing things a different way. |
I ended up having to do so for FE 8 because there wasn't enough room otherwise.
QUOTE (Blazer @ December 31, 2009 01:18 pm) |
Next thing you know Xeld will have it ported to FE6 and make it an autopatch. |
Probably.
QUOTE (Blazer @ December 31, 2009 01:18 pm) |
I don't like the idea of an autopatch... |
I DON'T LIKE THE IDEA OF YOU BREATHING.
QUOTE (Blazer @ December 31, 2009 01:18 pm) |
In any case, more props to Xeld for his work. |
#12
Posted 03 January 2010 - 10:51 PM
Darkness is rising and the light is fading
prepare for a battle for a battle between
harmony and discord.
#13
Posted 04 January 2010 - 10:14 PM
QUOTE |
If you're talking about me, that's a load. You know I don't keep things to myself. |
Weird things DO happen on occasion... I don't want to presume things if it's not necessary...
Signature thanks to Shu.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users