#This script works single player but fails on Server Enviroment

13 messages · Page 1 of 1 (latest)

crimson relic
#

[19:10:48] [ERROR] ! recipes/Gregtech.js#81: Failed to create recipe for type 'gtceu:extractor': Failed to create recipe for type 'gtceu:extractor' with args [resonantEnder: String]
[19:10:48] [WARN] recipes/Gregtech.js#81: Tried to call a function on an errored recipe! (Failed to create recipe for type 'gtceu:extractor')
[19:10:48] [ERROR] ! recipes/Gregtech.js#81: Error in 'ServerEvents.recipes': TypeError: Cannot find default value for object.

are the dedicated server errors when loading. but if you load the same script in single player.. it works as intended and has all JEI functionality.

heres the script

feral gladeBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

ocean ermineBOT
#

Paste version of Gregtech.js from @crimson relic

crimson relic
#

event.recipes.gtceu.extractor('resonantEnder').itemInputs('#forge:gems/ender_pearl').outputFluids(Fluid.of('kubejs:resonant_ender', 250)).duration(160).EUt(18)

thats the line

remote cosmos
#

@crimson relic do you have ProbeJS? Can you show which arguments outputFluids accepts?

crimson relic
#

i managed to get past this by renaming resonantEnder to something else other then resonant_ender and it went past it and works ... now im stuck in something else.

#

different script and not anything to do with prevoius one lol

ocean ermineBOT
#

Paste version of MetallurgyRecipes.js from @crimson relic

crimson relic
#

same reason.. works single player. dont work server.

#

[21:54:02] [ERROR] ! recipes/MetallurgyRecipes.js#24: Failed to create recipe for type 'gtceu:macerator': Failed to create recipe for type 'gtceu:macerator' with args [almandineClusterToCrushed: ConsString]
[21:54:02] [WARN] recipes/MetallurgyRecipes.js#24: Tried to call a function on an errored recipe! (Failed to create recipe for type 'gtceu:macerator')
[21:54:02] [ERROR] ! recipes/MetallurgyRecipes.js#24: Error in 'ServerEvents.recipes': TypeError: Cannot find default value for object.
[21:54:02] [INFO] Posted recipe events in 1.818 s

crimson relic
#

@remote cosmos so apparently gregtechceu changed how their recipes are handled server side.


event.recipes.gtceu.lathe('recipeId').itemOutputs('gtceu:skystone_lens').itemInputs('gtceu:skystone_plate')

event.recipes.gtceu.lathe(40).itemOutputs('gtceu:skystone_lens').itemInputs('gtceu:skystone_plate')

first one is the old way. second is the new way. Just needs a number and not a string for the recipe id

#

There wasn't anything to do with kubejs after all. I learned something new though. That's always good.