local files = {
-- name of the files
"main.lua",
"conf.lua"
-- other files
}
for i = 1, #files, 1 do
print("Verifing..."..files[i])
if not(love.filesystem.getInfo(files[i])) then
print(files[i].." Not found")
error("Installation is damaged "..files[i].." not found")
end
print("Done verified..."..files[i])
end
function love.conf(t)
t.console = true
t.version = 11.5
require("libs/verify") -- called here
end
The print statement wont print to the console.
I use a VS code extention to read the console it is shown in there (Its supposed to show the console output after I have closed LOVE).
Soooo is this a bug ? Or im just stupid.
My brain is not braining any more
Last edited by zalander on Sun Dec 31, 2023 5:48 am, edited 1 time in total.
Works for me!
I took the above and made a .love file (attached). I tried both by calling love on the main.lua I created, and from running the .love directly.
The main.lua I created just contains:
print("This concludes the broadcast test. : )")
Try doing this at the top of your main.lua, because sometimes writes to console get buffered and it might not print in time or some sillyness like that:
io:setvbuf("no")
Me and my stuff True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.