Posted August 25, 201510 yr In my code I'm writing, I'm making a power effect triggered by LivingUpdateEvent, as seen here: https://github.com/Himself12794/powersAPI/blob/develop/src/main/java/com/himself12794/powersapi/event/UpdatesHandler.java and here: https://github.com/Himself12794/powersAPI/blob/develop/src/main/java/com/himself12794/powersapi/util/DataWrapper.java#L226 The only problem is that when I try to make my power effect use explosion particles, it doesn't display, neither on integrated server or dedicated server. Using this: https://github.com/Himself12794/powersAPI/blob/develop/src/main/java/com/himself12794/powersapi/network/PowerEffectsClient.java Makes it work on the integrated server, but I can't seem to get it to work on the integrated server. I'm trying to call the effect from this class: https://github.com/Himself12794/Heroes-Mod/blob/master/src/main/java/com/himself12794/heroesmod/powerfx/Slam.java I'm know it's some sort of networking issue, but because I still have a vague understanding of the difference between server side, client side, integrated server and dedicated server I'm unsure of the solution. Any help I can get is appreciated. Thanks! P.S. As a side note, player NBT data doesn't seem like it's being saved on world exit. Likely related to the above issue, I'm sure. With all due respect, sir: I do, what I do, the way I do it. ~ MacGyver
August 25, 201510 yr Remember, particle effects are client side, so you should probably spawn them on the client. Development of Plugins [2012 - 2014] Development of Mods [2012 - Current]
August 25, 201510 yr Author Remember, particle effects are client side, so you should probably spawn them on the client. I know, but my problem is getting that to happen. It was my understanding that calling it this way IS spawning them on the client. With all due respect, sir: I do, what I do, the way I do it. ~ MacGyver
August 25, 201510 yr Author Perhaps I was overthinking it. Adding this: https://github.com/Himself12794/Heroes-Mod/blob/additional-powers/src/main/java/com/himself12794/heroesmod/network/SpawnParticlesClient.java Seems to have fixed it. The other things I'd done should have fixed it as well, but I guess I can't be picky since it's working. With all due respect, sir: I do, what I do, the way I do it. ~ MacGyver
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.