smw centralsmbx communitypge project

happy birthday talkhaus!!!

SMBX Help Thread

The second SMBX collab!
Kil
Posts: 13
Joined: 8 years ago

Re: SMBX Help Thread

Postby Kil » 2 years ago

So is there any way to lose stars in this game, because I could use a decrease in star count to detect when a save file is deleted
DON'T PM me. Ask your question in the help thread so everyone can be answered.

Kil
Posts: 13
Joined: 8 years ago

Re: SMBX Help Thread

Postby Kil » 2 years ago

Kil wrote:So is there any way to lose stars in this game, because I could use a decrease in star count to detect when a save file is deleted
So I'll take that as a no? Want to be sure because I'm literally about to build the lunadll saves around this behavior. Whenever it detects a decreased star count for a save slot it will delete your lunadll save for that slot as well.
DON'T PM me. Ask your question in the help thread so everyone can be answered.

User avatar
Mabel
Just west of wierd
Posts: 257
Joined: 3 years ago

Re: SMBX Help Thread

Postby Mabel » 2 years ago

theres no way to actually lose stars...
so i guess you could go about making something that deletes stars and when that happens, deletes the save file...
Image
ayy come join the discord version of the skypehaus(no, this has nothing to do with technicolor horses)
ImageImage
Image Image

TiKi
Posts: 13
Joined: 4 years ago

Re: SMBX Help Thread

Postby TiKi » 2 years ago

Well when you save the first time you have 0 (normal exit) or 1 (star exit or collected a SMW star) stars right? It would just register that the new star count is lower than your old one.

Kil
Posts: 13
Joined: 8 years ago

Re: SMBX Help Thread

Postby Kil » 2 years ago

Yeah, and when lunadll detects that your star count is lower than it was before, it can delete the lunadll saved variables as well.
DON'T PM me. Ask your question in the help thread so everyone can be answered.

Kil
Posts: 13
Joined: 8 years ago

Re: SMBX Help Thread

Postby Kil » 2 years ago

how do you even delete your smbx saves from the slots

Is there seriously no way to delete your saves from within the game?
DON'T PM me. Ask your question in the help thread so everyone can be answered.

Doctor Shemp
Banned
Posts: 0
Joined: 4 years ago

Re: SMBX Help Thread

Postby Doctor Shemp » 2 years ago

Kil wrote:how do you even delete your smbx saves from the slots
You delete the actual save file from your computer when SMBX is closed. They're in the episode's folder and are called save1.sav, save2.sav etc.

Kil
Posts: 13
Joined: 8 years ago

Re: SMBX Help Thread

Postby Kil » 2 years ago

wow

then I wonder if this is even worth it. People can just delete lunasave1 2 3 as well, and we won't have to rely on trying to heuristically detect if the save has been deleted.
DON'T PM me. Ask your question in the help thread so everyone can be answered.

User avatar
MrSecurity
Posts: 0
Joined: 2 years ago

Re: SMBX Help Thread

Postby MrSecurity » 2 years ago

So while I was in the level editor I got this error message:
Image

Now, everytime I try to even open the level editor at all-- this message will appear then it will close itself. Does anyone know what the issue is or how to fix it?

TiKi
Posts: 13
Joined: 4 years ago

Re: SMBX Help Thread

Postby TiKi » 2 years ago

Try redownloading or re-unzipping the SMBX zip.

So I've seen in music for SMBX:
Midi converted to MP3 - increases filesize
.spc converted to MP3 - increases filesize
.ogg converted to MP3 - increases filesiz
.midi - glitchy
Natural .wav - has huge filesize
Natural mp3 - has somewhat huge filesize - too big for heavy use

Okay so. Past natural .oggs (which I am unsure of working) I see no way to get a small filesize in music in SMBX - below a MB, like how a natural midi is. Is there no way at all of having lightweight SMBX music? None at all?

