This thread is a few years old. Some details may refer to an earlier version of Visionaire Studio. Current tutorials
The free version covers up to 25 scenes per project. For more scenes and to sell your game, you need a license. Until 1 Dec 2026 all licenses are 30 % off, for example the Indie Bundle for €69.30 instead of €99. The code BLACKFRIDAY is applied automatically at checkout.
See licenses Try it for freeI use VSCode, very consistant across all platformsyou might find this interesting:
-- * load an external script file if the file exists! * --
function loadScript(n)
local f, cerror
f, cerror = loadfile("./data/lua/" .. n)
-- + --
if f == nil then -- checks if file exists!
print("cerror: " .. cerror) -- prints error reason to the log file!
else
print(n, "has been successfully loaded.")
f()
end
end loadScript("file_name.lua")local test1, test2 = "some data", "some data"
print(test1, test2)its because you previously set it to "loadfile()"..:I don't understand how it works exactly - well I understand the loading part of the script, but I don't understand the cerror bit works, but it does seem to work.Normally when you declare variables, you have to manually add the data to each one...local test1, test2 = "some data", "some data" print(test1, test2)otherwise the other variables will return nil, but for some reason cerror returns information if you link to an incorrect file/path.
cerror: cannot open ./data/lua/bleh.lua: No such file or directory
"In case of errors, loadfile returns nil plus the error message, which allows us to handle the error in customized ways. "https://www.lua.org/pil/8.html
"If there is an error in the loading process, for example the file is not found, or it is found but has a syntax error, then f will be nil and err will be the nature of the error."https://www.gammon.com.au/scripts/doc.php?lua=loadfile
This thread is closed because nobody has replied for more than a year. Feel free to ask your question in a new thread.
New threadDeponia, The Whispered World and more than 160 other games were made with Visionaire Studio. The free version covers up to 25 scenes. For more scenes there is Visionaire Studio PRO from €75, and to sell your game the Indie Bundle for €99.
Through December 1: all licenses 30% off, for example the Indie Bundle for €69.30 instead of €99. Applied automatically at checkout.