Crafftweaker Server need /reload every time you log in.
Alfog opened this issue ยท 31 comments
Issue description
My crafttweaker scrips used for custom recipes will work perfectly fine in SP but the moment i use them on a server they either don't work at all or they need to be reloaded by /reload command. The client side scripts and server side are the exact same.
Steps to reproduce
Start a MP Server World and Log in
Script used
https://pastebin.com/m7GeqQNs https://pastebin.com/4xSh3TU8 https://pastebin.com/48LK1jJL
The crafttweaker.log file
Minecraft version
1.16
Modloader
Forge
Modloader version
36.2.22
CraftTweaker version
1.16.5-7.1.2.489
Other relevant information
No response
The latest.log file
Pro accounts are sold out and the log is to big, so i divided it up:
https://pastebin.com/xDvBvPpV part 1
https://pastebin.com/dyhmRXnv part 2
https://pastebin.com/d5cNkU96 part 3
https://pastebin.com/CdWdUNwa part 4
Im very sorry if this is a jumbled mess
can you upload it to https://gist.github.com/ instead then please, just easier to have them all in the same file
Just to confirm, all of the scripts have issues on a server right?
like none of them work at first (itemstages, recipe stages and normal crafting recipes)
Is this a normal "vanilla" forge server?
Can I also get the server latest.log file please
It is a custom modpack server, and yes the problem is on the server. If i load up singleplayer all the scripts work fine but on the server they dont work when i first log in, but if i run the command /reload it loads the scripts and works, but i have to do this for every time i log in, and every person individually.
https://gist.github.com/Alfog/f4d0d74fec5ccb1eaaad74b08d0c819b#file-server-latest-log
I was more asking if the server itself is Forge, or if it was something like mohist / spongeforge or something along those lines
can you try downgrading to 1.16.5-7.1.2.488
and see if you still experience it?
Also I messed up, can you actually test on 1.16.5-7.1.2.487
, I made a change in 488
that I think may be causing this
okay will do, and here is the modlist
https://pastebin.com/z7UaUSgh
can I get a new crafttweaker.log file please (from the client), the one you provided doesn't appear to be one where you joined the server
Okay i logged on the server but did not do anything while on the server, here is the log
https://pastebin.com/QYfYKC2Z
could it be these type of lines?:
[05:26:35.996][DONE][CLIENT][WARNING] Tag tag:items:forge:ingots/compressed_iron does not exist, replacing with empty IItemStack
[05:26:35.996][DONE][CLIENT][WARNING] Tag tag:items:forge:dusts/certus_quartz does not exist, replacing with empty IItemStack
Okay, so the scripts are being loaded on the client side, are you not seeing their effects ingame?
Not when i initially log in, only after i run the command /reload on the server do they work properly, but trying to run /reload with multiple people on tends to kick us all with a NullPointerException error
and if i leave the server and log back in, i need to /reload again
Through JEI, Part of the script are to hide items in JEI, when i log in i have the full 207 pages of JEI and when i reload it cuts it down to the amount of pages it should be at, and same with the custom recipes in JEI, before the reload the recipes are the "vanilla" recipes and after i reload they are my custom ones.
Okay, but can you craft the recipes that you are adding?
Like can you actually craft this recipe in a crafting table without doing a /reload?
craftingTable.addShaped("mecharm1", <item:create:mechanical_arm>, [
[<item:create:brass_sheet>, <item:create:brass_sheet>, <item:immersiveengineering:ingot_steel>],
[<item:create:brass_sheet>, <item:create:brass_casing>, <item:minecraft:air>],
[<item:create:brass_casing>, <item:create:precision_mechanism>, <item:create:brass_casing>]]);
Something i just noticed, when I log in the specific recipes I removed seem to be working now without a /reload( like the mechanical arm you had me try, the original recipe use to show and now it doesnt), it seems to be just JEI having troubles hiding items and the 'vanila' recipes i wanted gated behind stages.
If this helps
can you get me a new client latest.log file please, with you going into the server
Okay, so your pack has a lot of broken recipes that are unrelated to CraftTweaker, like:
[06:10:17] [main/ERROR]: Found a broken recipe: Theurgy theurgy:essentia/cobalt_ingot class com.github.klikli_dev.theurgy.common.crafting.recipe.EssentiaRecipe
Outputs:
net.minecraft.item.ItemStack: [[-56 air minecraft:air], [-56 air minecraft:air]]
Inputs:
net.minecraft.item.ItemStack: [[1 cobalt_ingot tconstruct:cobalt_ingot]]
and some that are caused by your scripts:
[06:10:17] [main/ERROR]: Found a broken recipe: CraftTweaker crafttweaker:bitumen1 class blusunrize.immersiveengineering.api.crafting.BlastFurnaceRecipe
Outputs:
net.minecraft.item.ItemStack: [[1 bitumen immersivepetroleum:bitumen], [1 air minecraft:air nbt:{spell:{}}]]
Inputs:
net.minecraft.item.ItemStack: [[1 andesite_alloy create:andesite_alloy]]
That is why the initial JEI load fails.
You need to fix your scripts, and report the other issues to the other mod devs.
There is also a lot of:
[06:10:10] [main/ERROR]: Recipe has no output. Recipe Stages recipestages:spartanweaponry_bolt_tipped class com.blamejared.recipestages.recipes.RecipeStage
Outputs:
net.minecraft.item.ItemStack: [[1 air minecraft:air nbt:{spell:{}}]]
Inputs:
net.minecraft.item.ItemStack: []
My guess is that you are staging "special" recipes, that can't be staged and you will need to do them manually / not at all.
Either way, this is either other mods causing the issues, or a scripting issue, not much I can do on my side, so I'm going to close this issue.