Page 10 of 47
Re: LunaLua Offical Thread [Streaming Question Poll]
Posted: Wed Jul 01, 2015 6:02 am
by Kevsoft
This SMBX.exe version is a modified one. It uses a mechanism called "DLL-Injection" which essential meaning, that this SMBX.exe is forced to load Lunadll.dll. Unfortunatly this mechanism is also use by a lot of viruses.
However, my co-developer Rednaxela was able to make a LunaLoader which does the same mechanism but in memory. This version is coming up soon.
Re: LunaLua Offical Thread [Streaming Question Poll]
Posted: Wed Jul 01, 2015 12:44 pm
by Imaynotbehere4long
Whenever I try to take a screenshot, it just appears as a black square instead of, you know, a screenshot. This doesn't happen without Lua.
Re: LunaLua Offical Thread [Streaming Question Poll]
Posted: Wed Jul 01, 2015 4:25 pm
by Void
Yeah, That Happened To me too.
Re: LunaLua Offical Thread [Streaming Question Poll]
Posted: Wed Jul 01, 2015 5:41 pm
by Kevsoft
Will forward this issue to Rednaxela.
Re: LunaLua Offical Thread [Streaming Question Poll]
Posted: Thu Jul 02, 2015 7:48 am
by alti0204tri
How can I make a new cheatcode without 'shut down' the save system ?
Re: LunaLua Offical Thread [Streaming Question Poll]
Posted: Thu Jul 02, 2015 9:08 am
by Kevsoft
Code: Select all
function onLoop()
if(Misc.cheatBuffer() == "myCheatCode")then
--do stuff
Misc.cheatBuffer("") --Clear the cheat buffer
end
end
Re: LunaLua Offical Thread [Streaming Question Poll]
Posted: Thu Jul 02, 2015 11:35 am
by alti0204tri
Sorry... It's not work... Maybe because I'm using version 0.6...
Re: LunaLua Offical Thread [Streaming Question Poll]
Posted: Sun Jul 05, 2015 11:15 pm
by alti0204tri
Is it posible to:
if a specific npc with a certain ID is "dead" then it makes a valuable increase?
(on version 0.6.1 please...)
Re: LunaLua Offical Thread [Streaming Question Poll]
Posted: Tue Jul 07, 2015 11:32 am
by Kevsoft
alti0204tri wrote:Is it posible to:
if a specific npc with a certain ID is "dead" then it makes a valuable increase?
(on version 0.6.1 please...)
Is it only one NPC or multiple NPCs?
Re: LunaLua Offical Thread [Streaming Question Poll]
Posted: Wed Jul 08, 2015 8:54 am
by alti0204tri
Kevsoft wrote:
Is it only one NPC or multiple NPCs?
One, each one.
I mean if you collect it or make it dead (like a coin) then a valuable will increase for a certain amount
Re: LunaLua Offical Thread [Streaming Question Poll]
Posted: Wed Jul 08, 2015 11:14 am
by Kevsoft
well, then here is a version that should work with LunaLua v0.6.1:
Code: Select all
local npc1_isDead = false
function onLoop()
local npc1 = findnpcs(1, -1)[0] --or replace -1 with player.section to be section-only
if(not npc1_isDead and npc1)then
-- Do your actions here
npc1_isDead = true
end
end
In this example the npc with the id 1 (goomba) is checked for death.
Re: LunaLua Offical Thread [Streaming Question Poll]
Posted: Thu Jul 09, 2015 9:17 am
by alti0204tri
Thx. I will try it.
But I have a code that caused error about the final "end" of the function print(), I don't know why...
This code is about to show the time in minutes and second till something happen.
Code: Select all
local frame=0;
local sec=0;
local min=2;
function onloop()
print();
count();
if ((frame==0) and (sec==0) and (min==0)) then
triggerEvent(destroy);
end
function count()
if (frame==0) then
if (sec==0) then
min=min-1;
sec=59;
frame=31;
else
sec=sec-1;
frame=31;
end
else frame=frame-1;
end
end
function print()
printText("TIME LEFT",1000,32);
printText(tostring(min),1000,32);
printText(":",1032,32);
printText(tostring(sec),1096,32);
end
Re: LunaLua Offical Thread [Streaming Question Poll]
Posted: Thu Jul 09, 2015 11:45 am
by Kevsoft
1.) it is "onLoop" (capitilized "L") and not "onloop"
2.) you forgot an "end" after "triggerEvent(destory)" to close the if statement.
Re: LunaLua Offical Thread [Streaming Question Poll]
Posted: Sun Jul 26, 2015 3:46 am
by Kevsoft
LunaLua v0.7.0.3 has been released with following changes:
* Some small bugfixes
* New APIs: leveltimer.lua and smb3goalcard.lua
* New event: onMessageBox(eventObj, msg)
* New functions: unplaceSprites (to remove placed sprites)
In addition check this new neat API/extension out:
https://www.youtube.com/watch?v=f9hBABxCvKg
Re: LunaLua Offical Thread [Streaming Question Poll]
Posted: Sun Jul 26, 2015 8:21 am
by Axiom
woah, you actually included my level timer? and blank's goal card? t-thank y-you
also, the unplaceSprites: yes thank you.
Re: LunaLua Offical Thread [Streaming Question Poll]
Posted: Sun Jul 26, 2015 2:45 pm
by Imaynotbehere4long
Kevsoft wrote: Some small bugfixes
Does that include the screenshot bug I mentioned in my previous post?
Re: LunaLua Offical Thread [Streaming Question Poll]
Posted: Sun Jul 26, 2015 2:57 pm
by Axiom
Imaynotbehere4long wrote:Kevsoft wrote: Some small bugfixes
Does that include the screenshot bug I mentioned in my previous post?
that's an SDL + OpenGL issue. afaik that hasn't been fixed yet
Re: LunaLua Offical Thread [Streaming Question Poll]
Posted: Sun Jul 26, 2015 6:17 pm
by meowflash
Excuse me, Kevsoft, is there a way I can change the FPS of the level?
Re: LunaLua Offical Thread [Streaming Question Poll]
Posted: Sun Jul 26, 2015 6:25 pm
by XerX
meowflash wrote:Excuse me, Kevsoft, is there a way I can change the FPS of the level?
Why would you ever want to do that.
Re: LunaLua Offical Thread [Streaming Question Poll]
Posted: Sun Jul 26, 2015 6:57 pm
by TLtimelord
meowflash wrote:Excuse me, Kevsoft, is there a way I can change the FPS of the level?
I believe the FPS involves how your computer runs. Not how the program runs.