odd movement attribute deprecated

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
User avatar
Gwledig
Posts: 569
Joined: March 30th, 2009, 5:10 pm
Location: UK

odd movement attribute deprecated

Post by Gwledig »

Yet another common feature of WML appears to be deprecated

Code: Select all

 warning unit: Unknown attribute 'movement' discarded.
The only place I have movement as an attribute is when I create units on the fly in [unit] then modify existing unit type e.g.

Code: Select all

[effect]
apply_to=movement
set=5
[/effect]
The odd thing is this seems to still be part of [effect]
movement: modifies the unit's movement points.
increase: maximum movement is increased by this amount. It can be positive, negative, or specified as a percentage.
set: maximum movement is set to a specific value.
https://wiki.wesnoth.org/Effectwml

Just wondering if anyone knows what is going on here? I do have movement= in some original spawning units but the above does say it's an attribute so I assume this is to do with my on the fly unit menus and [effect]....
Maintainer of Conquest (Original Gameplay), Conquest+, Conquest+ Space/Ranged, Chaoz Battle of the Wizards, Lazersquad (squad game), WesCraft (building MP game)
User avatar
Ravana
Forum Moderator
Posts: 3002
Joined: January 29th, 2012, 12:49 am
Location: Estonia
Contact:

Re: odd movement attribute deprecated

Post by Ravana »

This is not attribute. Attribute would be movement=something.
User avatar
Gwledig
Posts: 569
Joined: March 30th, 2009, 5:10 pm
Location: UK

Re: odd movement attribute deprecated

Post by Gwledig »

I hashed # out all 'movement=' instances but still got the same report in the log...
Maintainer of Conquest (Original Gameplay), Conquest+, Conquest+ Space/Ranged, Chaoz Battle of the Wizards, Lazersquad (squad game), WesCraft (building MP game)
User avatar
Ravana
Forum Moderator
Posts: 3002
Joined: January 29th, 2012, 12:49 am
Location: Estonia
Contact:

Re: odd movement attribute deprecated

Post by Ravana »

Then you try to assign something to that attribute in some other way. This warning is based on https://github.com/wesnoth/wesnoth/blob ... it.cpp#L95 list.
Post Reply