Closed Not-February closed 1 month ago
((WeightedRandomPotion)WeightedRandom.getRandomItem(Minecraft.getMinecraft().theWorld.rand, arcaneEffects)).getPotion()
DAMN I F*CKED UP AGAIN 😭
(Minecraft.getMinecraft().theWorld
is only client-side method; It will crash on server.)
Thanks for finding it, the fix will be made in a minute and released on GitHub... well, when I check that the bug is gone.
I've been playing with this mod on a dedicated server and as soon as I reached 50% arcane affinity from casting a spell, I got booted and started getting an 'Internal Server Error' message every time I tried to reconnect. It took me a bit, but on a hunch after reading the error in the server log I edited my player NBT data to set my arcane affinity to a value below 50% and sure enough, that allowed me to reconnect again without issue.
I can't seem to find any publicly available information that mentions AM2PG actually changing the effects of the arcane affinity in any way, so this came as something of a surprise.
I really did some shit with Arcane Affinity, and call it a part of Clarity rework, since Clarity effect is the one and only reason of having Arcane Affinity, and mostly the reason of having ONLY Arcane affinity. Which also means that this can be disabled in the config and in theory that should help with crash too.
It is worth noting for the sake of being thorough that I am currently using this fork of AM2.5 (using v1.6.9-RE)for the config option for disabling burnout(as a means if avoiding this issue.
I know it is technically an unsupported version of AM2.5 for AM2PG, but I'm hoping if nothing else that you can at least tell me if this is a compatibility issue between the fork of AM2.5 and AM2PG or if it is in fact an issue with AM2PG that could happen regardless of what version of AM2.5 is used. I can set aside a time when no one is playing to specifically test a supported version of AM2.5 if you believe it to be needed.
By the way, these versions are not supported not because they shouldn’t work, but because my lazy ass didn’t test them, and I have no guarantee that they work as they should. As you can see, I didn't test this mod well, especially on the server.
That part of rework does this: when your Arcane Affinity is 50% and above, every 10 seconds (if ticks not skipped) it will randomly give you one of potions from some list, the level of which is calculated randomly, based on current Arcane Affinity %, or just do nothing.
Well, feel free to test new pre-release with every version of AM2 you like. Please, report back if problem was fixed, or it got even worse.
I've tested the pre-release you linked on a server and can confirm that 50% arcane affinity works just fine with it. I'm getting the buffs and not getting kicked, so that's a good sign!
Sadly I won't be able to actually keep it, as we are in fact using a currently-released version of Deathly Hallows. A cooler (and functional) arcane affinity is something to look forward to in the future, I guess!
Sadly I won't be able to actually keep it, as we are in fact using a currently-released version of Deathly Hallows.
I'll see if I can produce new Deathly Hallows version faster.
Considered solved.
First off, love that you've made this mod; thus far it's added a lot of entertaining replay value to a mod I've enjoyed for years. So thanks for that! Unfortunately, I've run into a bit of a snag and thought I'd check if it's something that might need fixing.
I've been playing with this mod on a dedicated server and as soon as I reached 50% arcane affinity from casting a spell, I got booted and started getting an 'Internal Server Error' message every time I tried to reconnect. It took me a bit, but on a hunch after reading the error in the server log I edited my player NBT data to set my arcane affinity to a value below 50% and sure enough, that allowed me to reconnect again without issue.
This effectively means that in multiplayer, you'll lock yourself out of your character if you get arcane affinity to 50%+. Which is... not ideal.
I can't seem to find any publicly available information that mentions AM2PG actually changing the effects of the arcane affinity in any way, so this came as something of a surprise.
I also can't reproduce the problem in single player, but the fact that the error mentions client-specific code in the server log probably implicates it as a multiplayer-specific issue.
It is worth noting for the sake of being thorough that I am currently using this fork of AM2.5 (using v1.6.9-RE)for the config option for disabling burnout(as a means if avoiding this issue.
I know it is technically an unsupported version of AM2.5 for AM2PG, but I'm hoping if nothing else that you can at least tell me if this is a compatibility issue between the fork of AM2.5 and AM2PG or if it is in fact an issue with AM2PG that could happen regardless of what version of AM2.5 is used. I can set aside a time when no one is playing to specifically test a supported version of AM2.5 if you believe it to be needed.
AM2PG mod version: 0.11.3
I can share the full server log and mod list as well if needed, but this the most relevant part that occurs when I was trying to reconnect to the server(on the client, it kicked me with the message Internal Server Error):