LunaDLL/LunaLUA help thread

The second SMBX collab!
Post Reply
TiKi
Posts: 690
Joined: 9 years ago

Re: LunaDLL help thread

Post by TiKi »

LukasSMBX wrote:Nope noding helped. I tryd it with a p switch type it in events. Everywhere! And nothing changed!
You type it while playing the level. Just press buttons
T
O
G
G
L
E
D
E
M
O
C
O
U
N
T
E
R
In that order while playing a level. Does anything happen?
LukasSMBX
Posts: 0
Joined: 8 years ago

Re: LunaDLL help thread

Post by LukasSMBX »

Ok! Somthing has changed TiKi! Now Demo 0/0 disapeared!!!
TiKi
Posts: 690
Joined: 9 years ago

Re: LunaDLL help thread

Post by TiKi »

LukasSMBX wrote:Ok! Somthing has changed TiKi! Now Demo 0/0 disapeared!!!
Lunadll is working then.
Just type that again if you want it back.
LukasSMBX
Posts: 0
Joined: 8 years ago

Re: LunaDLL help thread

Post by LukasSMBX »

Is there a code for a stantard smb3 bowser? He spits 3 fireballs then groundpounths then spith again 3 fireballs and then again groundpound?
Kil
Posts: 13
Joined: 13 years ago

Re: LunaDLL help thread

Post by Kil »

To get that to happen you would have to do some pretty tight manipulation of a bowser's memory. I'm not really sure how you'd pull that off.
DON'T PM me. Ask your question in the help thread so everyone can be answered.
TiKi
Posts: 690
Joined: 9 years ago

Re: LunaDLL help thread

Post by TiKi »

TiKi wrote:if I show a boss on a layer (I'm doing a Yoshi's Island type deal where a POW Block "magic" kills an enemy, which shows the boss), do HP modifying codes not work? I'm trying it on Larry, maybe it jus doesn't work on him?
Also excuse me for asking but what did "that explains a lot" on the last page mean?
Kil
Posts: 13
Joined: 13 years ago

Re: LunaDLL help thread

Post by Kil »

... It explains who you are on the other forum.
DON'T PM me. Ask your question in the help thread so everyone can be answered.
TiKi
Posts: 690
Joined: 9 years ago

Re: LunaDLL help thread

Post by TiKi »

Okay!
Again, are enemies that aren't on the default layer and shown, not "counted" by LunaDLL?
LukasSMBX
Posts: 0
Joined: 8 years ago

Re: LunaDLL help thread

Post by LukasSMBX »

Now, sorry for asking but, whats the code for a timer of 350 Seconds?
Kil
Posts: 13
Joined: 13 years ago

Re: LunaDLL help thread

Post by Kil »

Timer,0,0,1,0,21000,0

350 seconds times 60 = 21000
TiKi wrote:Okay!
Again, are enemies that aren't on the default layer and shown, not "counted" by LunaDLL?
Don't know. LunaDLL manually checks all of the NPCs in the NPC list according to the NPC count memory location. I think it's unlikely that SMBX would hide the true NPC count from itself. Maybe something else is going on like bosses have their health resorted to default when they appear. Maybe the NPC technically doesn't exist yet. You might need to figure out a way to run the health setting code once the boss appears.
DON'T PM me. Ask your question in the help thread so everyone can be answered.
LukasSMBX
Posts: 0
Joined: 8 years ago

Re: LunaDLL help thread

Post by LukasSMBX »

Uhhm, Again a question, how to i give smb3 bowser and boom boom more health? Boom boom 15 and Smb3 bowser 66? Also how to i get my timer to 500 seconds?
User avatar
raocow
the death of the incredible huge
Posts: 3899
Joined: 13 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 »

oh boy jumping on boom boom 15 times, that sounds like fun
the chillaxest of dragonsImage
Image
Image
Kil
Posts: 13
Joined: 13 years ago

Re: LunaDLL help thread

Post by Kil »

yeah that's too terrible of an idea for me to tell you how to do it

Also if you can't figure out the timer based on what I just said then you're kind of doomed
DON'T PM me. Ask your question in the help thread so everyone can be answered.
LukasSMBX
Posts: 0
Joined: 8 years ago

Re: LunaDLL help thread

Post by LukasSMBX »

Ok. The idea is terrible. But i want to know how to make iggy koopa (larry) with an hp of 10.
TiKi
Posts: 690
Joined: 9 years ago

Re: LunaDLL help thread

Post by TiKi »

Kil wrote:Timer,0,0,1,0,21000,0

