Modding => Help! => Topic started by: Emmy on February 20, 2017, 11:19:07 am
Title: Elemental ability/Masshex weirdness
Post by: Emmy on February 20, 2017, 11:19:07 am
So I've been attempting to code a single ability that changes its element based on the tile that the user is on. But it's breaking all elemental spells with unpredictable results. :'(
Also pasting the routine code as it is into masshex and updating branches, pressing "encode" then "decode" results in weird results. Possible bug?
(http://i.imgur.com/KaCiFW8.jpg)
It added 2 more lines and updated a 3rd to use it? Why?
Title: Re: Elemental ability/Masshex weirdness
Post by: Emmy on February 21, 2017, 02:50:35 pm
After about a dozen more attempts to make this, i'm 99.99% sure that the problem is not knowing how to properly make/work with custom tables. :( It doesn't seem to matter if I'm hardcoding this to an ability slot or if i'm just writing a new formula. It doesn't seem to matter if I'm making the formula use the regular elemental routines or making a custom clone of it that refers to a byte that should only be loading from my table, etc. It's loading the same crap data, not my table, every time. :'( I have no idea what I'm doing wrong. :'(
lui r1, 0x8016 addu r1, r1, r2 lui r1, 0x0001 addu r1, r1, r1 lbu r4, -0x19E8(r1)
no idea what this is, but it sure looks damn wrong
Title: Re: Elemental ability/Masshex weirdness
Post by: Dokurider on February 21, 2017, 04:32:29 pm
It's MassHex's fault, Xif.
And yeah, I'm using the latest version (v13).
Title: Re: Elemental ability/Masshex weirdness
Post by: Xifanie on February 21, 2017, 06:32:41 pm
Did you just upload that picture twice? ...why? =_=
Also, Alt + PrintScreen for only the current window. Works even with dropbox.
And god it fucking sickens me that I pay $10 a month for an IRC server that we can administrate, moderate, have an unlimited amount of channels on, but apparently you're all on Discord or whatever. =_= I only learned about it 2 weeks ago for the first time.
Or maybe it's FFHacktics chatting without that fucking bitch Xifanie?
Title: Re: Elemental ability/Masshex weirdness
Post by: Andrew on February 21, 2017, 07:41:19 pm
It's mostly Arena modders/players in our Discord channel. We do not spend our time badmouthing you, I promise you this much. In fact, whenever your name is mentioned in our channel, it's usually because we're talking about ASM. After all, you did make the tournament hack *and* the memory card generator, two things that are essential for Arena!
Discord is something we wanted to try out because it has voice support, which makes discussing pretty much anything a breeze, especially if there's a lot of people online. Most of our vocal discussions are of the game-balancing variety, so this is why we've stuck to using Discord.
I hope that this clears-up any misconceptions.
- Andrew
Title: Re: Elemental ability/Masshex weirdness
Post by: Emmy on February 22, 2017, 11:29:08 pm
So, after putting my last attempt at writing the ability into an older version of masshex, it now works as intended. :) Pretty sure the problem is whatever the hell is causing masshex to do this, and it's loading junk data from god knows where:
lui r1, 0x8016 addu r1, r1, r2 lui r1, 0x0001 addu r1, r1, r1 lbu r4, -0x19E8(r1)
Marking topic as solved. :)
Title: Re: Elemental ability/Masshex weirdness
Post by: Glain on March 01, 2017, 02:06:02 pm
A bit late to the party here, but this was caused by a bad lbu statement in your input (offset too high: 0xe618; maximum is 0x7fff). I discussed the specifics in the MassHex thread here (http://ffhacktics.com/smf/index.php?topic=7130.msg219602#msg219602).