ROM Hack [WIP] Sm4sh Save Editor

Did you use my equipment editor?

  • Yes

    Votes: 37 42.5%
  • No

    Votes: 14 16.1%
  • That was a thing?

    Votes: 36 41.4%

  • Total voters
    87
Status
Not open for further replies.

gudenau

Largely ignored
OP
Member
Joined
Jul 7, 2010
Messages
3,854
Trophies
2
Location
/dev/random
Website
www.gudenau.net
XP
4,536
Country
United States
My situation is a little... unique. Basically, I didn't get onto the hacking scene until after I updated my 3Ds and Smash Cart to the latest versions. But, my friend has an Old 3Ds XL running 9.2.0-20U. So, I'm using browserhax to get into homebrew, and from there, I've been following this guide to try and hack equipment.

Thing is though, my friend's 3Ds has no Smash save on it, and as I've learned, you can't make a new save without updating to the latest version, which to my knowledge is something I cannot do without updating the firmware too. So, I've taken out the XL's SD card, and put in my own.

I successfully extracted my save with the save manager, made backups of the two files, and made equipment changes with your editor to the original files directly on my SD card. However, whenever I import that save in Save manager, turn off the XL, take out my card, and then try it out on my own 3Ds, the changes don't show up. I've tried both making new equipment in the list as well as modifying existing ones.
Do the changes show up in the editor after closing and opening the save? If not you are not se trying the modified equipment.
 

gudenau

Largely ignored
OP
Member
Joined
Jul 7, 2010
Messages
3,854
Trophies
2
Location
/dev/random
Website
www.gudenau.net
XP
4,536
Country
United States
Does someone have a set of calculations that smash uses to generate equipment? The one on the smash wiki is a tad confusing.

Edit:
Also does anyone have a save that has not been edited that has a bunch of equipment, more that 100 would be ideal. I need a good sample size.
 
Last edited by gudenau,

gudenau

Largely ignored
OP
Member
Joined
Jul 7, 2010
Messages
3,854
Trophies
2
Location
/dev/random
Website
www.gudenau.net
XP
4,536
Country
United States
This is about what I want the equipment editor to look in the end. Just stylized a little to look like Smash.
upload_2015-11-4_20-27-45.png
 
  • Like
Reactions: samiam144

darklordrs

Well-Known Member
Member
Joined
Aug 16, 2015
Messages
791
Trophies
0
Age
22
XP
424
Country
United States
Does someone have a set of calculations that smash uses to generate equipment? The one on the smash wiki is a tad confusing.

Edit:
Also does anyone have a save that has not been edited that has a bunch of equipment, more that 100 would be ideal. I need a good sample size.

In response to the above, the following is a summary of the calculations used as best as possible, IN THIS ORDER:

  • generate value a as an integer between 10 and 85. value b (the negative stat) is between .5a and .75a. Rarity value c = 00 when the current a is between 61 and 85; 01 when a = 31 to 60, 02 when a = 10 to 30, FF when effect is present (overrides everything else).
  • if equipment has a positive effect, the given effect has an accompanying negative value. Add this negative value (aka subtract the absolute of this value, whichever you prefer) to (from) a.
  • if equipment has a negative effect, the given effect has an accompanying positive value. Add this value to b.
  • if a<5 increase a to 5. if b>-5 decrease to -5.
  • multiply both a and b by .72 if equipment is a badge
 

Smash Br0

Well-Known Member
Member
Joined
Jun 6, 2009
Messages
610
Trophies
1
XP
1,155
Country
United States
I've used this editor to make a bunch of legal equipment (that transfers to the Wii U successfully) which combine to make some very interesting setups.

What would be the best way to share this hacked equipment?

Can I safely share my .cia save, which has never been taken online? Or must everyone else hack their own saves with my parameters to use my equipment?

My hacked equipment makes heavy use of the Smooth Lander, Glider, and Antileap abilities, and lets you set your Speed from 0-200, while affecting Attack by 0 or -3 and Defense by 0 or -1.
 
  • Like
Reactions: samiam144

darklordrs

Well-Known Member
Member
Joined
Aug 16, 2015
Messages
791
Trophies
0
Age
22
XP
424
Country
United States
I've used this editor to make a bunch of legal equipment (that transfers to the Wii U successfully) which combine to make some very interesting setups.

What would be the best way to share this hacked equipment?

Can I safely share my .cia save, which has never been taken online? Or must everyone else hack their own saves with my parameters to use my equipment?

My hacked equipment makes heavy use of the Smooth Lander, Glider, and Antileap abilities, and lets you set your Speed from 0-200, while affecting Attack by 0 or -3 and Defense by 0 or -1.

Your best bet is to do what I did: do not make equipment from scratch, use a preexisting badge with an effect as a base so that the cheat flag doesn't murder you. Changing an effect to a different effect and changing the stats accordingly as is stated necessary on the Equipment page on ssbwiki is about the only way to share it through Miis or such.

that's also necessary if you want to use it online, because if you don't, you'll be booted the instant you pick the equipment setup. theres also about a 50% chance that as soon as you make it in your save, Customs lobbies will kick you every time you get to the customs css - this can be bypassed by turning on customs only when you're in the CSS already, but this gets you booted as soon as the next match ends, meaning you're just going to have to reset your save file, re-add the equipment and it should be fixed