350 seconds times 60 = 21000
TiKi wrote:Okay!
Again, are enemies that aren't on the default layer and shown, not "counted" by LunaDLL?
Don't know. LunaDLL manually checks all of the NPCs in the NPC list according to the NPC count memory location. I think it's unlikely that SMBX would hide the true NPC count from itself. Maybe something else is going on like bosses have their health resorted to default when they appear. Maybe the NPC technically doesn't exist yet. You might need to figure out a way to run the health setting code once the boss appears.
Aha! So like I said once I kill an enemy in that section the boss appears. Would it be possible to trigger said SetHits after that npc (let's say 17) dies?
Kil
Posts: 13
Joined: 13 years ago

Re: LunaDLL help thread

Post by Kil »

Yeah but I don't really like that method. I think I need to figure out once and for all how to make an SMBX event trigger a lunadll event for the next update
DON'T PM me. Ask your question in the help thread so everyone can be answered.
User avatar
Grounder
Posts: 5203
Joined: 8 years ago

Re: LunaDLL help thread

Post by Grounder »

More general question here, if I were to stuff this into SMBX's folders, where would I put it?
Why don't you eat me?

I am perfectly tasty...

AND I'LL STEAL YOUR SOUL! :twisted:

ImageImageImage
Kil
Posts: 13
Joined: 13 years ago

Re: LunaDLL help thread

Post by Kil »

replace your smbx.exe with the one in the zip, and put lunadll in the same place
DON'T PM me. Ask your question in the help thread so everyone can be answered.
TiKi
Posts: 690
Joined: 9 years ago

Re: LunaDLL help thread

Post by TiKi »

Kil wrote:Yeah but I don't really like that method. I think I need to figure out once and for all how to make an SMBX event trigger a lunadll event for the next update
I've got an idea: once a specific SMBX event is triggered (you enter the name in the script), a custom event is also triggered. It's kind of like how the 21 sections' custom music slots are repurposed for multiple custom songs.
Kil
Posts: 13
Joined: 13 years ago

Re: LunaDLL help thread

Post by Kil »

That is how it would work. The problem is detecting when an SMBX has fired. There's no way to detect that that I can think of easily.
DON'T PM me. Ask your question in the help thread so everyone can be answered.
Rixithechao
https://www.youtube.com/watch?v=IwLdM6ejGAM
Posts: 1608
Joined: 8 years ago
First name: Mack
https://rixithechao.talkhaus.com/

Re: LunaDLL help thread

Post by Rixithechao »

I noticed that Wohlstand's documentation of the save file format lists unused values like the health for Mario and Luigi and item slots for toad, Peach and Link.

I'm guessing 0x1E and 0x2A correspond to those things for Peach... so could they potentially be used to preserve persistent data like a counter for a secondary collectible?
Delightful Adventure Enhanced is out now!

Image

There's an official ASMT Discord server! Check it out to follow and/or contribute to A2XT Episode 2's development! thread, invite link

(Entry requires verification, either with a connected Youtube/Twitter/Twitch/etc account or manually by the server staff.)


Itch.io (albums and eventually games), Youtube (dofur pass and I guess other videos)
Kil
Posts: 13
Joined: 13 years ago

Re: LunaDLL help thread

Post by Kil »

Good idea. If they're truly 100% unused that is. I'm not sure what you would do with those variables though.
DON'T PM me. Ask your question in the help thread so everyone can be answered.
TiKi
Posts: 690
Joined: 9 years ago

Re: LunaDLL help thread

Post by TiKi »

Wait, would this mean we could give Mario hearts?
Kil
Posts: 13
Joined: 13 years ago

Re: LunaDLL help thread

Post by Kil »

nope
DON'T PM me. Ask your question in the help thread so everyone can be answered.
Rixithechao
https://www.youtube.com/watch?v=IwLdM6ejGAM
Posts: 1608
Joined: 8 years ago
First name: Mack
https://rixithechao.talkhaus.com/

Re: LunaDLL help thread

Post by Rixithechao »

Well, I'm thinking if we can shift the data between the memory and user variables at key times then they don't need to be 100% unused, just unused at the right times. Load it from the memory after the player loads the file (assuming you can use variables or something to pull off a first-time load event in the hub/overworld), then manipulate the variable as necessary over the course of the gameplay and constantly copy the data back to the memory so it'll have the right value when the game is saved again.

As for what this could be used for, at first I was thinking just keeping track of a renewable currency, like a coin counter that goes past 100 or a dragon coin wallet. There was going to be a dragon coin shop in A2MT and/or the Radish engine, right? But then it hit me -- this is a way to measure player progress outside of levels besides just beating levels or collecting stars. Someone could, in theory, use this memory piggybacking trick as a progressive event flag counter thing for story events. They could break the typical Mario "level-to-level" style progression and go for something more nonlinear.

Maybe we could also fake bitwise operations (i.e. assign each index a power of two and have a case for every value) to use them as boolean arrays. It'd be exponentially more work with each additional thing you index, but you could set up stuff like switch palaces or character/powerup/mount unlocks.

But I'm getting ahead of myself here, this is all just speculation based on what I've read in the documentation and what I assume LunaDLL is currently capable of and could be in the future.
Delightful Adventure Enhanced is out now!

Image

There's an official ASMT Discord server! Check it out to follow and/or contribute to A2XT Episode 2's development! thread, invite link

(Entry requires verification, either with a connected Youtube/Twitter/Twitch/etc account or manually by the server staff.)


Itch.io (albums and eventually games), Youtube (dofur pass and I guess other videos)
Post Reply