Page 1 of 3
Adding Time with LunaDLL Tutorial
Posted: Mon Mar 03, 2014 7:06 am
by DarkShadeX
For those people who want to add time to their level can do this now using the amazing lunadll :3
(Here is the the Topic:
Lunadll Topic)
(Here is the Latest Versions:
Latest SMBX 1.3.0.1 Version)
Tutorial:
Make an txt file called
lunadll.txt in your levels folder (exa. mahlevel.lvl\mahlevel)
and add the following piece of code:
Timer Example Code:
Code: Select all
///--Timer--///
#0
// Activate #1234 after choosen frames!
Timer,0,1234,1,0,HOW MUCH TIME YOU WANT TO ADD (650 are 10 Seconds),0
// If Time's up, kill the player!
#1234
Kill,0,0,0,0,1,0
#END
And Thats it! Youre done...But wait,getting the correct frames number for the timer may be a little difficult... Well take this to make your life a little easier
Timer Frames Help:
Code: Select all
Timer Frames in 5 Seconds step:
FRAMES - SECONDS
100 - 1.Second
350 - 5.Seconds
650 - 10.Seconds
950 - 15.Seconds
1250 - 20.Seconds
1550 - 25.Seconds
1850 - 30.Seconds
(always +300 (dont forget to add 50! exa:650)
Alright,this might take a while to get to +100 and etc,so lets get the 50 frames numbers!
Frames - Seconds
3050 - 50.Seconds
6050 - 100.Seconds
9050 - 150.Seconds
(always +3000 (dont forget to add 50! exa:3050)
Now,we get the 100 frames numbers ;)
Frames - Seconds:
6050 - 100.Seconds
12050 - 200.Seconds
18050 - 300.Seconds
(always + 6000 (dont forget to add 50! exa:12050)
I hope that helps you to add time to your level ;)
Here a done example for you to use:
///--This code gives you 355 Time for your level!--///
#0
// Activate #1234 after choosen frames!
Timer,0,1234,1,0,21350,0
// Time's up,now kill the player!
#1234
Kill,0,0,0,0,1,0
#END
Re: Adding Time with LunaDLL Tutorial
Posted: Mon Mar 03, 2014 8:01 am
by zlaker
Wow I didn't know this. Thanks a lot DarkChaox100!
Re: Adding Time with LunaDLL Tutorial
Posted: Mon Mar 03, 2014 8:41 am
by leif_erikson
I'm glad someone figured out how to use it.
Re: Adding Time with LunaDLL Tutorial
Posted: Mon Mar 03, 2014 8:58 am
by icez
kool nice I can use this for my project you think u could make tut of how to modify boss hp
Re: Adding Time with LunaDLL Tutorial
Posted: Mon Mar 03, 2014 9:11 am
by DarkShadeX
I'm rightnow coding a tool to Generate lunadll.txt files so till then,you gotta have to wait ; )
Re: Adding Time with LunaDLL Tutorial
Posted: Mon Mar 03, 2014 9:18 am
by RudeGuy
You can do the time without Luna.DLL in SMBX. It will be ugly, but you can. Anyways, good.
Re: Adding Time with LunaDLL Tutorial
Posted: Mon Mar 03, 2014 9:19 am
by icez
Darkchaox100 wrote:I'm rightnow coding a tool to Generate lunadll.txt files so till then,you gotta have to wait ; )
Kool Np I am in no rush and tool that does half the work anyway is very much welcome I kind of was' not looking forward to typing a whole lot of code anyways
Re: Adding Time with LunaDLL Tutorial
Posted: Mon Mar 03, 2014 2:45 pm
by Drluigi
Hey, would it be possible to edit NPC's further than you can with the Custom NPC codes? I already know that you can for boss health, but can you do anything else?
Re: Adding Time with LunaDLL Tutorial
Posted: Mon Mar 03, 2014 10:19 pm
by Julia Pseudo
You're pretty amazing, Darkchao. The SMBX hacking stuff you've managed to do is great. Thanks for making this.
Re: Adding Time with LunaDLL Tutorial
Posted: Mon Mar 03, 2014 11:31 pm
by icez
Yes the fact that we can utilize a timer now means we can design rush levels now
Re: Adding Time with LunaDLL Tutorial
Posted: Tue Mar 04, 2014 7:24 am
by DarkShadeX
You guy's shouldn't thank me for this!
Thanks to the creators of Lunadll for their hard work ; )
Re: Adding Time with LunaDLL Tutorial
Posted: Thu Mar 06, 2014 1:23 pm
by SuperWingedYoshi
This sounds great! However, I have a worry... If I add a time limit to a level and someone without LunaDLL wants to play it, does he/she still have the time limit? Or will there be no time limit? Or will the game crash?
Re: Adding Time with LunaDLL Tutorial
Posted: Thu Mar 06, 2014 1:37 pm
by Valtteri
smwforever45 wrote:This sounds great! However, I have a worry... If I add a time limit to a level and someone without LunaDLL wants to play it, does he/she still have the time limit? Or will there be no time limit? Or will the game crash?
You will have to include the modified .exe to the download (or tell the users in your topic that your game requires a modified .exe) and the level must be played with it. It's not playable with the regular .exe.
Re: Adding Time with LunaDLL Tutorial
Posted: Thu Mar 06, 2014 2:54 pm
by DarkShadeX
Or simply say:
Its only Combatible with SMBX 1.3.0.1 (or 1.3.0.2) : P
Re: Adding Time with LunaDLL Tutorial
Posted: Thu Mar 06, 2014 3:35 pm
by SuperWingedYoshi
Valtteri wrote:You will have to include the modified .exe to the download (or tell the users in your topic that your game requires a modified .exe) and the level must be played with it. It's not playable with the regular .exe.
Hm, okay... So I'd have to include the modified .exe and then it'd work... But it's still a nice thing to have. I've always been missing those time limits. I wonder why they're not being added to SMBX? They're an elementary thing in SMB1, SMB3 and SMW.
Darkchaox100 wrote:Or simply say:
Its only Combatible with SMBX 1.3.0.1 (or 1.3.0.2) : P
1.3.0.2? You mean the modified .exe of 1.3.0.1, right? Or is there a new version I don't know about...?
Re: Adding Time with LunaDLL Tutorial
Posted: Thu Mar 06, 2014 11:28 pm
by FallingSnow
Does this put a timer on screen or only an imaginary one that kills the player after some unknown time?
Re: Adding Time with LunaDLL Tutorial
Posted: Fri Mar 07, 2014 12:11 am
by Magician
I was under the impression that 1.3.0.1 doesn't support LunaDLL, but 1.3.0.2 will. Did I miss something? EDIT: NEVERMIND I found the post lol
FallingSnow wrote:Does this put a timer on screen or only an imaginary one that kills the player after some unknown time?
https://www.youtube.com/watch?v=L68BbB07SzE
The image here is bouncing off the sides of the window... similar programming to an old-school screensaver.
With that in mind it doesn't seem like a huge leap in logic to think that you could do something similar with bitmap images of digits and have the first digit change every second, the second digit every ten seconds, and so on, and have them appear in a uniform spot on the window so as to be a part of the HUD. I could be wrong.
Re: Adding Time with LunaDLL Tutorial
Posted: Fri Mar 07, 2014 2:34 am
by Julia Pseudo
1.3.0.2 is just a slight update to 1.3.0.1, smwforever. It just had a couple of extra fixes or something.
Re: Adding Time with LunaDLL Tutorial
Posted: Fri Mar 07, 2014 2:15 pm
by Imaynotbehere4long
Pseudo-dino wrote:1.3.0.2 is just a slight update to 1.3.0.1, smwforever. It just had a couple of extra fixes or something.
Wait, I'm confused. Does this mean that the exe in the SMBX 1.3.0.1 thread DOESN'T support LunaDLL? Also, I tried to download the SMBX 1.3.0.1+LunaDLL link on the first post, but I got an error message that said the website ran out of bandwidth.
Re: Adding Time with LunaDLL Tutorial
Posted: Fri Mar 07, 2014 4:22 pm
by leif_erikson