Oh man: Huge update!
Before all the changes to lunalua: This dll is compiled with VS 2013 (+Windows XP Support). If you use an old OS you probably need the Visual C++ Redistributable Packages for Visual Studio 2013
(I will link on the main Page).
Anyway with the LunaLua v0.6 release, there are following changes:
Because I am already pretty tired I will write the doc later. But I provided the "Raw ... Overview Code", some of you might understand it.
Here is a example code for the new Data-Class:
Code: Select all
local myDataFile = nil;
--Use Data.DATA_LEVEL for saving in the custom level folder
--Use Data.DATA_WORLD for saving in the episode folder
--Use Data.DATA_GLOBAL for saving in the smbx/worlds folder
--The last parameter is true or false, if the data should be save-slot-local.
myDataFile = Data(Data.DATA_LEVEL, "mySection", false)
local stars = myDataFile:get("myStarCounter")
if(stars == "")then
stars = 0
stars = tonumber(stars)
stars = stars + 1
printText("Counter: "..stars, 30, 100)