error engine: Formula in WML string cannot be evaluated ...

The place to post your WML questions and answers.

Moderator: Forum Moderators

Forum rules
  • Please use [code] BBCode tags in your posts for embedding WML snippets.
  • To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
Post Reply
white_haired_uncle
Posts: 1207
Joined: August 26th, 2018, 11:46 pm
Location: A country place, far outside the Wire

error engine: Formula in WML string cannot be evaluated ...

Post by white_haired_uncle »

Realizing I'd forgotten something, I restarted my turn. For just an instant an Image Not Found blinked into life, then all went according to plan. I found these in the log. I'm wondering if anyone can give me a clue where to start looking, either from the message or where it occurs in context.

I'd also love to eliminate those 'failed to auto-store' and 'libpng warning' messages, they show up all over the place, but that's perhaps another day.

Code: Select all

20240308 14:19:27 error engine: failed to auto-store $unit at (0,0)
20240308 14:19:27 error engine: failed to auto-store $unit at (0,0)
20240308 14:19:27 error engine: failed to auto-store $unit at (0,0)
20240308 14:19:27 error engine: failed to auto-store $unit at (0,0)
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
20240308 14:19:48 error engine: Formula in WML string cannot be evaluated due to Expected another token
        --> "
20240308 14:19:48 error engine: Formula in WML string cannot be evaluated due to Expected another token
        --> "
libpng warning: iCCP: known incorrect sRGB profile
20240308 14:20:18 info scripting/lua: starting to read from /opt/wesnoth-1.19-git/share/wesnoth/data/lua/package.lua
20240308 14:20:18 debug scripting/lua: require: loaded a file, now calling it
20240308 14:20:18 info scripting/lua: starting to read from /opt/wesnoth-1.19-git/share/wesnoth/data/lua/ilua.lua
20240308 14:20:18 info scripting/lua: starting to read from /opt/wesnoth-1.19-git/share/wesnoth/data/lua/core/_initial.lua
20240308 14:20:18 debug scripting/lua: intf_print called:
20240308 14:20:18 debug scripting/lua: 'Loading Lua core files...'
20240308 14:20:18 debug scripting/lua:
Speak softly, and carry Doombringer.
User avatar
Ravana
Forum Moderator
Posts: 3015
Joined: January 29th, 2012, 12:49 am
Location: Estonia
Contact:

Re: error engine: Formula in WML string cannot be evaluated ...

Post by Ravana »

$unit is reserved variable name, you should not use it outside unit-related events, and not store anything new into it.
Post Reply