Adding Time with LunaDLL Tutorial

General discussion about Super Mario Bros. X.

Moderator: Userbase Moderators

SuperWingedYoshi
Volcano Lotus
Volcano Lotus
Posts: 547
Joined: Thu Feb 27, 2014 9:23 am

Re: Adding Time with LunaDLL Tutorial

Postby SuperWingedYoshi » Fri Mar 07, 2014 6:50 pm

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.
Well, okay, but where can I download 1.3.0.2? This forum only offers a link to 1.3.0.1...

DarkShadeX
Volcano Lotus
Volcano Lotus
Posts: 535
Joined: Sat Jan 18, 2014 11:34 am

Re: Adding Time with LunaDLL Tutorial

Postby DarkShadeX » Sat Mar 08, 2014 5:37 am

smwforever45 wrote:
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.
Well, okay, but where can I download 1.3.0.2? This forum only offers a link to 1.3.0.1...
It's not done yet.

RudeGuy
Bowser
Bowser
Posts: 4994
Joined: Fri Dec 27, 2013 7:36 am
Flair: local guy

Re: Adding Time with LunaDLL Tutorial

Postby RudeGuy » Sun Mar 09, 2014 10:58 am

I try to add time in one of my levels, but it don't functions.
Spoiler: show

Code: Select all

///--LunaDLL Timer--///
#0

// Activate #5 after choosen frames!

Timer,0,5,1,0,350,0

// Time's up,now kill the player!
#5
Kill,0,0,0,0,1,0

#END

The time must be 5 seconds (is only a try). If there is something wrong please tell me it.

DarkShadeX
Volcano Lotus
Volcano Lotus
Posts: 535
Joined: Sat Jan 18, 2014 11:34 am

Re: Adding Time with LunaDLL Tutorial

Postby DarkShadeX » Sun Mar 09, 2014 12:28 pm

Christian07 wrote:I try to add time in one of my levels, but it don't functions.
Spoiler: show

Code: Select all

///--LunaDLL Timer--///
#0

// Activate #5 after choosen frames!

Timer,0,5,1,0,350,0

// Time's up,now kill the player!
#5
Kill,0,0,0,0,1,0

#END

The time must be 5 seconds (is only a try). If there is something wrong please tell me it.
Try this:
Spoiler: show

Code: Select all

///--LunaDLL Timer--///
#0

// Activate #5 after choosen frames!

Timer,0,9000,1,0,350,0

// Time's up,now kill the player!
#9000
Kill,0,0,0,0,1,0

#END


RudeGuy
Bowser
Bowser
Posts: 4994
Joined: Fri Dec 27, 2013 7:36 am
Flair: local guy

Re: Adding Time with LunaDLL Tutorial

Postby RudeGuy » Sun Mar 09, 2014 1:40 pm

Darkchaox100 wrote:
Christian07 wrote:I try to add time in one of my levels, but it don't functions.
Spoiler: show

Code: Select all

///--LunaDLL Timer--///
#0

// Activate #5 after choosen frames!

Timer,0,5,1,0,350,0

// Time's up,now kill the player!
#5
Kill,0,0,0,0,1,0

#END

The time must be 5 seconds (is only a try). If there is something wrong please tell me it.
Try this:
Spoiler: show

Code: Select all

///--LunaDLL Timer--///
#0

// Activate #5 after choosen frames!

Timer,0,9000,1,0,350,0

// Time's up,now kill the player!
#9000
Kill,0,0,0,0,1,0

#END

Well, same thing.

DarkShadeX
Volcano Lotus
Volcano Lotus
Posts: 535
Joined: Sat Jan 18, 2014 11:34 am

Re: Adding Time with LunaDLL Tutorial

Postby DarkShadeX » Sun Mar 09, 2014 1:42 pm

Christian07 wrote:
Darkchaox100 wrote:
Christian07 wrote:I try to add time in one of my levels, but it don't functions.
Spoiler: show

Code: Select all

///--LunaDLL Timer--///
#0

