What does this error message mean?

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

Moderators: Forum Moderators, Developers

What does this error message mean?

Postby Adamant14 » December 2nd, 2016, 8:46 pm

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


Please add your (or some other) campaign to this sites: Guide to UMC Campaigns | Players' Review(s) | Please leave a comment here: WML filtering , WML variables
User avatar
Adamant14
 
Posts: 763
Joined: April 24th, 2010, 1:14 pm

Re: What does this error message mean?

Postby gfgtdf » December 2nd, 2016, 9:17 pm

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.
gfgtdf
Developer
 
Posts: 910
Joined: February 10th, 2013, 2:25 pm


Return to Lua Labs

Who is online

Users browsing this forum: No registered users and 2 guests