[firststrike] special with apply_to=opponent crashes Wesnoth 1.16.x

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: 301
Joined: October 1st, 2016, 7:25 pm

[firststrike] special with apply_to=opponent crashes Wesnoth 1.16.x

Post by lea »

if unit with "last strike" ([firststrike] special with apply_to=opponent, on any of its attacks) is targeted by other unit for attack then Wesnoth hangs or (according to BlakerBR) crashes to desktop without writing anything to .log file

reproduces on clean install Wesnoth 1.16.2 and 1.16.0

example of workaround attached
EDIT: see newfrenchy83's suggestion below for more straightforward workaround
Attachments
special-delayed.cfg
(2.55 KiB) Downloaded 137 times
Last edited by lea on March 23rd, 2022, 6:47 am, edited 2 times in total.
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)
newfrenchy83
Code Contributor
Posts: 172
Joined: October 6th, 2017, 12:57 pm

Re: [firststrike] special with apply_to=opponent crashes Wesnoth 1.16.x

Post by newfrenchy83 »

have you addes active_on=offense for fix that?
newfrenchy83
Code Contributor
Posts: 172
Joined: October 6th, 2017, 12:57 pm

Re: [firststrike] special with apply_to=opponent crashes Wesnoth 1.16.x

Post by newfrenchy83 »

hah, in 1.16, it's not firstrike with apply_to=opponent who is used but another code pulled to opponent.
newfrenchy83
Code Contributor
Posts: 172
Joined: October 6th, 2017, 12:57 pm

Re: [firststrike] special with apply_to=opponent crashes Wesnoth 1.16.x

Post by newfrenchy83 »

lea
Posts: 301
Joined: October 1st, 2016, 7:25 pm

Re: [firststrike] special with apply_to=opponent crashes Wesnoth 1.16.x

Post by lea »

newfrenchy83 wrote: March 22nd, 2022, 7:18 pm have you addes active_on=offense for fix that?
this workaround seems to work as well and is a lot less complicated, thanks for suggestion
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)
newfrenchy83
Code Contributor
Posts: 172
Joined: October 6th, 2017, 12:57 pm

Re: [firststrike] special with apply_to=opponent crashes Wesnoth 1.16.x

Post by newfrenchy83 »

lea wrote: March 23rd, 2022, 6:45 am
newfrenchy83 wrote: March 22nd, 2022, 7:18 pm have you addes active_on=offense for fix that?
this workaround seems to work as well and is a lot less complicated, thanks for suggestion
But it's half resove the issue, this because i had pul this https://github.com/wesnoth/wesnoth/pull ... -918286954 PR for fix bug
lea
Posts: 301
Joined: October 1st, 2016, 7:25 pm

Re: [firststrike] special with apply_to=opponent crashes Wesnoth 1.16.x

Post by lea »

newfrenchy83 wrote: March 23rd, 2022, 2:06 pm But it's half resove the issue, this because i had pul this https://github.com/wesnoth/wesnoth/pull ... -918286954 PR for fix bug
is it going to be included in upcoming wesnoth 1.16.3?
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)
newfrenchy83
Code Contributor
Posts: 172
Joined: October 6th, 2017, 12:57 pm

Re: [firststrike] special with apply_to=opponent crashes Wesnoth 1.16.x

Post by newfrenchy83 »

lea wrote: March 23rd, 2022, 3:40 pm
newfrenchy83 wrote: March 23rd, 2022, 2:06 pm But it's half resove the issue, this because i had pul this https://github.com/wesnoth/wesnoth/pull ... -918286954 PR for fix bug
is it going to be included in upcoming wesnoth 1.16.3?
i don't know, but i want other thing, if two user of laststrike fight themselves, who give firststrike, the attacker or the defender?
lea
Posts: 301
Joined: October 1st, 2016, 7:25 pm

Re: [firststrike] special with apply_to=opponent crashes Wesnoth 1.16.x

Post by lea »

newfrenchy83 wrote: March 23rd, 2022, 3:43 pm i don't know, but i want other thing, if two user of laststrike fight themselves, who give firststrike, the attacker or the defender?
indeed, have to filter it out like this:

Code: Select all

        [filter_opponent]
            [filter_weapon]
                [not]
                    special=delayed
                [/not]
            [/filter_weapon]
        [/filter_opponent]
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)
newfrenchy83
Code Contributor
Posts: 172
Joined: October 6th, 2017, 12:57 pm

Re: [firststrike] special with apply_to=opponent crashes Wesnoth 1.16.x

Post by newfrenchy83 »

craches fixed for 1.16.3 version
lea
Posts: 301
Joined: October 1st, 2016, 7:25 pm

Re: [firststrike] special with apply_to=opponent crashes Wesnoth 1.16.x

Post by lea »

newfrenchy83 wrote: April 5th, 2022, 9:59 pm craches fixed for 1.16.3 version
when will it be released?
https://www.wesnoth.org/ still offers 1.16.2 for download
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)
newfrenchy83
Code Contributor
Posts: 172
Joined: October 6th, 2017, 12:57 pm

Re: [firststrike] special with apply_to=opponent crashes Wesnoth 1.16.x

Post by newfrenchy83 »

i don't know
User avatar
Lord-Knightmare
Discord Moderator
Posts: 2364
Joined: May 24th, 2010, 5:26 pm
Location: Somewhere in the depths of Irdya, gathering my army to eventually destroy the known world.
Contact:

Re: [firststrike] special with apply_to=opponent crashes Wesnoth 1.16.x

Post by Lord-Knightmare »

lea wrote: April 6th, 2022, 6:40 am
newfrenchy83 wrote: April 5th, 2022, 9:59 pm craches fixed for 1.16.3 version
when will it be released?
https://www.wesnoth.org/ still offers 1.16.2 for download
Not sure. Maybe 17/04/22.
Creator of "War of Legends"
Creator of the Isle of Mists survival scenario.
Maintainer of Forward They Cried
User:Knyghtmare | My Medium
User avatar
octalot
General Code Maintainer
Posts: 786
Joined: July 17th, 2010, 7:40 pm
Location: Austria

Re: [firststrike] special with apply_to=opponent crashes Wesnoth 1.16.x

Post by octalot »

1.16.3 is scheduled for release on 8th May, and 1.17.3 is scheduled for release tonight.
Post Reply