// Activate #5 after choosen frames!

Timer,0,5,1,0,350,0

// Time's up,now kill the player!
#5
Kill,0,0,0,0,1,0

#END

The time must be 5 seconds (is only a try). If there is something wrong please tell me it.
Try this:
Spoiler: show

Code: Select all

///--LunaDLL Timer--///
#0

// Activate #5 after choosen frames!

Timer,0,9000,1,0,350,0

// Time's up,now kill the player!
#9000
Kill,0,0,0,0,1,0

#END

Well, same thing.
Did you renamed the txt as lunadll.txt and is it also in the level folder? (level.lvl \ level)
Also do you use the patched SMBx 1.3.0.1 with Lunadll.dll?

RudeGuy
Bowser
Bowser
Posts: 4994
Joined: Fri Dec 27, 2013 7:36 am
Flair: local guy

Re: Adding Time with LunaDLL Tutorial

Postby RudeGuy » Sun Mar 09, 2014 1:50 pm

Did you renamed the txt as lunadll.txt and is it also in the level folder? (level.lvl \ level)
Also do you use the patched SMBx 1.3.0.1 with Lunadll.dll?[/quote]

Yes, I did it.

DarkShadeX
Volcano Lotus
Volcano Lotus
Posts: 535
Joined: Sat Jan 18, 2014 11:34 am

Re: Adding Time with LunaDLL Tutorial

Postby DarkShadeX » Sun Mar 09, 2014 1:52 pm

Christian07 wrote:Did you renamed the txt as lunadll.txt and is it also in the level folder? (level.lvl \ level)
Also do you use the patched SMBx 1.3.0.1 with Lunadll.dll?
Yes, I did it.
Thats weird...
Try if this works on your level:

Code: Select all

///--LunaDLL Timer--///
#0

// Activate #1000 after choosen frames!

Timer,0,1000,1,0,21350,0

// Time's up,now kill the player!
#1000
Kill,0,0,0,0,1,0


bossedit8
Banned
Posts: 6838
Joined: Fri Dec 20, 2013 12:35 pm
Contact:

Re: Adding Time with LunaDLL Tutorial

Postby bossedit8 » Sun Mar 09, 2014 2:14 pm

