ROM Hack [Release] Sm4shCommand

darklordrs

Well-Known Member
Member
Joined
Aug 16, 2015
Messages
791
Trophies
0
Age
23
XP
434
Country
United States
Nice!

--------------------- MERGED ---------------------------

aMNXDI6.png

Am I correct in thinking this value controls the angle the move launches you at? When I change it nothing seems to happen (except for the fact that Samu's shield, down tilt, and down taunt freezes now.)
What move is that, though? Something seems off about the code there, though I don't know exactly what. . .


I'm enjoying this!


Okay, that's hilarious.

--------------------- MERGED ---------------------------

As a correction to my earlier post; I worded it as though I was trying to replace Darknut with Marth, meant to say Marth with Darknut. Minor, but still.
 
Last edited by darklordrs,
  • Like
Reactions: Jack_Sparrow

Sammi Husky

Well-Known Member
OP
Member
Joined
Jul 6, 2014
Messages
312
Trophies
0
Age
29
XP
498
Country
United States
Nice!

--------------------- MERGED ---------------------------

aMNXDI6.png

Am I correct in thinking this value controls the angle the move launches you at? When I change it nothing seems to happen (except for the fact that Samu's shield, down tilt, and down taunt freezes now.)

From what i know, yea that should be angle. I'm not quite sure what could be causing the unrelated moves to crash and such. What move are you changing? and what are you changing the values to? I'll be able to debug from that.
 
  • Like
Reactions: Jack_Sparrow

Toad Stool

Well-Known Member
Newcomer
Joined
Nov 22, 2015
Messages
50
Trophies
0
Age
28
Location
Mushroom Kingdom
XP
128
Country
United States
From what i know, yea that should be angle. I'm not quite sure what could be causing the unrelated moves to crash and such. What move are you changing? and what are you changing the values to? I'll be able to debug from that.
What move is that, though? Something seems off about the code there, though I don't know exactly what. . .

Samus' second jab. I changed the angle from 0x169 to 0x60 (brings you toward Samus).
 
  • Like
Reactions: Jack_Sparrow

darklordrs

Well-Known Member
Member
Joined
Aug 16, 2015
Messages
791
Trophies
0
Age
23
XP
434
Country
United States
Managed to 'test' the Darknut over Marth thing, and the results are a little disappointing: picking color 1 freezes - this being the model i replaced - and the rest are t-posed, with no inputs doing anything at all. I can still jump, though.
 
  • Like
Reactions: Jack_Sparrow

Trinitro21

Well-Known Member
Member
Joined
Oct 14, 2015
Messages
133
Trophies
0
Location
Userland
XP
206
Country
United States
Every time I try to edit marth, smash freezes when I enter a match with him. Not a regular freeze like down tilt triggers; the only way to exit is to hold down the power button.
The edits I made are:
  • I made a wavedash with
    Code:
    Add/Set_Momentum(Unknown=2, Unknown=-2, Unknown=0x1)
  • I changed his grab range to 100
  • I removed two Add/Set_Momentum commands from his customs to make room for the aforementioned edits
 

Sammi Husky

Well-Known Member
OP
Member
Joined
Jul 6, 2014
Messages
312
Trophies
0
Age
29
XP
498
Country
United States
What does this do/what is the resource file and its extension?View attachment 31089

It's used to unpack updates (only tested on wiiu, since i don't have access to updates on 3ds). The resource files don't have an extension, but are in the root of the update directory. They're normally named "resource(us_xx)" where xx is the language. e.g "resource(us_en)" or "resource(us_sp)"
 

Cydget

Well-Known Member
Member
Joined
Oct 1, 2015
Messages
493
Trophies
0
Age
27
XP
260
Country
United States
It's used to unpack updates (only tested on wiiu, since i don't have access to updates on 3ds). The resource files don't have an extension, but are in the root of the update directory. They're normally named "resource(us_xx)" where xx is the language. e.g "resource(us_en)" or "resource(us_sp)"
So, I managed to get an update file for 3ds 1.1.2 online.(update only not including game) It was a romfs.bin file and when I extracted it using the romfs extracter it produced this file structure(file that is attached). The most noticeable change is that the update dt and ls are much smaller. I tried to exract both of them with your dtlsextractor, but it give me this error. Capturewqerf.PNG Im trying to use your extractor to extract the update dt and ls and than patch my my dump's dt and ls so I can have an updated smash to edit and mess about with. Any idea how I can accomplish this/fix the error?
 

Attachments

  • file.txt
    2.9 KB · Views: 231

darklordrs

