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.
Valtteri
Van De Graf
Van De Graf
Posts: 2150
Joined: Sun Dec 01, 2013 1:16 pm

LunaDLL - SMBX Extension Module

Postby Valtteri » Tue Feb 04, 2014 8:41 am

Not nearly everyone knows about this thing. Basically, it lets you do all sorts of neat stuff you couldn't do with 1.3. It requires scripting skills and I personally haven't got into it but I sure hope people here start taking advantage of it and realize the possibilities this module gives you. To my knowledge, the only person here who's using the thing for his episode is the zlakerboy guy who used it to create a Double Cherry power-up. Correct me if I'm wrong.

I found these two threads on Raocow's Talkhaus, the first one being a help thread that includes a godlike tutorial, they say, and the second link just being some older thread. Experiment! Great things can be done with it, I think!

http://talkhaus.raocow.com/viewtopic.php?f=36&t=14271
http://talkhaus.raocow.com/viewtopic.php?f=44&t=13469

Videos:
Spoiler: show
A Super Mario Bros. X Thing uses LunaDLL, too.

Download
Installer

Also check out Lua, an extension for LunaDLL which brings more scripting possiblities: http://www.smbxgame.com/forums/v ... =69&t=6973

Darkonius Mavakar
Torpedo Ted
Torpedo Ted
Posts: 1769
Joined: Fri Dec 27, 2013 2:45 pm
Flair: Dreams of a forgotten reality
Pronouns: He/Him
Contact:

Re: LunaDLL - SMBX Extension Module

Postby Darkonius Mavakar » Tue Feb 04, 2014 9:24 am

This is really interesting, pheraps a brand new .exe with more customizability will come?

just wondering

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

Re: LunaDLL - SMBX Extension Module

Postby zlaker » Tue Feb 04, 2014 9:30 am

I have it and it's preety useful. You guys should download it..

Emral
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 9722
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Phoenix

Re: LunaDLL - SMBX Extension Module

Postby Emral » Tue Feb 04, 2014 9:32 am

