lumien231 / Custom-Main-Menu

A mod that allows you to modify the minecraft main menu
MIT License
67 stars 37 forks source link

hoverSound and pressSound won't work #394

Open Kiiinji opened 4 years ago

Kiiinji commented 4 years ago

Hi, I'm having issues making the hoverSound and pressSound working.. I tried everything : changing the path in the file, old 1.7.10 tutorial on youtube, mp3, ogg, nothing seems to work, it just removes the basic minecraft sound (the button makes no sound)

here's my config :

"buttons": {

    "tanya":
    {
        "text" : "",
        "posX" : -100,
        "posY" : 48,
        "width" : 200,
        "height" : 20,
        "imageWidth" : 606,
        "imageHeight" : 69,
        "hoverSound" : "modpack:sounds/gunload.ogg",
        "pressSound" : "modpack:sounds/gunfire.ogg",
        "texture" : "modpack:textures/tanya.png",
        //"tooltip" : "Paré au combat !",
        "action" : 
        {
            "type" : "connectToServer",
            "ip" : "26.141.202.39"
        }
    },

``

ROMVoid95 commented 4 years ago

might require a json file to explicitly state the sound action in custom main menu, take mine for example. File Structure

└───resources
    └───menu
        ├───sounds.json
        └───sounds
            └───click.ogg
            └───hover.ogg

in sounds.json

{
    "click": {"sounds": ["click"]},
    "hover": {"sounds": ["hover"]}
}

then my buttons in the mainmenu configs have it set as shown https://hasteb.in/pohavecu.json

ROMVoid95 commented 4 years ago

add a pack.mcmeta file to the resources folder with this in the file

{"pack":{"pack_format":3,"description":"B.A.S.E External Resources"}}

put the sounds folder and json from modpack in there own folder in resources as menu just the same as the structure i listed

Kiiinji commented 4 years ago

I appreciate the help, but I'm sorry to tell you that's it's still not working :( I did everything as you told me : image image image image

ROMVoid95 commented 4 years ago

is ResourceLoader installed by chance?

Kiiinji commented 4 years ago

Of course, my custom main menu is working, custom textures and my custom background are showing

Kiiinji commented 4 years ago

image

Kiiinji commented 4 years ago

It removes the button sound, but it won't play my custom sounds :/

Kiiinji commented 4 years ago

up :(

Kiiinji commented 4 years ago

up

ROMVoid95 commented 4 years ago

im actually curious about this, i assume you use discord yes?

Kiiinji commented 4 years ago

Yes Kinji#7352

Elrol commented 3 years ago

Was a fix ever found?

flareblitz21 commented 3 years ago

Having the same issue any solutions?

RookiesTwo commented 3 years ago

Having the same issue any solutions?

https://github.com/lumien231/Custom-Main-Menu/issues/205