I am trying to add a custom sound to my mod. Each time I launch my mod Minecraft crashes (goes to a black screen for a second and then sends me back to Eclipse). Eclipse is not creating an error log when this happens so I can't see what the problem is. I have included my code below. Could someone take a look at my code and tell me what I am doing wrong?
1) I added this line of code to the perInit section of my Main:
Please don't PM me to ask for help or to join your mod development team. Asking your question in a public thread preserves it for people who are having the same problem in the future. I'm not interested in developing mods with people.
Your sound files probably should not have spaces in the file name, and should probably be lower case, e.g. 'star_wars_theme_song.ogg' would be a good filename.
Also, you need to include '.ogg' in the file name when adding the sound during SoundLoadEvent, and SoundLoadEvent should only be handled on the client - in other words, register the event handler in your ClientProxy, not in your Main mod class, otherwise you will crash the game on a server.