I'm having some issues trying to make my mod server compatible. I got this error log from a mod user, but I'm not sure which class it's pointing back to. I'm guessing it's something with the Proxy, but I'm having trouble narrowing it down. Unfortunately, I have virtually no experience troubleshooting on a server.
Can anyone give me a rough idea of what's causing that error/how to fix it? I know it's related to the player entity, but I'm not sure how to handle a server player... Ideally, I'd like to have one download that works on both SP and MP, but I understand if that's not possible. Is there a good guide to making mods server compatible?
I can post code as needed, but there's a lot of it so I'd like to start where the error is originating...
SP is not server player, but SinglePlayer. This is a class a client-side only class; MP is MultiPlayer. To fix the issue, you need to remove the reference to that SP class or add some sort of check so that the server side of the mod doesn't try to reference it. That's about as much as I can gather. From just the log file.
Rollback Post to RevisionRollBack
My Mods:
Working on updating Little Maid Mod to 1.12 with my own twist. I am a Japanese anime fan :3 Teasers here
Blood Baubles - An addon for BloodMagic that adds related Baubles to the game. (Currently on hold)
Blood Magic Wiki - A Blood Mages Choice Encylopedia (Currently on hold)
LazyModder- A libary that makes modding easier. Currently being developed for 1.12)
Deobfuscator - A program used to deobfuscate obfuscated mods.
SP is not server player, but SinglePlayer. This is a class a client-side only class; MP is MultiPlayer. To fix the issue, you need to remove the reference to that SP class or add some sort of check so that the server side of the mod doesn't try to reference it. That's about as much as I can gather. From just the log file.
Right, I know that much-- but is there anything in that log file that points to where the SP reference is? I have a lot of classes and normally I rely quite heavily on the log telling me which class it came from to troubleshoot, but this isn't giving me any good indication as far as I see...
Also, does EntityPlayer count as a singleplayer class? My understanding is that it's a common class, but I also have zero experience with servers so I could be wrong...
Thanks
EntityPlayer is safe to use. If you use eclipse you can just use the search function, or if you run the debug mode it might be able to point out where in the code the reference is made.
Rollback Post to RevisionRollBack
My Mods:
Working on updating Little Maid Mod to 1.12 with my own twist. I am a Japanese anime fan :3 Teasers here
Blood Baubles - An addon for BloodMagic that adds related Baubles to the game. (Currently on hold)
Blood Magic Wiki - A Blood Mages Choice Encylopedia (Currently on hold)
LazyModder- A libary that makes modding easier. Currently being developed for 1.12)
Deobfuscator - A program used to deobfuscate obfuscated mods.
Hello,
I'm having some issues trying to make my mod server compatible. I got this error log from a mod user, but I'm not sure which class it's pointing back to. I'm guessing it's something with the Proxy, but I'm having trouble narrowing it down. Unfortunately, I have virtually no experience troubleshooting on a server.
Can anyone give me a rough idea of what's causing that error/how to fix it? I know it's related to the player entity, but I'm not sure how to handle a server player... Ideally, I'd like to have one download that works on both SP and MP, but I understand if that's not possible. Is there a good guide to making mods server compatible?
I can post code as needed, but there's a lot of it so I'd like to start where the error is originating...
Thanks!
SP is not server player, but SinglePlayer. This is a class a client-side only class; MP is MultiPlayer. To fix the issue, you need to remove the reference to that SP class or add some sort of check so that the server side of the mod doesn't try to reference it. That's about as much as I can gather. From just the log file.
My Mods:
- Happy Coding -
Right, I know that much-- but is there anything in that log file that points to where the SP reference is? I have a lot of classes and normally I rely quite heavily on the log telling me which class it came from to troubleshoot, but this isn't giving me any good indication as far as I see...
Also, does EntityPlayer count as a singleplayer class? My understanding is that it's a common class, but I also have zero experience with servers so I could be wrong...
Thanks
Sorry, it's not in the log. Perhaps try searching through your source for any reference manually.
My Mods:
- Happy Coding -
Eek, that's gonna take a bit. Will do...
Is it safe to use EntityPlayer, or do I have to refer explicitly to the multiplayer entity?
EntityPlayer is safe to use. If you use eclipse you can just use the search function, or if you run the debug mode it might be able to point out where in the code the reference is made.
My Mods:
- Happy Coding -