bugBattle for Wesnoth - Bugs: bug #20605, lua error after ending turn

Show feedback again

bug #20605: lua error after ending turn

Submitted by:  None
Submitted on:  Sun Mar 10 04:01:23 2013  
Category: BugSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Artificial Intelligence
Status: FixedPrivacy: Public
Assigned to: Matthias Schoeck <mattsc>Originator Email: -unavailable-
Open/Closed: ClosedRelease: 1.11.1
Operating System: Windows 7x64

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

Please log in, so followups can be emailed to you.


Tue Sep 3 02:27:15 2013, comment #5:

I just tried a game of Experimental AI vs. Experimental AI on Weldyn Channel and got no error messages. So I assume that this is an old bug that was already fixed elsewhere.

As for the second problem, without additional information I also have to assume that it is fixed (as per the link I provided previously).

I'll mark this as "Fixed" and will close the report in a few days if no remaining problems are reported.

Matthias Schoeck <mattsc>
Project MemberIn charge of this item.
Fri Jul 26 16:22:35 2013, comment #4:

You did not say under which circumstances this occurred, but based on the message, I assume that it was when you tried to use the Experimental AI with a non-mainline faction? If so, this is likely the same error as reported in this thread
which was due to a bug in the Experimental AI. It's fixed in 1.11.5.

Matthias Schoeck <mattsc>
Project MemberIn charge of this item.
Fri Jul 26 15:34:06 2013, comment #3:


I need help with...

Lua error - or 1.11.2/data/ai/lua/generic-recruit_engine.lua:145
attempt to perform arithmetic on field 'multiply'(a nil
value) stack traceback:
or 1.11.2/data/ai/lua/generic-recruit_engine.lua:145
in faction 'get_best_attack'
or 1.11.2/data/ai/lua/generic-recruit_engine.lua:235
in faction 'analyze_enemy_unit'
or 1.11.2/data/ai/lua/generic-recruit_engine.lua:427
in faction <or 1.11.2/data/ai/lua/
generic-recruit_engine .lua:399>
(...tail calls...)
"]:1:in main chunk


Arnold Brits <arnold>
Mon Mar 11 00:54:05 2013, comment #2:

Hi. My guess is that the problem is with your code rather than with Wesnoth itself (the latter being what this bug tracker is about), but you need to provide more information (e.g. your code) in order for us to be certain about that. Most likely, the Wesnoth forums or IRC channels are a better audience for getting feedback on this, until we are sure that this really is a bug in Wesnoth itself.

Matthias Schoeck <mattsc>
Project MemberIn charge of this item.
Sun Mar 10 04:04:43 2013, comment #1:

The map was Weldyn Channel.

Sun Mar 10 04:01:23 2013, original submission:

I created a game with a single experimental ai. After ending my first turn I got all these lua errors. See the screenshot.



(Note: upload size limit is set to 1024 kB, after insertion of the required escape characters.)

Attach File(s):

Attached Files
file #17417:  lua error.png added by None (529kB - image/png)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by arnold (Posted a comment)
  • -unavailable- added by shadowmaster (Updated the item)
  • -unavailable- added by mattsc (Posted a comment)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Error: not logged in



    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue Sep 3 02:27:15 2013mattscStatusNeed Info=>Fixed
    Thu Jun 27 10:06:42 2013shadowmasterOpen/ClosedOpen=>Closed
    Mon Mar 11 00:55:29 2013mattscStatusNone=>Need Info
      Assigned toNone=>mattsc
    Sun Mar 10 04:03:29 2013NoneAttached File-=>Added lua error.png, #17417
    Show feedback again

    Back to the top

    Powered by Savane 3.1-cleanup