Per-level is not implemented yet, but will be implemented in the near future (now I have some important works and will be completely free after 23-24 june)WestonSmith wrote:Not sure if this is being worked on still, but curious if the ability to change sounds on a per level basis was ever implemented (or is it still per world)?
LunaDLL+SDL2_Mixer = FLAC,OGG,MOD,XM,IT, etc.
- Wohlstand
- Moondust and TheXTech developer
- Posts: 186
- Joined: 10 years ago
- First name: Vitaly
- Pronouns: he/him/his
- Location: Moscow, Russia
Re: LunaDLL+SDL2_Mixer = FLAC,OGG,MOD,XM,IT, etc.
- WestonSmith
- Bunny
- Posts: 191
- Joined: 11 years ago
Re: LunaDLL+SDL2_Mixer = FLAC,OGG,MOD,XM,IT, etc.
Been a while since I checked in. Has the ability to change SFX on a per level basis been implemented yet? Now that A2XT submissions are opened, I'd like to make some SFX changes before submitting anything.
-
- Untalented Pleb
- Posts: 91
- Joined: 9 years ago
- First name: Colton
- Pronouns: he/him/his
- Location: Canada
Re: LunaDLL+SDL2_Mixer = FLAC,OGG,MOD,XM,IT, etc.
You can do that with LunaLua I believe.
- SAJewers
- ASMBXT Level Wrangler/A2XT Project Coordinator /AAT Level Designer
- Posts: 4219
- Joined: 12 years ago
- Location: Nova Scotia
Re: LunaDLL+SDL2_Mixer = FLAC,OGG,MOD,XM,IT, etc.
What he means is changing the sound of a built in sound effect (say, smash.ogg) on a per-level basis. I'd actually like to know this too.XerX wrote:You can do that with LunaLua I believe.
-
- Untalented Pleb
- Posts: 91
- Joined: 9 years ago
- First name: Colton
- Pronouns: he/him/his
- Location: Canada
Re: LunaDLL+SDL2_Mixer = FLAC,OGG,MOD,XM,IT, etc.
Yeah. You can do that with LunaLua.SAJewers wrote:What he means is changing the sound of a built in sound effect (say, smash.ogg) on a per-level basis. I'd actually like to know this too.XerX wrote:You can do that with LunaLua I believe.
You make a new text file called "sounds.ini" in your level folder and "overwrite" sounds with it.
An example would be my file here.
Code: Select all
[sound-4]
name="Block Smashed"
file="Sounds/block_smash.ogg"
[sound-5]
name="Shrink"
file="Sounds/powerdown.ogg"
[sound-6]
name="Grow"
file="Sounds/powerup.ogg"
[sound-12]
name="Got Item"
file="Sounds/powerup.ogg"
[sound-37]
name="Thwomp"
file="Sounds/thwomp.ogg"
[sound-46]
name="Door"
file="Sounds/door.ogg"
- SAJewers
- ASMBXT Level Wrangler/A2XT Project Coordinator /AAT Level Designer
- Posts: 4219
- Joined: 12 years ago
- Location: Nova Scotia
-
- Untalented Pleb
- Posts: 91
- Joined: 9 years ago
- First name: Colton
- Pronouns: he/him/his
- Location: Canada
Re: LunaDLL+SDL2_Mixer = FLAC,OGG,MOD,XM,IT, etc.
Are you using LunaLua or LunaDLL? It should be LunaLua.
What version of LunaLua? ( I usually assume people are using the newest. )
Do you have sound files to use?
Are you loading them from the correct directory?
What version of LunaLua? ( I usually assume people are using the newest. )
Do you have sound files to use?
Are you loading them from the correct directory?
- SAJewers
- ASMBXT Level Wrangler/A2XT Project Coordinator /AAT Level Designer
- Posts: 4219
- Joined: 12 years ago
- Location: Nova Scotia
Re: LunaDLL+SDL2_Mixer = FLAC,OGG,MOD,XM,IT, etc.
The latest version of LunaLua (according to the title screen, V0.7.1.0 beta). Correct file names, root level folder. Just getting the default SFX.
-
- Untalented Pleb
- Posts: 91
- Joined: 9 years ago
- First name: Colton
- Pronouns: he/him/his
- Location: Canada
Re: LunaDLL+SDL2_Mixer = FLAC,OGG,MOD,XM,IT, etc.
Did you reload SMBX? The changes won't take place unless you do, sadly.
- SAJewers
- ASMBXT Level Wrangler/A2XT Project Coordinator /AAT Level Designer
- Posts: 4219
- Joined: 12 years ago
- Location: Nova Scotia
-
- Untalented Pleb
- Posts: 91
- Joined: 9 years ago
- First name: Colton
- Pronouns: he/him/his
- Location: Canada
Re: LunaDLL+SDL2_Mixer = FLAC,OGG,MOD,XM,IT, etc.
Maybe I'm wrong then. :/
- Rednaxela
- Maker of Shenanigans
- Posts: 897
- Joined: 10 years ago
- Pronouns: they/them
- https://rednaxela.talkhaus.com
Re: LunaDLL+SDL2_Mixer = FLAC,OGG,MOD,XM,IT, etc.
Actually, LunaDLL doesn't currently do this for level folders, only for episode folders.XerX wrote:You make a new text file called "sounds.ini" in your level folder and "overwrite" sounds with it.
This can probably be easily changed though.
- Wohlstand
- Moondust and TheXTech developer
- Posts: 186
- Joined: 10 years ago
- First name: Vitaly
- Pronouns: he/him/his
- Location: Moscow, Russia
Re: LunaDLL+SDL2_Mixer = FLAC,OGG,MOD,XM,IT, etc.
I think, I will go via lua API way to allow per-level SFX customization: I will add functions loadSFXid(soundID, soundFile) and loadMusicID(musicID, musicFile), or you still wanna have to use INI file instead? INI file blending is simple (I can load episode INI file and then overwirte episode specific with a some level specific if presented).Rednaxela wrote:Actually, LunaDLL doesn't currently do this for level folders, only for episode folders.XerX wrote:You make a new text file called "sounds.ini" in your level folder and "overwrite" sounds with it.
This can probably be easily changed though.
Re: LunaDLL+SDL2_Mixer = FLAC,OGG,MOD,XM,IT, etc.
INI file is probably more sensible since it's just a configuration, and it's already done that way on an episode basis.Wohlstand wrote:I think, I will go via lua API way to allow per-level SFX customization: I will add functions loadSFXid(soundID, soundFile) and loadMusicID(musicID, musicFile), or you still wanna have to use INI file instead? INI file blending is simple (I can load episode INI file and then overwirte episode specific with a some level specific if presented).Rednaxela wrote:Actually, LunaDLL doesn't currently do this for level folders, only for episode folders.XerX wrote:You make a new text file called "sounds.ini" in your level folder and "overwrite" sounds with it.
This can probably be easily changed though.
-
- Untalented Pleb
- Posts: 91
- Joined: 9 years ago
- First name: Colton
- Pronouns: he/him/his
- Location: Canada
Re: LunaDLL+SDL2_Mixer = FLAC,OGG,MOD,XM,IT, etc.
I personally prefer using the ini files.
- SAJewers
- ASMBXT Level Wrangler/A2XT Project Coordinator /AAT Level Designer
- Posts: 4219
- Joined: 12 years ago
- Location: Nova Scotia
Re: LunaDLL+SDL2_Mixer = FLAC,OGG,MOD,XM,IT, etc.
It's no been released officially yet, but Game Music EMU Support was just added, allowing for more than just SPC:
Only limitation is that formats like GBS/HES/NSF don't have tagging capabilities, so you're gonna have to manually supply that in lunadll.lua. I'm sure Wholstead will have more info when he officially releases it. If anyone wants to use retro video game music in an A2MT feel free to make use of this; I probably will (outside of nintendo-published games, they shouldn't be ht with ContentID claims).
(also someone help me make this shooter level a thing)
Only limitation is that formats like GBS/HES/NSF don't have tagging capabilities, so you're gonna have to manually supply that in lunadll.lua. I'm sure Wholstead will have more info when he officially releases it. If anyone wants to use retro video game music in an A2MT feel free to make use of this; I probably will (outside of nintendo-published games, they shouldn't be ht with ContentID claims).
(also someone help me make this shooter level a thing)
- WestonSmith
- Bunny
- Posts: 191
- Joined: 11 years ago
Re: LunaDLL+SDL2_Mixer = FLAC,OGG,MOD,XM,IT, etc.
Just checking in again. Any word on per level SFX swaps?
KLUVYOUBYE!
KLUVYOUBYE!
- Wohlstand
- Moondust and TheXTech developer
- Posts: 186
- Joined: 10 years ago
- First name: Vitaly
- Pronouns: he/him/his
- Location: Moscow, Russia
Re: LunaDLL+SDL2_Mixer = FLAC,OGG,MOD,XM,IT, etc.
Just now!WestonSmith wrote:Just checking in again. Any word on per level SFX swaps?
KLUVYOUBYE!
LunaLUA v.0.7.2 finally has this thing!
- SAJewers
- ASMBXT Level Wrangler/A2XT Project Coordinator /AAT Level Designer
- Posts: 4219
- Joined: 12 years ago
- Location: Nova Scotia
Re: LunaDLL+SDL2_Mixer = FLAC,OGG,MOD,XM,IT, etc.
What's the status on grabbing the IDv3 Artist/Album tags? Would love to get working on the music cheat code soon.
- Wohlstand
- Moondust and TheXTech developer
- Posts: 186
- Joined: 10 years ago
- First name: Vitaly
- Pronouns: he/him/his
- Location: Moscow, Russia
Re: LunaDLL+SDL2_Mixer = FLAC,OGG,MOD,XM,IT, etc.
I already have two LunaLUA functions to take possible music tag from OGG, FLAC, MP3, ANY-TRACKER (MOD, IT, XM, STM, etc.), GME(SPC,VGM,etc.):SAJewers wrote:What's the status on grabbing the IDv3 Artist/Album tags? Would love to get working on the music cheat code soon.
Audio.MusicTitle() --returns tag if possible, otherwise returns filename if tag is empty or impossible to grab tag for this music format
Audio.MusicTitleTag() --returns tag if possible or returns empty string if empty tag or impossible to grab tag for this music format
EDIT: Album/Artist: Ouch, forgot about that. Anyway is possible to add that fast, and I will do that today/tomorrow. But I will ask Kevin reupload LunaLUA build because SDL Mixer's API will be changes with adding of new functions, and that are requires to add bindings into the LunaLUA side.
Since I implemented music tag returning into SDL Mixer side and successfully tested on the PGE Engine, I sent updated SDL Mixer to LunaLUA repo and I was added required binds into LunaLUA.
Recent time ago Kevin helped me to find libsoxr, the audio resample library, which I wish to use with SDL Mixer to resolve sample rate shit (and "required" (because non-44100 hz audio plays terrible and dirty) will be changed to "recommended" to sample your files into 44100hz, because real-time resampling is a hard for CPU process which may cause lag of audiostream (appearing of holes between audio chunks))
- WestonSmith
- Bunny
- Posts: 191
- Joined: 11 years ago
Re: LunaDLL+SDL2_Mixer = FLAC,OGG,MOD,XM,IT, etc.
You're the greatest person to have ever personed.Wohlstand wrote:Just now!WestonSmith wrote:Just checking in again. Any word on per level SFX swaps?
KLUVYOUBYE!
LunaLUA v.0.7.2 finally has this thing!
- WestonSmith
- Bunny
- Posts: 191
- Joined: 11 years ago
Re: LunaDLL+SDL2_Mixer = FLAC,OGG,MOD,XM,IT, etc.
Actually, how does per level .ini work? I tried placing the sounds.ini file within the level folder alongside the .ogg files, but I wasn't having much luck.
- Wohlstand
- Moondust and TheXTech developer
- Posts: 186
- Joined: 10 years ago
- First name: Vitaly
- Pronouns: he/him/his
- Location: Moscow, Russia
Re: LunaDLL+SDL2_Mixer = FLAC,OGG,MOD,XM,IT, etc.
You must associate your INI sections with right soundID's: http://engine.wohlnet.ru/pgewiki/SMBX64 ... fects_listWestonSmith wrote:Actually, how does per level .ini work? I tried placing the sounds.ini file within the level folder alongside the .ogg files, but I wasn't having much luck.
All paths inside INI file are relative to that folder where you placed it (episode folder or custom folder. Level custom folder has priority over episode folder).
If you wish replace some sound, make blank file and write settings yourself:
(make a key sound-* with necessary ID taken from that sound list)
Code: Select all
;first sound
[sound-2]
file="mysound1.ogg"
;second sound
[sound-56]
file="kaboom!.ogg"
;etc...
- Imaynotbehere4long
- Gone, but...yeah, pretty much forgotten.
- Posts: 289
- Joined: 8 years ago
Re: LunaDLL+SDL2_Mixer = FLAC,OGG,MOD,XM,IT, etc.
I should go ahead and ask this before I forget:
How do I make OGGs loop to a point after the beginning of the song? SAJewers won't accept my level until I do that, but he doesn't know how to do it, either.
How do I make OGGs loop to a point after the beginning of the song? SAJewers won't accept my level until I do that, but he doesn't know how to do it, either.
My SMBX portfolio:
(includes a Sonic 3D Blast styled level.)
SOMEONE ANSWER MY CRY FOR HELP: http://www.supermariobrosx.org/forums/v ... =69&t=2026
(includes a Sonic 3D Blast styled level.)
SOMEONE ANSWER MY CRY FOR HELP: http://www.supermariobrosx.org/forums/v ... =69&t=2026
- Wohlstand
- Moondust and TheXTech developer
- Posts: 186
- Joined: 10 years ago
- First name: Vitaly
- Pronouns: he/him/his
- Location: Moscow, Russia
Re: LunaDLL+SDL2_Mixer = FLAC,OGG,MOD,XM,IT, etc.
I wrote how to in my youtube video info where I tested out that loop.Imaynotbehere4long wrote:I should go ahead and ask this before I forget:
How do I make OGGs loop to a point after the beginning of the song? SAJewers won't accept my level until I do that, but he doesn't know how to do it, either.
It's simple and easy:
You would to have Audacity (I don't recommend you to use same ogg file, and if possible, open in Audacity the source file (flac, wav, or even dumb mp3). That will give best chance to don't purge quality on secondary compression)
When you opened your audio file, find in the bottom the selection meter, toggle it into "samples" units. Then set selection to your loop zone. When you will calibrate it you can hold shift and press play to loop selection. Be sure than waves at begib and at end are same or similar to escape appearence of clicks. If you have multiple repeats inside your track - remove them and keep alone and then set selection to your loop zone.
Next step: open "File -> edit metatags"
Find in a list of tags the empty fields, double click to title and set "LOOPSTART". Then double click value and type number of selection begin.
Do same with "LOOPEND", But with end sanples value. (LOOPLENGTH will work too, but instead of loop end samples the length between begin and end.)
Be careful, you must keep even two samples after loop end or loop will not work.
When you seted up a tags, do export into flac (optionally as backup) and then export into ogg format. Then try to play just-saved music file via PGE (or I would send a mini player based on SDL Mixer which I use to offline test of musics. That player available in PGE's repo in the _Misc/SdlMusPlayer)