repreated errors in line 67 of ai/lua/retreat.lua mainline script (BfW 1.16.2/1.16.3)

Having trouble with the game? Report issues and get help here. Read this first!

Moderator: Forum Moderators

Forum rules
Before reporting issues in this section, you must read the following topic:
Post Reply
lea
Posts: 300
Joined: October 1st, 2016, 7:25 pm

repreated errors in line 67 of ai/lua/retreat.lua mainline script (BfW 1.16.2/1.16.3)

Post by lea »

after fairly long game under I started to get several <Lua error> messages (see attached screenshot and zipped log file) every turn when some AI sides take their turn

happens only under Wesnoth 1.16.x (including 1.16.3), does not happen under Wesnoth 1.14.x and earlier (tested on windows 10)

can be reliably reproduced from attached savegame (requires Altera 0.8.0 UMC to be installed) by ending player's turn immediately after loading it and waiting for several seconds
initially happened under Wesnoth 1.16.2, also reproduces when loaded under 1.16.3
could not find any other way to reproduce it
Attachments
lua error.png
wesnoth-20220410-093724-337.zip
(35.62 KiB) Downloaded 26 times
Altera Vast Random map Turn 51.gz
(492.56 KiB) Downloaded 29 times
author of: Altered Era/Ruleset (AKA "Altera"), latest version is on add-ons servers for BfW 1.16 and 1.14, latest version also still supports BfW 1.12 and 1.10, 1.10 server is stuck with older buggy version)
mattsc
Inactive Developer
Posts: 1217
Joined: October 13th, 2010, 6:14 pm

Re: repreated errors in line 67 of ai/lua/retreat.lua mainline script (BfW 1.16.2/1.16.3)

Post by mattsc »

Thanks for reporting and providing a test case. The error is triggered by your regeneration ability "siccating", which does not have a value= key since it only heals poison, while the AI's retreat action expects there to be one. That's a problem with the AI, as far as I know this is not a required key and it should be able to deal with that. I'll have this fixed for Wesnoth 1.16.4, but in the meantime this also means that there is an easy work-around for you, by simply adding value=0 to that ability.
lea
Posts: 300
Joined: October 1st, 2016, 7:25 pm

Re: repreated errors in line 67 of ai/lua/retreat.lua mainline script (BfW 1.16.2/1.16.3)

Post by lea »

mattsc wrote: June 22nd, 2022, 7:00 pm... ... ... I'll have this fixed for Wesnoth 1.16.4, but in the meantime this also means that there is an easy work-around for you, by simply adding value=0 to that ability.
thanks, will add this workaround in next version of Altera (0.8.1)
author of: Altered Era/Ruleset (AKA "Altera"), latest version is on add-ons servers for BfW 1.16 and 1.14, latest version also still supports BfW 1.12 and 1.10, 1.10 server is stuck with older buggy version)
Post Reply