Jump to content

Recommended Posts

Posted (edited)

Hi everyone, I know this is going to be really simple but i can't seem to figure it out. First problem is that my mod doesn't appear when run with eclipse and crashes when built into a .jar with gradlew build. second problem is the main problem I think my file structure is correct but in theory it should play a sound when a message in chat is said "Player was killed by" it doesn't do anything, no errors in console or anything, again I think this stems from the first problem of it not appearing. Now I will add screenshots of code/filestructure: 

C__Users_Jeremiah_Desktop_Forge 1.8_build.gradle - Notepad++ 12_9_2017 12_16_26 PM.png

eclipse - MDKExample_src_main_java_cerni_Main.java - Eclipse 12_9_2017 12_11_36 PM.png

eclipse - MDKExample_src_main_java_cerni_Main.java - Eclipse 12_9_2017 12_12_06 PM.png

eclipse - MDKExample_src_main_java_cerni_Main.java - Eclipse 12_9_2017 12_12_14 PM.png

Edited by Zillex_
Posted

Your sounds directory should be "assets/zillexcm/*" instead of "zillexcm/*".

 

Also, there's no reason to blur out your mod name. If anything, it makes it look like you're infringing copyrights (Jigglypuff -> Pokémon?).

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

Posted (edited)

Thanks lars, I'm developing a private mod and wasn't sure if the person i made it for wanted his name in there :) I'll test out your suggestion. also here is the crash report: 

The game crashed whilst initializing game
Error: java.lang.NullPointerException: Initializing game

 

Edit I still hear no sounds and the mod still doesn't appear here is my new directory and sounds.json

eclipse - MDKExample_src_main_resources_assets_zillexcm_sounds.json - Eclipse 12_10_2017 12_51_41 PM.png

eclipse - MDKExample_src_main_resources_assets_zillexcm_sounds.json - Eclipse 12_10_2017 12_52_13 PM.png

Edited by Zillex_
Posted
  On 12/10/2017 at 5:54 PM, Zillex_ said:

here is the crash report: 

The game crashed whilst initializing game
Error: java.lang.NullPointerException: Initializing game

Expand  

This is only a (small) part of the crash report, as it only says what went wrong, not where. Please post the full report (in a spoiler).
 

  On 12/10/2017 at 5:54 PM, Zillex_ said:

 

eclipse - MDKExample_src_main_resources_assets_zillexcm_sounds.json - Eclipse 12_10_2017 12_52_13 PM.png

Expand  

I haven't worked with sounds in a long time, but I think you only need to specify all the possible sounds (jigglypuff0, jigglypuff1 etc), and they need to be all lowercase, and IIRC the path is relative to "assets\*modid*\sounds\".

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

Posted (edited)

Here:

  Reveal hidden contents

 

Edited by Zillex_
Posted
  On 12/10/2017 at 7:24 PM, larsgerrits said:

This is only a (small) part of the crash report, as it only says what went wrong, not where. Please post the full report (in a spoiler).
 

I haven't worked with sounds in a long time, but I think you only need to specify all the possible sounds (jigglypuff0, jigglypuff1 etc), and they need to be all lowercase, and IIRC the path is relative to "assets\*modid*\sounds\".

Expand  

tag

Posted (edited)

Edit: I have everything working, now all i need to do is register more than one sound lol

 

Edit 2: I now have everything working properly, thanks guys :)

 

Edit 3: everything works, when i chat, but if the server says that i was killed it does nothing

Edited by Zillex_

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.