Decreasing power requirements

Information and discussion for custom maps and mods.
abcdefg30
Posts: 641
Joined: Mon Aug 18, 2014 6:00 pm

Post by abcdefg30 »

Blackened wrote: The modified repair facility won't allow units on to be repaired. Do you know how I would go about doing that?
You need to adjust the "Repairable" trait on the units: https://github.com/OpenRA/OpenRA/wiki/Traits#repairable (You want to add your modified repair pad to "RepairBuildings".
For air units you need to change "RepairBuildings" on "Aircraft": https://github.com/OpenRA/OpenRA/wiki/Traits#aircraft )

User avatar
Blackened
Posts: 347
Joined: Sat May 21, 2016 6:27 pm

Post by Blackened »

I have to add that to every vehicle/aircraft? It seems none of them have that trait.

User avatar
Graion Dilach
Posts: 277
Joined: Fri May 15, 2015 5:57 pm

Post by Graion Dilach »

They do have that trait. It's just inherited. You can override them on inherited level though.
Image
Image
Image
AS Discord server: https://discord.gg/7aM7Hm2

User avatar
Blackened
Posts: 347
Joined: Sat May 21, 2016 6:27 pm

Post by Blackened »

Where would I go about doing that?

Edit: Never mind I figured it out. Thanks for all the support!

User avatar
raymundo
Posts: 117
Joined: Mon Mar 30, 2015 10:39 am

Post by raymundo »

What software are you using to edit?

It is very important to properly indent lines, check spacing, and case!

I recommend Notepad + +, but Ive also tried things like text wrangler and i'm sure others have other recommendations...

fernoe
Posts: 32
Joined: Sat Sep 24, 2005 10:21 pm

Post by fernoe »

Wouldn't it be better to code it like this

FIX2
Inherits: FIX

?

instead of copy-pasting out the entire set of rules for FIX

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

Post by abcdefg30 »

fernoe wrote: Wouldn't it be better to code it like this

FIX2
Inherits: FIX

?

instead of copy-pasting out the entire set of rules for FIX
Actually yes. I think that is what GraionDilach suggested orginally: http://www.sleipnirstuff.com/forum/view ... 195#296195

But hey, the main thing is that the yaml is working, right? :)

Post Reply