This is the place for discussion and support for LunaLua and related modifications and libraries.
Moderator: Userbase Moderators
Forum rules
Before you make a topic/post, consider the following:
-Is there a topic for this already?
-Is your post on topic/appropriate?
-Are you posting in the right forum/following the forum rules?
|
|
|
|
-
Kevsoft
- Ripper II

- Posts: 375
- Joined: Sun Jul 27, 2014 8:03 am
Postby Kevsoft » Wed Jul 01, 2015 6:02 am
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.
|
|
|
|
|
|
|
|
|
-
Imaynotbehere4long
- Boomerang Bro

- Posts: 1389
- Joined: Thu Jan 23, 2014 3:00 pm
Postby Imaynotbehere4long » Wed Jul 01, 2015 12:44 pm
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.
|
|
|
|
|
|
|
|
|
-
Void
- Monty Mole

- Posts: 116
- Joined: Sat Dec 21, 2013 11:26 am
- Flair: uhhhhhhh
- Pronouns: they/them
-
Contact:
Postby Void » Wed Jul 01, 2015 4:25 pm
Yeah, That Happened To me too.
|
|
|
|
|
|
|
|
|
-
Kevsoft
- Ripper II

- Posts: 375
- Joined: Sun Jul 27, 2014 8:03 am
Postby Kevsoft » Wed Jul 01, 2015 5:41 pm
Will forward this issue to Rednaxela.
|
|
|
|
|
|
|
|
|
-
alti0204tri
- Swooper

- Posts: 62
- Joined: Sat Mar 28, 2015 7:51 am
Postby alti0204tri » Thu Jul 02, 2015 7:48 am
How can I make a new cheatcode without 'shut down' the save system ?
|
|
|
|
|
|
|
|
|
-
Kevsoft
- Ripper II

- Posts: 375
- Joined: Sun Jul 27, 2014 8:03 am
Postby Kevsoft » Thu Jul 02, 2015 9:08 am
Code: Select all function onLoop()
if(Misc.cheatBuffer() == "myCheatCode")then
--do stuff
Misc.cheatBuffer("") --Clear the cheat buffer
end
end
|
|
|
|
|
|
|
|
|
-
alti0204tri
- Swooper

- Posts: 62
- Joined: Sat Mar 28, 2015 7:51 am
Postby alti0204tri » Thu Jul 02, 2015 11:35 am
Sorry... It's not work... Maybe because I'm using version 0.6...
|
|
|
|
|
|
|
|
|
-
alti0204tri
- Swooper

- Posts: 62
- Joined: Sat Mar 28, 2015 7:51 am
Postby alti0204tri » Sun Jul 05, 2015 11:15 pm
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...)
|
|
|
|
|
|
|
|
|
-
Kevsoft
- Ripper II

- Posts: 375
- Joined: Sun Jul 27, 2014 8:03 am
Postby Kevsoft » Tue Jul 07, 2015 11:32 am
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?
|
|
|
|
|
|
|
|
|
-
alti0204tri
- Swooper

- Posts: 62
- Joined: Sat Mar 28, 2015 7:51 am
Postby alti0204tri » Wed Jul 08, 2015 8:54 am
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
|
|
|
|
|
|
|
|
|
-
Kevsoft
- Ripper II

- Posts: 375
- Joined: Sun Jul 27, 2014 8:03 am
Postby Kevsoft » Wed Jul 08, 2015 11:14 am
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.
|
|
|
|
|
|
|
|
|
-
alti0204tri
- Swooper

- Posts: 62
- Joined: Sat Mar 28, 2015 7:51 am
Postby alti0204tri » Thu Jul 09, 2015 9:17 am
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
|
|
|
|
|
|
|
|
|
-
Kevsoft
- Ripper II

- Posts: 375
- Joined: Sun Jul 27, 2014 8:03 am
Postby Kevsoft » Thu Jul 09, 2015 11:45 am
1.) it is "onLoop" (capitilized "L") and not "onloop"
2.) you forgot an "end" after "triggerEvent(destory)" to close the if statement.
|
|
|
|
|
|
|
|
|
-
Kevsoft
- Ripper II

- Posts: 375
- Joined: Sun Jul 27, 2014 8:03 am
Postby Kevsoft » Sun Jul 26, 2015 3:46 am
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
|
|
|
|
|
|
|
|
|
-
Axiom
- Phanto

- Posts: 1471
- Joined: Tue Dec 24, 2013 2:23 pm
Postby Axiom » Sun Jul 26, 2015 8:21 am
woah, you actually included my level timer? and blank's goal card? t-thank y-you
also, the unplaceSprites: yes thank you.
|
|
|
|
|
|
|
|
|
-
Imaynotbehere4long
- Boomerang Bro

- Posts: 1389
- Joined: Thu Jan 23, 2014 3:00 pm
Postby Imaynotbehere4long » Sun Jul 26, 2015 2:45 pm
Kevsoft wrote: Some small bugfixes
Does that include the screenshot bug I mentioned in my previous post?
|
|
|
|
|
|
|
|
|
-
Axiom
- Phanto

- Posts: 1471
- Joined: Tue Dec 24, 2013 2:23 pm
Postby Axiom » Sun Jul 26, 2015 2:57 pm
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
|
|
|
|
|
|
|
|
|
-
meowflash
- Guest
Postby meowflash » Sun Jul 26, 2015 6:17 pm
Excuse me, Kevsoft, is there a way I can change the FPS of the level?
|
|
|
|
|
|
|
|
|
-
XerX
- Phanto

- Posts: 1487
- Joined: Fri Dec 20, 2013 3:33 pm
Postby XerX » Sun Jul 26, 2015 6:25 pm
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.
|
|
|
|
|
|
|
|
|
-
TLtimelord
- Red Yoshi Egg

- Posts: 2699
- Joined: Sat Dec 21, 2013 5:16 pm
- Flair: Info under raps
Postby TLtimelord » Sun Jul 26, 2015 6:57 pm
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.
|
|
|
|
|
Return to “LunaLua”
Users browsing this forum: Ahrefs [Bot] and 2 guests
|