Jump to content

[SOLVED] Custom Music in Custom Dimension WONT WORK !!!


Recommended Posts

Posted

Guys , i have tried several weeks if my custom music will work on my dimension but with no luck =(

 

please help me im trying to figure this out

 

 

public class MHFSoundEvents 

{
 private final ArrayList<Object> music = Lists.newArrayList();  

@ForgeSubscribe
public void onSound(SoundLoadEvent event) {
// You add them the same way as you add blocks.
event.manager.addSound("monsterhunter:kirin/say1.ogg");
event.manager.addSound("monsterhunter:kirin/say2.ogg");
event.manager.addSound("monsterhunter:kirin/hurt1.ogg");


// Music Theme

}
public void onSoundLoadEvent(SoundLoadEvent event, URL URL) {
        music.add(new SoundPoolEntry("monsterhunter:MHFMainTheme1.ogg", URL)); // URL can be anything: point to a file, point to something in your classpath, etc.
        music.add(new SoundPoolEntry("monsterhunter:MHFMainTheme2.ogg", URL)); // URL can be anything: point to a file, point to something in your classpath, etc.
        music.add(new SoundPoolEntry("monsterhunter:MHFMainTheme3.ogg", URL)); // URL can be anything: point to a file, point to something in your classpath, etc.
    }

public void onBackgroundMusic(PlayBackgroundMusicEvent event, Random rand)
{
	Minecraft mc = Minecraft.getMinecraft();
        if (mc.thePlayer.dimension == 3) {
            event.result = (SoundPoolEntry) music.get(rand.nextInt(music.size()));
        }
    }
    



}




Posted

For my understanding . These voids load the music as a background one . and i set the dim id to 3 because thats my dimension ID . But bad luck wont work . dont know by the way thats a method on older minecraft version and im using on 1.6.2

Posted

Well i tried to register the event in my client proxy file bro .

 

@ForgeSubscribe
public void registerSounds()
{
	MinecraftForge.EVENT_BUS.register(new MHFSoundEvents());
}



Posted

So that means it should be like this

 

 

@ForgeSubscribe
public void onBackgroundMusic(PlayBackgroundMusicEvent event, Random rand)
{
	Minecraft mc = Minecraft.getMinecraft();
        if (mc.thePlayer.dimension == 3) {
            event.result = (SoundPoolEntry) music.get(rand.nextInt(music.size()));
        }
    


Posted

Let's take examples, shall we ?

This is not good:

public void onSoundLoadEvent(SoundLoadEvent event, URL URL) {

This is not good either:

@ForgeSubscribe
public void onBackgroundMusic(PlayBackgroundMusicEvent event, Random rand)

This is good:

@ForgeSubscribe
public void onSound(SoundLoadEvent event)

Posted
  On 9/17/2013 at 9:25 PM, GotoLink said:

Let's take examples, shall we ?

This is not good:

public void onSoundLoadEvent(SoundLoadEvent event, URL URL) {

This is not good either:

@ForgeSubscribe
public void onBackgroundMusic(PlayBackgroundMusicEvent event, Random rand)

This is good:

@ForgeSubscribe
public void onSound(SoundLoadEvent event)

 

Uhm i really cant understand . Code you explain further please .

Posted

Omg . im sorry if i cant understand a bit ok . Please dont be mad =/ . im doing my best here to understand since im not good at event stuffs and im having a hard time to understand what your saying

Posted

Some how i understand now a little but i got crash

 

A detailed walkthrough of the error, its code path and all known details is as follows:
2013-09-18 20:12:02 [iNFO] [sTDOUT] ---------------------------------------------------------------------------------------
2013-09-18 20:12:02 [iNFO] [sTDOUT] 
2013-09-18 20:12:02 [iNFO] [sTDOUT] -- Head --
2013-09-18 20:12:02 [iNFO] [sTDOUT] Stacktrace:
2013-09-18 20:12:02 [iNFO] [sTDOUT] 	at java.util.Random.nextInt(Unknown Source)
2013-09-18 20:12:02 [iNFO] [sTDOUT] 	at MHF.MHFSoundEvents.onBackgroundMusic(MHFSoundEvents.java:46)
2013-09-18 20:12:02 [iNFO] [sTDOUT] 	at net.minecraftforge.event.ASMEventHandler_4_MHFSoundEvents_onBackgroundMusic_PlayBackgroundMusicEvent.invoke(.dynamic)
2013-09-18 20:12:02 [iNFO] [sTDOUT] 	at net.minecraftforge.event.ASMEventHandler.invoke(ASMEventHandler.java:39)
2013-09-18 20:12:02 [iNFO] [sTDOUT] 	at net.minecraftforge.event.EventBus.post(EventBus.java:108)
2013-09-18 20:12:02 [iNFO] [sTDOUT] 	at net.minecraftforge.client.event.sound.SoundEvent.getResult(SoundEvent.java:16)
2013-09-18 20:12:02 [iNFO] [sTDOUT] 	at net.minecraft.client.audio.SoundManager.playRandomMusicIfReady(SoundManager.java:247)
2013-09-18 20:12:02 [iNFO] [sTDOUT] 	at net.minecraft.client.multiplayer.PlayerControllerMP.updateController(PlayerControllerMP.java:319)
2013-09-18 20:12:02 [iNFO] [sTDOUT] 
2013-09-18 20:12:02 [iNFO] [sTDOUT] -- Affected level --
2013-09-18 20:12:02 [iNFO] [sTDOUT] Details:
2013-09-18 20:12:02 [iNFO] [sTDOUT] 	Level name: MpServer
2013-09-18 20:12:02 [iNFO] [sTDOUT] 	All players: 1 total; [EntityClientPlayerMP['Player466'/408, l='MpServer', x=-46.66, y=92.62, z=-17.70]]
2013-09-18 20:12:02 [iNFO] [sTDOUT] 	Chunk stats: MultiplayerChunkCache: 441
2013-09-18 20:12:02 [iNFO] [sTDOUT] 	Level seed: 0
2013-09-18 20:12:02 [iNFO] [sTDOUT] 	Level generator: ID 00 - default, ver 1. Features enabled: false
2013-09-18 20:12:02 [iNFO] [sTDOUT] 	Level generator options: 
2013-09-18 20:12:02 [iNFO] [sTDOUT] 	Level spawn location: World: (8,64,, Chunk: (at 8,4,8 in 0,0; contains blocks 0,0,0 to 15,255,15), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
2013-09-18 20:12:02 [iNFO] [sTDOUT] 	Level time: 2270 game time, 2270 day time
2013-09-18 20:12:02 [iNFO] [sTDOUT] 	Level dimension: 0
2013-09-18 20:12:02 [iNFO] [sTDOUT] 	Level storage version: 0x00000 - Unknown?
2013-09-18 20:12:02 [iNFO] [sTDOUT] 	Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)
2013-09-18 20:12:02 [iNFO] [sTDOUT] 	Level game mode: Game mode: survival (ID 0). Hardcore: false. Cheats: false
2013-09-18 20:12:02 [iNFO] [sTDOUT] 	Forced entities: 16 total; [EntityWarriorFinale['Enforcer'/10735, l='MpServer', x=-80.50, y=97.00, z=-34.50], EntityWarriorFinale['Enforcer'/10734, l='MpServer', x=-79.50, y=99.00, z=-67.50], EntityWarriorFinale['Enforcer'/10733, l='MpServer', x=-78.50, y=99.00, z=-68.50], EntityWarriorFinale['Enforcer'/10730, l='MpServer', x=-89.66, y=88.00, z=-95.00], EntityClientPlayerMP['Player466'/408, l='MpServer', x=-46.66, y=92.62, z=-17.70], EntityWarriorFinale['Enforcer'/10782, l='MpServer', x=-124.50, y=96.00, z=-52.50], EntityWarriorFinale['Enforcer'/10744, l='MpServer', x=-9.09, y=89.00, z=36.91], EntityWarriorFinale['Enforcer'/10745, l='MpServer', x=-12.50, y=90.00, z=38.50], EntityWarriorFinale['Enforcer'/10742, l='MpServer', x=-45.81, y=97.00, z=-40.34], EntityWarriorFinale['Enforcer'/10743, l='MpServer', x=-9.13, y=90.00, z=39.66], EntityWarriorFinale['Enforcer'/10740, l='MpServer', x=-56.50, y=86.00, z=31.50], EntityWarriorFinale['Enforcer'/10741, l='MpServer', x=-56.50, y=86.00, z=31.50], EntityWarriorFinale['Enforcer'/10738, l='MpServer', x=-69.50, y=97.00, z=-70.50], EntityWarriorFinale['Enforcer'/10739, l='MpServer', x=-71.50, y=97.00, z=-69.50], EntityWarriorFinale['Enforcer'/10736, l='MpServer', x=-80.50, y=97.00, z=-33.50], EntityVillageDefender['Village Defender'/10737, l='MpServer', x=-80.50, y=97.00, z=-32.50]]
2013-09-18 20:12:02 [iNFO] [sTDOUT] 	Retry entities: 0 total; []
2013-09-18 20:12:02 [iNFO] [sTDOUT] 	Server brand: fml,forge
2013-09-18 20:12:02 [iNFO] [sTDOUT] 	Server type: Integrated singleplayer server
2013-09-18 20:12:02 [iNFO] [sTDOUT] Stacktrace:
2013-09-18 20:12:02 [iNFO] [sTDOUT] 	at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:440)
2013-09-18 20:12:02 [iNFO] [sTDOUT] 	at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2298)
2013-09-18 20:12:02 [iNFO] [sTDOUT] 	at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:851)
2013-09-18 20:12:02 [iNFO] [sTDOUT] 	at net.minecraft.client.main.Main.main(Main.java:93)
2013-09-18 20:12:02 [iNFO] [sTDOUT] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2013-09-18 20:12:02 [iNFO] [sTDOUT] 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2013-09-18 20:12:02 [iNFO] [sTDOUT] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2013-09-18 20:12:02 [iNFO] [sTDOUT] 	at java.lang.reflect.Method.invoke(Unknown Source)
2013-09-18 20:12:02 [iNFO] [sTDOUT] 	at net.minecraft.launchwrapper.Launch.launch(Launch.java:57)
2013-09-18 20:12:02 [iNFO] [sTDOUT] 	at net.minecraft.launchwrapper.Launch.main(Launch.java:18)
2013-09-18 20:12:02 [iNFO] [sTDOUT] 
2013-09-18 20:12:02 [iNFO] [sTDOUT] -- System Details --
2013-09-18 20:12:02 [iNFO] [sTDOUT] Details:
2013-09-18 20:12:02 [iNFO] [sTDOUT] 	Minecraft Version: 1.6.2
2013-09-18 20:12:02 [iNFO] [sTDOUT] 	Operating System: Windows 7 (x86) version 6.1
2013-09-18 20:12:02 [iNFO] [sTDOUT] 	Java Version: 1.7.0_21, Oracle Corporation
2013-09-18 20:12:02 [iNFO] [sTDOUT] 	Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
2013-09-18 20:12:02 [iNFO] [sTDOUT] 	Memory: 813149848 bytes (775 MB) / 1060372480 bytes (1011 MB) up to 1060372480 bytes (1011 MB)
2013-09-18 20:12:02 [iNFO] [sTDOUT] 	JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
2013-09-18 20:12:02 [iNFO] [sTDOUT] 	AABB Pool Size: 1595 (89320 bytes; 0 MB) allocated, 2 (112 bytes; 0 MB) used
2013-09-18 20:12:02 [iNFO] [sTDOUT] 	Suspicious classes: FML and Forge are installed
2013-09-18 20:12:02 [iNFO] [sTDOUT] 	IntCache: cache: 0, tcache: 0, allocated: 1, tallocated: 14
2013-09-18 20:12:02 [iNFO] [sTDOUT] 	FML: MCP v8.04 FML v6.2.19.789 Minecraft Forge 9.10.0.789 4 mods loaded, 4 mods active
2013-09-18 20:12:02 [iNFO] [sTDOUT] 	mcp{8.04} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
2013-09-18 20:12:02 [iNFO] [sTDOUT] 	FML{6.2.19.789} [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
2013-09-18 20:12:02 [iNFO] [sTDOUT] 	Forge{9.10.0.789} [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
2013-09-18 20:12:02 [iNFO] [sTDOUT] 	monsterhunter{Alpha Development 0.2 } [MonsterHunterFrontier] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
2013-09-18 20:12:02 [iNFO] [sTDOUT] 	Launched Version: 1.6
2013-09-18 20:12:02 [iNFO] [sTDOUT] 	LWJGL: 2.9.0
2013-09-18 20:12:02 [iNFO] [sTDOUT] 	OpenGL: Intel 965/963 Graphics Media Accelerator GL version 2.0.0 - Build 8.14.10.1930, Intel
2013-09-18 20:12:02 [iNFO] [sTDOUT] 	Is Modded: Definitely; Client brand changed to 'fml,forge'
2013-09-18 20:12:02 [iNFO] [sTDOUT] 	Type: Client (map_client.txt)
2013-09-18 20:12:02 [iNFO] [sTDOUT] 	Resource Pack: Default
2013-09-18 20:12:02 [iNFO] [sTDOUT] 	Current Language: English (UK)
2013-09-18 20:12:02 [iNFO] [sTDOUT] 	Profiler Position: N/A (disabled)
2013-09-18 20:12:02 [iNFO] [sTDOUT] 	Vec3 Pool Size: 279 (15624 bytes; 0 MB) allocated, 14 (784 bytes; 0 MB) used
2013-09-18 20:12:02 [iNFO] [sTDOUT] #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\TOSHIBA\Desktop\1.6MHF\forge\mcp\jars\.\crash-reports\crash-2013-09-18_20.12.02-client.txt
AL lib: (EE) alc_cleanup: 1 device not closed


Posted

Heres the crash file so far

---- Minecraft Crash Report ----
// This doesn't make any sense!

Time: 9/19/13 5:26 PM
Description: Unexpected error

java.lang.NullPointerException
at MHF.MHFSoundEvents.onBackgroundMusic(MHFSoundEvents.java:52)
at net.minecraftforge.event.ASMEventHandler_4_MHFSoundEvents_onBackgroundMusic_PlayBackgroundMusicEvent.invoke(.dynamic)
at net.minecraftforge.event.ASMEventHandler.invoke(ASMEventHandler.java:39)
at net.minecraftforge.event.EventBus.post(EventBus.java:108)
at net.minecraftforge.client.event.sound.SoundEvent.getResult(SoundEvent.java:16)
at net.minecraft.client.audio.SoundManager.playRandomMusicIfReady(SoundManager.java:247)
at net.minecraft.client.multiplayer.PlayerControllerMP.updateController(PlayerControllerMP.java:319)
at net.minecraft.client.Minecraft.runTick(Minecraft.java:1516)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:898)
at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:826)
at net.minecraft.client.main.Main.main(Main.java:93)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:57)
at net.minecraft.launchwrapper.Launch.main(Launch.java:18)


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Stacktrace:
at MHF.MHFSoundEvents.onBackgroundMusic(MHFSoundEvents.java:52)
at net.minecraftforge.event.ASMEventHandler_4_MHFSoundEvents_onBackgroundMusic_PlayBackgroundMusicEvent.invoke(.dynamic)
at net.minecraftforge.event.ASMEventHandler.invoke(ASMEventHandler.java:39)
at net.minecraftforge.event.EventBus.post(EventBus.java:108)
at net.minecraftforge.client.event.sound.SoundEvent.getResult(SoundEvent.java:16)
at net.minecraft.client.audio.SoundManager.playRandomMusicIfReady(SoundManager.java:247)
at net.minecraft.client.multiplayer.PlayerControllerMP.updateController(PlayerControllerMP.java:319)

