Giter Site home page Giter Site logo

ding's People

Contributors

fitfc avatar ichun avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ding's Issues

Unable to use with Mod

Hello,

I recently downloaded Ding and found it to be fantastic. While looking in the config file, I noticed that I can use it with mod sounds, too. However, upon trying to use it with audiodeath, I get the error that it can't find the specified sound file "audiodeath:audiodeath.death".

I've confirmed that the audiodeath mod is working fine and is able to find its sound file correctly, and I've confirmed that Ding works fine in its default configuration. So I suspect it's to do with my configuration of Ding. Below are the parts of the file that I've modified.

ding {
# Minecraft name of sound file to play when Minecraft is loaded
# EG: "ui.button.click" or "entity.experience_orb.pickup"
#
# This can also be a mod sound if the mod is installed.
# EG: modname:modsound.boing [default: entity.experience_orb.pickup]
S:name=audiodeath:audiodeath.death
# Minecraft name of sound file to play when world is loaded
# EG: "ui.button.click" or "entity.experience_orb.pickup"
#
# This can also be a mod sound if the mod is installed.
# EG: modname:modsound.boing [default: entity.experience_orb.pickup]
S:nameWorld=audiodeath:audiodeath.death
--LINES REMOVED
# Play sound on...
# 0 = Nothing (why install the mod though?)
# 1 = MC load
# 2 = World load
# 3 = MC and World load [range: 0 ~ 3, default: 1]
I:playOn=3

asking

Hello, I'm asking you to make a version for 1.20.2 fabric or quilt on Modrinth, thank you very much!

SUGESTION ding after F3+T

It would be pretty awesome to have the ding after the resourcepack reload finishes since if you Alt-tab too soon the game has a high probability of freezing on large modpacks.

[Forge 1.18.2] Crash upon Loading

When loading up Minecraft with the latest version of Ding installed (1.4.0), the game crashes with this error:

Description: Rendering overlay

java.lang.NullPointerException: Cannot read field "playOnLoad" because "me.ichun.mods.ding.common.Ding.config" is null
	at me.ichun.mods.ding.common.core.EventHandlerClient.postInit(EventHandlerClient.java:35) ~[Ding-1.18.2-Forge-1.4.0.jar%23136!/:1.4.0] {re:mixin,re:classloading}
	at net.minecraft.client.Minecraft.handler$boi000$setOverlay(Minecraft.java:9848) ~[client-1.18.2-20220404.173914-srg.jar%23350!/:?]

I've deleted the config file to allow it to regenerate, and the issue still persists. Full crash log upon request.

Ding is unable to access sounds from other mods when those mods register them using RegistryEvent

I've been trying to get Ding to play a sound from a mod I'm making. However, I keep getting the error Could not find sound: mymod:mysound.

I've done some digging around, and I figured out the problem.

Here's how Ding currently gets and plays the sounds:

SoundEvent useRegistered = (SoundEvent) ForgeRegistries.SOUND_EVENTS.getValue(new ResourceLocation("mymod:mysound"));
Minecraft.getInstance().getSoundHandler().play(SimpleSound.master(useRegistered, 1));

It's trying to get the registered object. However, this doesn't work for mod sounds—it always throws this error message. (I know you haven't updated GitHub with the latest versions of Ding, but it's still pretty much the same)

I tried having Ding re-create the sound reference whenever it needs to play it, and it seems to do the trick. Here's how it works:

SoundEvent recreate = new SoundEvent(new ResourceLocation("mymod:mysound"));
Minecraft.getInstance().getSoundHandler().play(SimpleSound.master(recreate, 1));

Obviously you'd have to change that up to work with the Ding config file, but from my testing this fixes the problem I outlined above.

Here's a gist of Ding.java for the 1.15.2 with my changes.

Edit after some more testing

Alright, I've done some more digging around. It looks like Ding only has this problem when the sounds are registered using Events, as described here. When using DeferredRegister (seen here), it works fine. I guess the problem was sorta on my end, after all.

For anyone else who has trouble with this, here's an example of how you register using DeferredRegister (at least in 1.15).

I think it would be good for you to add something about this to the mod page on CurseForge so others don't have to figure it out like I did! I love the mod.

IRC

: So I see Ding works with mod sounds, and vanilla sounds, but is there any way to add a custom sound? I tried making a resource pack with just the one sound I want to play, and I got it to play with /playsound but Ding still doesn't see it. Is there any way to get this to work outside of wrapping the sound in a standalone mod?

[1.15] Suggestion - Play the "ding" sound as music

Would be great to be able to "tag" the sound as music for example.

I know I dont use it as intended, but in my case I use it to start a specific music on server entry.
I got some complains that the music that started can't be lowered using the usual "music volume" options.

Version: MC 1.15

Thanks iChun ;) - even if you reply you can't or don't want to :P

Not working with resource loader?

Hello! I am trying to make a custom work with resource loader on 1.12. My structure is like this: resources/minecraft/sounds/testing.ogg
The sounds.json looks like this:

{
"testing":{
"category":"master",
"sounds":[
"testing"
]
}
}

When I type in Minecraft: "/playsound minecraft:testing voice jackowski" it plays the sound. But Ding doesn't play it. Also tried to add this sound to a resource pack, same issue.

Resource pack sound not working

Hey there,
Thanks for such a great mod.

seems it doesn't accept sounds that aren't minecraft, even when added through resourcepack.
MC: 1.15.2
forge-31.2.36
error:

me.ichun.mods.ding.common.Ding
Render thread
Could not find sound: minecraft:nameofthesound

Anyone got it to work? How?

How to load a custom sound

So im using Kubejs to load a custom sound but I cant seem to make the mod load and play it ive tried a number of things and no matter what I do it refuses to play. The folder structure where it is at is kubejs/assets/kubejs/sounds/load.ogg

Apparently github does not support uploading of ogg files so if you need the file let me know and ill gdrive it.

Just doesn't work with AdditionalResources or ResourceLoader.

In the config it claims to work with sounds added by AdditionalResources and ResourceLoader, but it just doesn't.

I can play the sound in-game with /playsound but Ding just can't find it.

It will log [ding]: Could not find sound: minecraft:barry.wow every single time without fail.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.