(shouting)

LunaDLL/LunaLUA help thread

The second SMBX collab!
Post Reply
Kil
Posts: 13
Joined: 14 years ago

LunaDLL/LunaLUA help thread

Post by Kil »

Quick FAQ

Q. Where do I put the codes?
A. To use luna scripts, just make a file called "lunadll.txt" in your level folder and put the codes in there. OR "lunadll.lua" for LUA scripts

http://engine.wohlnet.ru/docs/Collected ... unaDLL.htm

http://engine.wohlnet.ru/docs/Collected ... torial.txt

http://engine.wohlnet.ru/pgewiki/Category:LunaLua_API
Last edited by Kil 8 years ago, edited 5 times in total.
DON'T PM me. Ask your question in the help thread so everyone can be answered.
User avatar
Willhart
Stalker, Doxxer, and Sexual Harasser
Banned
Posts: 2434
Joined: 13 years ago
Location: Finland

Re: LunaDLL help thread

Post by Willhart »

The OnInput command seems useful for some new gimmick levels.
User avatar
SAJewers
ASMBXT Level Wrangler/A2XT Project Coordinator /AAT Level Designer
Posts: 4199
Joined: 11 years ago
Location: Nova Scotia

Re: LunaDLL help thread

Post by SAJewers »

Oh my god this is amazing
ImageImageImageImageImage | Image | Image
Sharenite | RetroAchievements | NameMC | IGDB
User avatar
Menshay
Posts: 2
Joined: 13 years ago
Location: Italy

Re: LunaDLL help thread

Post by Menshay »

Is there a way to trigger an event (or simply make layers (dis)appear) if and only if the level is entered as a specific character? I noticed TriggerSMBXEvent but what the flags mean is not explained (unless in this case they're just placeholders).
Also, does #-1 activate events even when starting from the midpoint?
User avatar
Willhart
Stalker, Doxxer, and Sexual Harasser
Banned
Posts: 2434
Joined: 13 years ago
Location: Finland

Re: LunaDLL help thread

Post by Willhart »

I'm linking this so I can wind it easier in the future.
http://www.gamearchaeology.com/LunaDLL.html
Also #-1 activates during level load so it works from midpoints too.
Kil
Posts: 13
Joined: 14 years ago

Re: LunaDLL help thread

Post by Kil »

Menshay wrote:Is there a way to trigger an event (or simply make layers (dis)appear) if and only if the level is entered as a specific character? I noticed TriggerSMBXEvent but what the flags mean is not explained (unless in this case they're just placeholders).
Also, does #-1 activate events even when starting from the midpoint?
Good point. If I add a certain command that and more will be possible.
DON'T PM me. Ask your question in the help thread so everyone can be answered.
User avatar
Sturg
Gets his freak on with VGM
Posts: 709
Joined: 13 years ago
First name: sturgyman
Location: - :noiƚɒɔo⅃
Contact:

Re: LunaDLL help thread

Post by Sturg »

I gotta admit, this tutorial is a lot easier to understand than the last one :P .

Very good job!
ImageImage
Image ImageImage
RIP FISH NIPPLE BANNER
User avatar
Willhart
Stalker, Doxxer, and Sexual Harasser
Banned
Posts: 2434
Joined: 13 years ago
Location: Finland

Re: LunaDLL help thread

Post by Willhart »

I'd like to know how the multiple midpoints are made in lunadll.
Kil
Posts: 13
Joined: 14 years ago

Re: LunaDLL help thread

Post by Kil »

I don't think you can with scripts or in the a2mbxt version, unless docopoper can hardcode it.
DON'T PM me. Ask your question in the help thread so everyone can be answered.
User avatar
docopoper
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla non pharetra enim, nec maximus odio.
Posts: 78
Joined: 12 years ago
First name: Shane Farrell
Pronouns: they/he
Location: Ireland

Re: LunaDLL help thread

Post by docopoper »

Well, I mean - I could use static variables, but they wouldn't get saved between sessions and wouldn't reset on game over.

I think the normal method of having multiple midpoints is to use SMB3 leeks somehow, without LunaDLL at all (though you could probably use it).

I think it's something like SMB3 leeks triggering their death event immediately when the level starts if they've already been collected.
The first thing I would do with infinite power would be to make myself a cave where I could look at my shadow forever.

Image <- Go team Yeah Doctor Shemp.!
Image <- That's everyone being nice to me. ^^

I made a game called Utter Confusion! Play it! :D
It's a lot of fun and has been incredibly popular at every indie game dev party I've brought it to.
User avatar
SAJewers
ASMBXT Level Wrangler/A2XT Project Coordinator /AAT Level Designer
Posts: 4199
Joined: 11 years ago
Location: Nova Scotia

Re: LunaDLL help thread

Post by SAJewers »

One thing with the SMW leeks: Once you collect then, they dissapear forever, so after you complete the level, you can still access any leek-given shortcuts.

If only one could re-write the midpoint code.
ImageImageImageImageImage | Image | Image
Sharenite | RetroAchievements | NameMC | IGDB
User avatar
Willhart
Stalker, Doxxer, and Sexual Harasser
Banned
Posts: 2434
Joined: 13 years ago
Location: Finland

Re: LunaDLL help thread

Post by Willhart »

I remember someone was able to make multiple midpoints by using a 3up-moon.
User avatar
docopoper
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla non pharetra enim, nec maximus odio.
Posts: 78
Joined: 12 years ago
First name: Shane Farrell
Pronouns: they/he
Location: Ireland

Re: LunaDLL help thread

Post by docopoper »

I thought 3-up moons came back in smbx.
The first thing I would do with infinite power would be to make myself a cave where I could look at my shadow forever.

Image <- Go team Yeah Doctor Shemp.!
Image <- That's everyone being nice to me. ^^

I made a game called Utter Confusion! Play it! :D
It's a lot of fun and has been incredibly popular at every indie game dev party I've brought it to.
User avatar
SAJewers
ASMBXT Level Wrangler/A2XT Project Coordinator /AAT Level Designer
Posts: 4199
Joined: 11 years ago
Location: Nova Scotia

Re: LunaDLL help thread

Post by SAJewers »

Pretty sure they do.
ImageImageImageImageImage | Image | Image
Sharenite | RetroAchievements | NameMC | IGDB
User avatar
Willhart
Stalker, Doxxer, and Sexual Harasser
Banned
Posts: 2434
Joined: 13 years ago
Location: Finland

Re: LunaDLL help thread

Post by Willhart »

Willhart wrote:I remember someone was able to make multiple midpoints by using a 3up-moon.
Tested it and the 3-up moons came back. They might have been using SMW leeks and I just remembered wrong.
Kil
Posts: 13
Joined: 14 years ago

Re: LunaDLL help thread

Post by Kil »

Welp, apparently redigit might be updating SMBX. I'm probably done updating this forever because an update to SMBX would undo all of it. I've just added a few more things towards the end of the tutorial regarding new commands.
DON'T PM me. Ask your question in the help thread so everyone can be answered.
User avatar
SAJewers
ASMBXT Level Wrangler/A2XT Project Coordinator /AAT Level Designer
Posts: 4199
Joined: 11 years ago
Location: Nova Scotia

Re: LunaDLL help thread

Post by SAJewers »

where did you hear this?
ImageImageImageImageImage | Image | Image
Sharenite | RetroAchievements | NameMC | IGDB
Kil
Posts: 13
Joined: 14 years ago

Re: LunaDLL help thread

Post by Kil »

DON'T PM me. Ask your question in the help thread so everyone can be answered.
User avatar
raocow
the death of the incredible huge
Posts: 4078
Joined: 15 years ago
Location: maybe the Wizards are the most complex, and the sales guys are up their daily
https://raocow.talkhaus.com/

Re: LunaDLL help thread

Post by raocow »

It still seems to be on the planning stage...
...
Man, it's a good thing that if we did something with it, we would change the graphics, as the terraria graphics are generic as all hell, haha.
the chillaxest of dragonsImage
Image
Image
Bwarch
Local Candy Fiend
Posts: 136
Joined: 13 years ago
Pronouns: He/Him/His
Location: Scorpions and snakes aplenty oh my.

Re: LunaDLL help thread

Post by Bwarch »

Random side note but dang do I love our forum's design more than that forum's. Good gosh a single post fills the page (probably depending on your resolution of course).
Doctor Shemp
Banned
Posts: 0
Joined: 11 years ago

Re: LunaDLL help thread

Post by Doctor Shemp »

Kil wrote:Welp, apparently redigit might be updating SMBX. I'm probably done updating this forever because an update to SMBX would undo all of it. I've just added a few more things towards the end of the tutorial regarding new commands.
Considering that he's still in the "asking people if it's a good idea" stage, it'll be ages away. Also I'm not so sure how convincing removing all the Mario graphics would be with respect to avoiding copyright issues considering the enemy logic and fundamental game design (jump on enemies to kill them, kick shells around, the entire powerup system) is unmistakably ripped straight from Mario.
User avatar
raocow
the death of the incredible huge
Posts: 4078
Joined: 15 years ago
Location: maybe the Wizards are the most complex, and the sales guys are up their daily
https://raocow.talkhaus.com/

Re: LunaDLL help thread

Post by raocow »

To be fair, at this point that's just 'platforming'.

And yeah, it's probably going to take a long while before it reaches parity with smbx, let alone get done in some fashion.
the chillaxest of dragonsImage
Image
Image
User avatar
docopoper
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla non pharetra enim, nec maximus odio.
Posts: 78
Joined: 12 years ago
First name: Shane Farrell
Pronouns: they/he
Location: Ireland

Re: LunaDLL help thread

Post by docopoper »

Yeah, I imagine this entire series is still going to be done in this version of SMBX. I personally think it would be a bad idea to change the engine completely in the middle of it anyway, especially since we have LunaDLL - which is probably going to much more versatile than anything he implements.

I wouldn't be discouraged from making LunaDLL kil, it will still have a good lifespan and should at the very least work for this (rather long) episodic game.

I do find it interesting that he has plans to make a new version - now if and when I make my competing version - we must fight to the death... man.
The first thing I would do with infinite power would be to make myself a cave where I could look at my shadow forever.

Image <- Go team Yeah Doctor Shemp.!
Image <- That's everyone being nice to me. ^^

I made a game called Utter Confusion! Play it! :D
It's a lot of fun and has been incredibly popular at every indie game dev party I've brought it to.
User avatar
SAJewers
ASMBXT Level Wrangler/A2XT Project Coordinator /AAT Level Designer
Posts: 4199
Joined: 11 years ago
Location: Nova Scotia

Re: LunaDLL help thread

Post by SAJewers »

Wait and see what comes of that, if anything.

And yes, any engine changes will be with A3MBXT.
ImageImageImageImageImage | Image | Image
Sharenite | RetroAchievements | NameMC | IGDB
User avatar
docopoper
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla non pharetra enim, nec maximus odio.
Posts: 78
Joined: 12 years ago
First name: Shane Farrell
Pronouns: they/he
Location: Ireland

Re: LunaDLL help thread

Post by docopoper »

Wait, is that A2MBXT Episode 2 renamed - or a separate game after the series?
The first thing I would do with infinite power would be to make myself a cave where I could look at my shadow forever.

Image <- Go team Yeah Doctor Shemp.!
Image <- That's everyone being nice to me. ^^

I made a game called Utter Confusion! Play it! :D
It's a lot of fun and has been incredibly popular at every indie game dev party I've brought it to.
Post Reply