LunaDLL - SMBX Extension Module

This is where we'll store the "best" topics that have ever existed on the forums, as well as community events that are no longer relevant. Read at your own risk.
Forum rules
Read at your own risk.
HenryRichard
Birdo
Birdo
Posts: 2843
Joined: Mon Dec 23, 2013 12:09 pm
Flair: Is this where I type my password?
Contact:

Re: LunaDLL - SMBX Extension Module

Postby HenryRichard » Wed Nov 19, 2014 11:43 pm

luigi08 wrote:Thanks Snifitguy, but...
I wrote it, and this happened:
Spoiler: show
Image
and is supposed to look like this:
Spoiler: show
Image
Okay, let's make sure you're setting this up right (Which I'm pretty sure is the case, I had difficulty with it too). We know lunadll is working because we saw the demo counter.
Image

luigi08
Rex
Rex
Posts: 32
Joined: Wed Jul 30, 2014 3:13 pm
Pronouns: he/him

Re: LunaDLL - SMBX Extension Module

Postby luigi08 » Thu Nov 20, 2014 2:57 pm

HenryRichard wrote:Image
Yes... I do that but, I better tell you what I want to do:
Rememer my post? (projects forum) Yes, Super Mario Adventure, is not abandoned!
Is that I am very busy with school and can not do anything. But occasionally, I 'll update that.
If you want to show the HUDs did:
Spoiler: show
Mario:Image
Luigi:Image
Peach:Image
Toad:Image
and why not Link:Image

Blck_Guy
Guest

Re: LunaDLL - SMBX Extension Module

Postby Blck_Guy » Thu Nov 20, 2014 5:05 pm

If an Episode get's created with Luna/Lua, does it count as 'Hacked'

Sambo
Snifit
Snifit
Posts: 208
Joined: Fri Jan 24, 2014 6:43 pm

Re: LunaDLL - SMBX Extension Module

Postby Sambo » Thu Nov 20, 2014 9:45 pm

Will it cause any problems if I have a custom event in the level's lunadll.txt with the same number as in the one for the world?
(if I had a custom event #1000 in both, would it cause some sort of conflict?)

HenryRichard
Birdo
Birdo
Posts: 2843
Joined: Mon Dec 23, 2013 12:09 pm
Flair: Is this where I type my password?
Contact:

Re: LunaDLL - SMBX Extension Module

Postby HenryRichard » Fri Nov 21, 2014 1:12 pm

luigi08 wrote:
HenryRichard wrote:
Spoiler: show
Image
Yes... I do that but, I better tell you what I want to do:
Rememer my post? (projects forum) Yes, Super Mario Adventure, is not abandoned!
Is that I am very busy with school and can not do anything. But occasionally, I 'll update that.
If you want to show the HUDs did:
Spoiler: show
Mario:Image
Luigi:Image
Peach:Image
Toad:Image
and why not Link:Image
Okay, then maybe you have an old version of luna. Try downloading just the luna.dll file from here:
http://www.gamearchaeology.com/LunaDll.dll
Then just drop it into your SMBX directory and it should work.
(Oh and in case you were wondering last time I checked the one in the OP is an old version)

FanofSMBX
Mouser
Mouser
Posts: 3878
Joined: Sun Dec 22, 2013 12:01 pm

Re: LunaDLL - SMBX Extension Module

Postby FanofSMBX » Sat Nov 22, 2014 4:10 pm

New discovery I made! Take my save after cheating code and replace the 8 digits after 0x with
0x00B2C8AE
It's the sonicstooslow except it's not a cheat! You can trigger it with any lunadll event. If you want it to be back to normal, set it to 0 instead of 0xFFFF.
(Expert info)
size=w (word), set to 0xFFFF=on, set to 0=off

HenryRichard
Birdo
Birdo
Posts: 2843
Joined: Mon Dec 23, 2013 12:09 pm
Flair: Is this where I type my password?
Contact:

Re: LunaDLL - SMBX Extension Module

Postby HenryRichard » Sat Nov 22, 2014 4:45 pm

FanofSMBX wrote:New discovery I made! Take my save after cheating code and replace the 8 digits after 0x with
0x00B2C8AE
It's the sonicstooslow except it's not a cheat! You can trigger it with any lunadll event. If you want it to be back to normal, set it to 0 instead of 0xFFFF.
(Expert info)
size=w (word), set to 0xFFFF=on, set to 0=off
Oh man, I can do so much with this! How about a super-fast autoscrolling level where you have to use this to go through a relatively simple level at incredible speeds?

JupiHornet
Chargin' Chuck
Chargin' Chuck
Posts: 2399
Joined: Tue Sep 02, 2014 5:43 pm
Contact:

Re: LunaDLL - SMBX Extension Module

Postby JupiHornet » Sat Nov 22, 2014 5:16 pm

HenryRichard wrote:
FanofSMBX wrote:New discovery I made! Take my save after cheating code and replace the 8 digits after 0x with
0x00B2C8AE
It's the sonicstooslow except it's not a cheat! You can trigger it with any lunadll event. If you want it to be back to normal, set it to 0 instead of 0xFFFF.
(Expert info)
size=w (word), set to 0xFFFF=on, set to 0=off
Oh man, I can do so much with this! How about a super-fast autoscrolling level where you have to use this to go through a relatively simple level at incredible speeds?
Geometry Dash based level 1337/10

FanofSMBX
Mouser
Mouser
Posts: 3878
Joined: Sun Dec 22, 2013 12:01 pm

Re: LunaDLL - SMBX Extension Module

Postby FanofSMBX » Sat Nov 22, 2014 5:40 pm

I'm trying to make a super sonic like form. Stay tuned...

In other news:
I was able to make things move horizontally and vertically faster or slower. For example
1.5x speed Rinka
Slow falling spiny egg (parachute enemies here I come)
A Paragoomba that hops low and fast
Yes it has decimals! I think setting x speed with lunadll could be a alternative to crashy npc codes. I'll probably post some graphics using this, but there's some glitches with flying enemies that accelerate and such.
Maybe this could make space gravity apply to enemies too?

lighthouse64
Charged Spiny
Charged Spiny
Posts: 1804
Joined: Sat Apr 26, 2014 6:28 am

Re: LunaDLL - SMBX Extension Module

Postby lighthouse64 » Sun Nov 23, 2014 12:21 am

FanofSMBX wrote:I'm trying to make a super sonic like form. Stay tuned...

In other news:
I was able to make things move horizontally and vertically faster or slower. For example
1.5x speed Rinka
Slow falling spiny egg (parachute enemies here I come)
A Paragoomba that hops low and fast
Yes it has decimals! I think setting x speed with lunadll could be a alternative to crashy npc codes. I'll probably post some graphics using this, but there's some glitches with flying enemies that accelerate and such.
Maybe this could make space gravity apply to enemies too?
Yup, you sure can. Just make a lua file with this code in it:

Code: Select all

function onLoad()
gravity(1)

end

Blck_Guy
Guest

Re: LunaDLL - SMBX Extension Module

Postby Blck_Guy » Sun Nov 30, 2014 11:16 pm

Blck_Guy wrote:If an Episode get's created with Luna/Lua, does it count as 'Hacked' Episode?

Serious guys?! You missed my post somehow?!

hacheipe399
Bit
Bit
Posts: 64
Joined: Mon Feb 10, 2014 12:29 pm

Re: LunaDLL - SMBX Extension Module

Postby hacheipe399 » Fri Dec 05, 2014 7:59 pm

SnifitGuy wrote:Could someone post the download link for the LUA version? Also, could someone tell me how exactly to make the Lua version affect a level?
http://engine.wohlnet.ru/forum/viewtopic.php?f=26&t=329
In that topic is the download link and install steps...
To work with lunadll you need to place a "lunadll.txt" in your level folder. To work with LunaLua you need to make a "lunadll.LUA" and done.

SMBXxer
Panser
Panser
Posts: 1023
Joined: Fri Dec 20, 2013 4:33 pm

Re: LunaDLL - SMBX Extension Module

Postby SMBXxer » Fri Dec 05, 2014 8:40 pm

FanofSMBX wrote:New discovery I made! Take my save after cheating code and replace the 8 digits after 0x with
0x00B2C8AE
It's the sonicstooslow except it's not a cheat! You can trigger it with any lunadll event. If you want it to be back to normal, set it to 0 instead of 0xFFFF.
(Expert info)
size=w (word), set to 0xFFFF=on, set to 0=off
Oh my god, this is amazing.
The second I get my computer fixed I'm doing this.

Hasbeen400
Guest

Re: LunaDLL - SMBX Extension Module

Postby Hasbeen400 » Sun Dec 07, 2014 12:45 pm

Can someone give me a step-by-step guide on how to make a timer with LunaDLL?

hacheipe399
Bit
Bit
Posts: 64
Joined: Mon Feb 10, 2014 12:29 pm

Re: LunaDLL - SMBX Extension Module

Postby hacheipe399 » Sun Dec 07, 2014 7:37 pm

Hasbeen400 wrote:Can someone give me a step-by-step guide on how to make a timer with LunaDLL?
A loop timer or just a common timer? Timer of SMBX events or timer of LunaDLL actions?
Well, to make a timer there is an action caller "Timer". In this example I'll show a simple message.

Code: Select all

#0
Timer,0,1001,1,0,200,0

#1001
ShowText,0,400,550,3,200,Testing the Timer!

#END
Where:
#0
  • First number is the target. 0 is player.
  • Second number is the action to do when the time ends. In this case, the action is #1001
  • Third number is Display. If 0, the time doesn't shows in the top right corner. If 1, it shows in the screen.
  • Forth number is Repeat. If 0, the timer doesn't restart when it finishes. If 1, Restart the timer back to its starting point when it finishes.
  • Fifth number is Active Time. When it reaches 0, the custom event starts. The number is in frames (60=1sec)
  • Sixth place is unused in Timer action, so there is just a zero.
#1001
  • 1. The Target param is unused in this Action, so there is just an zero.
  • 2. That number is X coord.
  • 3. Y coord.
  • 4. Font of the text. "1" displays black letters (overworld level name font). "2" displays numbers (score font) and "3" displays uppercase (normal game font)
  • 5. It's the Active Time. The time when the message is on screen. In this case, 200 frames (more than 3 secs).
  • 6. Your message.

Hasbeen400
Guest

Re: LunaDLL - SMBX Extension Module

Postby Hasbeen400 » Mon Dec 08, 2014 7:11 am

Great, but each level in the episode I'm working on has a different amount of time. How do I do that, along with making a message appear when time runs out, showing the remaining time on the screen and killing the character when time is up? (I have never used LunaDLL before)

hacheipe399
Bit
Bit
Posts: 64
Joined: Mon Feb 10, 2014 12:29 pm

Re: LunaDLL - SMBX Extension Module

Postby hacheipe399 » Mon Dec 08, 2014 4:01 pm

Hasbeen400 wrote:Great, but each level in the episode I'm working on has a different amount of time. How do I do that, along with making a message appear when time runs out, showing the remaining time on the screen and killing the character when time is up? (I have never used LunaDLL before)
You can use "Timer" action also.

Code: Select all

#0
Timer,0,1000,1,0,200,0

#1000
ShowText,0,600,10,3,0,YOU ARE DEAD!
Kill,0,0,0,0,0,once

#END
The explication of the Timer and Text is above this post. Now I'll explain the "Kill" action:
  • 1. TARGET. 0 is the player.
  • 2nd, 3rd and 4th numbers are not used in this action.
  • 5. Active Time. The player will be killed just one time, so define an Active Time is ridiculous.
  • 6. Option. In this case, the action will execute once and then it deletes itself. Imagine if this action is looping always :?:

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

Re: LunaDLL - SMBX Extension Module

Postby MECHDRAGON777 » Tue Dec 09, 2014 12:13 am

hacheipe399 wrote:
Hasbeen400 wrote:Great, but each level in the episode I'm working on has a different amount of time. How do I do that, along with making a message appear when time runs out, showing the remaining time on the screen and killing the character when time is up? (I have never used LunaDLL before)
You can use "Timer" action also.

Code: Select all

#0
Timer,0,1000,1,0,200,0

#1000
ShowText,0,600,10,3,0,YOU ARE DEAD!
Kill,0,0,0,0,0,once

#END
The explication of the Timer and Text is above this post. Now I'll explain the "Kill" action:
  • 1. TARGET. 0 is the player.
  • 2nd, 3rd and 4th numbers are not used in this action.
  • 5. Active Time. The player will be killed just one time, so define an Active Time is ridiculous.
  • 6. Option. In this case, the action will execute once and then it deletes itself. Imagine if this action is looping always :?:
Is it possible to use commands to increase the toatl time on a level?

lighthouse64
Charged Spiny
Charged Spiny
Posts: 1804
Joined: Sat Apr 26, 2014 6:28 am

Re: LunaDLL - SMBX Extension Module

Postby lighthouse64 » Tue Dec 09, 2014 12:16 am

MECHDRAGON777 wrote:
hacheipe399 wrote:
Hasbeen400 wrote:Great, but each level in the episode I'm working on has a different amount of time. How do I do that, along with making a message appear when time runs out, showing the remaining time on the screen and killing the character when time is up? (I have never used LunaDLL before)
You can use "Timer" action also.

Code: Select all

#0
Timer,0,1000,1,0,200,0

#1000
ShowText,0,600,10,3,0,YOU ARE DEAD!
Kill,0,0,0,0,0,once

#END
The explication of the Timer and Text is above this post. Now I'll explain the "Kill" action:
  • 1. TARGET. 0 is the player.
  • 2nd, 3rd and 4th numbers are not used in this action.
  • 5. Active Time. The player will be killed just one time, so define an Active Time is ridiculous.
  • 6. Option. In this case, the action will execute once and then it deletes itself. Imagine if this action is looping always :?:
Is it possible to use commands to increase the toatl time on a level?
I think one of the numbers in this: Timer,0,1000,1,0,200,0 increases the time. Probably 200.

hacheipe399
Bit
Bit
Posts: 64
Joined: Mon Feb 10, 2014 12:29 pm

Re: LunaDLL - SMBX Extension Module

Postby hacheipe399 » Tue Dec 09, 2014 1:16 pm

Yes... 200 is the Active Time. They're in frames, so 200 frames are more than 3 seconds (60frames=1sec)


Return to “Archives”

Who is online

Users browsing this forum: No registered users and 1 guest