#Penumbra

1 messages · Page 1 of 1 (latest)

slender crow
clever rune
#

penumbra??

slender crow
#

entropy reference

languid shoal
#

HEAVENLY LORD HAS ANSWERED MY PRAYERS

#

THANK YOU SO MUCH

slender crow
#

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

clever rune
#

well entropy is retroactively based on a reversed consumeable

languid shoal
#

nova was planning to make a music manager mod too

slender crow
#

i didnt know that 💀

languid shoal
#

we were talking about it in the Cryptid's discord server

slender crow
#

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

languid shoal
#

it's gine rho, o dont think he's capable

slender crow
#

but its not very well documented rn

slender crow
#

i just had time and thought it would be nicer to have that

languid shoal
#

waiting for the documentation tho

slender crow
#

ill make it at some point but honestly im really bad at writing docs

clever rune
#

how does the shuffler work?

slender crow
#

if youre just disabling music from existing mods though you dont really need it

languid shoal
#

so like, this mod will overrides any songs outside of this mod?

slender crow
# clever rune how does the shuffler work?

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

slender crow
clever rune
#

the fact that you can't do anything with the sound engine from the main thread is quite annoying

slender crow
#

but it should be able to disable songs from any mod

clever rune
#

at least that's what i remember it being like

cursive copper
#

Does it play during a blind?

slender crow
#

yeah i was trying to see if i could detect when the song was over

slender crow
#

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

clever rune
slender crow
#

no

clever rune
#

damn

slender crow
#

im sure i could with NFS shenanigans to just directly read the file to figure out the length and then wait that much time

clever rune
#

it looks like there's a second sound manager programmed into the game if multithreading isn't supported

slender crow
#

but that sounds like a nightmare

clever rune
#

you could see if you can force the game to use that

slender crow
#

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

clever rune
slender crow
#

is there a way to get the current song duration from this though

clever rune
#

you'd be able to access the love Sound object easier

#

which lets you just get the duration

slender crow
#

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

clever rune
#

actually idk if smods.sound works with the main thread sound manager

slender crow
#

i think most of smods.sound is hooking into play_sound and modulate_sound

#

so maybe

clever rune
#

is there any meaning behind the choice of inverted consumeables

#

apart from the Jen But Better ones

slender crow
#

its based on the trend of mods being named after spectral cards

#

except theres like no spectrals left

clever rune
#

i meant more like the specific ones for each mod

slender crow
#

overflow is just because of the name, same for engulf

#

and idk i chose penumbra cause it sounded cooler

clever rune
#

fair

cursive copper
#

i tried inserting something but it crashed

slender crow
#

this is probably because its trying to get a sound that doesnt exist

slender crow
#

music tracks need to have music_ at the start of the key so at the start of the file name here

cursive copper
#

?

slender crow
#

instead of strong_bad you would need to do music_strong_bad

cursive copper
slender crow
#

theres a list on the smods wiki somewhere let me find it

cursive copper
slender crow
#

in the json put "replace": "music4"

#

and no priority

cursive copper
#

so how does select_music_track(self) -> number work?

slender crow
#

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

cursive copper
blissful wraith
#

i originally arranged these for the music-replacing mod nova was working on a couple of months ago, just remembered the tracks existed

slender crow
#

very cool

deep wren
slender crow
#

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

edgy agate
#

Doesn't balatro have music5 for showdown blinds?

slender crow
#

oh does it

#

i forgor

#

if theres a built in track its easy to replace

edgy agate
#

nvm, it's all blinds

deep wren
#

music6, make it happen.

#

Or at least give em cool themes. (Optional, maybe it might be it's own mod.)

restive leaf
#

who up shattering they twilight reverie

solar phoenix
#

This is just cool ass name and don't even know what those