Hacking Sm4shCommand -- Smash 4 Moveset Editor

Sammi Husky

Well-Known Member
OP
Member
Joined
Jul 6, 2014
Messages
312
Trophies
0
Age
29
XP
498
Country
United States
Hello people of the temp, the first functional smash 4 moveset editor. With it you can view and edit fighter, weapon, and item scripts.


Usable Features
  • Basic code completion
  • Features a Multi-tabbed text editor.
  • Basic Syntax highlighting.
  • Supports parsing animation files to retrieve script names.
  • Expandable event dictionary (Events.cfg in startup directory)
  • Customizable event syntax keywords and descriptions. (Events.cfg)
  • Supports opening full characters or single files individually.
  • Marking of changed actions in the tree view.
  • Exporting event lists as plaintext.
  • Tooltips when hovering over commands.
  • Exporting full character dumps as .txt.
  • IDE features like Projects and "Workspaces".
Planned Updates

  • Realtime error checking of the code box.
  • Adding new event lists to files.
  • Creating entirely new ACMD files.
  • Creating entirely new MTable files.
Source Code: https://github.com/Sammi-Husky/Sm4sh-Tools

Downloads:
  • Stable Build - Latest official release. More stable, but missing latest developements.
  • Nightly Build - Built from latest commit to master branch. Includes latest features, but less stable.
687474703a2f2f692e696d6775722e636f6d2f334842526473772e706e67
  • How do i use this? What files do i open?
  • You can either open individual fighter files (File->Open->file..) or you can open the full fighter folder at once. Just browse to the folder containing the character's AnimCmd files. (File->Open->Fighter..). The fighter files consist of the effect, expression, gfx, and sfx .bin files as well as the motion.mtable.

  • All i see is a bunch of numbers! How do i know what scripts belong to what animations?
  • View->Parse Animations. Browse to the characters animation directory. For the 3ds, this is the motion/fighter/[fighter name]/. On wiiu, it is fighter/[fighter name]/motion.

  • Where do i get these files? I extracted the game, but all i have are two large files called dt and ls.
  • Those are the archives that the game stores all of it's files in. Unfortunately, we have to extract this in order to edit any files. Download and use the DTLSExtractor from this thread.

  • What about updates? how do i unpack those? Help!
  • To unpack update files, simply use the DTLSExtractor from command line with the resource file as the only parameter. This will place update files in the "data" folder matching the resource file's name.
 
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
I updated the main post. Refactored it a bit, added a FAQ, Download Section, and information on how to unpack the DT file. The download is in OP. Just run it from the command line.
Code:
DTLS <dt file(s)> <ls file>
 
Last edited by Sammi Husky,

Zedd91

Active Member
Newcomer
Joined
Mar 7, 2015
Messages
39
Trophies
0
Age
31
XP
74
Country
I can not believe that this does not receive more attention, because they could hack sm4sh mechanics. sm4sh and it is one of the best games of the wii u to attract more attention.
 

Sammi Husky

Well-Known Member
OP
Member
Joined
Jul 6, 2014
Messages
312
Trophies
0
Age
29
XP
498
Country
United States
Good job! Have people been testing files ingame for you Sammi?

Thanks! and nope, not as far as i know at least :c Though using the 3ds i've been looking into repacking the DT archive. Only hit a small snag (compression length was wrong) but after writing the dtls extractor i have a pretty good grasp on the structure. The only thing left i need to do is write a good way to map the string section in the resource files correctly.

Any developments on your end? Last i checked you were working on mscsb scripts.
 

Sammi Husky

Well-Known Member
OP
Member
Joined
Jul 6, 2014
Messages
312
Trophies
0
Age
29
XP
498
Country
United States
New version of DTLSExtractor. It's now able to unpack sm4sh wiiu patches. I've added a FAQ to the OP with instructions as well. Just use dtls extractor with the resource file for the region you want to unpack as the only parameter. e.g
Code:
dtls.exe resource
or
Code:
dtls.exe resource(us_fr)

The extracted files will be in the matching "data" folder. You can also just drag the resource file you want to use onto the .exe, it should extract it just fine that way.
 

soneek

Well-Known Member
Member
Joined
Jun 27, 2012
Messages
179
Trophies
0
XP
337
Country
United States
I'll try to get my patchlist and resource editor finished soon. I'd like to see research make more progress, even though I can't personally test stuff indefinitely.
 
  • Like
Reactions: I pwned U!

Dantarion

Well-Known Member
Newcomer
Joined
Jul 29, 2007
Messages
94
Trophies
0
XP
253
Country
United States
Thanks! and nope, not as far as i know at least :c Though using the 3ds i've been looking into repacking the DT archive. Only hit a small snag (compression length was wrong) but after writing the dtls extractor i have a pretty good grasp on the structure. The only thing left i need to do is write a good way to map the string section in the resource files correctly.

Any developments on your end? Last i checked you were working on mscsb scripts.
Haven't been working on it much. WiiU scene needs fully working breakpoints before I really can give into it. I will build an SD loader and then I am pretty much done...Zzz
 

Sammi Husky