There is an issue with the Timer. If you hit a NPC where the Level ends (SMB2 Birdo's Crystal Orb, SMB3 Card, SMB3 '?' Orb, SMW Goal Gate, etc...) the Timer still runs which is not so good because it can be an issue if the Timer hits at zero maybe it can be a result, being destroyed during the victory.

DarkShadeX
Volcano Lotus
Volcano Lotus
Posts: 535
Joined: Sat Jan 18, 2014 11:34 am

Re: Adding Time with LunaDLL Tutorial

Postby DarkShadeX » Sun Mar 09, 2014 2:15 pm

bossedit8 wrote:There is an issue with the Timer. If you hit a NPC where the Level ends (SMB2 Birdo's Crystal Orb, SMB3 Card, SMB3 '?' Orb, SMW Goal Gate, etc...) the Timer still runs which is not so good because it can be an issue if the Timer hits at zero maybe it can be a result, being destroyed during the victory.
Theres an function called:
DeleteEventsFrom,???,0,0,0,1,0
which can stop the killing event.

leif_erikson
Blooper
Blooper
Posts: 167
Joined: Thu Feb 06, 2014 12:23 pm

Re: Adding Time with LunaDLL Tutorial

Postby leif_erikson » Sun Mar 09, 2014 9:59 pm

I'll try to disable Timer during that in the next version of lunadll. But I'm not actually sure how to detect if the level is being ended.

DarkShadeX
Volcano Lotus
Volcano Lotus
Posts: 535
Joined: Sat Jan 18, 2014 11:34 am

Re: Adding Time with LunaDLL Tutorial

Postby DarkShadeX » Mon Mar 10, 2014 11:54 am

Why not try to add a kind of sensor when the Goal NPCS in the level doesnt exist anymore. (if you collect them)

Melting Terminal
Bob-Omb
Bob-Omb
Posts: 23
Joined: Sat Mar 22, 2014 11:35 am

Re: Adding Time with LunaDLL Tutorial

Postby Melting Terminal » Tue Apr 22, 2014 4:21 pm

Ahh, this is really useful, thanks! I was going to be making an episode and I was considering how to insert a timer into it, but then I learnt about a wonderful thing called LunaDLL. Anyway, thanks for making this tutorial.

Lx Xzit
Lakitu
Lakitu
Posts: 472
Joined: Mon Feb 03, 2014 2:12 pm

Re: Adding Time with LunaDLL Tutorial

Postby Lx Xzit » Sun May 11, 2014 11:38 am

Awesome! Thanks for this information Darkchaox300 :D

Lx Xzit
Lakitu
Lakitu
Posts: 472
Joined: Mon Feb 03, 2014 2:12 pm

Re: Adding Time with LunaDLL Tutorial

Postby Lx Xzit » Mon May 12, 2014 2:45 pm

How I can add 400 seconds to my level?

FanofSMBX
Ludwig von Koopa
Ludwig von Koopa
Posts: 3878
Joined: Sun Dec 22, 2013 12:01 pm

Re: Adding Time with LunaDLL Tutorial

Postby FanofSMBX » Mon May 12, 2014 3:00 pm

100 - 1.Second
350 - 5.Seconds
650 - 10.Seconds
950 - 15.Seconds
1250 - 20.Seconds
Multiply 1250 by 20.

zlaker
Reznor
Reznor
Posts: 2844
Joined: Fri Dec 20, 2013 1:46 pm

Re: Adding Time with LunaDLL Tutorial

Postby zlaker » Mon May 12, 2014 3:05 pm

#0

// Set timer to 400, trigger 1000 when expired
Timer,0,1000,1,0,24050,0

// Trigger 1001 when exit is collected
IfNPC,11,2,0,1001,0,0

#1000

// Kill player when time runs out
Kill,0,0,0,0,1,0

#1001

// Delete kill event
DeleteEventsFrom,1000,0,0,0,0,0

#END

leif_erikson
Blooper
Blooper
Posts: 167
Joined: Thu Feb 06, 2014 12:23 pm

Re: Adding Time with LunaDLL Tutorial

Postby leif_erikson » Tue May 13, 2014 5:37 pm

Ice wrote:#0

// Set timer to 400, trigger 1000 when expired
Timer,0,1000,1,0,24050,0

// Trigger 1001 when exit is collected
IfNPC,11,2,0,1001,0,0

#1000

// Kill player when time runs out
Kill,0,0,0,0,1,0

#1001

// Delete kill event
DeleteEventsFrom,1000,0,0,0,0,0

#END
Thanks, that's the best way to make sure the timer stops.

Lx Xzit
Lakitu
Lakitu
Posts: 472
Joined: Mon Feb 03, 2014 2:12 pm

Re: Adding Time with LunaDLL Tutorial

Postby Lx Xzit » Sat May 17, 2014 10:25 pm

Ice wrote:#0

// Set timer to 400, trigger 1000 when expired
Timer,0,1000,1,0,24050,0

// Trigger 1001 when exit is collected
IfNPC,11,2,0,1001,0,0

#1000

// Kill player when time runs out
Kill,0,0,0,0,1,0

#1001

// Delete kill event
DeleteEventsFrom,1000,0,0,0,0,0

#END
Thanks.

MECHDRAGON777
Pink Yoshi Egg
Pink Yoshi Egg
Posts: 6422
Joined: Fri Dec 20, 2013 6:40 pm
Flair: Nuclear Queen of Reversion.
Contact:

Re: Adding Time with LunaDLL Tutorial

Postby MECHDRAGON777 » Sat May 17, 2014 10:38 pm

So, What is 360 seconds, When I did the math, I got 362 seconds on the clock!


Return to “General”

Who is online

Users browsing this forum: No registered users and 1 guest

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari