(shouting)

LunaDLL/LunaLUA help thread

The second SMBX collab!
User avatar
Hoeloe
A2XT person
Posts: 1016
Joined: 12 years ago
Pronouns: she/her
Location: Spaaace

Re: LunaDLL help thread

Post by Hoeloe »

Kil wrote:It wouldn't ever deccelerate because the accelerator had length 0. Since you're using timers of 200 to cycle, you should make the other codes being triggered also 200 length.
Yup, that seems to have done the trick. Thanks.
Image
Image
Image
Image
Image
TiKi
Posts: 709
Joined: 11 years ago

Re: LunaDLL help thread

Post by TiKi »

Kil wrote:But how do you target only the shells that have been hit and not all of them? By the way, this is possible but not with the scripts which are too crappy.
What I interpreted it as is "change this, which is normally a shell when hit, to x" so that would be okay.
Mikkofier
What about Ron magic?
Posts: 699
Joined: 11 years ago
First name: Mikko J. Fuzzygrumbles
Pronouns: he/him/his
Location: Lots of miles from Vietnam
Contact:

Re: LunaDLL help thread

Post by Mikkofier »

Noob questions:
[*]How do I filter only sacks, not any of the other mounts
[*]How do I make an autoscrolling section outside section 1?
Many people need desperately to receive this message: I feel and think much as you do, care about many of the things you care about, although most people do not care about them. You are not alone.
-Kurt Vonnegut
Context-free Supper Mario Broth Roulette! NOTE: Potential Jumpscare warning!
Image
Avatar source (for most of them).
Image
Kil
Posts: 13
Joined: 15 years ago

Re: LunaDLL help thread

Post by Kil »

probably like this

Code: Select all

#0
// Mount checker
OnPlayerMem,0x108,1,0,1000,0,w

#2
// Section 2 ("3") scroller
PushScreenBoundary,3,2,0,0,0,1
PushScreenBoundary,3,3,0,0,0,1

#1000
// Mount remover
PlayerMemSet,0,0x108,0,0,1,w

#END
DON'T PM me. Ask your question in the help thread so everyone can be answered.
User avatar
Ittababy
Posts: 13
Joined: 10 years ago

Re: LunaDLL help thread

Post by Ittababy »

I'm so, so sorry, but I'm the dumbest man on Mars.
Can someone just post a few generic codes that just 'character filter'? Please? Or if that already exists... :?
I mean like copy paste ease. You do not understand how dumb I am <:I
Last edited by Ittababy 9 years ago, edited 1 time in total.
A very shy ghost.
Kil
Posts: 13
Joined: 15 years ago

Re: LunaDLL help thread

Post by Kil »

http://www.gamearchaeology.com/LunaDLL.html

I don't think I can get any simpler than that
DON'T PM me. Ask your question in the help thread so everyone can be answered.
TiKi
Posts: 709
Joined: 11 years ago

Re: LunaDLL help thread

Post by TiKi »

If you're using regular old SMBX it's
Demo = Mario
Iris = Luigi
Kood = Peach
raocow = Toad
Sheath = Link

Call me a selfish monster who can't stop biggering, but if a new sprite reaches into the next sprite down on a player sheet (too many pixels tall), is that just not usable? The ones I thought of (SMW bowser, a touhou player, a Jump Ultimate Stars player) the good sprites seem to be out of range
Yeah I know, but it's hard for me to define any limits when lunadll exists in the first place you know?
TiKi
Posts: 709
Joined: 11 years ago

Re: LunaDLL help thread

Post by TiKi »

Forget about last post until I test further please
Kil wrote:Yes but you should forget about forcing to hold a random sprite part of that. If you want to do that you'll have to write c++ code because it's quite complicated for the scripts.
Is there a way to say, put a boomerang into hammer Mario's hands when run or alt run is pressed?
User avatar
GanonTEK
Evil King
Posts: 10
Joined: 14 years ago
Location: Ireland. The Emerald Isle. (We got no emeralds though)
Contact:

Re: LunaDLL help thread

Post by GanonTEK »

Sorry if this is a stupid question but I can't get lunadll to work.
It's my first time using it so here are the steps I went through:

I have smbx 1.3.0.1 which I got from here
I downloaded the LunaDLL.dll file from here
I put LunaDLL.dll into the SMBX folder.

I made a level called GanonTEK-test.lvl (which is in the worlds folder)
I made a folder called GanonTEK-test (which is in the worlds folder)
I made a text file called lunadll.txt in the GanonTEK-test folder.
I copied the following into the txt just as a test which I got from the tutorial.txt.
///--Full level--///
#-1

// Filter Demo to Sheath
FilterPlayer,0,1,5,0,0,0

#0
// Print the word "HI" at x:300 y:300 on the screen, with font 3
ShowText,0,300,300,3,0,Hi

#1

ShowText,0,200,400,3,0,ISN'T IT HARD TO SEE WITH ALL THIS TEXT IN THE WAY?

#2
// Filter a bunch of stuff and play sound effect ID 10 for no reason
SFX,10,0,0,0,0,0
FilterToSmall,0,0,0,0,1,0
FilterReservePowerup,0,0,0,0,1,0
FilterMount,0,0,0,0,1,0

