Homebrew A Few Questions About Lua...

Jack_Sparrow

Ruthless Pirate
Banned
Joined
Nov 17, 2015
Messages
852
Reaction score
475
Trophies
0
Age
40
Location
The Black Pearl
Website
www.nintendo.com
XP
495
Country
United States
Can you compile your Lua code as a .3dsx or do you have to run it through an interpreter?
Is your lua code the base of that interpreter or do you choose code from a GUI?
Can lua code still access wifi and stuff, what are the limitations it has?
 
Can you compile your Lua code as a .3dsx or do you have to run it through an interpreter?
Is your lua code the base of that interpreter or do you choose code from a GUI?
Can lua code still access wifi and stuff, what are the limitations it has?
Lua is interpreted language, limitations depend on how it's implemented. Lpp is the best lua "player" for the 3ds right now and has most things you will need. You can compile lua into bytecode and pack it into the 3dsx but I dont know if lpp has this feature.

Edit: if you are worried about limitations, use C/C++
 
Last edited by MasterFeizz,
You can include your LUA files and even your images in your 3dsx with lpp-3ds but you'll need to recompile it by scratch and make some modification to the code.

CHMM2 for example uses embedded LUA script, image assets and TTF font.
For the LUA script for example, this is the LUA file:
https://github.com/Rinnegatamante/CHMM2/blob/master/source/index.lua

Which is converted in an header file with bin2c: https://github.com/Rinnegatamante/CHMM2/blob/master/build.bat#L1

And then loaded at interpreter startup instead of searching it on the SD: https://github.com/Rinnegatamante/CHMM2/blob/master/source/main.cpp#L119
 

Site & Scene News

Popular threads in this forum