Jump to content

[1.7.2] No Sound / Assets Issues


Oli_Gophrenos

Recommended Posts

These instructions are for Windows 8.x. They should work with relevant modifications for other OSes, but I didn't test it, since I did not have this issue under Linux.

 

I'm going to try and put all of the "solutions" in one place, since it took me forever to track them down, and even then, they did not work for me. I had to step through the code in the debugger to determine that I needed to add /virtual/legacy to one of the proposed solutions:

I was able to get this working by adding

--assetsDir "C:/Users/Oli_Gophrenos/.gradle/caches/minecraft/assets/virtual/legacy"

to the Run -> Run Configurations ... -> Arguments [Tab] -> Program arguments [Text Field].

 

For me, this all blew up after trying to move my project in Eclipse (Right-click project -> refactor -> move), eclipse crashed leaving a mess. I decided to just pick the files from the two locations and start over. Staring over resulted in no sounds and no application icon. Everything else seemed to work just fine.

 

The salient errors in the Eclipse console are:

[23:42:21] [Client thread/ERROR]: Couldn't set icon

javax.imageio.IIOException: Can't read input file!

at javax.imageio.ImageIO.read(Unknown Source) ~[?:1.8.0_05]

at net.minecraft.client.Minecraft.readImage(Minecraft.java:641) ~[Minecraft.class:?]

at net.minecraft.client.Minecraft.startGame(Minecraft.java:470) [Minecraft.class:?]

at net.minecraft.client.Minecraft.run(Minecraft.java:892) [Minecraft.class:?]

at net.minecraft.client.main.Main.main(Main.java:112) [Main.class:?]

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_05]

at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_05]

at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.8.0_05]

at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.8.0_05]

at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?]

at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?]

And things like:

[23:42:25] [Client thread/WARN]: Unable to play unknown soundEvent: minecraft:gui.button.press

 

I generally believe that whenever possible, use what you're "supposed" to use, and don't make edits. So my recommendation is that if re-running gradlew works for you, you might want to do it. BEFORE you do, back up your files.

 

http://www.minecraftforge.net/forum/index.php/topic,12392.0.html suggested

go ingame and Press F3+S this will reload every Sounds
. You can give it a try, but don't hold your breath.

 

As suggested by http://www.minecraftforge.net/forum/index.php/topic,15189.msg77124.html#msg77124 try running each of these in turn in the directory where you extracted the forge source files:

gradlew.bat setupDecompWorkspace
gradlew.bat eclipse
gradlew.bat --refresh-dependencies eclipse

 

If that does not work (which it didn't for me) you can try cleaning first:

gradlew.bat clean
gradlew.bat cleanEclipse

and then running the stuff above again. If that does not work, you can try blowing-away and re-extracting forge-1.7.2-10.12.2.1121-src.

 

None of that worked for me.

 

Then there are https://github.com/MinecraftForge/ForgeGradle/issues/103 and http://www.minecraftforge.net/forum/index.php/topic,20798.msg105115.html#msg105115 :

--assetIndex 1.7.2 --assetsDir "C:\Users\Oli_Gophrenos\.gradle\caches\minecraft\assets"

OR

--assetsDir "C:/Users/Oli_Gophrenos/.gradle/caches/minecraft/assets/virtual/legacy"

Whichever works for you; just replace "Oli_Gophrenos" with your home folder name usually your windows username. Note that the quotes are optional if you don't have spaces in your path (e.g., your username is "Oli Gophrenos" in stead of "Oli_Gophrenos"). Also, the "--assetIndex 1.7.2" parameter seemed to change nothing for me.

 

You can also try changing the Run -> Run Configurations -> Arguments -> Working directory to

${workspace_loc:Minecraft/eclipse}

, but again, although it seemed to help some users, it did nothing for me.

 

You can try http://www.minecraftforge.net/forum/index.php/topic,14256.0.html if you are NOT using a current version of Forge. I think the suggestion is to copy the files in %appData%\Roaming\.minecraft\assets into your C:\Users\Oli_Gophrenos\.gradle\caches\minecraft directory.

 

That's all I remember/thought worth mentioning.

 

Cheers,

 

-Oli

Link to comment
Share on other sites

Hey Oli I'm having the exact same problem you are. I have only just started coding and don't understand how to perform all of your proposed solutions.

 

specifically:

Then there are https://github.com/MinecraftForge/ForgeGradle/issues/103 and http://www.minecraftforge.net/forum/index.php/topic,20798.msg105115.html#msg105115 :

--assetIndex 1.7.2 --assetsDir "C:\Users\Oli_Gophrenos\.gradle\caches\minecraft\assets"

OR

--assetsDir "C:/Users/Oli_Gophrenos/.gradle/caches/minecraft/assets/virtual/legacy"

Whichever works for you; just replace "Oli_Gophrenos" with your home folder name usually your windows username. Note that the quotes are optional if you don't have spaces in your path (e.g., your username is "Oli Gophrenos" in stead of "Oli_Gophrenos"). Also, the "--assetIndex 1.7.2" parameter seemed to change nothing for me.

 

Do I re-run the command "gradlew setupDecompWorkspace" with an extension:

gradlew setupDecompWorkspace --assetIndex 1.7.2 --assetsDir "C:\Users\Oli_Gophrenos\.gradle\caches\minecraft\assets"

 

I'm sorry for asking you such a stupid question haha

Link to comment
Share on other sites

  • 2 weeks later...

I had to make an account just to say MAJOR thanks Oli! Like you said, I tried EVERYTHING listed by others on countless forums and your solution was the only one that actually worked. THANK YOU!!!!!!!!!

 

-Vaderico:

 

In Eclipse, you want to go to "Run", select "Run Configurations", select the tab "Arguments" (second tab in the middle), And copy/paste the below string into the "program arguments" box (keep what's there, just add a new line):

 

--assetsDir "C:/Users/XXXXX/.gradle/caches/minecraft/assets/virtual/legacy"

 

Substitue "XXXXX" for your username on the computer.

 

Link to comment
Share on other sites

In Eclipse, you want to go to "Run", select "Run Configurations", select the tab "Arguments" (second tab in the middle), And copy/paste the below string into the "program arguments" box (keep what's there, just add a new line):

 

--assetsDir "C:/Users/XXXXX/.gradle/caches/minecraft/assets/virtual/legacy"

 

Substitue "XXXXX" for your username on the computer.

You may need to refine the argument further. On my ancient WinXP machine, "\users\" is "\Documents and Settings\". I also found that my .gradle folder tree was empty below "legacy", so I hunted down my primary .minecraft installation and pointed to its assets instead:

 

 --assetsDir "C:\Documents and Settings\Jeff Fisher\Application Data\.minecraft\assets"

 

In my case, pointing to assets (not \virtual or \legacy) did the trick. I didn't trust my fat fingers to type it all, so I selected the folder in windoze explorer and copy-pasted from its address box. If you do a search for Minecraft's assets on your computer, then you can avoid system idiosyncrasies by copy-pasting from your own explorer (does Win8 still allow you to use it?) rather than anything posted in this thread.

 

And don't forget to put double-quotes around the string if there's even a chance of a delimiter (such as a space) appearing anywhere in it.

The debugger is a powerful and necessary tool in any IDE, so learn how to use it. You'll be able to tell us more and get better help here if you investigate your runtime problems in the debugger before posting.

Link to comment
Share on other sites

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.



×
×
  • Create New...

Important Information

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