Page 1 of 1

LunaLua not working with tutorial / lunalua.dll file not detected.

Posted: Fri Feb 26, 2016 11:13 pm
by Greensbr
So I got LunaLua working and everything, and I am following this learning tutorial:

https://www.youtube.com/watch?v=E69ti1QCdsk

But now I am having trouble at the 6:00 mark where she is putting in this code:

local myCounter =0;

function onLoop()
myCounter = myCounter + 1;

Text.print(myCounter,0,0)
end


When I follow the tutorial, and run the game, I cant see the counter in the upper left corner. I am wondering if this has something to do with the lunalua.dll file not being detected?

I am running Windows Vista x64 Bit, Visual C++ 2015 x86, and Notepad ++.

What could I be doing wrong?

Re: LunaLua not working with tutorial / lunalua.dll file not detected.

Posted: Sat Feb 27, 2016 5:38 am
by h2643
As I already said at PGE forums, rename lunadll.txt to lunadll.lua and try again.

Re: LunaLua not working with tutorial / lunalua.dll file not detected.

Posted: Sat Feb 27, 2016 6:00 am
by Greensbr
h2643 wrote:As I already said at PGE forums, rename lunadll.txt to lunadll.lua and try again.
Gotcha but check the other forum, its more complicated ;)

http://wohlsoft.ru/forum/viewtopic.php? ... 4936#p4936

Re: LunaLua not working with tutorial / lunalua.dll file not detected.

Posted: Sat Feb 27, 2016 8:52 am
by Emral
Make a folder with the name of your level and put the lunadll.lua file in there. Alternatively, rename lunadll.lua to lunaworld.lua, though this will make it affect every level in that folder.

Re: LunaLua not working with tutorial / lunalua.dll file not detected.

Posted: Sat Feb 27, 2016 11:38 am
by Greensbr
Enjl wrote:Make a folder with the name of your level and put the lunadll.lua file in there. Alternatively, rename lunadll.lua to lunaworld.lua, though this will make it affect every level in that folder.
I've already done that. The folder, as well as my SMBX/LunaLua installation, is also saved to my desktop to prevent any administrator blocks on Windows Vista.

Image[/quote]

Re: LunaLua not working with tutorial / lunalua.dll file not detected.

Posted: Sat Feb 27, 2016 11:44 am
by Emral
the lvl file needs to be 1 folder upwards from the lua file, you completely missed the point of my previous message.

Re: LunaLua not working with tutorial / lunalua.dll file not detected.

Posted: Sun Feb 28, 2016 12:59 am
by Greensbr
Enjl wrote:the lvl file needs to be 1 folder upwards from the lua file, you completely missed the point of my previous message.
SOLVED IT

1) I had to put the lunalua.lua file into a folder ONE LEVEL down from the .lvl file, which has the SAME NAME as the lvl file.

2) I also wasn't using LunaLoader.exe, I was using SMBX.exe.... It doesn't work with SMBX.exe, but it works with LunaLoader.exe. Hopefully this means it should work with SMBX games? O.o