Well-Known Member
Member
Joined
Aug 16, 2015
Messages
791
Trophies
0
Age
23
XP
434
Country
United States
-good thing I just straight up switched the files amirite-

Jokes aside, that might have to do with the filesize being the largest non-Lucina one out of them all. Dunno.

Are you sure it isn't because you made ANY other edits to marth? Switching out his model and switching out parameters also cause breaks.
 

Trinitro21

Well-Known Member
Member
Joined
Oct 14, 2015
Messages
133
Trophies
0
Location
Userland
XP
206
Country
United States
I extracted dt again and tested patching marth's default files in; that worked. Then I opened up marth in animcmd and pressed save without even opening a single file, then tested. That crashed the game. AnimCmd is definitely the problem.
Also, down tilt and down taunt crash the game only on characters that have been edited with animcmd. It's a less serious crash though; pressing l+r+down+b still returns to the homebrew menu.
 

darklordrs

Well-Known Member
Member
Joined
Aug 16, 2015
Messages
791
Trophies
0
Age
23
XP
434
Country
United States
In my case, my edited Mii Gunner's dtilt and dtaunt are fine, but dsmash does freeze just the character; i can even l+r out of training mode to escape it. Never had that so extreme.
 

Sammi Husky

Well-Known Member
OP
Member
Joined
Jul 6, 2014
Messages
312
Trophies
0
Age
29
XP
498
Country
United States
I extracted dt again and tested patching marth's default files in; that worked. Then I opened up marth in animcmd and pressed save without even opening a single file, then tested. That crashed the game. AnimCmd is definitely the problem.
Also, down tilt and down taunt crash the game only on characters that have been edited with animcmd. It's a less serious crash though; pressing l+r+down+b still returns to the homebrew menu.

The crash with down taunt is known. It's probably crashing loading marth for the same reason. Make sure your using the latest Sm4shCommand. Older versions might contain a bug that causes certain commands to not be rebuilt, and also never displayed in the editor. The problem isn't universal, and only really affects characters who have a lot of unknown commands in their file. (probably due to the way that i add unknown commands to the eventlist). It's this field here in the file that causes a problem. If your not adding commands or anything, just change this field back to before the save. (it's different per character per save obviously)
1.PNG


I'll probably be able to upload a hotfix for Sm4shCommand later today to fix the problem, hopefully.
 
Last edited by Sammi Husky,

Sammi Husky

Well-Known Member
OP
Member
Joined
Jul 6, 2014
Messages
312
Trophies
0
Age
29
XP
498
Country
United States
Do you think will solve the problem of other unrelated moves crashing as well?

Yea, i'm fairly certain that this is the bug that was causing the crashes all around. I'm also fairly certain that the field is how many commands exist in the file. It being less than it should probably causes a whole bunch of problems. The only issue is that unless i find and document all commands, there is close to no way to accurately get that value. Luckily, i know where in the game's code binaries that the commands are stored. So i'll just rip them from there. The only problem being that they have been known to add new commands to the game, and because of this.. whenever they do, the events.cfg will need to updated or this issue may occur again. (unless i can find a way to determine where commands begin and end accurately without knowing their size or crc)
 

BlastXDX

3DS Hacking Era Original
Member
Joined
Oct 3, 2015
Messages
237
Trophies
0
Location
Frappe Snowland
XP
365
Country
United States
Sorry to bother, but is the DTLS extractor supposed to be in the same folder as the dt and ls files? Whenever I open it there, it just creates a file called log.txt with nothing in it.
 

Trinitro21

Well-Known Member
Member
Joined
Oct 14, 2015
Messages
133
Trophies
0
Location
Userland
XP
206
Country
United States
It's used to unpack updates (only tested on wiiu, since i don't have access to updates on 3ds). The resource files don't have an extension, but are in the root of the update directory. They're normally named "resource(us_xx)" where xx is the language. e.g "resource(us_en)" or "resource(us_sp)"
According to smashhax's readme, updates are located at /Nintendo 3DS/{number}/{number}/title/0004000e/{titleid}/ Would it be possible to unpack and edit those?

Also, I updated AnimCmd, saved marth without any changes, and made sure that the saved files had b8 and not b7, and he still crashed the game.
 

darklordrs

Well-Known Member
Member
Joined
Aug 16, 2015
Messages
791
Trophies
0
Age
23
XP
434
Country
United States
updates are located at /Nintendo 3DS/{number}/{number}/title/0004000e/{titleid}/ Would it be possible to unpack and edit those?

As has been said before time and time again (my b), with kernel, you can undo the encryptions as you would with any other game.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    The Real Jdbye @ The Real Jdbye: never had one before that, and never had one since