Page 1 of 1

Custom palette?

Posted: Thu Aug 16, 2012 6:43 pm
by secret
Out of curiosity, can the palette of a mod be replaced or is it hardcoded in some way?

E.g. I'd like to use the RA2 palette in this game (and implement RA2/YR buildings/units.).

Posted: Thu Aug 16, 2012 8:05 pm
by Matt
https://github.com/OpenRA/OpenRA/wiki/P ... and-Remaps has some slightly outdated information. If you have a look at https://github.com/OpenRA/OpenRA/blob/b ... ystem.yaml you may notice that I made the RemapIndex: configurable. http://openra-modding.tumblr.com/ has some tutorials, but you can skip the part where the RA1 team coloring is applied now.

Posted: Fri Aug 17, 2012 7:26 am
by secret
On the Tumblr page I've seen some particular details on how to convert, but I've seen in that system.yaml file a line where it wrote

Code: Select all

RemapIndex: 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95
Curious about it, since RA2/YR palettes also are "numbered", maybe I can replace them with the ones in YR or will they cause bugs?

Posted: Fri Aug 17, 2012 9:07 am
by Matt
I did this when fixing some Dune 2000 issues. You have to try if this also helps you with RA2 SHPs. However the format might be different. https://github.com/katzsmile/OpenRA has some code and a preview at http://www.youtube.com/watch?v=IzPWJYWtV_c