LunaLua (a.k.a. LunaDLL with Lua) - is a free extension for SMBX game engine. This version is based on LunaDLL ver. 8 with Lua Support. After the release of 0.7.3.1, LunaLua is being developed as a core part of the SMBX2 project.
Features:
- Increasing of total performance
- Fixes of some bugs
- npc-*.txt with decimal numbers will no more crash SMBX with "runtime error 13"
- fixes a random crash caused by contacting of the mushrooms with a lava blocks
- OpenGL render support
- SMBX's audio engine has been replaced with the better and more flexible
SDL2_mixer
(Later its fork calledSDL2 Mixer X
or justMixerX
) library which also gives to SMBX the internal support of a lots of additional music formats - Added Moondust's sounds.ini and music.ini support which gives ability to have custom musics (include world map musics!) and custom sound effects per episode.
- And more other stuff...
Download links
- Download SMBX2 game - The mainstream game based on the LunaLua.
- SMBX2 Documentation - The most current documentation for the LunaLua API.
Old downloads
- Download old releases of LunaLua - Legacy standalone LunaLua releases.
- Legacy LunaLua Documenation - The documentation mostly for old versions of LunaLua.
Visual Studio 2015 (msvc140 compiler) or Clang 14
The CrossCompilation
folder is a modified version of https://github.com/Nemirtingas/clang-msvc-sdk.
- Install Visual C++ build tools 2015 and Windows SDK v7.1A (either on Windows or on Wine)
- Copy all files and folders from
Program Files (x86)/Microsoft Visual Studio 14.0/VC/include/
toCrossCompilation/msvc/include/
- Copy all files and folders from
Program Files (x86)/Windows Kits/10/Include/10.0.10240.0/ucrt/
toCrossCompilation/winsdk/Include/v7.1A/ucrt/
- Copy all files and folders from
Program Files (x86)/Microsoft SDKs/Windows/v7.1A/Include/
toCrossCompilation/winsdk/Include/v7.1A/um/
- Copy all files from
Program Files (x86)/Microsoft Visual Studio 14.0/VC/lib/
toCrossCompilation/msvc/lib/x86/
- Copy all files from
Program Files (x86)/Windows Kits/10/Lib/10.0.10240.0/ucrt/x86/
toCrossCompilation/winsdk/Lib/v7.1A/ucrt/x86/
- Copy all files from
Program Files (x86)/Microsoft SDKs/Windows/v7.1A/Lib/
toCrossCompilation/winsdk/Lib/v7.1A/um/x86/
Just run make
in the CrossCompilation
folder
NB: If you're using clangd and only want to generate compile commands, run make compile_commands.json
in the CrossCompilation
folder.
If you wish you edit code via Qt Creator, you still must have Visual Studio because MSVC compiler is required. How to setup building from Qt creator
- Open project and configure it
- Go to the "Projects" tab
- Disable shadow build for both Debug and Release
- remove ALL items from "Building" and "Cleaning" sections
- Add into "Building" a special item with: ** Command "build.bat" ** Argument "Debug" for debug build and "Release" argument for release build
- Add into "Clearing" a special item with "clear.bat" command
- Try to build project. If you have "MSBuild" in another path, please modify build.bat to take working build!