Exception in thread "LWJGL Application" org.luaj.vm2.LuaError: load scripts/character/character.lua: org.luaj.vm2.LuaError: scripts/character/character.lua:15: '<name>' expected
at org.luaj.vm2.LuaValue.error(Unknown Source)
at org.luaj.vm2.Globals.loadfile(Unknown Source)
at net.isuky.dawnless.luaj.LuaScript.<init>(LuaScript.java:35)
at net.isuky.dawnless.player.PlayerLuaScriptHandler.<init>(PlayerLuaScriptHandler.java:15)
at net.isuky.dawnless.player.Player.initialize(Player.java:71)
at net.isuky.dawnless.levels.Playground.initialize(Playground.java:28)
at net.isuky.dawnless.screens.PlayScreen.show(PlayScreen.java:33)
at com.badlogic.gdx.Game.setScreen(Game.java:61)
at net.isuky.dawnless.screens.control.MainMenuControl$1.clicked(MainMenuControl.java:48)
at com.badlogic.gdx.scenes.scene2d.utils.ClickListener.touchUp(ClickListener.java:89)
at com.badlogic.gdx.scenes.scene2d.InputListener.handle(InputListener.java:57)
at com.badlogic.gdx.scenes.scene2d.Stage.touchUp(Stage.java:348)
at com.badlogic.gdx.backends.lwjgl.LwjglInput.processEvents(LwjglInput.java:306)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication.mainLoop(LwjglApplication.java:200)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:114)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The method name 'end' is being treated as a keyword, which is why it is being colored by the syntax highlighter.
As a workaround, to call 'end' as a method, use function call syntax:
1
2
3
4
5
6
7
functionrender(spriteBatch,dt)-- call 'begin' method using normal method syntaxspriteBatch:begin()-- look up 'end' as function, then supply object as -- first argument to call as if it is a methodspriteBatch['end'](spriteBatch)end
Last edit: James Roseborough 2015-03-14
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Exception in thread "LWJGL Application" org.luaj.vm2.LuaError: load scripts/character/character.lua: org.luaj.vm2.LuaError: scripts/character/character.lua:15: '<name>' expected
at org.luaj.vm2.LuaValue.error(Unknown Source)
at org.luaj.vm2.Globals.loadfile(Unknown Source)
at net.isuky.dawnless.luaj.LuaScript.<init>(LuaScript.java:35)
at net.isuky.dawnless.player.PlayerLuaScriptHandler.<init>(PlayerLuaScriptHandler.java:15)
at net.isuky.dawnless.player.Player.initialize(Player.java:71)
at net.isuky.dawnless.levels.Playground.initialize(Playground.java:28)
at net.isuky.dawnless.screens.PlayScreen.show(PlayScreen.java:33)
at com.badlogic.gdx.Game.setScreen(Game.java:61)
at net.isuky.dawnless.screens.control.MainMenuControl$1.clicked(MainMenuControl.java:48)
at com.badlogic.gdx.scenes.scene2d.utils.ClickListener.touchUp(ClickListener.java:89)
at com.badlogic.gdx.scenes.scene2d.InputListener.handle(InputListener.java:57)
at com.badlogic.gdx.scenes.scene2d.Stage.touchUp(Stage.java:348)
at com.badlogic.gdx.backends.lwjgl.LwjglInput.processEvents(LwjglInput.java:306)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication.mainLoop(LwjglApplication.java:200)
at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:114)
The method name 'end' is being treated as a keyword, which is why it is being colored by the syntax highlighter.
As a workaround, to call 'end' as a method, use function call syntax:
Last edit: James Roseborough 2015-03-14