Unit production per factory ?

just want to know where are this code.

Information and discussion for custom maps and mods.
Post Reply
Holy_Master
Posts: 62
Joined: Fri Nov 21, 2003 10:04 am

Unit production per factory ?

Post by Holy_Master »

Hi

I try to learn which code doing in Openra by modding exist game with little change just to see how it work, I want to apply unit production per factory feature from TD to Dune2k mod but i don't know where to work on these function.

it would be grateful if you can tell me how to do it or at least where to look on it. :\

thank you

abcdefg30
Posts: 643
Joined: Mon Aug 18, 2014 6:00 pm

Post by abcdefg30 »

A look at https://github.com/OpenRA/OpenRA/wiki/T ... ctionqueue should help.


The yamls:

You have in d2k:
https://github.com/OpenRA/OpenRA/blob/b ... er.yaml#L3

And in cnc e.g. this:
https://github.com/OpenRA/OpenRA/blob/b ... s.yaml#L28
or this:
https://github.com/OpenRA/OpenRA/blob/b ... .yaml#L238

(I think, you need this on every structure that produces something.)

Holy_Master
Posts: 62
Joined: Fri Nov 21, 2003 10:04 am

Post by Holy_Master »

thank you for your answer all those link help me understand alot

but sorry to ask again but do i need to put every sub code of such as Type , Group , RequireOwner,BuildSpeed,ect

in order to make ProductionQueue@ work on structures.yaml?

because i put only ProductionQueue@#####: to the code but the game didn't start for me,

from what i seen TD and D2K code management is quite different while TD use separate code per factions but D2K all factions seem to share everything on same code.

abcdefg30
Posts: 643
Joined: Mon Aug 18, 2014 6:00 pm

Post by abcdefg30 »

Did you use the "Production" trait?
ProductionQueue... will only work together with the Production: trait.

Holy_Master
Posts: 62
Joined: Fri Nov 21, 2003 10:04 am

Post by Holy_Master »

*Edit* seem like i understand now thank you.. look like it will be ton of work on these production code just to make it support this feature. = =

Post Reply