-- Affected level --
Details:
Level name: MpServer
All players: 1 total; [EntityClientPlayerMP['Player522'/29296, l='MpServer', x=260.08, y=70.62, z=183.32]]
Chunk stats: MultiplayerChunkCache: 370
Level seed: 0
Level generator: ID 00 - default, ver 1. Features enabled: false
Level generator options: 
Level spawn location: World: (256,64,180), Chunk: (at 0,4,4 in 16,11; contains blocks 256,0,176 to 271,255,191), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
Level time: 3512 game time, 3512 day time
Level dimension: 0
Level storage version: 0x00000 - Unknown?
Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)
Level game mode: Game mode: survival (ID 0). Hardcore: false. Cheats: false
Forced entities: 56 total; [EntitySquid['Squid'/29386, l='MpServer', x=289.31, y=57.09, z=128.88], EntityZombie['Zombie'/29756, l='MpServer', x=195.50, y=32.00, z=117.50], EntityZombie['Zombie'/30235, l='MpServer', x=202.50, y=41.00, z=104.50], EntityBat['Bat'/29641, l='MpServer', x=195.53, y=26.62, z=235.75], EntitySkeleton['Skeleton'/29754, l='MpServer', x=203.22, y=29.00, z=124.25], EntityZombie['Zombie'/29755, l='MpServer', x=210.31, y=18.00, z=108.63], EntityZombie['Zombie'/29991, l='MpServer', x=256.50, y=32.00, z=109.50], EntityCreeper['Creeper'/38611, l='MpServer', x=308.50, y=17.00, z=188.50], EntitySkeleton['Skeleton'/31727, l='MpServer', x=202.50, y=26.00, z=231.50], EntitySkeleton['Skeleton'/31724, l='MpServer', x=201.50, y=26.00, z=231.50], EntityZombie['Zombie'/29826, l='MpServer', x=247.50, y=39.00, z=130.50], EntityZombie['Zombie'/29408, l='MpServer', x=185.78, y=27.00, z=147.50], EntitySpider['Spider'/84151, l='MpServer', x=258.50, y=30.00, z=107.50], EntityZombie['Zombie'/30092, l='MpServer', x=186.34, y=13.00, z=190.84], EntityCreeper['Creeper'/31734, l='MpServer', x=243.56, y=38.00, z=123.97], EntityEnderman['Enderman'/31733, l='MpServer', x=246.50, y=37.00, z=122.50], EntityEnderman['Enderman'/31732, l='MpServer', x=245.69, y=37.00, z=125.50], EntityCreeper['Creeper'/38204, l='MpServer', x=182.50, y=34.00, z=222.50], EntitySquid['Squid'/29340, l='MpServer', x=323.59, y=58.38, z=131.34], EntityZombie['Zombie'/38419, l='MpServer', x=194.50, y=15.00, z=206.50], EntityChicken['Chicken'/29210, l='MpServer', x=205.56, y=65.00, z=152.47], EntityChicken['Chicken'/29211, l='MpServer', x=211.69, y=65.00, z=150.22], EntityChicken['Chicken'/29208, l='MpServer', x=212.50, y=65.00, z=151.50], EntityChicken['Chicken'/29209, l='MpServer', x=211.50, y=65.00, z=149.50], EntityChicken['Chicken'/29214, l='MpServer', x=246.78, y=71.00, z=154.84], EntityChicken['Chicken'/29215, l='MpServer', x=247.41, y=72.00, z=156.56], EntityChicken['Chicken'/29212, l='MpServer', x=251.44, y=70.00, z=142.59], EntityChicken['Chicken'/29213, l='MpServer', x=246.50, y=71.00, z=152.50], EntityCreeper['Creeper'/38711, l='MpServer', x=210.50, y=24.00, z=114.50], EntitySquid['Squid'/29355, l='MpServer', x=307.72, y=54.81, z=123.81], EntityCreeper['Creeper'/30165, l='MpServer', x=258.78, y=29.00, z=104.09], EntityChicken['Chicken'/29221, l='MpServer', x=264.75, y=70.00, z=255.91], EntitySquid['Squid'/29356, l='MpServer', x=308.31, y=55.91, z=129.56], EntityChicken['Chicken'/29220, l='MpServer', x=258.63, y=69.00, z=253.59], EntitySquid['Squid'/29357, l='MpServer', x=306.16, y=53.28, z=124.63], EntityChicken['Chicken'/29223, l='MpServer', x=268.41, y=73.00, z=257.53], EntityChicken['Chicken'/29222, l='MpServer', x=264.41, y=70.00, z=256.44], EntityPig['Pig'/29225, l='MpServer', x=265.41, y=71.00, z=255.97], EntityCreeper['Creeper'/29762, l='MpServer', x=209.50, y=37.00, z=243.50], EntityPig['Pig'/29224, l='MpServer', x=266.53, y=71.00, z=256.53], EntityBat['Bat'/84346, l='MpServer', x=199.75, y=27.09, z=146.63], EntityPig['Pig'/29227, l='MpServer', x=273.22, y=73.00, z=249.13], EntityPig['Pig'/29226, l='MpServer', x=264.53, y=70.00, z=254.19], EntityChicken['Chicken'/29229, l='MpServer', x=281.50, y=75.00, z=253.50], EntityCreeper['Creeper'/30036, l='MpServer', x=225.50, y=19.00, z=225.50], EntityChicken['Chicken'/29228, l='MpServer', x=282.50, y=75.00, z=255.50], EntityChicken['Chicken'/29231, l='MpServer', x=282.50, y=75.00, z=258.50], EntityZombie['Zombie'/38715, l='MpServer', x=197.50, y=31.00, z=105.50], EntityChicken['Chicken'/29230, l='MpServer', x=280.50, y=75.00, z=258.50], EntityZombie['Zombie'/29620, l='MpServer', x=184.50, y=34.00, z=220.50], EntityChicken['Chicken'/29238, l='MpServer', x=322.56, y=73.00, z=235.50], EntityChicken['Chicken'/29239, l='MpServer', x=323.16, y=73.00, z=235.50], EntityChicken['Chicken'/29240, l='MpServer', x=320.53, y=74.00, z=231.56], EntityChicken['Chicken'/29241, l='MpServer', x=322.50, y=72.00, z=240.50], EntityZombie['Zombie'/32220, l='MpServer', x=208.50, y=54.00, z=128.50], EntityClientPlayerMP['Player522'/29296, l='MpServer', x=260.08, y=70.62, z=183.32]]
Retry entities: 0 total; []
Server brand: fml,forge
Server type: Integrated singleplayer server
Stacktrace:
at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:440)
at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2298)
at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:851)
at net.minecraft.client.main.Main.main(Main.java:93)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:57)
at net.minecraft.launchwrapper.Launch.main(Launch.java:18)