User avatar
Hoeloe
One of them Lua people
Posts: 822
Joined: 5 years ago
Location: Spaaace

Re: SMBX Help Thread

Postby Hoeloe » 2 years ago

TiKi wrote:Try redownloading or re-unzipping the SMBX zip.

So I've seen in music for SMBX:
Midi converted to MP3 - increases filesize
.spc converted to MP3 - increases filesize
.ogg converted to MP3 - increases filesiz
.midi - glitchy
Natural .wav - has huge filesize
Natural mp3 - has somewhat huge filesize - too big for heavy use

Okay so. Past natural .oggs (which I am unsure of working) I see no way to get a small filesize in music in SMBX - below a MB, like how a natural midi is. Is there no way at all of having lightweight SMBX music? None at all?
The problem I think is that music tends to have a lot of data. MIDIs are small because they don't store sound, just sequences of notes and instruments (which is why they may be glitchy - SMBX may not support all possible inputs). WAVs are uncompressed, and so, while they give great quality, they are also massive. MP3s can have varying filesize depending on a number of compression factors, as can oggs. Ogg and MP3 both use different compression algorithms, which means that either may be smaller for different settings, compression quality, and even audio content. Oggs are usually a reasonable bet for game music though, especially if it doesn't need to be great quality. It might be worth testing them further. You're not really going to get an audio file below 1MB that isn't a MIDI, though. Compression can be seriously good, but not that good without losing quality.
Image
Image
Image
Image

TiKi
Posts: 13
Joined: 4 years ago

Re: SMBX Help Thread

Postby TiKi » 2 years ago

Oh, that's why they do it. It doesn't exactly make me feel better about SMBX but it makes it more understandable. Thanks for the tips, MFGG has a "over 30 or so MB in special cases only" policy and yeah. I'll be sure to try ogg and report back.

User avatar
Hoeloe
One of them Lua people
Posts: 822
Joined: 5 years ago
Location: Spaaace

Re: SMBX Help Thread

Postby Hoeloe » 2 years ago

TiKi wrote:Oh, that's why they do it. It doesn't exactly make me feel better about SMBX but it makes it more understandable. Thanks for the tips, MFGG has a "over 30 or so MB in special cases only" policy and yeah. I'll be sure to try ogg and report back.
It's perfectly reasonable not to have a complete MIDI interpreter in a game like SMBX, to be honest. Most games don't contains them, particularly if they support MP3 or OGG formats. MIDI is basically like a scripting language for music, in a way - it requires the file to be processed on the fly, and doing so has its own complexities and challenges. It would be nice to have it, but I wouldn't count not having it as a mark against the engine, unlike some things about SMBX that could really do with improving.
Image
Image
Image
Image

User avatar
Narolas
Posts: 0
Joined: 4 years ago

Re: SMBX Help Thread

Postby Narolas » 2 years ago

Hey there.

I've looked around and watched a few videos about SMBX events to try and figure this out.
I have 2 events activating themselves in a loop (changing the background of the level on specific timers, to make it "flash" temporarily)
How do I stop it ? The background only changes in the level screen I set it up in, but I made it play a sound and I have no idea how to "kill" the event, or stop the loop so the sound and background switching stops.

I'm wondering if I have to try and use luna.DLL, or maybe do something with toggling layers.

User avatar
Hoeloe
One of them Lua people
Posts: 822
Joined: 5 years ago
Location: Spaaace

Re: SMBX Help Thread

Postby Hoeloe » 2 years ago

Narolas wrote:Hey there.

I've looked around and watched a few videos about SMBX events to try and figure this out.
I have 2 events activating themselves in a loop (changing the background of the level on specific timers, to make it "flash" temporarily)
How do I stop it ? The background only changes in the level screen I set it up in, but I made it play a sound and I have no idea how to "kill" the event, or stop the loop so the sound and background switching stops.

