Player Alliance Color

Place to get help with not working mods / modding interface.
Post Reply
XaLpHa89
Fast Inserter
Fast Inserter
Posts: 119
Joined: Wed Jan 24, 2018 6:59 am
Contact:

Player Alliance Color

Post by XaLpHa89 »

I would like to build a button that colors units in appropriate alliance colors. Each player should decide the color settings for himself. In my current opinion, I can only change the representation of a color globally.

Anyone have an idea how I could realize it or is something more development needed from the developers?
.
20210718185238_1.jpg
20210718185238_1.jpg (287.96 KiB) Viewed 1348 times
20210718185352_1.jpg
20210718185352_1.jpg (281.99 KiB) Viewed 1348 times

Koub
Global Moderator
Global Moderator
Posts: 7203
Joined: Fri May 30, 2014 8:54 am
Contact:

Re: Player Alliance Color

Post by Koub »

[Koub] Moving this to modding help. If it comes out that it's currently not doable, I'll move it to modding interface requests.
Koub - Please consider English is not my native language.

XaLpHa89
Fast Inserter
Fast Inserter
Posts: 119
Joined: Wed Jan 24, 2018 6:59 am
Contact:

Re: Player Alliance Color

Post by XaLpHa89 »

Koub wrote:
Mon Jul 19, 2021 5:29 am
[Koub] Moving this to modding help. If it comes out that it's currently not doable, I'll move it to modding interface requests.
Status?

User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3700
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: Player Alliance Color

Post by DaveMcW »

This is barely possible with the current modding tools. But it involves a lot of work.

It is completely impossible for a no-mod scenario.

You need to define a limited number of color schemes. Then duplicate every entity in the game for each color scheme. Then override all the build events so the default entity is transformed into the correct color entity.

Good news: You can use tint so you don't need to duplicate any graphics assets.
Bad news: Some tints will look horrible so you will want to edit the graphics anyway.

User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5206
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: Player Alliance Color

Post by eradicator »

DaveMcW wrote:
Fri Aug 06, 2021 9:45 pm
This is barely possible with the current modding tools. But it involves a lot of work.
I think @OP wants RTS style team-relative colors. Aka Player1 sees their enemies as "red", while Player2 might want to see their enemies as "blue". This would require the same entity to be of a different color dependant on who's looking at it. This isn't possible at all.
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.

Post Reply

Return to “Modding help”