What does this error message mean?

Discussion of Lua and LuaWML support, development, and ideas.

Moderator: Forum Moderators

Post Reply
User avatar
Adamant14
Posts: 962
Joined: April 24th, 2010, 1:14 pm

What does this error message mean?

Post by Adamant14 »

This is a game-crashing error.
The game quits back to desktop.

Code: Select all

20161202 21:16:24 error scripting/lua: lua/wml-tags.lua:1027: bad argument #1 to 'create_unit' (WML table expected, got number)
stack traceback:
	[C]: in field 'create_unit'
	lua/wml-tags.lua:1027: in local 'cmd'
	lua/wml-utils.lua:137: in field 'handle_event_commands'
	lua/wml-flow.lua:6: in function <lua/wml-flow.lua:5>
20161202 21:16:29 warning engine: Could not find move_unit_fake route from 14,14 to 8,16: ignoring complexities
20161202 21:16:29 error scripting/lua: game_error: creating unit with an empty type field
stack traceback:
	[C]: in field 'create_unit'
	lua/wml-tags.lua:1027: in local 'cmd'
	lua/wml-utils.lua:137: in field 'handle_event_commands'
	lua/wml-flow.lua:6: in function <lua/wml-flow.lua:5>
20161202 21:30:11 error scripting/lua: lua/wml-tags.lua:1027: bad argument #1 to 'create_unit' (WML table expected, got number)
stack traceback:
	[C]: in field 'create_unit'
	lua/wml-tags.lua:1027: in local 'cmd'
	lua/wml-utils.lua:137: in field 'handle_event_commands'
	lua/wml-flow.lua:6: in function <lua/wml-flow.lua:5>
20161202 21:30:15 warning engine: Could not find move_unit_fake route from 14,14 to 8,16: ignoring complexities
20161202 21:30:16 error scripting/lua: game_error: creating unit with an empty type field
stack traceback:
	[C]: in field 'create_unit'
	lua/wml-tags.lua:1027: in local 'cmd'
	lua/wml-utils.lua:137: in field 'handle_event_commands'
	lua/wml-flow.lua:6: in function <lua/wml-flow.lua:5>
I am on Windows 10, using BfW 1.13.6
The code of that scenario did work on BfW 1.12, but seems not to work on BfW 1.13
Author of Antar, Son of Rheor ( SP Campaign) | Development Thread + Feedback Thread + Replays of ASoR
gfgtdf
Developer
Posts: 1432
Joined: February 10th, 2013, 2:25 pm

Re: What does this error message mean?

Post by gfgtdf »

this error menas that an invalid variable= was given in [unstore_unit] (the variable= pointed to a number attribute instead of a wml node)
Scenario with Robots SP scenario (1.11/1.12), allows you to build your units with components, PYR No preperation turn 1.12 mp-mod that allows you to select your units immideately after the game begins.
Post Reply