Hurricaaane / Presence-Footsteps

An overly complicated footstep sound enhancement mod for Minecraft (2012-2014)
https://presencefootsteps.ha3.eu
15 stars 45 forks source link

Crashes whenever you walk on a modded block that adds custom sounds for steps #18

Open DerLeole opened 8 years ago

DerLeole commented 8 years ago

As another user already explained on your forum thread: The crash comes from blocks that use a custom sound for stepping on them beyond the usual dirt/stone/wood/sand sounds. For example, the slime blocks in Tinker's Construct use the slime hopping sound for steps. Trying to walk over those with this mod will cause a crash. It isn't just because the block is a modded block, it's because they have their own sound for stepping on them.

Here you have a crashreport showing that crash in action (dont mind all the other mods in there its in a modpack but the crash also appears when using only your mod):

---- Minecraft Crash Report ---- // Who set us up the TNT?

Time: 08.02.16 23:42 Description: Unexpected error

java.lang.NullPointerException: Unexpected error at eu.ha3.mc.presencefootsteps.mcpackage.implem.AcousticsManager.playStep(AcousticsManager.java:56) at eu.ha3.mc.presencefootsteps.game.system.PFSolver.playAssociation(PFSolver.java:64) at eu.ha3.mc.presencefootsteps.game.system.PFReaderH.simulateFootsteps(PFReaderH.java:115) at eu.ha3.mc.presencefootsteps.game.system.PFReaderH.generateFootsteps(PFReaderH.java:66) at eu.ha3.mc.presencefootsteps.game.system.PFIsolator.onFrame(PFIsolator.java:51) at eu.ha3.mc.presencefootsteps.game.system.PFHaddon.onFrame(PFHaddon.java:359) at eu.ha3.mc.haddon.litemod.LiteBase.onTick(LiteBase.java:99) at com.mumfrey.liteloader.core.event.HandlerList$Tickable8.onTick(HandlerList$Tickable8.java:100) at com.mumfrey.liteloader.client.ClientEvents.onTick(ClientEvents.java:416) at com.mumfrey.liteloader.client.CallbackProxyClient.onTick(CallbackProxyClient.java:63) at com.mumfrey.liteloader.core.event.EventProxy.$event00005(EventProxy.java:216) at net.minecraft.client.Minecraft.func_71411_J(Unknown Source) at net.minecraft.client.Minecraft.func_99999_d(Unknown Source) at net.minecraft.client.main.Main.main(SourceFile:148) 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:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

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

-- Head -- Stacktrace: at eu.ha3.mc.presencefootsteps.mcpackage.implem.AcousticsManager.playStep(AcousticsManager.java:56) at eu.ha3.mc.presencefootsteps.game.system.PFSolver.playAssociation(PFSolver.java:64) at eu.ha3.mc.presencefootsteps.game.system.PFReaderH.simulateFootsteps(PFReaderH.java:115) at eu.ha3.mc.presencefootsteps.game.system.PFReaderH.generateFootsteps(PFReaderH.java:66) at eu.ha3.mc.presencefootsteps.game.system.PFIsolator.onFrame(PFIsolator.java:51) at eu.ha3.mc.presencefootsteps.game.system.PFHaddon.onFrame(PFHaddon.java:359) at eu.ha3.mc.haddon.litemod.LiteBase.onTick(LiteBase.java:99) at com.mumfrey.liteloader.core.event.HandlerList$Tickable8.onTick(HandlerList$Tickable8.java:100) at com.mumfrey.liteloader.client.ClientEvents.onTick(ClientEvents.java:416) at com.mumfrey.liteloader.client.CallbackProxyClient.onTick(CallbackProxyClient.java:63)

-- Affected level -- Details: Level name: MpServer All players: 1 total; [EntityClientPlayerMP['Leolele99'/15112, l='MpServer', x=841,93, y=71,41, z=1214,92]] Chunk stats: MultiplayerChunkCache: 261, 261 Level seed: 0 Level generator: ID 02 - largeBiomes, ver 0. Features enabled: false Level generator options: Level spawn location: World: (181,88,-4013), Chunk: (at 5,5,3 in 11,-251; contains blocks 176,0,-4016 to 191,255,-4001), Region: (0,-8; contains chunks 0,-256 to 31,-225, blocks 0,0,-4096 to 511,255,-3585) Level time: 599167004 game time, 601375113 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: 11 total; [EntityCustomNpc['Glacial_Prince'/11568, l='MpServer', x=865,50, y=74,00, z=1217,50], EntityOtherPlayerMP['Flaming_Spirit'/8834, l='MpServer', x=683,69, y=72,50, z=1204,91], EntityCustomNpc['Ice_Monarch'/11559, l='MpServer', x=829,50, y=10,26, z=1217,50], EntityCustomNpc['Ice_Monarch'/11561, l='MpServer', x=829,50, y=69,00, z=1217,50], EntityClientPlayerMP['Leolele99'/15112, l='MpServer', x=841,93, y=71,41, z=1214,92], EntityCustomNpc['Frozen_Guard'/11563, l='MpServer', x=832,53, y=69,00, z=1211,47], EntityOtherPlayerMP['coolhoXD'/11484, l='MpServer', x=-88,69, y=135,76, z=2607,31], EntityOtherPlayerMP['coolhoXD'/11484, l='MpServer', x=-135,00, y=143,59, z=2594,28], EntityOtherPlayerMP['coolhoXD'/11484, l='MpServer', x=-83,48, y=167,97, z=2640,58], EntityOtherPlayerMP['BugFaceHD'/8762, l='MpServer', x=752,56, y=73,00, z=1215,41], EntityCustomNpc['Frozen_Guard'/11565, l='MpServer', x=832,69, y=69,00, z=1223,41]] Retry entities: 0 total; [] Server brand: BungeeCord (git:BungeeCord-Bootstrap:1.8-SNAPSHOT:"01ce21e":unknown) <- kcauldron,cauldron,craftbukkit,mcpc,fml,forge Server type: Non-integrated multiplayer server Stacktrace: at net.minecraft.client.multiplayer.WorldClient.func_72914_a(WorldClient.java:373) at net.minecraft.client.Minecraft.func_71396_d(Unknown Source) at net.minecraft.client.Minecraft.func_99999_d(Unknown Source) at net.minecraft.client.main.Main.main(SourceFile:148) 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:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

-- System Details -- Details: Minecraft Version: 1.7.10 Operating System: Windows 10 (amd64) version 10.0 Java Version: 1.8.0_65, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 11825669704 bytes (11277 MB) / 12884901888 bytes (12288 MB) up to 12884901888 bytes (12288 MB) Mod Pack: Unknown / None LiteLoader Mods: 1 loaded mod(s)

Is Modded: Definitely; Client brand changed to 'fml,forge'
Type: Client (map_client.txt)
Resource Packs: [PresenceFootstepsOfficial.zip]
Current Language: English (US)
Profiler Position: N/A (disabled)
Vec3 Pool Size: 0 (0 bytes; 0 MB) allocated, 0 (0 bytes; 0 MB) used
Anisotropic Filtering: Off (1)