Well-Known Member
OP
Member
Joined
Jul 6, 2014
Messages
312
Trophies
0
Age
29
XP
498
Country
United States
It crash again :(
(With DTLS 1.2)

Whoops, sorry about that. I fixed this issue actually, i just uploaded the wrong binary. Go ahead and re-download, it should be fixed now.

Haven't been working on it much. WiiU scene needs fully working breakpoints before I really can give into it. I will build an SD loader and then I am pretty much done...Zzz


An SD loader would be much easier to deal with. I've looked around in the code a bit to see where the game hooks into the archive, but i couldn't make much of it.

I'll try to get my patchlist and resource editor finished soon. I'd like to see research make more progress, even though I can't personally test stuff indefinitely.

This is probably the easiest way to go besides an SD loader, though, how do you get the game to read your update data? Or are you simply editing and replacing the existing installed update data on the system? Im not really up to date on what is possible in the wiiu scene nowadays.
 
  • Like
Reactions: Mega-Mew and Zedd91

Sammi Husky

Well-Known Member
OP
Member
Joined
Jul 6, 2014
Messages
312
Trophies
0
Age
29
XP
498
Country
United States
Updated the OP! You can get the new version of the DTLSExtractor there. To patch game files, put the files you want to patch into a seperate folder, but mimicking the original filestructure.

Example, if you want to patch in a moveset edit for captain falcon, you would put the changed ACMD files in <yourpatchfolder>/animcmd/fighter/captain/.

Then all you do is run
Code:
DTLS.exe -r dt ls <yourpatchfolder>

i don't have a wiiu to test with, but this should work with cafiine, albeit probably slow because it would have to replace the entire DT archive :unsure:
 
  • Like
Reactions: I pwned U!

Mikenuun

Well-Known Member
Newcomer
Joined
Aug 27, 2015
Messages
45
Trophies
0
Age
32
XP
447
Country
Netherlands
SmashSet for name maybe ? :P

Anyhew great work, i'll try again later this week because yesterday was National Race Attack Failed day
 
  • Like
Reactions: I pwned U!

mariosonicds

Well-Known Member
Member
Joined
Oct 9, 2009
Messages
143
Trophies
1
XP
466
Country
United States
Alrighty, its trying to patch the resources file???
f3b932a657.png
I will try other files but the fact of it is, the wii u will only load the patchlist/resource files from the update for attack data. So there isn't much room to do much on wii u unless you can make a patches for wii u update files, or @soneek will release his script to do the same.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • Psionic Roshambo @ Psionic Roshambo:
    Looks like an enhanced Far cry 1
  • K3Nv2 @ K3Nv2:
    That's a far cry from it
  • BigOnYa @ BigOnYa:
    Is it a free to play bs, pay to get any good weapon/gear
  • K3Nv2 @ K3Nv2:
    Not free to play but $35
  • K3Nv2 @ K3Nv2:
    Inb4 kiiwii gives it a 0/10
  • BigOnYa @ BigOnYa:
    6/10 rating on steam
  • Psionic Roshambo @ Psionic Roshambo:
    I would like a Predator game "Kill Team" it takes place in the Jungle of the first movie, your team is sent to hunt the predator, using current tech drones and a trained team. Set traps use strategy to hunt and trap or kill the predator.
  • BigOnYa @ BigOnYa:
    Ill stick with my Battlefield. Yea a predator hunting game like that would be cool. Esp if you can be Arnold and say "Get to da choppa"
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Maybe Arnold could do a cameo voice acting, he is the one briefing you on the mission
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Honestly surprised they didn't make a tie in game for Predators that movie was awesome
  • Psionic Roshambo @ Psionic Roshambo:
    I was kinda sad the Yakuza guy died sword fighting a predator lol
  • Psionic Roshambo @ Psionic Roshambo:
    The Russian guy went out like a boss
  • Psionic Roshambo @ Psionic Roshambo:
    Double claymores to the face definitely kill a predator lol
  • BigOnYa @ BigOnYa:
    I went today and looked at a motorcycle someone was selling. I get there and the battery on it was dead, so the guy grabbed a battery charger and hooked it up. He plugged it into the wall, and the motorcycle sparked and started smoking. Come to find out the bike uses a 6 volt battery and the guy had the charger set to 12v. I said sorry to the dude and walked away. I felt bad for him tho.
  • Psionic Roshambo @ Psionic Roshambo:
    Sounds like it would be an exciting ride....
  • Psionic Roshambo @ Psionic Roshambo:
    Not sure I would want something on fire between my legs
  • BigOnYa @ BigOnYa:
    He ruined it basically. Sad cause it was a decent old bike. It would take more money to rewire the bike than it was worth tho.
  • Psionic Roshambo @ Psionic Roshambo:
    Yeah I'm sure at minimum the starter was fried
  • Psionic Roshambo @ Psionic Roshambo:
    Alternator and battery
  • BigOnYa @ BigOnYa:
    Prob alot of fried parts. It was still smoking when I left.
  • K3Nv2 @ K3Nv2:
    I would've said show me how it rides
  • Psionic Roshambo @ Psionic Roshambo:
    I always wanted one of those Smart Cars with a Hyabusa motor in it.
    Psionic Roshambo @ Psionic Roshambo: https://m.youtube.com/watch?v=WcBQPTEKWcg&pp=ygUTc21hcnQgY2FyIGhheWFidXNhIA%3D%3D