Custom Rules Vanish Attack Range Overlays in Latest Format?

Information and discussion for custom maps and mods.
Post Reply
User avatar
ACM
Posts: 30
Joined: Sun Nov 15, 2015 5:54 am
Location: Suffolk

Custom Rules Vanish Attack Range Overlays in Latest Format?

Post by ACM »

So this came about from working on a map for TD and wishing to add a custom ambiance to it. I was able to do this easily enough under the previous format by copying the .yaml file strings of other maps and tinkering with them.

However under the new format, I have noticed during map testing that defence structures when placing them do not reveal their attack range overlays. This is only the case when you are trying to place them down though—not once they are built and you can select them—but not being able to see how far your defences will shoot while trying to place them is off-putting. The only reason this is happening is because I tinkered with the rules, because when I erase the changes the issue doesn't occur.

It doesn't matter how I string my .yaml files to include:

Code: Select all

Rules:
	World:
		GlobalLightingPaletteEffect:
			Red: (etc.)
			Green: (etc.)
			Blue: (etc.)
			Ambient: (etc.)
....or:

Code: Select all

Rules: rules.yaml

Code: Select all

World:
	GlobalLightingPaletteEffect:
		Red: (etc.)
		Green: (etc.)
		Blue: (etc.)
		Ambient: (etc.)
...the same issue arises. So I don't know what's up. Am I missing another parameter which allows structure attack range overlays to be rendered visible while placing again, or something? Please let me know. Mind you, I know dick about scripting for OpenRA, and only know what little I know through copying the strings of others' .yaml files. Thank you.
Attachments
rangeoverlaypalette2016-05-24t20-20-10.png
rangeoverlaypalette2016-05-24t20-20-10.png (50.86 KiB) Viewed 2753 times

User avatar
ACM
Posts: 30
Joined: Sun Nov 15, 2015 5:54 am
Location: Suffolk

Post by ACM »

Alright, so thanks to Marn talking me through this I was able to replicate the range overlays missing during transition, and came up with this set of parameters for whenever I need to restore overlay visibility to stock levels for a TD map:

Code: Select all

GUN:
	WithRangeCircle:
		Color: FFFF0080
		Range: 6c0

SAM:
	WithRangeCircle:
		Color: FFFF0080
		Range: 8c0

OBLI:
	WithRangeCircle:
		Color: FFFF0080
		Range: 7c512

GTWR:
	WithRangeCircle:
		Color: FFFF0080
		Range: 6c0

ATWR:
	WithRangeCircle:
		Color: FFFF0080
		Range: 8c0
...but since I am at it I am thinking of going the extra mile in terms of overlay visibility for my maps, with these extra parameters:

Code: Select all

HQ:
	WithRangeCircle@DETECT:
		Type: detect
		Color: 32CD3280
		Range: 5c0

EYE:
	WithRangeCircle@DETECT:
		Type: detect
		Color: 32CD3280
		Range: 5c0

GUN:
	WithRangeCircle@ATTACK:
		Type: attack
		Color: FFFF0080
		Range: 6c0
	WithRangeCircle@DETECT:
		Type: detect
		Color: 32CD3280
		Range: 3c0

SAM:
	WithRangeCircle@ATTACK:
		Type: attack
		Color: FFFF0080
		Range: 8c0

OBLI:
	WithRangeCircle@ATTACK:
		Type: attack
		Color: FFFF0080
		Range: 7c512
	WithRangeCircle@DETECT:
		Type: detect
		Color: 32CD3280
		Range: 5c0

GTWR:
	WithRangeCircle@ATTACK:
		Type: attack
		Color: FFFF0080
		Range: 6c0
	WithRangeCircle@DETECT:
		Type: detect
		Color: 32CD3280
		Range: 3c0

ATWR:
	WithRangeCircle@ATTACK:
		Type: attack
		Color: FFFF0080
		Range: 8c0
	WithRangeCircle@DETECT:
		Type: detect
		Color: 32CD3280
		Range: 5c0
Attachments
detectionoverlay2016-05-25t04-11-20.png
detectionoverlay2016-05-25t04-11-20.png (53.81 KiB) Viewed 2727 times

Post Reply