#END
I tried just testing the level in the editor and I see no changes. Mario stays as mario and no text appears on screen. I tried closing SMBX and reloading.

Is there something I have missed? I have read the instructions and I don't know what I have done wrong. Thanks. Sorry for bothering everyone but I want to try it out and for the life of me I can't see what's wrong. Thank you.
TiKi
Posts: 709
Joined: 11 years ago

Re: LunaDLL help thread

Post by TiKi »

You'll need the lunadll exe
User avatar
GanonTEK
Evil King
Posts: 10
Joined: 14 years ago
Location: Ireland. The Emerald Isle. (We got no emeralds though)
Contact:

Re: LunaDLL help thread

Post by GanonTEK »

TiKi wrote:You'll need the lunadll exe
Don't think there is a lunadll exe

Anyway, found the problem. It only works with the A2MBXT executable. I just downloaded it and it works great now.
Thanks anyway :)
User avatar
Mabel
Just west of wierd
Posts: 302
Joined: 10 years ago
https://marbels.talkhaus.com/

Re: LunaDLL help thread

Post by Mabel »

youre better off just using the A2XT client to avoid trying to do all of this nonsense installing or whatever, unless youre missing something else which you probably need to install vcredist_x86.exe which also comes with the A2XT client.

If you want mario related assets, just copy them all into the folder.
Image
Image
Image Image
User avatar
tigermoon
Posts: 0
Joined: 10 years ago
Location: Is crazy a location? If so, I've been here for ages. :3

Re: LunaDLL help thread

Post by tigermoon »

Three of the four zip files in that link you gave for LunaDLL contain a modified SMB 1.3.0.1 exe that works with LunaDLL.

But yeah, unless you really want to use Mario, you're probably better off just sticking with A2XT.
WARNING: User is known for stupid ideas. Listen at your own risk.
... I prefer the one where you compare yourself to gremlins...
Kil
Posts: 13
Joined: 15 years ago

Re: LunaDLL help thread

Post by Kil »

Also someone compiled some basic codes anyone can use http://www.supermariobrosx.org/forums/v ... =69&t=5414
DON'T PM me. Ask your question in the help thread so everyone can be answered.
User avatar
tigermoon
Posts: 0
Joined: 10 years ago
Location: Is crazy a location? If so, I've been here for ages. :3

Re: LunaDLL help thread

Post by tigermoon »

Is there a way to set it so Toad/raocow always has a double jump?
WARNING: User is known for stupid ideas. Listen at your own risk.
... I prefer the one where you compare yourself to gremlins...
Darkchaox100
Posts: 0
Joined: 9 years ago

Re: LunaDLL help thread

Post by Darkchaox100 »

tigermoon wrote:Is there a way to set it so Toad/raocow always has a double jump?
I think the conditions are
1) You need to have not jumped already
2) you need to be standing on something.
Maybe you can trick the game into thinking those somehow.

EDIT:
Btw,is there a more stable version of the current lunadll version? The latest one has this bug:

Image

TiKi
Posts: 709
Joined: 11 years ago

Re: LunaDLL help thread

Post by TiKi »

I don't think so yet. I don't really mind but I think it's either that or remove tinkering with the HUD which I do mind (finally some real looking cutscenes yo)
Darkchaox100
Posts: 0
Joined: 9 years ago

Re: LunaDLL help thread

Post by Darkchaox100 »

I just found out,entering the cheat SUPERMARIO2 fixes it for that level...
IDK what could cause that,it must be something in LunaDLL that lets the game think it runs in 2Player Mode.
User avatar
Mabel
Just west of wierd
Posts: 302
Joined: 10 years ago
https://marbels.talkhaus.com/

Re: LunaDLL help thread

Post by Mabel »

is it really a big deal if the game thinks youre in 2-player mode?
like does it effect gameplay in a undesirable way that i dont know about?
Image
Image
Image Image
Darkchaox100
Posts: 0
Joined: 9 years ago

Re: LunaDLL help thread

Post by Darkchaox100 »

Mabel wrote:is it really a big deal if the game thinks youre in 2-player mode?
like does it effect gameplay in a undesirable way that i dont know about?
Nope but i just dislike how it moves parts of the HUD.
Kil
Posts: 13
Joined: 15 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.
Darkchaox100
Posts: 0
Joined: 9 years ago

Re: LunaDLL help thread

Post by Darkchaox100 »

Kil wrote:I fixed the 2 player thing http://www.gamearchaeology.com/LunaDll.dll
Awesome! Now another question...
is is possible to draw an NPC at a screen position of your choice (like the text?)
Kil
Posts: 13
Joined: 15 years ago

Re: LunaDLL help thread

Post by Kil »

For now you can use this to render an image to the HUD (untested)

Code: Select all

#-1
// Load image into slot 1 with transparency color FF00DC
LoadImage,1,0xDC00FF,0,0,0,name.bmp

#0
// Place spritetype 1 from image slot 1 at X:300 Y:200
PlaceSprite,1,1,620,30,0,0
DON'T PM me. Ask your question in the help thread so everyone can be answered.
Darkchaox100
Posts: 0
Joined: 9 years ago

Re: LunaDLL help thread

Post by Darkchaox100 »

Works good! Sadly transperancy doesnt work.But for now its pretty useful!
Post Reply