firestandorders, mobilestandorders, standingfireorder, standingmoveorder Not Documented?

firestandorders, mobilestandorders, standingfireorder, standingmoveorder Not Documented?

Various things about Spring that do not fit in any of the other forums listed below, including forum rules.

Moderator: Moderators

Post Reply
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

firestandorders, mobilestandorders, standingfireorder, standingmoveorder Not Documented?

Post by Forboding Angel »

I can't seem to find these anywhere in the wiki. Can someone else confirm?
User avatar
Silentwings
Posts: 3720
Joined: 25 Oct 2008, 00:23

Re: firestandorders, mobilestandorders, standingfireorder, standingmoveorder Not Documented?

Post by Silentwings »

What are they?

(A search of the wiki and the engine source reveals nothing...)
User avatar
nixtux
TechA Developer
Posts: 100
Joined: 01 Mar 2009, 15:36

Re: firestandorders, mobilestandorders, standingfireorder, standingmoveorder Not Documented?

Post by nixtux »

Deprecated / renamed or never added TA'ism
Last edited by nixtux on 14 Jun 2016, 20:11, edited 1 time in total.
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Re: firestandorders, mobilestandorders, standingfireorder, standingmoveorder Not Documented?

Post by zwzsg »

Aren't they the Hold Fire / Return Fire / Fire at will and Stand Still / Maneuver / Roam tristate buttons?

But yeah, not sure it was ever implemented.
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6241
Joined: 29 Apr 2005, 01:14

Re: firestandorders, mobilestandorders, standingfireorder, standingmoveorder Not Documented?

Post by FLOZi »

In OTA the Standing* functions set the initial value, and the *orders tags enable and disable the button.

In Spring the former are renamed to:

https://springrts.com/wiki/Gamedev:Unit ... :fireState

https://springrts.com/wiki/Gamedev:Unit ... :moveState


They are in the https://springrts.com/wiki/Gamedev:UnitDefs#Commands subsection

If you wish to replicate the behaviour of the latter tags and remove the button altogether, this is easily done with lua e.g.

Code: Select all

local toRemove = {CMD.FIRE_STATE, CMD.MOVE_STATE}
for _, cmdID in pairs(toRemove) do
local cmdDescID = Spring.FindUnitCmdDesc(unitID, cmdID)
Spring.RemoveUnitCmdDesc(unitID, cmdDescID)
end
You might also try the '-1' value for the other tags but I'm not sure on that, and it has other effects as documented in the wiki.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: firestandorders, mobilestandorders, standingfireorder, standingmoveorder Not Documented?

Post by Forboding Angel »

zwzsg wrote:Aren't they the Hold Fire / Return Fire / Fire at will and Stand Still / Maneuver / Roam tristate buttons?

But yeah, not sure it was ever implemented.
Yes they are, and the tags work properly. That's why I was wondering why there was no documentation.

EDIT: OMGEEE CODEBOX EXTENSION, @abma I LURVE YOUUU!
User avatar
Silentwings
Posts: 3720
Joined: 25 Oct 2008, 00:23

Re: firestandorders, mobilestandorders, standingfireorder, standingmoveorder Not Documented?

Post by Silentwings »

the tags work properly
Springs differently named versions of them do (as in FLOZi's post) but the tags you've named in the title of this thread don't exist.

There are STANDINGMOVEORDERS and STANDINGFIREORDERS (plural...) which turn out to be COB constants https://springrts.com/wiki/Lua_ConstCOB. The two *STANDORDERS seem not to exist anywhere.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: firestandorders, mobilestandorders, standingfireorder, standingmoveorder Not Documented?

Post by Forboding Angel »

For anyone looking for a "replacement" for these tags, check out "firestate" and "movestate" in the wiki.
Post Reply

Return to “General Discussion”