a music menu/manager mod
https://github.com/lord-ruby/Penumbra
#Penumbra
1 messages · Page 1 of 1 (latest)
penumbra??
entropy reference
if you havent noticed all my non entropy mods are based on inversed consumables
lmk if theres any issues
i did this in a few hours
well entropy is retroactively based on a reversed consumeable
nova was planning to make a music manager mod too
i didnt know that 💀
we were talking about it in the Cryptid's discord server
btw this should let you upload oggs and metadata files directly to penumbra/assets/sounds to load custom songs in without making a whole new mod too
it's gine rho, o dont think he's capable
but its not very well documented rn
itd be like trance fonts/color schemes in this sense but i should preface that this isnt the primary goal of the mod
i just had time and thought it would be nicer to have that
waiting for the documentation tho
ill make it at some point but honestly im really bad at writing docs
how does the shuffler work?
if youre just disabling music from existing mods though you dont really need it
so like, this mod will overrides any songs outside of this mod?
its very rudimentary tbh
stores all songs in a table where the key is the priority and the value is another table with a list of songs in it
randomly generates an index into that table if it doesnt exist
when a song is played that is music, the index is set to nil and reshuffled when the next song is selected
i think this is actually far from perfect
but the sound engine was giving me headaches
it shouldnt mess with anything else unless you disable songs
the fact that you can't do anything with the sound engine from the main thread is quite annoying
but it should be able to disable songs from any mod
at least that's what i remember it being like
Does it play during a blind?
yeah i was trying to see if i could detect when the song was over
you can make the songs play whenever if using metadata
rn theres only 2 options
it always plays with a numerical priority, or it replaces an existing song
i didnt want to mess with eval()ing from a json cause thats dumb so i just left it like that for now
i think the shuffling actually might have issues since idk how often songs are checked
but ill figure that out later
did you end up being able to do that
no
damn
im sure i could with NFS shenanigans to just directly read the file to figure out the length and then wait that much time
it looks like there's a second sound manager programmed into the game if multithreading isn't supported
but that sounds like a nightmare
you could see if you can force the game to use that
perhaps
i honestly dont recommend using shuffling rn, but it wont make a difference unless you have 2 songs with the exact same priority which should only happen when adding songs via metadata
hm..
is there a way to get the current song duration from this though
you'd be able to access the love Sound object easier
which lets you just get the duration
truthfully idk how to even get the love sound object cause ive never messed with anything related to this
even with it being on the main thread
actually idk if smods.sound works with the main thread sound manager
is there any meaning behind the choice of inverted consumeables
apart from the Jen But Better ones
its based on the trend of mods being named after spectral cards
except theres like no spectrals left
i meant more like the specific ones for each mod
overflow is just because of the name, same for engulf
and idk i chose penumbra cause it sounded cooler
fair
this is probably because its trying to get a sound that doesnt exist
well what about this?
music tracks need to have music_ at the start of the key so at the start of the file name here
?
instead of strong_bad you would need to do music_strong_bad
And what music tracks get replaced?
well how do I get the track to only play the shop music?
so how does select_music_track(self) -> number work?
the returned number is the priority for this song to play compared to other songs
if you just want your music to replace existing music you dont need it
How can I get the music to be shuffled
i originally arranged these for the music-replacing mod nova was working on a couple of months ago, just remembered the tracks existed
very cool
Permanent code card theme
Wonder if there is a way to make a track the theme for Finisher Blinds at some point.
the only way i can see it being feasible is allowing the user to input arbitrary priority functions instead of just numbers
but evaluating random lua code that anyone can provide as a soundpack seems scary
Doesn't balatro have music5 for showdown blinds?
nvm, it's all blinds
music6, make it happen.
Or at least give em cool themes. (Optional, maybe it might be it's own mod.)
who up shattering they twilight reverie
This is just cool ass name and don't even know what those