-- System Details --
Details:
Minecraft Version: 1.6.2
Operating System: Windows 7 (x86) version 6.1
Java Version: 1.7.0_21, Oracle Corporation
Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
Memory: 836774616 bytes (798 MB) / 1060372480 bytes (1011 MB) up to 1060372480 bytes (1011 MB)
JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
AABB Pool Size: 28780 (1611680 bytes; 1 MB) allocated, 2 (112 bytes; 0 MB) used
Suspicious classes: FML and Forge are installed
IntCache: cache: 0, tcache: 18, allocated: 1, tallocated: 63
FML: MCP v8.04 FML v6.2.19.789 Minecraft Forge 9.10.0.789 4 mods loaded, 4 mods active
mcp{8.04} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available->Available->Available->Available->Available
FML{6.2.19.789} [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available->Available->Available->Available->Available
Forge{9.10.0.789} [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available->Available->Available->Available->Available
monsterhunter{Alpha Development 0.2 } [MonsterHunterFrontier] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available->Available->Available->Available->Available->Available
Launched Version: 1.6
LWJGL: 2.9.0
OpenGL: Intel 965/963 Graphics Media Accelerator GL version 2.0.0 - Build 8.14.10.1930, Intel
Is Modded: Definitely; Client brand changed to 'fml,forge'
Type: Client (map_client.txt)
Resource Pack: Default
Current Language: English (UK)
Profiler Position: N/A (disabled)
Vec3 Pool Size: 3962 (221872 bytes; 0 MB) allocated, 14 (784 bytes; 0 MB) used

 

Heres my new PLAYBACKGROUNDMUSIC EVENT CODE

 

@ForgeSubscribe
public void onBackgroundMusic(PlayBackgroundMusicEvent event)
{
	SoundPoolEntry soundpoolentry = this.soundPoolMusic.getRandomSound();
	Minecraft mc = Minecraft.getMinecraft();
        if (mc.thePlayer.dimension == MonsterHunterFrontier.DimID) {
        	this.mc.sndManager.sndSystem.play("monsterhunter:MHFMainTheme1.ogg");
        }
    }

Posted

About the mc.thePlayer i dont know how will i fix this so it will not be null

 

and about mc thats what i added first

 

private Minecraft mc = Minecraft.getMinecraft();

Posted

This is the line 52

SoundPoolEntry soundpoolentry = this.soundPoolMusic.getRandomSound();

 

Im trying to find a code that states whenever Entity enters a dimension but damn no luck cant :(

Posted

no dont mind that soundpool just remove it

 

heres now the actual code

 

oh by the way how can i put that IPlayerTracker kinda confuses me again

@ForgeSubscribe
public void onBackgroundMusic(PlayBackgroundMusicEvent event)
{


	Minecraft mc = Minecraft.getMinecraft();
        if (mc.thePlayer.dimension == MonsterHunterFrontier.DimID) {
        	this.mc.sndManager.sndSystem.play("monsterhunter:MHFMainTheme1.ogg");
        }
    }}







Posted

i dont get this code

 

mc.thePlayer != null

 

well sound wont work and it wont connect to the dimension :/. Any help i just only need the code that tells whenever a Player is in my custom Dimension

Posted

Urgghhh . While Progressing im still crashing at the Dimension. Like im in a dimension and walkking for several minutes just to find out the sounds then it will CRash

 

Please someone could help me to fix this T_T

 

Heres the last code i'd tried

@ForgeSubscribe
public void onBackgroundMusic(PlayBackgroundMusicEvent event)
{
	int mg = MonsterHunterFrontier.DimID;
	EntityPlayerMP player = EntityPlayer;
	Minecraft mc = Minecraft.getMinecraft();
        if (EntityPlayer.dimension == MonsterHunterFrontier.DimID) {
        	this.mc.sndManager.sndSystem.play("monsterhunter:MHFMainTheme1.ogg");
        }
    }}

 

CRASH REPORT

 

---- Minecraft Crash Report ----
2013-09-20 21:17:32 [iNFO] [sTDOUT] // Quite honestly, I wouldn't worry myself about that.
2013-09-20 21:17:32 [iNFO] [sTDOUT] 
2013-09-20 21:17:32 [iNFO] [sTDOUT] Time: 9/20/13 9:17 PM
2013-09-20 21:17:32 [iNFO] [sTDOUT] Description: Unexpected error
2013-09-20 21:17:32 [iNFO] [sTDOUT] 
2013-09-20 21:17:32 [iNFO] [sTDOUT] java.lang.NullPointerException
2013-09-20 21:17:32 [iNFO] [sTDOUT] 	at MHF.MHFSoundEvents.onBackgroundMusic(MHFSoundEvents.java:63)
2013-09-20 21:17:32 [iNFO] [sTDOUT] 	at net.minecraftforge.event.ASMEventHandler_4_MHFSoundEvents_onBackgroundMusic_PlayBackgroundMusicEvent.invoke(.dynamic)
2013-09-20 21:17:32 [iNFO] [sTDOUT] 	at net.minecraftforge.event.ASMEventHandler.invoke(ASMEventHandler.java:39)
2013-09-20 21:17:32 [iNFO] [sTDOUT] 	at net.minecraftforge.event.EventBus.post(EventBus.java:108)
2013-09-20 21:17:32 [iNFO] [sTDOUT] 	at net.minecraftforge.client.event.sound.SoundEvent.getResult(SoundEvent.java:16)
2013-09-20 21:17:32 [iNFO] [sTDOUT] 	at net.minecraft.client.audio.SoundManager.playRandomMusicIfReady(SoundManager.java:247)
2013-09-20 21:17:32 [iNFO] [sTDOUT] 	at net.minecraft.client.multiplayer.PlayerControllerMP.updateController(PlayerControllerMP.java:319)
2013-09-20 21:17:32 [iNFO] [sTDOUT] 	at net.minecraft.client.Minecraft.runTick(Minecraft.java:1516)
2013-09-20 21:17:32 [iNFO] [sTDOUT] 	at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:898)
2013-09-20 21:17:32 [iNFO] [sTDOUT] 	at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:826)
2013-09-20 21:17:32 [iNFO] [sTDOUT] 	at net.minecraft.client.main.Main.main(Main.java:93)
2013-09-20 21:17:32 [iNFO] [sTDOUT] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2013-09-20 21:17:32 [iNFO] [sTDOUT] 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2013-09-20 21:17:32 [iNFO] [sTDOUT] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2013-09-20 21:17:32 [iNFO] [sTDOUT] 	at java.lang.reflect.Method.invoke(Unknown Source)
2013-09-20 21:17:32 [iNFO] [sTDOUT] 	at net.minecraft.launchwrapper.Launch.launch(Launch.java:57)
2013-09-20 21:17:32 [iNFO] [sTDOUT] 	at net.minecraft.launchwrapper.Launch.main(Launch.java:18)
2013-09-20 21:17:32 [iNFO] [sTDOUT] 
2013-09-20 21:17:32 [iNFO] [sTDOUT] 
2013-09-20 21:17:32 [iNFO] [sTDOUT] A detailed walkthrough of the error, its code path and all known details is as follows:
2013-09-20 21:17:32 [iNFO] [sTDOUT] ---------------------------------------------------------------------------------------
2013-09-20 21:17:32 [iNFO] [sTDOUT] 
2013-09-20 21:17:32 [iNFO] [sTDOUT] -- Head --
2013-09-20 21:17:32 [iNFO] [sTDOUT] Stacktrace:
2013-09-20 21:17:32 [iNFO] [sTDOUT] 	at MHF.MHFSoundEvents.onBackgroundMusic(MHFSoundEvents.java:63)
2013-09-20 21:17:32 [iNFO] [sTDOUT] 	at net.minecraftforge.event.ASMEventHandler_4_MHFSoundEvents_onBackgroundMusic_PlayBackgroundMusicEvent.invoke(.dynamic)
2013-09-20 21:17:32 [iNFO] [sTDOUT] 	at net.minecraftforge.event.ASMEventHandler.invoke(ASMEventHandler.java:39)
2013-09-20 21:17:32 [iNFO] [sTDOUT] 	at net.minecraftforge.event.EventBus.post(EventBus.java:108)
2013-09-20 21:17:32 [iNFO] [sTDOUT] 	at net.minecraftforge.client.event.sound.SoundEvent.getResult(SoundEvent.java:16)
2013-09-20 21:17:32 [iNFO] [sTDOUT] 	at net.minecraft.client.audio.SoundManager.playRandomMusicIfReady(SoundManager.java:247)
2013-09-20 21:17:32 [iNFO] [sTDOUT] 	at net.minecraft.client.multiplayer.PlayerControllerMP.updateController(PlayerControllerMP.java:319)
2013-09-20 21:17:32 [iNFO] [sTDOUT] 
2013-09-20 21:17:32 [iNFO] [sTDOUT] -- Affected level --
2013-09-20 21:17:32 [iNFO] [sTDOUT] Details:
2013-09-20 21:17:32 [iNFO] [sTDOUT] 	Level name: MpServer
2013-09-20 21:17:32 [iNFO] [sTDOUT] 	All players: 1 total; [EntityClientPlayerMP['Player92'/26, l='MpServer', x=16.85, y=145.87, z=-345.02]]
2013-09-20 21:17:32 [iNFO] [sTDOUT] 	Chunk stats: MultiplayerChunkCache: 441
2013-09-20 21:17:32 [iNFO] [sTDOUT] 	Level seed: 0
2013-09-20 21:17:32 [iNFO] [sTDOUT] 	Level generator: ID 01 - flat, ver 0. Features enabled: false
2013-09-20 21:17:32 [iNFO] [sTDOUT] 	Level generator options: 
2013-09-20 21:17:32 [iNFO] [sTDOUT] 	Level spawn location: World: (8,64,, Chunk: (at 8,4,8 in 0,0; contains blocks 0,0,0 to 15,255,15), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
2013-09-20 21:17:32 [iNFO] [sTDOUT] 	Level time: 8979 game time, 8979 day time
2013-09-20 21:17:32 [iNFO] [sTDOUT] 	Level dimension: 0
2013-09-20 21:17:32 [iNFO] [sTDOUT] 	Level storage version: 0x00000 - Unknown?
2013-09-20 21:17:32 [iNFO] [sTDOUT] 	Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)
2013-09-20 21:17:32 [iNFO] [sTDOUT] 	Level game mode: Game mode: survival (ID 0). Hardcore: false. Cheats: false
2013-09-20 21:17:32 [iNFO] [sTDOUT] 	Forced entities: 42 total; [EntityBat['Bat'/46523, l='MpServer', x=13.25, y=17.49, z=-361.25], EntityVillageDefender['Village Defender'/20095, l='MpServer', x=28.50, y=162.00, z=-317.50], EntityVillageDefender['Village Defender'/20094, l='MpServer', x=29.22, y=162.00, z=-323.03], EntityVillageDefender['Village Defender'/20093, l='MpServer', x=29.56, y=162.00, z=-318.47], EntityVillageDefender['Village Defender'/20092, l='MpServer', x=27.50, y=162.00, z=-320.50], EntityApceros['Apceros'/20085, l='MpServer', x=23.50, y=170.00, z=-313.50], EntityVillageDefender['Village Defender'/27904, l='MpServer', x=-42.50, y=104.00, z=-355.50], EntityApceros['Apceros'/20083, l='MpServer', x=13.03, y=176.00, z=-328.00], EntityApceros['Apceros'/27905, l='MpServer', x=-55.34, y=113.00, z=-322.38], EntityApceros['Apceros'/20082, l='MpServer', x=7.25, y=175.00, z=-323.31], EntityApceros['Apceros'/20080, l='MpServer', x=9.53, y=175.00, z=-322.91], EntityApceros['Apceros'/20078, l='MpServer', x=12.44, y=175.00, z=-325.56], EntityApceros['Apceros'/20079, l='MpServer', x=8.97, y=177.00, z=-325.56], EntityApceros['Apceros'/20076, l='MpServer', x=17.50, y=166.00, z=-322.50], EntityVillageDefender['Village Defender'/20074, l='MpServer', x=-0.09, y=115.00, z=-360.59], EntityApceros['Apceros'/20075, l='MpServer', x=17.50, y=164.00, z=-320.50], EntityBat['Bat'/45304, l='MpServer', x=3.75, y=18.10, z=-356.00], EntityClientPlayerMP['Player92'/26, l='MpServer', x=16.85, y=145.87, z=-345.02], EntityMinecartChest['entity.MinecartChest.name'/20172, l='MpServer', x=14.50, y=17.50, z=-379.50], EntityVillageDefender['Village Defender'/20169, l='MpServer', x=0.97, y=104.00, z=-376.50], EntityMinecartChest['entity.MinecartChest.name'/25253, l='MpServer', x=-5.50, y=17.50, z=-396.50], EntityVillageDefender['Village Defender'/25254, l='MpServer', x=-10.50, y=100.00, z=-390.50], EntityBat['Bat'/44369, l='MpServer', x=3.75, y=17.10, z=-354.88], EntityVillageDefender['Village Defender'/20112, l='MpServer', x=63.50, y=116.00, z=-326.00], EntityVillageDefender['Village Defender'/20113, l='MpServer', x=7.69, y=138.01, z=-342.50], EntityVillageDefender['Village Defender'/20114, l='MpServer', x=29.50, y=115.00, z=-395.38], EntityPopo['Popo'/20118, l='MpServer', x=42.31, y=118.00, z=-295.40], EntityBat['Bat'/45060, l='MpServer', x=5.25, y=16.89, z=-348.44], EntityVillageDefender['Village Defender'/27903, l='MpServer', x=-36.50, y=91.00, z=-384.50], EntityVillageDefender['Village Defender'/20097, l='MpServer', x=43.78, y=154.00, z=-350.50], EntityVillageDefender['Village Defender'/20099, l='MpServer', x=53.66, y=154.00, z=-351.00], EntityVillageDefender['Village Defender'/20098, l='MpServer', x=53.00, y=154.00, z=-353.78], EntityMinecartChest['entity.MinecartChest.name'/20101, l='MpServer', x=54.50, y=15.50, z=-332.50], EntityVillageDefender['Village Defender'/20100, l='MpServer', x=43.59, y=154.00, z=-355.69], EntityBat['Bat'/43922, l='MpServer', x=5.25, y=17.10, z=-347.13], EntityVillageDefender['Village Defender'/20103, l='MpServer', x=47.50, y=166.00, z=-324.50], EntityVillageDefender['Village Defender'/20105, l='MpServer', x=50.50, y=166.00, z=-324.50], EntityVillageDefender['Village Defender'/20104, l='MpServer', x=48.50, y=166.00, z=-324.50], EntityVillageDefender['Village Defender'/20106, l='MpServer', x=50.50, y=166.00, z=-323.50], EntityApceros['Apceros'/28023, l='MpServer', x=-48.63, y=113.00, z=-315.38], EntityVillageDefender['Village Defender'/28022, l='MpServer', x=-55.50, y=87.00, z=-400.50], EntityVillageDefender['Village Defender'/20111, l='MpServer', x=50.53, y=120.00, z=-319.97]]
2013-09-20 21:17:32 [iNFO] [sTDOUT] 	Retry entities: 0 total; []
2013-09-20 21:17:32 [iNFO] [sTDOUT] 	Server brand: fml,forge
2013-09-20 21:17:32 [iNFO] [sTDOUT] 	Server type: Integrated singleplayer server
2013-09-20 21:17:32 [iNFO] [sTDOUT] Stacktrace:
2013-09-20 21:17:32 [iNFO] [sTDOUT] 	at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:440)
2013-09-20 21:17:32 [iNFO] [sTDOUT] 	at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2298)
2013-09-20 21:17:32 [iNFO] [sTDOUT] 	at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:851)
2013-09-20 21:17:32 [iNFO] [sTDOUT] 	at net.minecraft.client.main.Main.main(Main.java:93)
2013-09-20 21:17:32 [iNFO] [sTDOUT] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2013-09-20 21:17:32 [iNFO] [sTDOUT] 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2013-09-20 21:17:32 [iNFO] [sTDOUT] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2013-09-20 21:17:32 [iNFO] [sTDOUT] 	at java.lang.reflect.Method.invoke(Unknown Source)
2013-09-20 21:17:32 [iNFO] [sTDOUT] 	at net.minecraft.launchwrapper.Launch.launch(Launch.java:57)
2013-09-20 21:17:32 [iNFO] [sTDOUT] 	at net.minecraft.launchwrapper.Launch.main(Launch.java:18)
2013-09-20 21:17:32 [iNFO] [sTDOUT] 
2013-09-20 21:17:32 [iNFO] [sTDOUT] -- System Details --
2013-09-20 21:17:32 [iNFO] [sTDOUT] Details:
2013-09-20 21:17:32 [iNFO] [sTDOUT] 	Minecraft Version: 1.6.2
2013-09-20 21:17:32 [iNFO] [sTDOUT] 	Operating System: Windows 7 (x86) version 6.1
2013-09-20 21:17:32 [iNFO] [sTDOUT] 	Java Version: 1.7.0_21, Oracle Corporation
2013-09-20 21:17:32 [iNFO] [sTDOUT] 	Java VM Version: Java HotSpot(TM) Client VM (mixed mode), Oracle Corporation
2013-09-20 21:17:32 [iNFO] [sTDOUT] 	Memory: 578367504 bytes (551 MB) / 1060372480 bytes (1011 MB) up to 1060372480 bytes (1011 MB)
2013-09-20 21:17:32 [iNFO] [sTDOUT] 	JVM Flags: 3 total; -Xincgc -Xmx1024M -Xms1024M
2013-09-20 21:17:32 [iNFO] [sTDOUT] 	AABB Pool Size: 4123 (230888 bytes; 0 MB) allocated, 2 (112 bytes; 0 MB) used
2013-09-20 21:17:32 [iNFO] [sTDOUT] 	Suspicious classes: FML and Forge are installed
2013-09-20 21:17:32 [iNFO] [sTDOUT] 	IntCache: cache: 0, tcache: 0, allocated: 1, tallocated: 14
2013-09-20 21:17:32 [iNFO] [sTDOUT] 	FML: MCP v8.04 FML v6.2.19.789 Minecraft Forge 9.10.0.789 4 mods loaded, 4 mods active
2013-09-20 21:17:32 [iNFO] [sTDOUT] 	mcp{8.04} [Minecraft Coder Pack] (minecraft.jar) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
2013-09-20 21:17:32 [iNFO] [sTDOUT] 	FML{6.2.19.789} [Forge Mod Loader] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
2013-09-20 21:17:32 [iNFO] [sTDOUT] 	Forge{9.10.0.789} [Minecraft Forge] (coremods) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
2013-09-20 21:17:32 [iNFO] [sTDOUT] 	monsterhunter{Alpha Development 0.2 } [MonsterHunterFrontier] (bin) Unloaded->Constructed->Pre-initialized->Initialized->Post-initialized->Available->Available->Available->Available
2013-09-20 21:17:32 [iNFO] [sTDOUT] 	Launched Version: 1.6
2013-09-20 21:17:32 [iNFO] [sTDOUT] 	LWJGL: 2.9.0
2013-09-20 21:17:32 [iNFO] [sTDOUT] 	OpenGL: Intel 965/963 Graphics Media Accelerator GL version 2.0.0 - Build 8.14.10.1930, Intel
2013-09-20 21:17:32 [iNFO] [sTDOUT] 	Is Modded: Definitely; Client brand changed to 'fml,forge'
2013-09-20 21:17:32 [iNFO] [sTDOUT] 	Type: Client (map_client.txt)
2013-09-20 21:17:32 [iNFO] [sTDOUT] 	Resource Pack: Default
2013-09-20 21:17:32 [iNFO] [sTDOUT] 	Current Language: English (UK)
2013-09-20 21:17:32 [iNFO] [sTDOUT] 	Profiler Position: N/A (disabled)
2013-09-20 21:17:32 [iNFO] [sTDOUT] 	Vec3 Pool Size: 469 (26264 bytes; 0 MB) allocated, 13 (728 bytes; 0 MB) used
2013-09-20 21:17:32 [iNFO] [sTDOUT] #@!@# Game crashed! Crash report saved to: #@!@# C:\Users\TOSHIBA\Desktop\1.6MHF\forge\mcp\jars\.\crash-reports\crash-2013-09-20_21.17.32-client.txt
AL lib: (EE) alc_cleanup: 1 device not closed


