crashing with script errors on loading a world

Create issue
Issue #36 resolved
Fabian Maurer created an issue

If you try to load a world while having a script with errors, minecraft crashes:

A fatal exception occurred during the server about to start event
[21:46:40 INFO]: Client> mobtalkerscript.v2.compiler.MtsSyntaxError: Creeper.script:9: no viable alternative at input 'dfunction'
[21:46:40 INFO]: Client>    at mobtalkerscript.v2.compiler.MtsCompiler.load(Unknown Source)
[21:46:40 INFO]: Client>    at mobtalker2.server.script.InteractionScriptFactory.getPrototypeFor(InteractionScriptFactory.java:163)
[21:46:40 INFO]: Client>    at mobtalker2.server.script.InteractionScriptFactory.precompileScripts(InteractionScriptFactory.java:79)
[21:46:40 INFO]: Client>    at mobtalker2.MobTalker2.onServerAboutToStart(MobTalker2.java:104)
[21:46:40 INFO]: Client>    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[21:46:40 INFO]: Client>    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
[21:46:40 INFO]: Client>    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
[21:46:40 INFO]: Client>    at java.lang.reflect.Method.invoke(Unknown Source)
[21:46:40 INFO]: Client>    at cpw.mods.fml.common.FMLModContainer.handleModStateEvent(FMLModContainer.java:540)
[21:46:40 INFO]: Client>    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[21:46:40 INFO]: Client>    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
[21:46:40 INFO]: Client>    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
[21:46:40 INFO]: Client>    at java.lang.reflect.Method.invoke(Unknown Source)
[21:46:40 INFO]: Client>    at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
[21:46:40 INFO]: Client>    at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
[21:46:40 INFO]: Client>    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)
[21:46:40 INFO]: Client>    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
[21:46:40 INFO]: Client>    at com.google.common.eventbus.EventBus.post(EventBus.java:267)
[21:46:40 INFO]: Client>    at cpw.mods.fml.common.LoadController.sendEventToModContainer(LoadController.java:194)
[21:46:40 INFO]: Client>    at cpw.mods.fml.common.LoadController.propogateStateMessage(LoadController.java:174)
[21:46:40 INFO]: Client>    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[21:46:40 INFO]: Client>    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
[21:46:40 INFO]: Client>    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
[21:46:40 INFO]: Client>    at java.lang.reflect.Method.invoke(Unknown Source)
[21:46:40 INFO]: Client>    at com.google.common.eventbus.EventHandler.handleEvent(EventHandler.java:74)
[21:46:40 INFO]: Client>    at com.google.common.eventbus.SynchronizedEventHandler.handleEvent(SynchronizedEventHandler.java:45)
[21:46:40 INFO]: Client>    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:313)
[21:46:40 INFO]: Client>    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:296)
[21:46:40 INFO]: Client>    at com.google.common.eventbus.EventBus.post(EventBus.java:267)
[21:46:40 INFO]: Client>    at cpw.mods.fml.common.LoadController.distributeStateMessage(LoadController.java:105)
[21:46:40 INFO]: Client>    at cpw.mods.fml.common.Loader.serverAboutToStart(Loader.java:812)
[21:46:40 INFO]: Client>    at cpw.mods.fml.common.FMLCommonHandler.handleServerAboutToStart(FMLCommonHandler.java:309)
[21:46:40 INFO]: Client>    at net.minecraft.server.integrated.IntegratedServer.func_71197_b(IntegratedServer.java:106)
[21:46:40 INFO]: Client>    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:443)
[21:46:40 INFO]: Client>    at net.minecraft.server.ThreadMinecraftServer.run(SourceFile:582)

Comments (2)

  1. Chimaine

    Erg. Yeah, don't have script errors in your scripts when loading a world... Will upload an hotfix right away.

  2. Log in to comment