tl;dr best way to share it is actually sharing system_data.bin imho, since more people can access save manager or SVDT; just tell them the EXACT parameters of the equipment in question, lest you be destroyed. cheatflag value, exact stats, equipment, level, etc
 

gudenau

Largely ignored
OP
Member
Joined
Jul 7, 2010
Messages
3,854
Trophies
2
Location
/dev/random
Website
www.gudenau.net
XP
4,536
Country
United States
I've used this editor to make a bunch of legal equipment (that transfers to the Wii U successfully) which combine to make some very interesting setups.

What would be the best way to share this hacked equipment?

Can I safely share my .cia save, which has never been taken online? Or must everyone else hack their own saves with my parameters to use my equipment?

My hacked equipment makes heavy use of the Smooth Lander, Glider, and Antileap abilities, and lets you set your Speed from 0-200, while affecting Attack by 0 or -3 and Defense by 0 or -1.
I will be be adding a method to share equipment and entire customized fighters.
 

gudenau

Largely ignored
OP
Member
Joined
Jul 7, 2010
Messages
3,854
Trophies
2
Location
/dev/random
Website
www.gudenau.net
XP
4,536
Country
United States
In response to the above, the following is a summary of the calculations used as best as possible, IN THIS ORDER:

  • generate value a as an integer between 10 and 85. value b (the negative stat) is between .5a and .75a. Rarity value c = 00 when the current a is between 61 and 85; 01 when a = 31 to 60, 02 when a = 10 to 30, FF when effect is present (overrides everything else).
  • if equipment has a positive effect, the given effect has an accompanying negative value. Add this negative value (aka subtract the absolute of this value, whichever you prefer) to (from) a.
  • if equipment has a negative effect, the given effect has an accompanying positive value. Add this value to b.
  • if a<5 increase a to 5. if b>-5 decrease to -5.
  • multiply both a and b by .72 if equipment is a badge
Are the ranges inclusive?

Edit:
So close, but I know this brawn badge is valid.
Untitled.png


Edit 2:
What am I doing wrong in my cheat detection?

Relevant code:
-snip-

Edit 3:
Derp, adding when I should have been subtracting.
 
Last edited by gudenau,

darklordrs

Well-Known Member
Member
Joined
Aug 16, 2015
Messages
791
Trophies
0
Age
22
XP
424
Country
United States
Are the ranges inclusive?

Edit:
So close, but I know this brawn badge is valid.
View attachment 29297

Edit 2:
What am I doing wrong in my cheat detection?

Relevant code:
-snip-

Edit 3:
Derp, adding when I should have been subtracting.
Did you check Smash Pow! regarding the cheat flag byte? It does the FF byte for equipment with effects automatically, but I'm not totally sure it also does other cheat flag bytes automatically, and I'm not sure the game has been messed with enough for it to be figured out.

Maybe I could continue screwing with Smash 3DS' code to find it, but I doubt it.
 

gudenau

Largely ignored
OP
Member
Joined
Jul 7, 2010
Messages
3,854
Trophies
2
Location
/dev/random
Website
www.gudenau.net
XP
4,536
Country
United States
Did you check Smash Pow! regarding the cheat flag byte? It does the FF byte for equipment with effects automatically, but I'm not totally sure it also does other cheat flag bytes automatically, and I'm not sure the game has been messed with enough for it to be figured out.

Maybe I could continue screwing with Smash 3DS' code to find it, but I doubt it.
Go ahead if you want, was planning on staring at the unknown bytes until I saw a pattern. You have a good arm disassembler?
 

darklordrs

Well-Known Member
Member
Joined
Aug 16, 2015
Messages
791
Trophies
0
Age
22
XP
424
Country
United States
When I said "continue" I should've really said "start". I don't know jack shit outside of what I can figure from @Dantarion made information via mastercore and opensa documentation.

Not even he knows about the equipment code, if I recall correctly. I asked.
 

SAHunterMech

Well-Known Member
Newcomer
Joined
Jun 28, 2015
Messages
54
Trophies
0
Age
31
XP
68
Country
Canada
I uh, figured out my issue. The save manager isn't importing my edited save correctly. Basically, it exits out automatically after a few seconds when I press B, and there's some kind of message on the screen for a split second that I can't read. Apparently it's supposed to stay in the app after the import? I posted about it in its thread, but I haven't gotten a reply yet, so I figured I'd try here too.

I have a feeling this is because my game is on 1.1.2, but I have no idea right now.
 

gudenau

Largely ignored
OP
Member
Joined
Jul 7, 2010
Messages
3,854
Trophies
2
Location
/dev/random
Website
www.gudenau.net
XP
4,536
Country
United States
I uh, figured out my issue. The save manager isn't importing my edited save correctly. Basically, it exits out automatically after a few seconds when I press B, and there's some kind of message on the screen for a split second that I can't read. Apparently it's supposed to stay in the app after the import? I posted about it in its thread, but I haven't gotten a reply yet, so I figured I'd try here too.

I have a feeling this is because my game is on 1.1.2, but I have no idea right now.
That should have nothing to do with it. What firm are you on?

Edit:
If you know something that I do not, please inform me!
https://docs.google.com/document/d/1tx0vFEOVNt4yEl-2W03M3mFJ1rzs7HgTeJpqEY2pWk0/edit
 
Last edited by gudenau,
Status
Not open for further replies.
General chit-chat
Help Users
  • No one is chatting at the moment.
    Skelletonike @ Skelletonike: 1H left, such a slow week.