Posted

I feel ashame of myself :(.

 

Kinda fix the crash but the sound still wont load .

 

New Code

 

@ForgeSubscribe
public void onBackgroundMusic(PlayBackgroundMusicEvent event) {
   if (mc.thePlayer != null && mc.thePlayer.dimension == 4) {
       event.result = event.manager.soundPoolMusic.getRandomSoundFromSoundPool("monsterhunter:MHFMainTheme1.ogg");
       event.result = event.manager.soundPoolMusic.getRandomSoundFromSoundPool("monsterhunter:MHFMainTheme2.ogg");
       event.result = event.manager.soundPoolMusic.getRandomSoundFromSoundPool("monsterhunter:MHFMainTheme3.ogg");
   }
}

Posted

Yeah i got that wrong so idecided like this if it will work but still 5 trials no music happen :(

 

@ForgeSubscribe
public void onBackgroundMusic(PlayBackgroundMusicEvent event) {
   if (mc.thePlayer != null && mc.thePlayer.dimension == 4) {
       event.result = event.manager.soundPoolMusic.getRandomSoundFromSoundPool("monsterhunter:newsound/MHFMainTheme.ogg");
	   
   }
}


 

 

Or its just it wont play because my file location is wrong .

Posted

As ^^ Says as simpler way would be to use event.manager.addMusic("ac:Welcome To The Cold.wav"); in your soundevent class, it checks for the file in a 'music' folder in your assets

Guest
This topic is now closed to further replies.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • ---- Minecraft Crash Report ---- // Don't do that. Time: 2025-08-09 13:03:45 Description: Exception in server tick loop net.minecraftforge.fml.config.ConfigFileTypeHandler$ConfigLoadingException: Failed loading config file Mekanism/generator-storage.toml of type SERVER for modid mekanismgenerators     at net.minecraftforge.fml.config.ConfigFileTypeHandler.lambda$reader$1(ConfigFileTypeHandler.java:47) ~[fmlcore-1.20.1-47.4.0.jar%23263!/:?] {}     at net.minecraftforge.fml.config.ConfigTracker.openConfig(ConfigTracker.java:60) ~[fmlcore-1.20.1-47.4.0.jar%23263!/:?] {}     at net.minecraftforge.fml.config.ConfigTracker.lambda$loadConfigs$1(ConfigTracker.java:50) ~[fmlcore-1.20.1-47.4.0.jar%23263!/:?] {}     at java.lang.Iterable.forEach(Iterable.java:75) ~[?:?] {re:mixin}     at java.util.Collections$SynchronizedCollection.forEach(Collections.java:2131) ~[?:?] {}     at net.minecraftforge.fml.config.ConfigTracker.loadConfigs(ConfigTracker.java:50) ~[fmlcore-1.20.1-47.4.0.jar%23263!/:?] {}     at net.minecraftforge.server.ServerLifecycleHooks.handleServerAboutToStart(ServerLifecycleHooks.java:96) ~[forge-1.20.1-47.4.0-universal.jar%23267!/:?] {re:classloading}     at net.minecraft.client.server.IntegratedServer.m_7038_(IntegratedServer.java:62) ~[client-1.20.1-20230612.114412-srg.jar%23262!/:?] {re:mixin,pl:runtimedistcleaner:A,re:classloading,pl:mixin:APP:mixins.essential.json:server.Mixin_ServerCoroutineScope_IntegratedServer,pl:mixin:APP:mixins.essential.json:server.integrated.Mixin_FixDefaultOpPermissionLevel,pl:mixin:APP:mixins.essential.json:server.integrated.Mixin_IntegratedServerManager,pl:mixin:APP:mixins.essential.json:server.integrated.MixinIntegratedServer,pl:mixin:A,pl:runtimedistcleaner:A}     at net.minecraft.server.MinecraftServer.m_130011_(MinecraftServer.java:634) ~[client-1.20.1-20230612.114412-srg.jar%23262!/:?] {re:mixin,pl:accesstransformer:B,xf:fml:xaeroworldmap:xaero_wm_minecraftserver,xf:fml:xaerominimap:xaero_minecraftserver,re:classloading,pl:accesstransformer:B,xf:fml:xaeroworldmap:xaero_wm_minecraftserver,xf:fml:xaerominimap:xaero_minecraftserver,pl:mixin:APP:valkyrienskies-common.mixins.json:server.MixinMinecraftServer,pl:mixin:APP:mixins.essential.json:feature.sps.Mixin_IntegratedServerResourcePack,pl:mixin:APP:mixins.essential.json:server.MinecraftServerAccessor,pl:mixin:APP:mixins.essential.json:server.MinecraftServerMixin_PvPGameRule,pl:mixin:APP:mixins.essential.json:server.Mixin_ServerCoroutineScope,pl:mixin:APP:mixins.essential.json:server.Mixin_PublishServerStatusResponse,pl:mixin:APP:mixins.essential.json:server.integrated.Mixin_SetDifficulty,pl:mixin:APP:mixins.essential.json:server.integrated.Mixin_SetGameType,pl:mixin:A}     at net.minecraft.server.MinecraftServer.m_206580_(MinecraftServer.java:251) ~[client-1.20.1-20230612.114412-srg.jar%23262!/:?] {re:mixin,pl:accesstransformer:B,xf:fml:xaeroworldmap:xaero_wm_minecraftserver,xf:fml:xaerominimap:xaero_minecraftserver,re:classloading,pl:accesstransformer:B,xf:fml:xaeroworldmap:xaero_wm_minecraftserver,xf:fml:xaerominimap:xaero_minecraftserver,pl:mixin:APP:valkyrienskies-common.mixins.json:server.MixinMinecraftServer,pl:mixin:APP:mixins.essential.json:feature.sps.Mixin_IntegratedServerResourcePack,pl:mixin:APP:mixins.essential.json:server.MinecraftServerAccessor,pl:mixin:APP:mixins.essential.json:server.MinecraftServerMixin_PvPGameRule,pl:mixin:APP:mixins.essential.json:server.Mixin_ServerCoroutineScope,pl:mixin:APP:mixins.essential.json:server.Mixin_PublishServerStatusResponse,pl:mixin:APP:mixins.essential.json:server.integrated.Mixin_SetDifficulty,pl:mixin:APP:mixins.essential.json:server.integrated.Mixin_SetGameType,pl:mixin:A}     at java.lang.Thread.run(Thread.java:840) ~[?:?] {re:mixin} Caused by: com.electronwill.nightconfig.core.io.ParsingException: Not enough data available     at com.electronwill.nightconfig.core.io.ParsingException.notEnoughData(ParsingException.java:22) ~[core-3.6.4.jar%2393!/:?] {}     at com.electronwill.nightconfig.core.io.ReaderInput.directReadChar(ReaderInput.java:36) ~[core-3.6.4.jar%2393!/:?] {}     at com.electronwill.nightconfig.core.io.AbstractInput.readChar(AbstractInput.java:49) ~[core-3.6.4.jar%2393!/:?] {}     at com.electronwill.nightconfig.core.io.AbstractInput.readCharsUntil(AbstractInput.java:123) ~[core-3.6.4.jar%2393!/:?] {}     at com.electronwill.nightconfig.toml.TableParser.parseKey(TableParser.java:166) ~[toml-3.6.4.jar%2394!/:?] {}     at com.electronwill.nightconfig.toml.TableParser.parseDottedKey(TableParser.java:145) ~[toml-3.6.4.jar%2394!/:?] {}     at com.electronwill.nightconfig.toml.TableParser.parseNormal(TableParser.java:55) ~[toml-3.6.4.jar%2394!/:?] {}     at com.electronwill.nightconfig.toml.TomlParser.parse(TomlParser.java:44) ~[toml-3.6.4.jar%2394!/:?] {}     at com.electronwill.nightconfig.toml.TomlParser.parse(TomlParser.java:37) ~[toml-3.6.4.jar%2394!/:?] {}     at com.electronwill.nightconfig.core.io.ConfigParser.parse(ConfigParser.java:113) ~[core-3.6.4.jar%2393!/:?] {}     at com.electronwill.nightconfig.core.io.ConfigParser.parse(ConfigParser.java:219) ~[core-3.6.4.jar%2393!/:?] {}     at com.electronwill.nightconfig.core.io.ConfigParser.parse(ConfigParser.java:202) ~[core-3.6.4.jar%2393!/:?] {}     at com.electronwill.nightconfig.core.file.WriteSyncFileConfig.load(WriteSyncFileConfig.java:73) ~[core-3.6.4.jar%2393!/:?] {}     at com.electronwill.nightconfig.core.file.AutosaveCommentedFileConfig.load(AutosaveCommentedFileConfig.java:85) ~[core-3.6.4.jar%2393!/:?] {}     at net.minecraftforge.fml.config.ConfigFileTypeHandler.lambda$reader$1(ConfigFileTypeHandler.java:43) ~[fmlcore-1.20.1-47.4.0.jar%23263!/:?] {}     ... 10 more A detailed walkthrough of the error, its code path and all known details is as follows: --------------------------------------------------------------------------------------- -- System Details -- Details:     Minecraft Version: 1.20.1     Minecraft Version ID: 1.20.1     Operating System: Windows 11 (amd64) version 10.0     Java Version: 17.0.15, Microsoft     Java VM Version: OpenJDK 64-Bit Server VM (mixed mode), Microsoft     Memory: 1019055976 bytes (971 MiB) / 3053453312 bytes (2912 MiB) up to 6442450944 bytes (6144 MiB)     CPUs: 6     Processor Vendor: GenuineIntel     Processor Name: Intel(R) Core(TM) i5-9400F CPU @ 2.90GHz     Identifier: Intel64 Family 6 Model 158 Stepping 10     Microarchitecture: Coffee Lake     Frequency (GHz): 2.90     Number of physical packages: 1     Number of physical CPUs: 6     Number of logical CPUs: 6     Graphics card #0 name: NVIDIA GeForce GTX 1660 SUPER     Graphics card #0 vendor: NVIDIA (0x10de)     Graphics card #0 VRAM (MB): 4095.00     Graphics card #0 deviceId: 0x21c4     Graphics card #0 versionInfo: DriverVersion=32.0.15.6094     Memory slot #0 capacity (MB): 16384.00     Memory slot #0 clockSpeed (GHz): 2.67     Memory slot #0 type: DDR4     Virtual memory max (MB): 32710.42     Virtual memory used (MB): 15221.58     Swap memory total (MB): 16384.00     Swap memory used (MB): 80.33     JVM Flags: 9 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xss1M -Xmx6G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M     Server Running: true     Player Count: 0 / 8; []     Data Packs: vanilla, mod:creatingspace (incompatible), mod:bellsandwhistles, mod:geckolib, mod:playeranimator (incompatible), mod:copycats (incompatible), mod:jei, mod:caelus (incompatible), mod:xaeroworldmap (incompatible), mod:more_enchantments, mod:yungsapi, mod:mixinextras (incompatible), mod:glitchcore (incompatible), mod:mekanismexplosives, mod:simpleplanes (incompatible), mod:railways, mod:terralith, mod:vscontrolcraft, mod:cloth_config (incompatible), mod:forge, mod:moderntrainparts (incompatible), mod:create_connected, mod:tectonic (incompatible), mod:vs_hyperdrive, mod:farmersdelight, mod:terrablender, mod:biomesoplenty, mod:mixinsquared (incompatible), mod:jade (incompatible), mod:philipsruins (incompatible), mod:kotlinforforge (incompatible), mod:easy_villagers, mod:curios (incompatible), mod:mekanism, mod:mekaweapons (incompatible), mod:mekanismgenerators, mod:flywheel, mod:create, mod:xaerominimap (incompatible), mod:irons_spellbooks, mod:framedblocks, mod:jei_mekanism_multiblocks (incompatible), mod:mekanismtools, mod:mvs (incompatible), mod:deeperdarker, mod:architectury (incompatible), mod:valkyrien_ship_schematics (incompatible), mod:computercraft, mod:betterendisland, mod:fallingtree (incompatible), mod:valkyrienskies (incompatible), mod:vs_tournament, mod:vs_eureka (incompatible), mod:cc_vs (incompatible), mod:createaddition (incompatible), mod:essential (incompatible), tectonic/terratonic     Enabled Feature Flags: minecraft:vanilla     World Generation: Stable     Type: Integrated Server (map_client.txt)     Is Modded: Definitely; Client brand changed to 'forge'; Server brand changed to 'forge'     Launched Version: 1.20.1-forge-47.4.0     ModLauncher: 10.0.9+10.0.9+main.dcd20f30     ModLauncher launch target: forgeclient     ModLauncher naming: srg     ModLauncher services:          mixin-0.8.5.jar mixin PLUGINSERVICE          eventbus-6.0.5.jar eventbus PLUGINSERVICE          fmlloader-1.20.1-47.4.0.jar slf4jfixer PLUGINSERVICE          fmlloader-1.20.1-47.4.0.jar object_holder_definalize PLUGINSERVICE          fmlloader-1.20.1-47.4.0.jar runtime_enum_extender PLUGINSERVICE          fmlloader-1.20.1-47.4.0.jar capability_token_subclass PLUGINSERVICE          accesstransformers-8.0.4.jar accesstransformer PLUGINSERVICE          fmlloader-1.20.1-47.4.0.jar runtimedistcleaner PLUGINSERVICE          modlauncher-10.0.9.jar mixin TRANSFORMATIONSERVICE          modlauncher-10.0.9.jar essential-loader TRANSFORMATIONSERVICE          modlauncher-10.0.9.jar fml TRANSFORMATIONSERVICE      FML Language Providers:          minecraft@1.0         kotlinforforge@4.11.0         javafml@null         lowcodefml@null     Mod List:          creatingspace-1.20.1_1.7.7.jar                    |Creating Space                |creatingspace                 |1.20.1_1.7.7        |DONE      |Manifest: NOSIGNATURE         bellsandwhistles-0.4.3-1.20.x.jar                 |Create: Bells & Whistles      |bellsandwhistles              |0.4.3-1.20.x        |DONE      |Manifest: NOSIGNATURE         geckolib-forge-1.20.1-4.7.3.jar                   |GeckoLib 4                    |geckolib                      |4.7.3               |DONE      |Manifest: NOSIGNATURE         player-animation-lib-forge-1.0.2-rc1+1.20.jar     |Player Animator               |playeranimator                |1.0.2-rc1+1.20      |DONE      |Manifest: NOSIGNATURE         copycats-2.1.4+mc.1.20.1-forge.jar                |Create: Copycats+             |copycats                      |2.1.4+mc.1.20.1-forg|DONE      |Manifest: NOSIGNATURE         jei-1.20.1-forge-15.20.0.112.jar                  |Just Enough Items             |jei                           |15.20.0.112         |DONE      |Manifest: NOSIGNATURE         caelus-forge-3.1.0+1.20.jar                       |Caelus API                    |caelus                        |3.1.0+1.20          |DONE      |Manifest: NOSIGNATURE         XaerosWorldMap_1.39.9_Forge_1.20.jar              |Xaero's World Map             |xaeroworldmap                 |1.39.9              |DONE      |Manifest: NOSIGNATURE         MoreEnchantments_MC_1.20.1_Vers.1.4.3.jar         |More Enchantments             |more_enchantments             |1.4.3               |DONE      |Manifest: NOSIGNATURE         YungsApi-1.20-Forge-4.0.6.jar                     |YUNG's API                    |yungsapi                      |1.20-Forge-4.0.6    |DONE      |Manifest: NOSIGNATURE         mixinextras-forge-0.4.1.jar                       |MixinExtras                   |mixinextras                   |0.4.1               |DONE      |Manifest: NOSIGNATURE         GlitchCore-forge-1.20.1-0.0.1.1.jar               |GlitchCore                    |glitchcore                    |0.0.1.1             |DONE      |Manifest: NOSIGNATURE         MekanismExplosives-1.20.1-0.3.5.jar               |Mekanism Explosives           |mekanismexplosives            |1.0.0               |DONE      |Manifest: NOSIGNATURE         simpleplanes-1.20.1-5.3.3.jar                     |Simple Planes                 |simpleplanes                  |1.20.1-5.3.3        |DONE      |Manifest: NOSIGNATURE         Steam_Rails-1.6.4+forge-mc1.20.1.jar              |Create: Steam 'n' Rails       |railways                      |1.6.4+forge-mc1.20.1|DONE      |Manifest: NOSIGNATURE         Terralith_1.20.x_v2.5.4.jar                       |Terralith                     |terralith                     |2.5.4               |DONE      |Manifest: NOSIGNATURE         Control Craft Forge-1.20.1-2.3.4-all.jar          |Control Craft                 |vscontrolcraft                |2.3.4               |DONE      |Manifest: NOSIGNATURE         cloth-config-forge-11.1.106.jar                   |Cloth Config v10 API          |cloth_config                  |11.1.106            |DONE      |Manifest: NOSIGNATURE         forge-1.20.1-47.4.0-universal.jar                 |Forge                         |forge                         |47.4.0              |DONE      |Manifest: 84:ce:76:e8:45:35:e4:0e:63:86:df:47:59:80:0f:67:6c:c1:5f:6e:5f:4d:b3:54:47:1a:9f:7f:ed:5e:f2:90         moderntrainparts-0.1.7-forge-mc1.20.1-cr0.5.1.f.ja|Modern Train Parts            |moderntrainparts              |0.1.7-forge-mc1.20.1|DONE      |Manifest: NOSIGNATURE         create_connected-0.8.2-mc1.20.1-all.jar           |Create: Connected             |create_connected              |0.8.2-mc1.20.1      |DONE      |Manifest: NOSIGNATURE         tectonic-forge-1.20.1-2.4.1.jar                   |Tectonic                      |tectonic                      |2.4.1               |DONE      |Manifest: NOSIGNATURE         client-1.20.1-20230612.114412-srg.jar             |Minecraft                     |minecraft                     |1.20.1              |DONE      |Manifest: a1:d4:5e:04:4f:d3:d6:e0:7b:37:97:cf:77:b0:de:ad:4a:47:ce:8c:96:49:5f:0a:cf:8c:ae:b2:6d:4b:8a:3f         vs_hyperdrive-1.0.2-forge-1.20.1.jar              |VS Hyperdrive                 |vs_hyperdrive                 |1.0.2               |DONE      |Manifest: NOSIGNATURE         FarmersDelight-1.20.1-1.2.8.jar                   |Farmer's Delight              |farmersdelight                |1.20.1-1.2.8        |DONE      |Manifest: NOSIGNATURE         TerraBlender-forge-1.20.1-3.0.1.10.jar            |TerraBlender                  |terrablender                  |3.0.1.10            |DONE      |Manifest: NOSIGNATURE         BiomesOPlenty-forge-1.20.1-19.0.0.96.jar          |Biomes O' Plenty              |biomesoplenty                 |19.0.0.96           |DONE      |Manifest: NOSIGNATURE         mixinsquared-forge-0.2.0-beta.6.jar               |MixinSquared                  |mixinsquared                  |0.2.0-beta.6        |DONE      |Manifest: NOSIGNATURE         Jade-1.20.1-Forge-11.13.1.jar                     |Jade                          |jade                          |11.13.1+forge       |DONE      |Manifest: NOSIGNATURE         Philips-Ruins1.20.1-5.5.jar                       |Philips Ruins                 |philipsruins                  |5.5                 |DONE      |Manifest: NOSIGNATURE         kffmod-4.11.0.jar                                 |Kotlin For Forge              |kotlinforforge                |4.11.0              |DONE      |Manifest: NOSIGNATURE         easy-villagers-forge-1.20.1-1.1.33.jar            |Easy Villagers                |easy_villagers                |1.20.1-1.1.33       |DONE      |Manifest: NOSIGNATURE         curios-forge-5.14.1+1.20.1.jar                    |Curios API                    |curios                        |5.14.1+1.20.1       |DONE      |Manifest: NOSIGNATURE         Mekanism-1.20.1-10.4.16.80.jar                    |Mekanism                      |mekanism                      |10.4.16             |DONE      |Manifest: NOSIGNATURE         MekanismWeapons-1.20.1-2.5.jar                    |Mekanism: Weapons             |mekaweapons                   |2.5                 |DONE      |Manifest: NOSIGNATURE         MekanismGenerators-1.20.1-10.4.16.80.jar          |Mekanism: Generators          |mekanismgenerators            |10.4.16             |DONE      |Manifest: NOSIGNATURE         flywheel-forge-1.20.1-0.6.11-13.jar               |Flywheel                      |flywheel                      |0.6.11-13           |DONE      |Manifest: NOSIGNATURE         create-1.20.1-0.5.1.j.jar                         |Create                        |create                        |0.5.1.j             |DONE      |Manifest: NOSIGNATURE         Xaeros_Minimap_25.2.6_Forge_1.20.jar              |Xaero's Minimap               |xaerominimap                  |25.2.6              |DONE      |Manifest: NOSIGNATURE         irons_spellbooks-1.20.1-3.4.0.10.jar              |Iron's Spells 'n Spellbooks   |irons_spellbooks              |1.20.1-3.4.0.10     |DONE      |Manifest: NOSIGNATURE         FramedBlocks-9.3.1.jar                            |FramedBlocks                  |framedblocks                  |9.3.1               |DONE      |Manifest: NOSIGNATURE         JustEnoughMekanismMultiblocks-1.20.1-4.10.jar     |Just Enough Mekanism Multibloc|jei_mekanism_multiblocks      |4.10                |DONE      |Manifest: NOSIGNATURE         MekanismTools-1.20.1-10.4.16.80.jar               |Mekanism: Tools               |mekanismtools                 |10.4.16             |DONE      |Manifest: NOSIGNATURE         mvs-4.1.5-1.20.jar                                |Moog's Voyager Structures     |mvs                           |4.1.5-1.20-forge    |DONE      |Manifest: NOSIGNATURE         deeperdarker-forge-1.20.1-1.3.3.jar               |Deeper and Darker             |deeperdarker                  |1.3.3               |DONE      |Manifest: NOSIGNATURE         architectury-forge-9.1.12.jar                     |Architectury                  |architectury                  |9.1.12              |DONE      |Manifest: NOSIGNATURE         valkyrien-ship-schematics-forge-0.9.jar           |Valkyrien Ship Schematics     |valkyrien_ship_schematics     |1.0                 |DONE      |Manifest: NOSIGNATURE         cc-tweaked-1.20.1-forge-1.115.0.jar               |CC: Tweaked                   |computercraft                 |1.115.0             |DONE      |Manifest: NOSIGNATURE         YungsBetterEndIsland-1.20-Forge-2.0.6.jar         |YUNG's Better End Island      |betterendisland               |1.20-Forge-2.0.6    |DONE      |Manifest: NOSIGNATURE         FallingTree-1.20.1-4.3.4.jar                      |FallingTree                   |fallingtree                   |4.3.4               |DONE      |Manifest: 3c:8e:df:6c:df:a6:2a:9f:af:64:ea:04:9a:cf:65:92:3b:54:93:0e:96:50:b4:52:e1:13:42:18:2b:ae:40:29         valkyrienskies-120-2.3.0-beta.9.jar               |Valkyrien Skies 2             |valkyrienskies                |2.3.0-beta.9        |DONE      |Manifest: NOSIGNATURE         tournament-1.20.1-forge-1.1.0_beta-5.3+af35b3821f.|VS Tournament Mod             |vs_tournament                 |1.1.0_beta-5.3+af35b|DONE      |Manifest: NOSIGNATURE         eureka-1201-1.5.1-beta.3.jar                      |VS Eureka Mod                 |vs_eureka                     |1.5.1-beta.3        |DONE      |Manifest: NOSIGNATURE         cc_vs-1.20.1-forge-0.2.2.jar                      |CC: VS                        |cc_vs                         |1.20.1-forge-0.2.2  |DONE      |Manifest: NOSIGNATURE         createaddition-1.20.1-1.2.4e.jar                  |Create Crafts & Additions     |createaddition                |1.20.1-1.2.4e       |DONE      |Manifest: NOSIGNATURE         Essential (forge_1.20.1).jar                      |Essential                     |essential                     |1.3.9               |DONE      |Manifest: NOSIGNATURE     Crash Report UUID: 7710b37a-7c06-46bb-85d5-61368b6341d3     FML: 47.4     Forge: net.minecraftforge:47.4.0     Flywheel Backend: GL33 Instanced Arrays
    • I am Playing on a server with my friends, but for some reason there are a few random chunks that where if I go into them, all the visuals stop. The game runs in the background but I can only see the last frame I was on before the freeze. If I tab out of the game, it flashes fastly between a snapshot of the forge loading screen and a black screen. Here is my log. Is there any way to fix this?  https://mclo.gs/lXTTXMv
    • The crash directly points to an issue with Immersive Portals - start with removing this mod first
    • Make a test without crittersandcompanions
    • Ended up figuring it out. I had to delete the cache folder in C:\Users\<User>\.gradle\.
  • Topics

×
×
  • Create New...

Important Information

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