Eternal Yoshi
I've covered ban wars, you know
- Joined
- Mar 3, 2007
- Messages
- 5,450
- Location
- Playing different games
- NNID
- EternalYoshi
- 3DS FC
- 3394-4459-7089
OK. I'm trying to edit EFLS resources to give a character another character's external graphic effect.
So far, I looked at the .EFLS files in a hex editor and found out a few things.
Header
offset 0x05 is the number of external graphic effects in the file in hex.
offset 0x07 appears to be important too. I'm not sure why. I'll elaborate on this later.
After that, the graphical effects begin.
How do I explain this....
I'll use Snake's EFLS file for example.
This is how it looks in BrawlBox now.
I exported it and looked at the file in the hex editor.
When I looked through it, I noticed that the lines after the header, in the case of Snake
offsets 0x10 to 0x140 they refer to different offest in the file.
Using the first one at 0x10 as an example, offsets 0x16 and 0x17 point to the first letter of the graphic name shown later in the file.
I thought about how I can add effects to the resource and I came up with this.
Let's use Falcon's EFLS files in this example.
I copy the lines from 10 to c0 and inseted them into line 140 of Snake's EFLS file.
Then I copied the rest of Falcon's EFLS file to the bottom of Snake's file.
Then I noticed it wasn't showing up properly in Brawlbox.
This was for 2 reasons.
1. I didn't change offset 0x05 to reflect the added changes
2. I didn't change the offset references.
First I changed offset 0x05 to reflect the added effects. 13 + b = 1e
Then I had to change the offest reference for all of these lines to the appropriate offset.
I did not change the lines that reference 00 since they are seen as ,<null> in BB.
For example, line 20 in Snake's file will refer to the original location of the name of the file
PtcSnakeC03AttackS4S which was at 140. It's new location is at 1f0. So I just changed it to that.
Still didn't show up corretecly so I changed 0x07.
Almost forgot. offset 0x07 in Snake's file is 3 and Falcons is 2. I added them to make 5.
After changing all the offset references and offset 0x07, the EFLS showed up in BB like this.
Any thoughts on this so far?
So far, I looked at the .EFLS files in a hex editor and found out a few things.
Header
offset 0x05 is the number of external graphic effects in the file in hex.
offset 0x07 appears to be important too. I'm not sure why. I'll elaborate on this later.
After that, the graphical effects begin.
How do I explain this....
I'll use Snake's EFLS file for example.
This is how it looks in BrawlBox now.
I exported it and looked at the file in the hex editor.
When I looked through it, I noticed that the lines after the header, in the case of Snake
offsets 0x10 to 0x140 they refer to different offest in the file.
Using the first one at 0x10 as an example, offsets 0x16 and 0x17 point to the first letter of the graphic name shown later in the file.
I thought about how I can add effects to the resource and I came up with this.
Let's use Falcon's EFLS files in this example.
I copy the lines from 10 to c0 and inseted them into line 140 of Snake's EFLS file.
Then I copied the rest of Falcon's EFLS file to the bottom of Snake's file.
Then I noticed it wasn't showing up properly in Brawlbox.
This was for 2 reasons.
1. I didn't change offset 0x05 to reflect the added changes
2. I didn't change the offset references.
First I changed offset 0x05 to reflect the added effects. 13 + b = 1e
Then I had to change the offest reference for all of these lines to the appropriate offset.
I did not change the lines that reference 00 since they are seen as ,<null> in BB.
For example, line 20 in Snake's file will refer to the original location of the name of the file
PtcSnakeC03AttackS4S which was at 140. It's new location is at 1f0. So I just changed it to that.
Still didn't show up corretecly so I changed 0x07.
Almost forgot. offset 0x07 in Snake's file is 3 and Falcons is 2. I added them to make 5.
After changing all the offset references and offset 0x07, the EFLS showed up in BB like this.
Any thoughts on this so far?