I tried using it before, but the ASMBXT exe is marked as a virus to my pc and my antivirus program wouldn't let me start it and thus I couldn't use it to modify my levels. (I've had added stuff like a mystery house timer, custom music and sound effects, etc.)

litchh
Eerie
Eerie
Posts: 716
Joined: Sun Dec 29, 2013 6:10 am

Re: LunaDLL - SMBX Extension Module

Postby litchh » Tue Feb 04, 2014 10:41 am

When I tryed to play ASMBXT, game crashed on some levels. I guess SMBX crashes with any modified level on my PC.

FallingSnow
Nipper
Nipper
Posts: 822
Joined: Sat Dec 21, 2013 4:32 am

Re: LunaDLL - SMBX Extension Module

Postby FallingSnow » Tue Feb 04, 2014 7:13 pm

I'm pretty sure ASMBXT used it, yes. You had to get their own exe for it if I recall.

Graham
Cheep-Cheep
Cheep-Cheep
Posts: 10
Joined: Wed Jan 08, 2014 3:10 pm

Re: LunaDLL - SMBX Extension Module

Postby Graham » Tue Feb 04, 2014 11:04 pm

Yes, LunaDLL only works with the ASMBXT executable. A few levels do use It in the game, and they're certainly worth checking out.

Chill Pingu
Guest

Re: LunaDLL - SMBX Extension Module

Postby Chill Pingu » Wed Feb 05, 2014 7:31 am

it would be good if somebody makes a download link of asmbxt.exe but with smbx 1.3.0.1 graphics. that way lunadll would be a global thing and we won't need to have two exes.

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

Re: LunaDLL - SMBX Extension Module

Postby leif_erikson » Thu Feb 06, 2014 12:36 pm

Chill Pingu wrote:it would be good if somebody makes a download link of asmbxt.exe but with smbx 1.3.0.1 graphics. that way lunadll would be a global thing and we won't need to have two exes.
Yes the .exe is kind of a problem, because it has a lot of stuff that's aimed at ASMBXT only. So if you want to use it, you might end up with some hardcoded graphics you don't want, changed cheat codes, etc. If someone could "undo" the asmbxt.exe changes back to the old hardcoded graphics and stuff, that'd be very helpful.

For whoever's having problems with virus warnings, you should set an exception for the .exe in your virus scanner program. The way lunadll works is I basically inserted 3 hooks right into the middle of SMBX which jump to LunaDLL.dll each time the game processes a new frame. I also changed the dll import table but left the old one in there (unpointed to) and virus scanners find that really suspicious. This is similar to how a virus might modify a program to hijack it, so some bad scanners can think it's actually a virus.

Here's some videos of weird stuff you can do with it:
https://www.youtube.com/watch?v=oT-B6VN8gmI
https://www.youtube.com/watch?v=KFEJg0NY7MM
https://www.youtube.com/watch?v=uVu_IwuNyxM
https://www.youtube.com/watch?v=b8GLzKGM74Y
https://www.youtube.com/watch?v=jtgi4JubJk4

Shadow Yoshi
Dark Knight
Dark Knight
Posts: 4291
Joined: Sun Dec 01, 2013 12:56 pm

Re: LunaDLL - SMBX Extension Module

Postby Shadow Yoshi » Thu Feb 06, 2014 3:49 pm

Are you Kil? Welcome, and great job on this.

How is LunaDLL coded? Were you able to grab object/class data from SMBX?

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

Re: LunaDLL - SMBX Extension Module

Postby leif_erikson » Thu Feb 06, 2014 7:09 pm

Joey wrote:Are you Kil? Welcome, and great job on this.

How is LunaDLL coded? Were you able to grab object/class data from SMBX?
Thanks. I was able to reverse engineer some object/class data. You can check the source code (old-ish until i upload the new stuff) here http://www.gamearchaeology.com/LunaDllPackage.zip

LunaDLL is pretty much like an overlord that allows you to change things and control what happens in the game by changing the memory of SMBX.
But since the object interactions are all super hardcoded in smbx, you can't really add anything new to the game with it. You can mostly control and change things on a frame by frame basis. Also you can call some functions I found in smbx, like the Print() thing that allows you to print random strings onto the screen using the classic in game font.

I looked quite a while for things in smbx memory objects like function pointers to interaction routines for sprites and blocks, but there actually aren't any. All NPCS, blocks, and visible objects act solely according to their ID numbers, so you can't just overwrite them with custom functions. You can change their ID numbers in realtime, but then you change the entire sprite - how it looks, behaves, interacts with others, spawns, and dies. All of the raw assembly code for them looks really ugly too, so probably no one will ever be able to modify them without the source code.

ffffff
Fighter Fly
Fighter Fly
Posts: 40
Joined: Sat Dec 21, 2013 1:42 am

Re: LunaDLL - SMBX Extension Module

Postby ffffff » Thu Feb 06, 2014 11:23 pm

leif_erikson wrote:
Joey wrote:Are you Kil? Welcome, and great job on this.

How is LunaDLL coded? Were you able to grab object/class data from SMBX?
http://www.gamearchaeology.com/LunaDllPackage.zip
program have virus

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

Re: LunaDLL - SMBX Extension Module

Postby leif_erikson » Fri Feb 07, 2014 10:43 pm

ffffff wrote:
leif_erikson wrote:
Joey wrote:Are you Kil? Welcome, and great job on this.

How is LunaDLL coded? Were you able to grab object/class data from SMBX?
http://www.gamearchaeology.com/LunaDllPackage.zip
program have virus
http://www.smbxgame.com/forums/v ... 1009#p6941

meowflash
Guest

Re: LunaDLL - SMBX Extension Module

Postby meowflash » Sat Feb 08, 2014 8:41 pm

How do you make custom powers ups using LunaDLL?

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

Re: LunaDLL - SMBX Extension Module

Postby leif_erikson » Sun Feb 09, 2014 12:36 am

meowflash wrote:How do you make custom powers ups using LunaDLL?
Tough question. You're creating some new interactions from the ground up. You can't really add one but you can kinda trick the game into thinking it's a new power up. The two best options are: replacing an existing powerup, or using an axe (only one per section can exist). I'll try to write a tutorial for that at some point, but for now there's only this http://www.gamearchaeology.com/TUTORIAL.txt

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

Re: LunaDLL - SMBX Extension Module

Postby zlaker » Sun Feb 09, 2014 11:07 am

I'll probably show you guys how to use this stuff.

icemario12
Tweeter
Tweeter
Posts: 157
Joined: Thu Dec 26, 2013 5:49 pm
Pronouns: He/Him
Contact:

Re: LunaDLL - SMBX Extension Module

Postby icemario12 » Wed Feb 12, 2014 11:31 am

Lolololol too compicated! Best if I'll use just the traditional custom graphics and npc codes!

I have a big new item list with codes. Nothing special, but a lil' more...gimmicky.
Like the Pound Switch?
Also, I wouldn't risk myself. I've got a HUGE project right now and I don't to mess anything up.

Veudekato
Guest

Re: LunaDLL - SMBX Extension Module

Postby Veudekato » Wed Feb 19, 2014 3:23 am

emm..anyone know how to install and use this ?

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

Re: LunaDLL - SMBX Extension Module

Postby zlaker » Wed Feb 19, 2014 6:05 am

Veudekato wrote:emm..anyone know how to install and use this ?
Me and leif_eirikson are probably the only one in this forum that knows how to use this stuff. It's pretty hard in beginning like the event system in SMBX, but it gets easier when you've learned the basic. I'll make topic how to use this stuff, but I gotta finish of my project first.
Meow..

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

Re: LunaDLL - SMBX Extension Module

Postby FanofSMBX » Wed Feb 19, 2014 10:25 am

Finishing your project will take a long time! I need this now! ;)


Return to “Archives”

Who is online

Users browsing this forum: No registered users and 2 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari