Super Mario Maker 3DS uses Lua

Discussion in '3DS - ROM Hacking, Translations and Utilities' started by ShadowCX11, Dec 22, 2016.

  1. ShadowCX11
    OP

    ShadowCX11 Newbie

    Newcomer
    9
    7
    Mar 28, 2016
    Canada
    As you can probably tell from the title, yes, Super Mario Maker for Nintendo 3DS uses the Lua scripting language. This is a very interesting find that I'm sure people will want to take a look at. The Lua files can be found in the RomFS, under /UIX/Final/UIX/scripts, and seem to do a lot of different things. From what I see, it also has methods and functions linked to the UI of the game. My question is, does this mean we could make our own patch to add in networking features?
     


  2. ShadowCX11
    OP

    ShadowCX11 Newbie

    Newcomer
    9
    7
    Mar 28, 2016
    Canada
    Alright, in case people want to take a look at the code for themselves, I've grabbed all the scripts and uploaded them to MEGA.

    [REMOVED]
     
    Last edited by ShadowCX11, Dec 22, 2016
  3. Slattz

    Slattz Easygoing Fairy

    Member
    1,145
    1,246
    Nov 21, 2015
    Ireland
    Can't post that bud, it's copyrighted content :rolleyes:
     
  4. ShadowCX11
    OP

    ShadowCX11 Newbie

    Newcomer
    9
    7
    Mar 28, 2016
    Canada
    Alright, removed.
     
  5. cheesylard

    cheesylard Member

    Newcomer
    33
    10
    Jan 2, 2015
    United States
    Wait, so it's in plaintext? They didn't compile it to bytecode?

    Also, is it PUC Lua or LuaJIT? And what version?
     
  6. ShadowCX11
    OP

    ShadowCX11 Newbie

    Newcomer
    9
    7
    Mar 28, 2016
    Canada
    Nope, it's not compiled. I'm not sure what type or version of Lua it is.
     
  7. gnmmarechal

    gnmmarechal Kirigiri > Naoto

    Member
    GBAtemp Patron
    gnmmarechal is a Patron of GBAtemp and is helping us stay independent!

    Our Patreon
    4,666
    2,823
    Jul 13, 2014
    Portugal
    https://gs2012.xyz
    Nice finding. That's pretty interesting.
     
  8. Repflez

    Repflez Member

    Newcomer
    20
    7
    Jul 10, 2015
    Mexico
    The fact that lua is used is not news (It's listed in the manual but who reads them?) but that it isn't compiled are news.

    Maybe the comments on the lua can give an insight on how the game can be modded to enable at least level search. Nope. I dumped the files myself and they were only UI stuff. Oh well.
     
    Last edited by Repflez, Dec 23, 2016
    MarcusD likes this.
  9. SpacePancakes

    SpacePancakes ( ͡° ͜ʖ ͡°)

    Member
    269
    90
    Sep 11, 2016
    United States
    Hey, can you tell me how you dumped mario maker? I've been wanting to look though the textures and models but braindump won't work for me, it just freezes on a red screen.
     
  10. evandixon

    evandixon PMD Researcher

    Member
    1,674
    796
    May 29, 2009
    United States
    Pokémon Super Mystery Dungeon uses compiled Lua 5.1 scripts. You should try to see if Super Mario Maker uses the same version using this procedure.
     
  11. MyLegGuy

    MyLegGuy Moron

    Member
    518
    297
    Nov 26, 2014
    United States
    Whenever I need to get a game's files, I just download a decrypted CIA file and extract it. It's easier.
     
    SpacePancakes likes this.
  12. jsa

    jsa GBAtemp Regular

    Member
    211
    194
    Oct 21, 2015
    United Kingdom
    Devon, UK
    Nintendo Anime Channel uses Lua rather more extensively.
    [​IMG]
     
    VegaRoXas likes this.
  13. TherealDarknes

    TherealDarknes GBAtemp Fan

    Member
    350
    29
    Jun 16, 2016
    United States
    2 things since they no longer give you a paper manual i see less if not no reason to look at them now also could you show me a picture of where the manual says the game uses lua
     
  14. mironicurse

    mironicurse GBAtemp Regular

    Member
    108
    37
    Sep 28, 2015
    Russia
    I'm surprised it isn't obfuscated to hell :wtf:
     
  15. TherealDarknes

    TherealDarknes GBAtemp Fan

    Member
    350
    29
    Jun 16, 2016
    United States
    i wonder if we can get a low settings version of tf2 to run
     
  16. mironicurse

    mironicurse GBAtemp Regular

    Member
    108
    37
    Sep 28, 2015
    Russia
    No way. It's only x86 (windows\mac\linux) compatible, and closed source, IIRC
     
  17. TherealDarknes

    TherealDarknes GBAtemp Fan

    Member
    350
    29
    Jun 16, 2016
    United States
    ok im stupid but why couldn't we they both run on lua and i didn't think tf2 was closed source it also has many mods that could help correct? i don't know in any case i just wish valve would put the stupid game on the system but its only a dream that will never happen oh well
     
  18. mironicurse

    mironicurse GBAtemp Regular

    Member
    108
    37
    Sep 28, 2015
    Russia
    Well, the only alternative for you is to play teamfortress quake mod, the old grandDaddy of "modern" tf2. Or play it on 3DS Remote Desktop through your PC.
     
  19. TherealDarknes

    TherealDarknes GBAtemp Fan

    Member
    350
    29
    Jun 16, 2016
    United States
    are you messing with me or is there really a 3ds remote desktop thing i don't pay much attention to this because i usually wait for a system to die before cramming it with homebrew as it makes the whole processes easier no pesky updates and those kinds of things
     
    ShadowCX11 likes this.
  20. mironicurse

    mironicurse GBAtemp Regular

    Member
    108
    37
    Sep 28, 2015
    Russia
    See it for yourself https://gbatemp.net/threads/homebrew-3ds-remote-desktop.381646/
    OP, sorry for the long offtopic