2 issues about unitdef resource tags

2 issues about unitdef resource tags

Discuss game development here, from a distinct game project to an accessible third-party mutator, down to the interaction and design of individual units if you like.

Moderator: Moderators

Post Reply
User avatar
code_man
Posts: 260
Joined: 19 Jan 2014, 13:10

2 issues about unitdef resource tags

Post by code_man »

I noticed that extractsMetal doesnt work unless yardmap is explictly provided.
Now im a bit new to spring and am not sure if this isnt a glitch, so i didnt report it on the bug tracker, tough it seems like one.
Unless there is a reason for this that im not aware of. I thought i should let people know of this and ask if i should next time just put it up right on the bug tracker.

Also makesMetal tag seems to be completly redundant give you could use metalMake and energyMake.
Again i wasnt sure if i should have put this in "engine requests instead", i mean this is a kinda stupid tag.
Then again the wiki could have not mentioned something, wouldnt be the first time.

I hope im not comming across as a bother, but i just thought i should let people know about this, wasnt sure where else to put this.
User avatar
Beherith
Posts: 5145
Joined: 26 Oct 2007, 16:21

Re: 2 issues about unitdef resource tags

Post by Beherith »

A yardmap one of the things that makes a unit a building. Might be needed to extract metal (afaik only buildings can extract M).

float metalMake Default: 0.0
The amount of the metal resource the unit generates unconditionally per game 'tick'.

VS

float makesMetal Default: 0.0
The amount of the energy resource the unit turns into the metal resource per game 'tick'.
User avatar
code_man
Posts: 260
Joined: 19 Jan 2014, 13:10

Re: 2 issues about unitdef resource tags

Post by code_man »

Hmm, yes this connection does make sense now that you say it. Tough i assumed a unit is distingushed by a structure by its ability to canMove and not its yardmap, while the yardmap would be defaulted to "o" * footprintx * footprintz.

Ah ok i see how things relate now, il try to pay better attention to texts next time.
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6242
Joined: 29 Apr 2005, 01:14

Re: 2 issues about unitdef resource tags

Post by FLOZi »

Indeed yardmap defines a structure (canMove determines mobile or immobile - you can have immobile 'units' that are not structures) and only structures can be extractors.
Post Reply

Return to “Game Development”