Yeah, and is very busy
[1.106]No sounds
-
-
HI, I've seen the ic2 code(don't blame me, just curious) and found out something:
in the method onNetworkEvent in TileEntityElectricMachine
the method soundSystem.playOnce works perfect ( that is where the machine stop sound come from )
and problems happens in soundSource.play which are soundSystem.playI've see a post in https://github.com/Maescool/Catacomb-Snatch/pull/663 (From Google search), may be you should try using cull() rather than stop() method for the sound.(this.audioSource.stop())
-
Someone already suggested the use of "cull()" instead of "stop()", but Richard either ignored it, or was unable to replace Players Code.
-
Seems like a pretty simple fix that someone with access to the IC2 code could at least try doing and seeing if it works in a local build.
-
That happened to be me, I don't really want to think I was ignored completely. You see, some kind of code would of had to be changed, because I have a working sound system in my mod. It works the same way IC2 does in the sense that it runs directly off of PaulsCode's SoundSystem. My mod is also similar to IC2 in the way that it creates a 'Sound' instance, just like IC2 creates an 'AudioSource' instance, for a certain object, in my case, a machine. I'm pretty sure I could sort this out if I saw the source code, but decompiling IC2 creates so many errors it's practically impossible to fix a sound-related bug.
cull() may or may not fix, worth trying though.
The problem resides in one of the following classes:
IC2
AudioManager
AudioSource
TileEntityElectricMachine-aidancbrady
-
Guys, I did it. I found out what the problem is.
AudioManager is for some reason not being ticked anymore inside of IC2.
Code you need:
Platform.profilerEndStartSection("AudioManager");
AudioManager.onTick();
put that inside of tickStart() between EnergyNet.onTick(world) and platform.profilerEndStartSection("Networking");
it'll work, trust me.
-aidancbrady -
Guys, I did it. I found out what the problem is.
AudioManager is for some reason not being ticked anymore inside of IC2.
Code you need:
Platform.profilerEndStartSection("AudioManager");
AudioManager.onTick();
put that inside of tickStart() between EnergyNet.onTick(world) and platform.profilerEndStartSection("Networking");
it'll work, trust me.
-aidancbradySorry for being a n00b, but where can I change/add this code?
-
Sorry for being a n00b, but where can I change/add this code?
Inside of the 'IC2' class in the tickStart() method.
-
Inside of the 'IC2' class in the tickStart() method.
This is in the ic2/common/ folder, right? Okay, will check it out.
I cannot open it... It shows wrong symbols if opening by Notepad.
-
Guys, I did it. I found out what the problem is.
AudioManager is for some reason not being ticked anymore inside of IC2.
Code you need:
Platform.profilerEndStartSection("AudioManager");
AudioManager.onTick();
put that inside of tickStart() between EnergyNet.onTick(world) and platform.profilerEndStartSection("Networking");
it'll work, trust me.
-aidancbradyFinally !!!! Thanks a lot.
-
Really just one more of many reasons why IC2 should consider the open source approach.
-
I have decompiled it and edited the code. Now I can't compile it.
Congrats to me lol.