I'm wondering if I have to try and use luna.DLL, or maybe do something with toggling layers.
Essentially, you need to use LunaDLL. The SMBX event system is very limited, and conditional loops are, unfortunately, just not possible. Fortunately, it's very easy to do this in LunaDLL, especially if you use the new Lua plugin.
Image
Image
Image
Image

TiKi
Posts: 13
Joined: 4 years ago

Re: SMBX Help Thread

Postby TiKi » 2 years ago

The way that would work is you have a timer in LUNADLL that triggers SMBX events that change the background and play a sound, but those SMBX events THEMSELVES don't trigger anything. You can then use DeleteEventsFrom once you get to the next section to stop the sound and background events.

User avatar
Narolas
Posts: 0
Joined: 4 years ago

Re: SMBX Help Thread

Postby Narolas » 2 years ago

Alrighty, that's what I was thinking, but I thought maybe I was missing something.
Thanks guys !

Man, how did people do anything with events without Luna.DLL :p

EDIT : also, I did a quick search, what's this lua plugin you mentionned ? Can't seem to find a reference to it anywhere.

User avatar
Kevsoft
LunaLua Master Developer
Posts: 83
Joined: 2 years ago

Re: SMBX Help Thread

Postby Kevsoft » 2 years ago

About the lua plugin
Lua Reference Page & Examples

Lua is like a script language. You might wanna try it if you want to do more complex things.

User avatar
Narolas
Posts: 0
Joined: 4 years ago

Re: SMBX Help Thread

Postby Narolas » 2 years ago

Yea i've coded in lua before, thanks!
For some reason searching luna.dll and lua didn't give any results.

User avatar
Kevsoft
LunaLua Master Developer
Posts: 83
Joined: 2 years ago

Re: SMBX Help Thread

Postby Kevsoft » 2 years ago

Did you download the package in the lua thread?

User avatar
Narolas
Posts: 0
Joined: 4 years ago

Re: SMBX Help Thread

Postby Narolas » 2 years ago

Yea I have, i'll be trying it out at some point, for now luna.dll on it's own is enough for my level though.

User avatar
Moosh
Posts: 12
Joined: 4 years ago

Re: SMBX Help Thread

Postby Moosh » 2 years ago

I'm currently trying to make an edit to the Mario player sprites that requires adding an extra 2 pixels to the top of the sprite. The problem I'm having is that when I test the game, "Mario" goes completely invisible. I'm assuming that since the spritesheet is split into a 100 pixel grid it must be possible to have slightly bigger sprites, right?

TiKi
Posts: 13
Joined: 4 years ago

Re: SMBX Help Thread

Postby TiKi » 2 years ago

Uh yeah. You put it starting on the top-left of the original sprite. Don't expand the image in any way. Make sure you've named it properly as well.

User avatar
Moosh
Posts: 12
Joined: 4 years ago

Re: SMBX Help Thread

Postby Moosh » 2 years ago

Okay, so Redigit just set it up like that to screw with people. Got it. Do I need to use a limited number of colors or can I just take off the indexed palette in Gimp and still have it work?

User avatar
darkychao
Posts: 0
Joined: 6 years ago
Location: When you sleep there's a lesson you must learn: not for the lesson today, mate.

Re: SMBX Help Thread

Postby darkychao » 2 years ago

Moosh wrote:Okay, so Redigit just set it up like that to screw with people. Got it. Do I need to use a limited number of colors or can I just take off the indexed palette in Gimp and still have it work?
you can use any 256 colors you want, but since it's a gif you are limited to 256.
Image
Image
Image
BeatBoxingBoo wrote:a medley is just, like, a mixture of medics
Check out my TF2 community workshop stuff:
Crust CrusherImage Crafty CutterImage PinheadImageThreadImage
If I didn't like anybody who had a different opinion than me on something I like I wouldn't have any friends.-Bwarch


Return to “A2XT”

Who is online

Users browsing this forum: No registered users and 2 guests

cron