The important part of the error is usually the first line or so - and sometimes tells the line number (4)
function dialog_option(event) {
if (event.option.getSlot() == 3)
var coin1 = event.npc.world.createItem("customnpcs:npcCoinIron", 0, 3)
event.npc.role.set(0, coin1);
}
SHOULD BE
function dialog_option(event) {
if (event.option.getSlot() == 3)
var coin1 = event.npc.world.createItem("customnpcs:npcCoinIron", 0, 3);
var item1 = world.createItem("minecraft:stone_pickaxe", 0, 1);
event.npc.role.set(0, null,coin1,item1);
}
set (which was setSellOption) used to take 3 arguments (you had 2) now it takes 4 - I had only 3 so I did it wrong too - slot,currency1,currency2,sell item
you can use null(blank) for one if you want or have two diff. types of items to buy something
The important part of the error is usually the first line or so - and sometimes tells the line number (4)
It's working now You're the best, daottoad
Rollback Post to RevisionRollBack
“I know there's a proverb which that says 'To err is human,' but a human error is nothing to what a computer can do if it tries.”
― Agatha Christie, Hallowe'en Party
Hm, should have tested it a little more. The item wouldn't change when I added in another dialog option to bring up different items, and only the first item added in a list would show up. Here's a sample of the script and the error I'm getting.
function dialog_option(event) {
if (event.option.getSlot() == 4)
var coin1 = event.npc.world.createItem("customnpcs:npcCoinBronze", 0, 13);
var item1 = event.npc.world.createItem("minecraft:gunpowder", 0, 1);
event.npc.role.set(0, null, coin1, item1);
var coin1 = event.npc.world.createItem("customnpcs:npcCoinBronze", 0, 3);
var item1 = event.npc.world.createItem("minecraft:stick", 0, 2);
event.npc.role.set(3, null, coin1, item1);
var coin1 = event.npc.world.createItem("customnpcs:npcCoinIron", 0, 2);
var item1 = event.npc.world.createItem("minecraft:redstone", 0, 1);
event.npc.role.set(6, null, coin1, item1);
var coin1 = event.npc.world.createItem("customnpcs:npcCoinIron", 0, 12);
var item1 = event.npc.world.createItem("minecraft:iron_ingot", 0, 1);
event.npc.role.set(9, null, coin1, item1);
event.npc.role.remove(1);
event.npc.role.remove(2);
event.npc.role.remove(4);
event.npc.role.remove(5);
event.npc.role.remove(7);
event.npc.role.remove(8);
event.npc.role.remove(10);
event.npc.role.remove(11);
event.npc.role.remove(12);
event.npc.role.remove(13);
event.npc.role.remove(14);
event.npc.role.remove(15);
event.npc.role.remove(16);
event.npc.role.remove(17);
}
Throws error:
Sat Apr 08 12:17:39 CDT 2017 tab 1:
java.lang.ClassCastException: Cannot cast jdk.nashorn.internal.runtime.Undefined to noppes.npcs.api.item.IItemStack
at java.lang.invoke.MethodHandleImpl.newClassCastException(MethodHandleImpl.java:312)
at java.lang.invoke.MethodHandleImpl.castReference(MethodHandleImpl.java:307)
at jdk.nashorn.internal.scripts.Script$Recompilation$47$30A$\^eval\_.dialog_option(<eval>:5)
at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:659)
at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:494)
at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:393)
at jdk.nashorn.api.scripting.ScriptObjectMirror.callMember(ScriptObjectMirror.java:199)
at jdk.nashorn.api.scripting.NashornScriptEngine.invokeImpl(NashornScriptEngine.java:386)
at jdk.nashorn.api.scripting.NashornScriptEngine.invokeFunction(NashornScriptEngine.java:190)
at noppes.npcs.controllers.ScriptContainer.run(ScriptContainer.java:127)
at noppes.npcs.entity.data.DataScript.runScript(DataScript.java:57)
at noppes.npcs.EventHooks.onNPCDialogOption(EventHooks.java:114)
at noppes.npcs.NoppesUtilPlayer.dialogSelected(NoppesUtilPlayer.java:273)
at noppes.npcs.PacketHandlerPlayer.player(PacketHandlerPlayer.java:161)
at noppes.npcs.PacketHandlerPlayer.access$000(PacketHandlerPlayer.java:41)
at noppes.npcs.PacketHandlerPlayer$1.run(PacketHandlerPlayer.java:53)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at net.minecraft.util.Util.func_181617_a(SourceFile:45)
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:668)
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613)
at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:240)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471)
at java.lang.Thread.run(Thread.java:745)
Rollback Post to RevisionRollBack
“I know there's a proverb which that says 'To err is human,' but a human error is nothing to what a computer can do if it tries.”
― Agatha Christie, Hallowe'en Party
Hm, should have tested it a little more. The item wouldn't change when I added in another dialog option to bring up different items, and only the first item added in a list would show up. Here's a sample of the script and the error I'm getting.
Technically I am not sure why it gives that error, even though you can reuse the variables, you just need to declare the variable once and the extra "var"s were causing the problem
seem like it was trying to declare the first item with the second one ???
Technically I am not sure why it gives that error, even though you can reuse the variables, you just need to declare the variable once and the extra "var"s were causing the problem
seem like it was trying to declare the first item with the second one ???
Still gives the same error and like before it will change to the first items and then not change again when selecting another dialog option. This is the last script giving me trouble in 1.10 at least
Error log
Sat Apr 08 21:07:05 CDT 2017 tab 1:
java.lang.ClassCastException: Cannot cast jdk.nashorn.internal.runtime.Undefined to noppes.npcs.api.item.IItemStack
at java.lang.invoke.MethodHandleImpl.newClassCastException(MethodHandleImpl.java:312)
at java.lang.invoke.MethodHandleImpl.castReference(MethodHandleImpl.java:307)
at jdk.nashorn.internal.scripts.Script$Recompilation$54$811A$\^eval\_.dialog_option-1(<eval>:20)
at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:659)
at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:494)
at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:393)
at jdk.nashorn.api.scripting.ScriptObjectMirror.callMember(ScriptObjectMirror.java:199)
at jdk.nashorn.api.scripting.NashornScriptEngine.invokeImpl(NashornScriptEngine.java:386)
at jdk.nashorn.api.scripting.NashornScriptEngine.invokeFunction(NashornScriptEngine.java:190)
at noppes.npcs.controllers.ScriptContainer.run(ScriptContainer.java:127)
at noppes.npcs.entity.data.DataScript.runScript(DataScript.java:57)
at noppes.npcs.EventHooks.onNPCDialogOption(EventHooks.java:114)
at noppes.npcs.NoppesUtilPlayer.dialogSelected(NoppesUtilPlayer.java:273)
at noppes.npcs.PacketHandlerPlayer.player(PacketHandlerPlayer.java:161)
at noppes.npcs.PacketHandlerPlayer.access$000(PacketHandlerPlayer.java:41)
at noppes.npcs.PacketHandlerPlayer$1.run(PacketHandlerPlayer.java:53)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at net.minecraft.util.Util.func_181617_a(SourceFile:45)
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:668)
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613)
at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:240)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471)
at java.lang.Thread.run(Thread.java:745)
“I know there's a proverb which that says 'To err is human,' but a human error is nothing to what a computer can do if it tries.”
― Agatha Christie, Hallowe'en Party
Still gives the same error and like before it will change to the first items and then not change again when selecting another dialog option. This is the last script giving me trouble in 1.10 at least
??
Ok try this put
var coin1,item1;
before everythingin the script (just once) - at the top, and make sure there are not any varin the rest of the script before a coin1 or item1.
before everythingin the script (just once) - at the top, and make sure there are not any varin the rest of the script before a coin1 or item1.
Same error and stuck items, and I copy pasted yours this time to make sure there were no extra vars. I think I'll just add in some extra trader npcs to take this script's place for now. I appreciate the help though, I have all of the other scripts from my post working now thanks to you
Rollback Post to RevisionRollBack
“I know there's a proverb which that says 'To err is human,' but a human error is nothing to what a computer can do if it tries.”
― Agatha Christie, Hallowe'en Party
I'm having trouble installing this mod. Here is the log:
[00:44:37] [main/INFO]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[00:44:37] [main/INFO]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[00:44:38] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker
[00:44:38] [main/INFO]: Forge Mod Loader version 12.18.3.2272 for Minecraft 1.10.2 loading
[00:44:38] [main/INFO]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_25, running on Windows 10:amd64:10.0, installed at C:\Program Files (x86)\Minecraft\runtime\jre-x64\1.8.0_25
[00:44:38] [main/WARN]: The coremod team.chisel.common.asm.ChiselCorePlugin does not have a MCVersion annotation, it may cause issues with this version of Minecraft
[00:44:38] [main/WARN]: The coremod com.creativemd.creativecore.core.CreativePatchingLoader does not have a MCVersion annotation, it may cause issues with this version of Minecraft
[00:44:38] [main/WARN]: The coremod com.creativemd.littletiles.LittlePatchingLoader does not have a MCVersion annotation, it may cause issues with this version of Minecraft
[00:44:38] [main/WARN]: The coremod net.malisis.core.asm.MalisisCorePlugin does not have a MCVersion annotation, it may cause issues with this version of Minecraft
[00:44:38] [main/INFO]: Loading tweaker optifine.OptiFineForgeTweaker from OptiFine_1.10.2_HD_U_D4.jar
[00:44:38] [main/INFO]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[00:44:38] [main/INFO]: Loading tweak class name optifine.OptiFineForgeTweaker
[00:44:38] [main/INFO]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[00:44:38] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[00:44:38] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[00:44:38] [main/INFO]: Calling tweak class optifine.OptiFineForgeTweaker
[00:44:38] [main/INFO]: [optifine.OptiFineForgeTweaker:dbg:56]: OptiFineForgeTweaker: acceptOptions
[00:44:38] [main/INFO]: [optifine.OptiFineForgeTweaker:dbg:56]: OptiFineForgeTweaker: injectIntoClassLoader
[00:44:38] [main/INFO]: [optifine.OptiFineClassTransformer:dbg:266]: OptiFine ClassTransformer
[00:44:38] [main/INFO]: [optifine.OptiFineClassTransformer:dbg:266]: OptiFine URL: file:/C:/Users/Igor-PC/AppData/Roaming/.minecraft/mods/OptiFine_1.10.2_HD_U_D4.jar
[00:44:38] [main/INFO]: [optifine.OptiFineClassTransformer:dbg:266]: OptiFine ZIP file: C:\Users\Igor-PC\AppData\Roaming\.minecraft\mods\OptiFine_1.10.2_HD_U_D4.jar
[00:44:38] [main/INFO]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[00:44:42] [main/INFO]: Found valid fingerprint for Minecraft Forge. Certificate fingerprint e3c3d50c7c986df74c645c0ac54639741c90a557
[00:44:42] [main/INFO]: Found valid fingerprint for Minecraft. Certificate fingerprint cd99959656f753dc28d863b46769f7f8fbaefcfc
[00:44:42] [main/INFO]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[00:44:42] [main/INFO]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[00:44:42] [main/INFO]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[00:44:43] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[00:44:44] [main/INFO]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[00:44:44] [main/INFO]: [ChunkCollisionTransformer] Hook registered for net.minecraft.world.World
[00:44:44] [main/INFO]: [ChunkCollisionTransformer] Hook registered for net.minecraft.world.World
[00:44:44] [main/INFO]: [ChunkCollisionTransformer] Hook registered for net.minecraft.item.ItemBlock
[00:44:44] [main/INFO]: [ChunkCollisionTransformer] Hook registered for net.minecraft.network.NetHandlerPlayServer
[00:44:44] [main/INFO]: [ChunkBlockTransformer] Hook registered for net.minecraft.world.chunk.Chunk
[00:44:44] [main/INFO]: [MalisisRendererTransformer] Hook registered for net.minecraft.client.renderer.BlockRendererDispatcher
[00:44:44] [main/INFO]: [MalisisRendererTransformer] Hook registered for net.minecraft.client.renderer.RenderItem
[00:44:44] [main/INFO]: [MalisisRendererTransformer] Hook registered for net.minecraft.client.renderer.BlockModelShapes
[00:44:44] [main/INFO]: [TextureMapTransformer] Hook registered for net.minecraft.client.renderer.texture.TextureMap
[00:44:44] [main/INFO]: [ClientNotifTransformer] Hook registered for net.minecraft.world.World
[00:44:44] [main/INFO]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[00:44:44] [main/INFO]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker
[00:44:44] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker
[00:44:44] [main/INFO]: [optifine.OptiFineForgeTweaker:dbg:56]: OptiFineForgeTweaker: getLaunchArguments
[00:44:44] [main/INFO]: Launching wrapped minecraft {net.minecraft.client.main.Main}
[00:44:44] [main/INFO]: [com.creativemd.creativecore.transformer.CreativeTransformer:transform:52]: [littletiles] Patched net.minecraft.entity.player.EntityPlayer ...
[00:44:45] [main/INFO]: Found hooks for net.minecraft.world.World (aid)
[00:44:45] [main/INFO]: Found hooks for net.minecraft.world.World (aid)
[00:44:45] [Client thread/INFO]: Setting user: BookerDewitt
[00:44:46] [Client thread/INFO]: [team.chisel.common.asm.ChiselTransformer:transform:44]: Transforming Class [net.minecraft.block.Block], Method [getExtendedState]
[00:44:46] [Client thread/INFO]: [team.chisel.common.asm.ChiselTransformer:transform:93]: Transforming net.minecraft.block.Block Finished.
[00:44:46] [Client thread/INFO]: Found hooks for net.minecraft.item.ItemBlock (acl)
[00:44:59] [Client thread/INFO]: Found hooks for net.minecraft.network.NetHandlerPlayServer (me)
[00:44:59] [Client thread/INFO]: [com.creativemd.creativecore.transformer.CreativeTransformer:transform:52]: [littletiles] Patched net.minecraftforge.client.ForgeHooksClient ...
[00:44:59] [Client thread/INFO]: [team.chisel.common.asm.ChiselTransformer:transform:96]: Transforming Class [net.minecraftforge.client.ForgeHooksClient], Method [getDamageModel]
[00:44:59] [Client thread/INFO]: [team.chisel.common.asm.ChiselTransformer:transform:126]: Transforming net.minecraftforge.client.ForgeHooksClient Finished.
[00:45:01] [Client thread/INFO]: [com.creativemd.creativecore.transformer.CreativeTransformer:transform:52]: [littletiles] Patched net.minecraft.client.renderer.RenderGlobal ...
[00:45:01] [Client thread/INFO]: Found hooks for net.minecraft.client.renderer.texture.TextureMap (bwd)
[00:45:01] [Client thread/INFO]: Found hooks for net.minecraft.world.chunk.Chunk (asv)
[00:45:02] [Client thread/INFO]: Found hooks for net.minecraft.client.renderer.BlockModelShapes (bou)
[00:45:02] [Client thread/WARN]: Skipping bad option: lastServer:
[00:45:02] [Client thread/INFO]: LWJGL Version: 2.9.4
[00:45:06] [Client thread/INFO]: Forge Mod Loader has detected optifine OptiFine_1.10.2_HD_U_D4, enabling compatibility features
[00:45:06] [Client thread/INFO]: [net.minecraftforge.fml.client.SplashProgress:start:223]: ---- Minecraft Crash Report ----
WARNING: coremods are present:
CreativePatchingLoader (CreativeCore v1.6.26 mc1.10.2.jar)
MalisisCorePlugin (malisiscore-1.10.2-4.2.7.jar)
LittlePatchingLoader (LittleTiles v1.4.3 mc1.10.2.jar)
ChiselCorePlugin (Chisel-MC1.10.2-0.0.9.15.jar)
Contact their authors BEFORE contacting forge
// You should try our sister game, Minceraft!
Time: 09/04/17 00:45
Description: Loading screen debug info
This is just a prompt for computer specs to be printed. THIS IS NOT A ERROR
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- System Details --
Details:
Minecraft Version: 1.10.2
Operating System: Windows 10 (amd64) version 10.0
Java Version: 1.8.0_25, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 130532400 bytes (124 MB) / 328372224 bytes (313 MB) up to 2134114304 bytes (2035 MB)
JVM Flags: 6 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx2G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML:
Loaded coremods (and transformers):
CreativePatchingLoader (CreativeCore v1.6.26 mc1.10.2.jar)
MalisisCorePlugin (malisiscore-1.10.2-4.2.7.jar)
net.malisis.core.util.chunkcollision.ChunkCollisionTransformer
net.malisis.core.util.chunkblock.ChunkBlockTransformer
net.malisis.core.renderer.transformer.MalisisRendererTransformer
net.malisis.core.renderer.icon.asm.TextureMapTransformer
net.malisis.core.util.clientnotif.ClientNotifTransformer
LittlePatchingLoader (LittleTiles v1.4.3 mc1.10.2.jar)
com.creativemd.littletiles.LittleTilesTransformer
ChiselCorePlugin (Chisel-MC1.10.2-0.0.9.15.jar)
team.chisel.common.asm.ChiselTransformer
GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 378.49' Renderer: 'GeForce GTX 750/PCIe/SSE2'
[00:45:07] [Client thread/INFO]: MinecraftForge v12.18.3.2272 Initialized
[00:45:07] [Client thread/INFO]: Replaced 231 ore recipes
[00:45:07] [Client thread/INFO]: Found 0 mods from the command line. Injecting into mod discoverer
[00:45:07] [Client thread/INFO]: Searching C:\Users\Igor-PC\AppData\Roaming\.minecraft\mods for mods
[00:45:09] [Client thread/INFO]: Mod mercurius_updater is missing the required element 'name'. Substituting mercurius_updater
[00:45:11] [Thread-7/INFO]: Using alternative sync timing : 200 frames of Display.update took 1000136734 nanos
[00:45:11] [Client thread/WARN]: ****************************************
[00:45:11] [Client thread/WARN]: * The modid ExtraBitManipulation is not the same as it's lowercase version. Lowercasing will be enforced in 1.11
[00:45:11] [Client thread/WARN]: * at net.minecraftforge.fml.common.FMLModContainer.sanityCheckModId(FMLModContainer.java:143)
[00:45:11] [Client thread/WARN]: * at net.minecraftforge.fml.common.FMLModContainer.<init>(FMLModContainer.java:128)
[00:45:11] [Client thread/WARN]: * at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[00:45:11] [Client thread/WARN]: * at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
[00:45:11] [Client thread/WARN]: * at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
[00:45:11] [Client thread/WARN]: * at java.lang.reflect.Constructor.newInstance(Constructor.java:408)...
[00:45:11] [Client thread/WARN]: ****************************************
[00:45:11] [Client thread/WARN]: ****************************************
[00:45:11] [Client thread/WARN]: * The modid ForgeEndertech is not the same as it's lowercase version. Lowercasing will be enforced in 1.11
[00:45:11] [Client thread/WARN]: * at net.minecraftforge.fml.common.FMLModContainer.sanityCheckModId(FMLModContainer.java:143)
[00:45:11] [Client thread/WARN]: * at net.minecraftforge.fml.common.FMLModContainer.<init>(FMLModContainer.java:128)
[00:45:11] [Client thread/WARN]: * at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[00:45:11] [Client thread/WARN]: * at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
[00:45:11] [Client thread/WARN]: * at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
[00:45:11] [Client thread/WARN]: * at java.lang.reflect.Constructor.newInstance(Constructor.java:408)...
[00:45:11] [Client thread/WARN]: ****************************************
[00:45:12] [Client thread/INFO]: Forge Mod Loader has identified 20 mods to load
[00:45:13] [Client thread/INFO]: Attempting connection with missing mods [mcp, FML, Forge, creativecoredummy, littletilescore, mercurius_updater, chisel, chiselsandbits, creativecore, customnpcs, ExtraBitManipulation, flatcoloredblocks, ForgeEndertech, funkylocomotion, littletiles, malisiscore, malisisdoors, mcmultipart, signpic, rscircuits] at CLIENT
[00:45:13] [Client thread/INFO]: Attempting connection with missing mods [mcp, FML, Forge, creativecoredummy, littletilescore, mercurius_updater, chisel, chiselsandbits, creativecore, customnpcs, ExtraBitManipulation, flatcoloredblocks, ForgeEndertech, funkylocomotion, littletiles, malisiscore, malisisdoors, mcmultipart, signpic, rscircuits] at SERVER
[00:45:15] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:mercurius_updater, FMLFileResourcePack:Chisel, FMLFileResourcePack:Chisels & Bits, FMLFileResourcePack:CreativeCore, FMLFileResourcePack:CustomNPCs, FMLFileResourcePack:Extra Bit Manipulation, FMLFileResourcePack:Flat Colored Blocks, FMLFileResourcePack:Forge Endertech, FMLFileResourcePack:Funky Locomotion, FMLFileResourcePack:LittleTiles, FMLFileResourcePack:MalisisCore, FMLFileResourcePack:MalisisDoors, FMLFileResourcePack:MCMultiPart, FMLFileResourcePack:SignPicture, FMLFileResourcePack:Super Circuit Maker
[00:45:16] [Client thread/INFO]: Processing ObjectHolder annotations
[00:45:16] [Client thread/INFO]: Found 461 ObjectHolder annotations
[00:45:16] [Client thread/INFO]: Identifying ItemStackHolder annotations
[00:45:16] [Client thread/INFO]: Found 0 ItemStackHolder annotations
[00:45:16] [Client thread/INFO]: Applying holder lookups
[00:45:16] [Client thread/INFO]: Holder lookups applied
[00:45:16] [Client thread/INFO]: Applying holder lookups
[00:45:16] [Client thread/INFO]: Holder lookups applied
[00:45:16] [Client thread/INFO]: Applying holder lookups
[00:45:16] [Client thread/INFO]: Holder lookups applied
[00:45:16] [Client thread/INFO]: Configured a dormant chunk cache size of 0
[00:45:16] [Forge Version Check/INFO]: [Forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json
[00:45:16] [Client thread/INFO]: Version Number exists, Using it: 1.9.4-1.0.3.17
[00:45:16] [Client thread/INFO]: File exists, Checking hash: C:\Users\Igor-PC\AppData\Roaming\.minecraft\libraries\net\minecraftforge\Mercurius\1.9.4-1.0.3.17\Mercurius-1.9.4-1.0.3.17.jar
[00:45:16] [Client thread/INFO]: Hash matches, Skipping download: 15fb4f9a1e4c09306ed006e0803d1213341f1dfa
[00:45:16] [Client thread/INFO]: Mercurius Jar contains all signed files! Continueing loading!
[00:45:16] [Forge Version Check/INFO]: [Forge] Found status: AHEAD Target: null
[00:45:16] [Forge Version Check/INFO]: [ExtraBitManipulation] Starting version check at https://github.com/Phylogeny/ExtraBitManipulation/raw/1.11/update.json
[00:45:17] [Client thread/INFO]: Starting pre-init...
[00:45:17] [Client thread/INFO]: Loading blocks...
[00:45:17] [Client thread/INFO]: 67 Feature's blocks loaded.
[00:45:17] [Client thread/INFO]: Loading Tile Entities...
[00:45:17] [Client thread/INFO]: Tile Entities loaded.
[00:45:17] [Client thread/INFO]: Loading items...
[00:45:17] [Client thread/INFO]: 67 Feature's items loaded.
[00:45:17] [Client thread/INFO]: Pre-init finished.
[00:45:18] [Forge Version Check/INFO]: [ExtraBitManipulation] Found status: UP_TO_DATE Target: null
And here are all the mods I'm currently using(all for 1.10.2):
Forge 12.18.3.2272 (tried previous versions too, no success)
Chisel 0.0.9.15
Chisels & Bits 12.12
Creative Core 1.6.26
Custom NPCs (17mar17)
Extra Bit Manipulation 2.3.4
Flat Colored Blocks 4.3
ForgeEndertech 1.1.3.0
Funky Locomotion 0.0.1
Little Tiles 1.4.3
Malisis Core 4.2.7
Malisis Doors 5.1.4
MC MultiPart 1.3.0
Optifine HD_U_D4
SignPicture 2.5.3
Super Circuit Maker 1.0.2
Custom NPCs doesn't work, either together with the other mods or by itself. Always crashes at Initializing Mods Phase 1. All the other mods work fine without it.
I also tried changing the splash file to enable=false as suggested earlier, but it only makes it crash before the forge loading screen.
IDK this works for me?? actually added brackets after the if statements
It seems to be working now after adding more brackets I joined the discord group just in case I have any questions later on. You're a saint, thanks for all the help <3
Rollback Post to RevisionRollBack
“I know there's a proverb which that says 'To err is human,' but a human error is nothing to what a computer can do if it tries.”
― Agatha Christie, Hallowe'en Party
I'm having a problem with the builder block and I can't find anything on it anywhere. I place it down, then click on a schematic but no buttons on the right pop up, no matter where I put it.
EDIT:
When I make my own schematic with the copy block it works, but the presets don't?
Yeah. I was having that problem too. I don't know whats wrong
Rollback Post to RevisionRollBack
Goodbye, Minecraft forums. If any of ya'll future people persons need to contact me for whatever dumb reason, my discord is EnderDude124#8340 as of 6/8/2019. Send me a message, I like a good chat.
I'm having a problem with the builder block and I can't find anything on it anywhere. I place it down, then click on a schematic but no buttons on the right pop up, no matter where I put it.
EDIT:
When I make my own schematic with the copy block it works, but the presets don't?
Hey there, I got troubles while trying to make an npc. Tell me, is the healer job still in the version 1.10.2? Acording to the KO site, you must put first the beacon job first and then look for a healer option, but I haven't find it yet. Any advise you could give me?
My issue is that with the newest version there is nothing there for CustomNPC other then the path finder tool and the NPC wand. Were all the decorations and items removed or did I just end up with a bad version of CustomNPC. Before you could place chairs, candles, tons of goodies but now its all gone!
My issue is that with the newest version there is nothing there for CustomNPC other then the path finder tool and the NPC wand. Were all the decorations and items removed or did I just end up with a bad version of CustomNPC. Before you could place chairs, candles, tons of goodies but now its all gone!
Its not gone for 1.11.2, you still have it in 1.10.2
My issue is that with the newest version there is nothing there for CustomNPC other then the path finder tool and the NPC wand. Were all the decorations and items removed or did I just end up with a bad version of CustomNPC. Before you could place chairs, candles, tons of goodies but now its all gone!
The items are a separate mod now (Various commodities)
The important part of the error is usually the first line or so - and sometimes tells the line number (4)
function dialog_option(event) {
if (event.option.getSlot() == 3)
var coin1 = event.npc.world.createItem("customnpcs:npcCoinIron", 0, 3)
event.npc.role.set(0, coin1);
}
SHOULD BE
function dialog_option(event) {
if (event.option.getSlot() == 3)
var coin1 = event.npc.world.createItem("customnpcs:npcCoinIron", 0, 3);
var item1 = world.createItem("minecraft:stone_pickaxe", 0, 1);
event.npc.role.set(0, null,coin1,item1);
}
set (which was setSellOption) used to take 3 arguments (you had 2) now it takes 4 - I had only 3 so I did it wrong too
- slot,currency1,currency2,sell item
you can use null(blank) for one if you want or have two diff. types of items to buy something
also
npc.getRole().removeSellOption(17);
is now
event.npc.role.remove(17);
It's working now
“I know there's a proverb which that says 'To err is human,' but a human error is nothing to what a computer can do if it tries.”
― Agatha Christie, Hallowe'en Party
Hm, should have tested it a little more. The item wouldn't change when I added in another dialog option to bring up different items, and only the first item added in a list would show up. Here's a sample of the script and the error I'm getting.
function dialog_option(event) {
if (event.option.getSlot() == 4)
var coin1 = event.npc.world.createItem("customnpcs:npcCoinBronze", 0, 13);
var item1 = event.npc.world.createItem("minecraft:gunpowder", 0, 1);
event.npc.role.set(0, null, coin1, item1);
var coin1 = event.npc.world.createItem("customnpcs:npcCoinBronze", 0, 3);
var item1 = event.npc.world.createItem("minecraft:stick", 0, 2);
event.npc.role.set(3, null, coin1, item1);
var coin1 = event.npc.world.createItem("customnpcs:npcCoinIron", 0, 2);
var item1 = event.npc.world.createItem("minecraft:redstone", 0, 1);
event.npc.role.set(6, null, coin1, item1);
var coin1 = event.npc.world.createItem("customnpcs:npcCoinIron", 0, 12);
var item1 = event.npc.world.createItem("minecraft:iron_ingot", 0, 1);
event.npc.role.set(9, null, coin1, item1);
event.npc.role.remove(1);
event.npc.role.remove(2);
event.npc.role.remove(4);
event.npc.role.remove(5);
event.npc.role.remove(7);
event.npc.role.remove(8);
event.npc.role.remove(10);
event.npc.role.remove(11);
event.npc.role.remove(12);
event.npc.role.remove(13);
event.npc.role.remove(14);
event.npc.role.remove(15);
event.npc.role.remove(16);
event.npc.role.remove(17);
}
Throws error:
Sat Apr 08 12:17:39 CDT 2017 tab 1:
java.lang.ClassCastException: Cannot cast jdk.nashorn.internal.runtime.Undefined to noppes.npcs.api.item.IItemStack
at java.lang.invoke.MethodHandleImpl.newClassCastException(MethodHandleImpl.java:312)
at java.lang.invoke.MethodHandleImpl.castReference(MethodHandleImpl.java:307)
at jdk.nashorn.internal.scripts.Script$Recompilation$47$30A$\^eval\_.dialog_option(<eval>:5)
at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:659)
at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:494)
at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:393)
at jdk.nashorn.api.scripting.ScriptObjectMirror.callMember(ScriptObjectMirror.java:199)
at jdk.nashorn.api.scripting.NashornScriptEngine.invokeImpl(NashornScriptEngine.java:386)
at jdk.nashorn.api.scripting.NashornScriptEngine.invokeFunction(NashornScriptEngine.java:190)
at noppes.npcs.controllers.ScriptContainer.run(ScriptContainer.java:127)
at noppes.npcs.entity.data.DataScript.runScript(DataScript.java:57)
at noppes.npcs.EventHooks.onNPCDialogOption(EventHooks.java:114)
at noppes.npcs.NoppesUtilPlayer.dialogSelected(NoppesUtilPlayer.java:273)
at noppes.npcs.PacketHandlerPlayer.player(PacketHandlerPlayer.java:161)
at noppes.npcs.PacketHandlerPlayer.access$000(PacketHandlerPlayer.java:41)
at noppes.npcs.PacketHandlerPlayer$1.run(PacketHandlerPlayer.java:53)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at net.minecraft.util.Util.func_181617_a(SourceFile:45)
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:668)
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613)
at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:240)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471)
at java.lang.Thread.run(Thread.java:745)
“I know there's a proverb which that says 'To err is human,' but a human error is nothing to what a computer can do if it tries.”
― Agatha Christie, Hallowe'en Party
function dialog_option(event) {
if (event.option.getSlot() == 0)
var coin1 = event.npc.world.createItem("customnpcs:npcCoinBronze", 0, 13);
var item1 = event.npc.world.createItem("minecraft:gunpowder", 0, 1);
event.npc.role.set(0, null, coin1, item1);
coin1 = event.npc.world.createItem("customnpcs:npcCoinBronze", 0, 3);
item1 = event.npc.world.createItem("minecraft:stick", 0, 2);
event.npc.role.set(3, null, coin1, item1);
coin1 = event.npc.world.createItem("customnpcs:npcCoinIron", 0, 2);
item1 = event.npc.world.createItem("minecraft:redstone", 0, 1);
event.npc.role.set(6, null, coin1, item1);
coin1 = event.npc.world.createItem("customnpcs:npcCoinIron", 0, 12);
item1 = event.npc.world.createItem("minecraft:iron_ingot", 0, 1);
event.npc.role.set(9, null, coin1, item1);
event.npc.role.remove(1);
event.npc.role.remove(2);
event.npc.role.remove(4);
event.npc.role.remove(5);
event.npc.role.remove(7);
event.npc.role.remove(8);
event.npc.role.remove(10);
event.npc.role.remove(11);
event.npc.role.remove(12);
event.npc.role.remove(13);
event.npc.role.remove(14);
event.npc.role.remove(15);
event.npc.role.remove(16);
event.npc.role.remove(17);
}
Technically I am not sure why it gives that error, even though you can reuse the variables, you just need to declare the variable once and the extra "var"s were causing the problem
seem like it was trying to declare the first item with the second one ???
Still gives the same error and like before it will change to the first items and then not change again when selecting another dialog option. This is the last script giving me trouble in 1.10 at least
Error log
Sat Apr 08 21:07:05 CDT 2017 tab 1:
java.lang.ClassCastException: Cannot cast jdk.nashorn.internal.runtime.Undefined to noppes.npcs.api.item.IItemStack
at java.lang.invoke.MethodHandleImpl.newClassCastException(MethodHandleImpl.java:312)
at java.lang.invoke.MethodHandleImpl.castReference(MethodHandleImpl.java:307)
at jdk.nashorn.internal.scripts.Script$Recompilation$54$811A$\^eval\_.dialog_option-1(<eval>:20)
at jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:659)
at jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:494)
at jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:393)
at jdk.nashorn.api.scripting.ScriptObjectMirror.callMember(ScriptObjectMirror.java:199)
at jdk.nashorn.api.scripting.NashornScriptEngine.invokeImpl(NashornScriptEngine.java:386)
at jdk.nashorn.api.scripting.NashornScriptEngine.invokeFunction(NashornScriptEngine.java:190)
at noppes.npcs.controllers.ScriptContainer.run(ScriptContainer.java:127)
at noppes.npcs.entity.data.DataScript.runScript(DataScript.java:57)
at noppes.npcs.EventHooks.onNPCDialogOption(EventHooks.java:114)
at noppes.npcs.NoppesUtilPlayer.dialogSelected(NoppesUtilPlayer.java:273)
at noppes.npcs.PacketHandlerPlayer.player(PacketHandlerPlayer.java:161)
at noppes.npcs.PacketHandlerPlayer.access$000(PacketHandlerPlayer.java:41)
at noppes.npcs.PacketHandlerPlayer$1.run(PacketHandlerPlayer.java:53)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at net.minecraft.util.Util.func_181617_a(SourceFile:45)
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:668)
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:613)
at net.minecraft.server.integrated.IntegratedServer.func_71217_p(IntegratedServer.java:240)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:471)
at java.lang.Thread.run(Thread.java:745)
“I know there's a proverb which that says 'To err is human,' but a human error is nothing to what a computer can do if it tries.”
― Agatha Christie, Hallowe'en Party
??
Ok try this put
before everything in the script (just once) - at the top, and make sure there are not any var in the rest of the script before a coin1 or item1.
Same error and stuck items, and I copy pasted yours this time to make sure there were no extra vars. I think I'll just add in some extra trader npcs to take this script's place for now. I appreciate the help though, I have all of the other scripts from my post working now thanks to you
“I know there's a proverb which that says 'To err is human,' but a human error is nothing to what a computer can do if it tries.”
― Agatha Christie, Hallowe'en Party
Hello and good day/night!
I'm having trouble installing this mod. Here is the log:
[00:44:37] [main/INFO]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[00:44:37] [main/INFO]: Using primary tweak class name net.minecraftforge.fml.common.launcher.FMLTweaker
[00:44:38] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLTweaker
[00:44:38] [main/INFO]: Forge Mod Loader version 12.18.3.2272 for Minecraft 1.10.2 loading
[00:44:38] [main/INFO]: Java is Java HotSpot(TM) 64-Bit Server VM, version 1.8.0_25, running on Windows 10:amd64:10.0, installed at C:\Program Files (x86)\Minecraft\runtime\jre-x64\1.8.0_25
[00:44:38] [main/WARN]: The coremod team.chisel.common.asm.ChiselCorePlugin does not have a MCVersion annotation, it may cause issues with this version of Minecraft
[00:44:38] [main/WARN]: The coremod com.creativemd.creativecore.core.CreativePatchingLoader does not have a MCVersion annotation, it may cause issues with this version of Minecraft
[00:44:38] [main/WARN]: The coremod com.creativemd.littletiles.LittlePatchingLoader does not have a MCVersion annotation, it may cause issues with this version of Minecraft
[00:44:38] [main/WARN]: The coremod net.malisis.core.asm.MalisisCorePlugin does not have a MCVersion annotation, it may cause issues with this version of Minecraft
[00:44:38] [main/INFO]: Loading tweaker optifine.OptiFineForgeTweaker from OptiFine_1.10.2_HD_U_D4.jar
[00:44:38] [main/INFO]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[00:44:38] [main/INFO]: Loading tweak class name optifine.OptiFineForgeTweaker
[00:44:38] [main/INFO]: Loading tweak class name net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[00:44:38] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[00:44:38] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLInjectionAndSortingTweaker
[00:44:38] [main/INFO]: Calling tweak class optifine.OptiFineForgeTweaker
[00:44:38] [main/INFO]: [optifine.OptiFineForgeTweaker:dbg:56]: OptiFineForgeTweaker: acceptOptions
[00:44:38] [main/INFO]: [optifine.OptiFineForgeTweaker:dbg:56]: OptiFineForgeTweaker: injectIntoClassLoader
[00:44:38] [main/INFO]: [optifine.OptiFineClassTransformer:dbg:266]: OptiFine ClassTransformer
[00:44:38] [main/INFO]: [optifine.OptiFineClassTransformer:dbg:266]: OptiFine URL: file:/C:/Users/Igor-PC/AppData/Roaming/.minecraft/mods/OptiFine_1.10.2_HD_U_D4.jar
[00:44:38] [main/INFO]: [optifine.OptiFineClassTransformer:dbg:266]: OptiFine ZIP file: C:\Users\Igor-PC\AppData\Roaming\.minecraft\mods\OptiFine_1.10.2_HD_U_D4.jar
[00:44:38] [main/INFO]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[00:44:42] [main/INFO]: Found valid fingerprint for Minecraft Forge. Certificate fingerprint e3c3d50c7c986df74c645c0ac54639741c90a557
[00:44:42] [main/INFO]: Found valid fingerprint for Minecraft. Certificate fingerprint cd99959656f753dc28d863b46769f7f8fbaefcfc
[00:44:42] [main/INFO]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[00:44:42] [main/INFO]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[00:44:42] [main/INFO]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[00:44:43] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.FMLDeobfTweaker
[00:44:44] [main/INFO]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[00:44:44] [main/INFO]: [ChunkCollisionTransformer] Hook registered for net.minecraft.world.World
[00:44:44] [main/INFO]: [ChunkCollisionTransformer] Hook registered for net.minecraft.world.World
[00:44:44] [main/INFO]: [ChunkCollisionTransformer] Hook registered for net.minecraft.item.ItemBlock
[00:44:44] [main/INFO]: [ChunkCollisionTransformer] Hook registered for net.minecraft.network.NetHandlerPlayServer
[00:44:44] [main/INFO]: [ChunkBlockTransformer] Hook registered for net.minecraft.world.chunk.Chunk
[00:44:44] [main/INFO]: [MalisisRendererTransformer] Hook registered for net.minecraft.client.renderer.BlockRendererDispatcher
[00:44:44] [main/INFO]: [MalisisRendererTransformer] Hook registered for net.minecraft.client.renderer.RenderItem
[00:44:44] [main/INFO]: [MalisisRendererTransformer] Hook registered for net.minecraft.client.renderer.BlockModelShapes
[00:44:44] [main/INFO]: [TextureMapTransformer] Hook registered for net.minecraft.client.renderer.texture.TextureMap
[00:44:44] [main/INFO]: [ClientNotifTransformer] Hook registered for net.minecraft.world.World
[00:44:44] [main/INFO]: Calling tweak class net.minecraftforge.fml.relauncher.CoreModManager$FMLPluginWrapper
[00:44:44] [main/INFO]: Loading tweak class name net.minecraftforge.fml.common.launcher.TerminalTweaker
[00:44:44] [main/INFO]: Calling tweak class net.minecraftforge.fml.common.launcher.TerminalTweaker
[00:44:44] [main/INFO]: [optifine.OptiFineForgeTweaker:dbg:56]: OptiFineForgeTweaker: getLaunchArguments
[00:44:44] [main/INFO]: Launching wrapped minecraft {net.minecraft.client.main.Main}
[00:44:44] [main/INFO]: [com.creativemd.creativecore.transformer.CreativeTransformer:transform:52]: [littletiles] Patched net.minecraft.entity.player.EntityPlayer ...
[00:44:45] [main/INFO]: Found hooks for net.minecraft.world.World (aid)
[00:44:45] [main/INFO]: Found hooks for net.minecraft.world.World (aid)
[00:44:45] [Client thread/INFO]: Setting user: BookerDewitt
[00:44:46] [Client thread/INFO]: [team.chisel.common.asm.ChiselTransformer:transform:44]: Transforming Class [net.minecraft.block.Block], Method [getExtendedState]
[00:44:46] [Client thread/INFO]: [team.chisel.common.asm.ChiselTransformer:transform:93]: Transforming net.minecraft.block.Block Finished.
[00:44:46] [Client thread/INFO]: Found hooks for net.minecraft.item.ItemBlock (acl)
[00:44:59] [Client thread/INFO]: Found hooks for net.minecraft.network.NetHandlerPlayServer (me)
[00:44:59] [Client thread/INFO]: [com.creativemd.creativecore.transformer.CreativeTransformer:transform:52]: [littletiles] Patched net.minecraftforge.client.ForgeHooksClient ...
[00:44:59] [Client thread/INFO]: [team.chisel.common.asm.ChiselTransformer:transform:96]: Transforming Class [net.minecraftforge.client.ForgeHooksClient], Method [getDamageModel]
[00:44:59] [Client thread/INFO]: [team.chisel.common.asm.ChiselTransformer:transform:126]: Transforming net.minecraftforge.client.ForgeHooksClient Finished.
[00:45:01] [Client thread/INFO]: [com.creativemd.creativecore.transformer.CreativeTransformer:transform:52]: [littletiles] Patched net.minecraft.client.renderer.RenderGlobal ...
[00:45:01] [Client thread/INFO]: Found hooks for net.minecraft.client.renderer.texture.TextureMap (bwd)
[00:45:01] [Client thread/INFO]: Found hooks for net.minecraft.world.chunk.Chunk (asv)
[00:45:02] [Client thread/INFO]: Found hooks for net.minecraft.client.renderer.BlockModelShapes (bou)
[00:45:02] [Client thread/WARN]: Skipping bad option: lastServer:
[00:45:02] [Client thread/INFO]: LWJGL Version: 2.9.4
[00:45:06] [Client thread/INFO]: Forge Mod Loader has detected optifine OptiFine_1.10.2_HD_U_D4, enabling compatibility features
[00:45:06] [Client thread/INFO]: [net.minecraftforge.fml.client.SplashProgress:start:223]: ---- Minecraft Crash Report ----
WARNING: coremods are present:
CreativePatchingLoader (CreativeCore v1.6.26 mc1.10.2.jar)
MalisisCorePlugin (malisiscore-1.10.2-4.2.7.jar)
LittlePatchingLoader (LittleTiles v1.4.3 mc1.10.2.jar)
ChiselCorePlugin (Chisel-MC1.10.2-0.0.9.15.jar)
Contact their authors BEFORE contacting forge
// You should try our sister game, Minceraft!
Time: 09/04/17 00:45
Description: Loading screen debug info
This is just a prompt for computer specs to be printed. THIS IS NOT A ERROR
A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------
-- System Details --
Details:
Minecraft Version: 1.10.2
Operating System: Windows 10 (amd64) version 10.0
Java Version: 1.8.0_25, Oracle Corporation
Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation
Memory: 130532400 bytes (124 MB) / 328372224 bytes (313 MB) up to 2134114304 bytes (2035 MB)
JVM Flags: 6 total; -XX:HeapDumpPath=MojangTricksIntelDriversForPerformance_javaw.exe_minecraft.exe.heapdump -Xmx2G -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy -Xmn128M
IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
FML:
Loaded coremods (and transformers):
CreativePatchingLoader (CreativeCore v1.6.26 mc1.10.2.jar)
MalisisCorePlugin (malisiscore-1.10.2-4.2.7.jar)
net.malisis.core.util.chunkcollision.ChunkCollisionTransformer
net.malisis.core.util.chunkblock.ChunkBlockTransformer
net.malisis.core.renderer.transformer.MalisisRendererTransformer
net.malisis.core.renderer.icon.asm.TextureMapTransformer
net.malisis.core.util.clientnotif.ClientNotifTransformer
LittlePatchingLoader (LittleTiles v1.4.3 mc1.10.2.jar)
com.creativemd.littletiles.LittleTilesTransformer
ChiselCorePlugin (Chisel-MC1.10.2-0.0.9.15.jar)
team.chisel.common.asm.ChiselTransformer
GL info: ' Vendor: 'NVIDIA Corporation' Version: '4.5.0 NVIDIA 378.49' Renderer: 'GeForce GTX 750/PCIe/SSE2'
[00:45:07] [Client thread/INFO]: MinecraftForge v12.18.3.2272 Initialized
[00:45:07] [Client thread/INFO]: Replaced 231 ore recipes
[00:45:07] [Client thread/INFO]: Found 0 mods from the command line. Injecting into mod discoverer
[00:45:07] [Client thread/INFO]: Searching C:\Users\Igor-PC\AppData\Roaming\.minecraft\mods for mods
[00:45:09] [Client thread/INFO]: Mod mercurius_updater is missing the required element 'name'. Substituting mercurius_updater
[00:45:11] [Thread-7/INFO]: Using alternative sync timing : 200 frames of Display.update took 1000136734 nanos
[00:45:11] [Client thread/WARN]: ****************************************
[00:45:11] [Client thread/WARN]: * The modid ExtraBitManipulation is not the same as it's lowercase version. Lowercasing will be enforced in 1.11
[00:45:11] [Client thread/WARN]: * at net.minecraftforge.fml.common.FMLModContainer.sanityCheckModId(FMLModContainer.java:143)
[00:45:11] [Client thread/WARN]: * at net.minecraftforge.fml.common.FMLModContainer.<init>(FMLModContainer.java:128)
[00:45:11] [Client thread/WARN]: * at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[00:45:11] [Client thread/WARN]: * at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
[00:45:11] [Client thread/WARN]: * at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
[00:45:11] [Client thread/WARN]: * at java.lang.reflect.Constructor.newInstance(Constructor.java:408)...
[00:45:11] [Client thread/WARN]: ****************************************
[00:45:11] [Client thread/WARN]: ****************************************
[00:45:11] [Client thread/WARN]: * The modid ForgeEndertech is not the same as it's lowercase version. Lowercasing will be enforced in 1.11
[00:45:11] [Client thread/WARN]: * at net.minecraftforge.fml.common.FMLModContainer.sanityCheckModId(FMLModContainer.java:143)
[00:45:11] [Client thread/WARN]: * at net.minecraftforge.fml.common.FMLModContainer.<init>(FMLModContainer.java:128)
[00:45:11] [Client thread/WARN]: * at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[00:45:11] [Client thread/WARN]: * at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
[00:45:11] [Client thread/WARN]: * at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
[00:45:11] [Client thread/WARN]: * at java.lang.reflect.Constructor.newInstance(Constructor.java:408)...
[00:45:11] [Client thread/WARN]: ****************************************
[00:45:12] [Client thread/INFO]: Forge Mod Loader has identified 20 mods to load
[00:45:13] [Client thread/INFO]: Attempting connection with missing mods [mcp, FML, Forge, creativecoredummy, littletilescore, mercurius_updater, chisel, chiselsandbits, creativecore, customnpcs, ExtraBitManipulation, flatcoloredblocks, ForgeEndertech, funkylocomotion, littletiles, malisiscore, malisisdoors, mcmultipart, signpic, rscircuits] at CLIENT
[00:45:13] [Client thread/INFO]: Attempting connection with missing mods [mcp, FML, Forge, creativecoredummy, littletilescore, mercurius_updater, chisel, chiselsandbits, creativecore, customnpcs, ExtraBitManipulation, flatcoloredblocks, ForgeEndertech, funkylocomotion, littletiles, malisiscore, malisisdoors, mcmultipart, signpic, rscircuits] at SERVER
[00:45:15] [Client thread/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:mercurius_updater, FMLFileResourcePack:Chisel, FMLFileResourcePack:Chisels & Bits, FMLFileResourcePack:CreativeCore, FMLFileResourcePack:CustomNPCs, FMLFileResourcePack:Extra Bit Manipulation, FMLFileResourcePack:Flat Colored Blocks, FMLFileResourcePack:Forge Endertech, FMLFileResourcePack:Funky Locomotion, FMLFileResourcePack:LittleTiles, FMLFileResourcePack:MalisisCore, FMLFileResourcePack:MalisisDoors, FMLFileResourcePack:MCMultiPart, FMLFileResourcePack:SignPicture, FMLFileResourcePack:Super Circuit Maker
[00:45:16] [Client thread/INFO]: Processing ObjectHolder annotations
[00:45:16] [Client thread/INFO]: Found 461 ObjectHolder annotations
[00:45:16] [Client thread/INFO]: Identifying ItemStackHolder annotations
[00:45:16] [Client thread/INFO]: Found 0 ItemStackHolder annotations
[00:45:16] [Client thread/INFO]: Applying holder lookups
[00:45:16] [Client thread/INFO]: Holder lookups applied
[00:45:16] [Client thread/INFO]: Applying holder lookups
[00:45:16] [Client thread/INFO]: Holder lookups applied
[00:45:16] [Client thread/INFO]: Applying holder lookups
[00:45:16] [Client thread/INFO]: Holder lookups applied
[00:45:16] [Client thread/INFO]: Configured a dormant chunk cache size of 0
[00:45:16] [Forge Version Check/INFO]: [Forge] Starting version check at http://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json
[00:45:16] [Client thread/INFO]: Version Number exists, Using it: 1.9.4-1.0.3.17
[00:45:16] [Client thread/INFO]: File exists, Checking hash: C:\Users\Igor-PC\AppData\Roaming\.minecraft\libraries\net\minecraftforge\Mercurius\1.9.4-1.0.3.17\Mercurius-1.9.4-1.0.3.17.jar
[00:45:16] [Client thread/INFO]: Hash matches, Skipping download: 15fb4f9a1e4c09306ed006e0803d1213341f1dfa
[00:45:16] [Client thread/INFO]: Mercurius Jar contains all signed files! Continueing loading!
[00:45:16] [Forge Version Check/INFO]: [Forge] Found status: AHEAD Target: null
[00:45:16] [Forge Version Check/INFO]: [ExtraBitManipulation] Starting version check at https://github.com/Phylogeny/ExtraBitManipulation/raw/1.11/update.json
[00:45:17] [Client thread/INFO]: Starting pre-init...
[00:45:17] [Client thread/INFO]: Loading blocks...
[00:45:17] [Client thread/INFO]: 67 Feature's blocks loaded.
[00:45:17] [Client thread/INFO]: Loading Tile Entities...
[00:45:17] [Client thread/INFO]: Tile Entities loaded.
[00:45:17] [Client thread/INFO]: Loading items...
[00:45:17] [Client thread/INFO]: 67 Feature's items loaded.
[00:45:17] [Client thread/INFO]: Pre-init finished.
[00:45:18] [Forge Version Check/INFO]: [ExtraBitManipulation] Found status: UP_TO_DATE Target: null
And here are all the mods I'm currently using(all for 1.10.2):
Forge 12.18.3.2272 (tried previous versions too, no success)
Chisel 0.0.9.15
Chisels & Bits 12.12
Creative Core 1.6.26
Custom NPCs (17mar17)
Extra Bit Manipulation 2.3.4
Flat Colored Blocks 4.3
ForgeEndertech 1.1.3.0
Funky Locomotion 0.0.1
Little Tiles 1.4.3
Malisis Core 4.2.7
Malisis Doors 5.1.4
MC MultiPart 1.3.0
Optifine HD_U_D4
SignPicture 2.5.3
Super Circuit Maker 1.0.2
Custom NPCs doesn't work, either together with the other mods or by itself. Always crashes at Initializing Mods Phase 1. All the other mods work fine without it.
I also tried changing the splash file to enable=false as suggested earlier, but it only makes it crash before the forge loading screen.
Any help would be appreciated. Thanks in advance!
IDK this works for me?? actually added brackets after the if statements
easier on Discord to go over this fyi https://discord.gg/j7p7nd4
var coin1,item1;
function dialog_option(event) {
if (event.option.getSlot() == 0){
coin1 = event.npc.world.createItem("customnpcs:npcCoinBronze", 0, 13);
item1 = event.npc.world.createItem("minecraft:gunpowder", 0, 1);
event.npc.role.set(0, null, coin1, item1);
coin1 = event.npc.world.createItem("customnpcs:npcCoinBronze", 0, 3);
item1 = event.npc.world.createItem("minecraft:stick", 0, 2);
event.npc.role.set(3, null, coin1, item1);
coin1 = event.npc.world.createItem("customnpcs:npcCoinIron", 0, 2);
item1 = event.npc.world.createItem("minecraft:redstone", 0, 1);
event.npc.role.set(6, null, coin1, item1);
coin1 = event.npc.world.createItem("customnpcs:npcCoinIron", 0, 12);
item1 = event.npc.world.createItem("minecraft:iron_ingot", 0, 1);
event.npc.role.set(9, null, coin1, item1);
event.npc.role.remove(1);
event.npc.role.remove(2);
event.npc.role.remove(4);
event.npc.role.remove(5);
event.npc.role.remove(7);
event.npc.role.remove(8);
event.npc.role.remove(10);
event.npc.role.remove(11);
event.npc.role.remove(12);
event.npc.role.remove(13);
event.npc.role.remove(14);
event.npc.role.remove(15);
event.npc.role.remove(16);
event.npc.role.remove(17);
}
if (event.option.getSlot() == 1){
coin1 = event.npc.world.createItem("customnpcs:npcCoinBronze", 0, 13);
item1 = event.npc.world.createItem("minecraft:gunpowder", 0, 1);
event.npc.role.set(1, null, coin1, item1);
coin1 = event.npc.world.createItem("customnpcs:npcCoinBronze", 0, 3);
item1 = event.npc.world.createItem("minecraft:stick", 0, 2);
event.npc.role.set(2, null, coin1, item1);
coin1 = event.npc.world.createItem("customnpcs:npcCoinIron", 0, 2);
item1 = event.npc.world.createItem("minecraft:redstone", 0, 1);
event.npc.role.set(3, null, coin1, item1);
coin1 = event.npc.world.createItem("customnpcs:npcCoinIron", 0, 12);
item1 = event.npc.world.createItem("minecraft:iron_ingot", 0, 1);
event.npc.role.set(4, null, coin1, item1);
event.npc.role.remove(0);
event.npc.role.remove(6);
event.npc.role.remove(9);
event.npc.role.remove(7);
event.npc.role.remove(8);
event.npc.role.remove(10);
event.npc.role.remove(11);
event.npc.role.remove(12);
event.npc.role.remove(13);
event.npc.role.remove(14);
event.npc.role.remove(15);
event.npc.role.remove(16);
event.npc.role.remove(17);
}
}
It seems to be working now after adding more brackets
I joined the discord group just in case I have any questions later on. You're a saint, thanks for all the help <3
“I know there's a proverb which that says 'To err is human,' but a human error is nothing to what a computer can do if it tries.”
― Agatha Christie, Hallowe'en Party
Look here
http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/1278956-custom-npcs?comment=24824
Thanks! Works like a charm. Looking forward to enjoying the mod.
I'm having a problem with the builder block and I can't find anything on it anywhere. I place it down, then click on a schematic but no buttons on the right pop up, no matter where I put it.
EDIT:
When I make my own schematic with the copy block it works, but the presets don't?
Yeah. I was having that problem too. I don't know whats wrong
Goodbye, Minecraft forums. If any of ya'll future people persons need to contact me for whatever dumb reason, my discord is EnderDude124#8340 as of 6/8/2019. Send me a message, I like a good chat.
version?
Version 1.11.2
Also, in the 1.10.2 version, my npcs stopped saying their world lines...
Hey there, I got troubles while trying to make an npc. Tell me, is the healer job still in the version 1.10.2? Acording to the KO site, you must put first the beacon job first and then look for a healer option, but I haven't find it yet. Any advise you could give me?
My issue is that with the newest version there is nothing there for CustomNPC other then the path finder tool and the NPC wand. Were all the decorations and items removed or did I just end up with a bad version of CustomNPC. Before you could place chairs, candles, tons of goodies but now its all gone!
Its not gone for 1.11.2, you still have it in 1.10.2
thats because 1.11.2 is a beta
The items are a separate mod now (Various commodities)