bugBattle for Wesnoth - Bugs: bug #22162, strange warnings in console about...

Show feedback again

bug #22162: strange warnings in console about unit attributes

Submitted by:  Chris Beck <involution>
Submitted on:  Sun Jun 8 16:43:34 2014  
Category: BugSeverity: 2 - Minor
Priority: 4Item Group: Campaign
Status: FixedPrivacy: Public
Assigned to: Andrius Silinskas <thunderstruck>Open/Closed: Closed
Release: 1.13.0-devOperating System: Linux Mint 16

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

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


(Jump to the original submission Jump to the original submission)

Tue Feb 23 11:24:05 2016, comment #6:

no_recruit warning fixed in 61740fe3c0b6534229d68cf6f0c6f5c495671480.

Charles Dang <vultraz>
Project Administrator
Tue Nov 4 17:57:14 2014, comment #5:

The "persistence" is fixed in LoW.

Thus only the "no_recruit" is still to be fixed.

Fabian Müller <fendrin>
Project Member
Sun Jul 13 14:06:33 2014, comment #4:

i think neigher units nor sides have a 'persistence' attribute, so most lakike in this case the the error message shows exactly what teh error is: someone used an unknown attribute 'persistence' somewhere.

Tue Jul 1 16:32:56 2014, comment #3:

Or maybe it's just supposed to go in here?

Chris Beck <involution>
Project Member
Tue Jul 1 14:53:37 2014, comment #2:

I think the no_recruit part of this bug is from a flag of team used only internally by the FLG manager:

$ grep "no_recruit" -r src/
src/flg_manager.hpp: const bool has_no_recruits_;
src/flg_manager.cpp: has_no_recruits_(
src/flg_manager.cpp: side_["no_recruit"].to_bool()) &&
src/flg_manager.cpp: has_no_recruits_) {
src/flg_manager.cpp: if ((!side_["faction"].empty() || !has_no_recruits_) && faction_lock_) {
src/flg_manager.cpp: if (!has_no_recruits_) {
src/multiplayer_connect_engine.cpp: res["no_recruit"] = true;

I don't know what the purpose of this attribute is, but I think either it should be added to team.cpp in this list:

and perhaps made accessible to WML / savefiles, or it should be stripped out of the team config when the mp connect finishes. These little warnings are somewhat distracting if you are trying to debug something.

I don't know about the persistence part but I'd like to assign this part to thunderstruck if that's okay.

Chris Beck <involution>
Project Member
Mon Jun 9 22:43:24 2014, comment #1:

i noticed this too.

Daniel <gfgtdf>
Project Member
Sun Jun 8 16:43:34 2014, original submission:

I seem to get both of these in large numbers in any LoW scenario, maybe others, I have not tested extensively:

20140608 12:41:36 warning unit: Unknown attribute 'no_recruit' discarded.
20140608 12:41:36 warning unit: Unknown attribute 'persistence' discarded.

Chris Beck <involution>
Project Member


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

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by vultraz (Posted a comment)
  • -unavailable- added by fendrin (Posted a comment)
  • -unavailable- added by gfgtdf (Posted a comment)
  • -unavailable- added by involution (Submitted the item)

    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 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat Mar 5 13:11:19 2016vultrazOpen/ClosedOpen=>Closed
    Tue Feb 23 11:24:05 2016vultrazStatusConfirmed=>Fixed
    Tue Jul 1 14:53:36 2014involutionAssigned toNone=>thunderstruck
    Mon Jun 9 22:43:24 2014gfgtdfStatusNone=>Confirmed
    Show feedback again

    Back to the top

    Powered by Savane 3.1-cleanup