Changing team colours?

Talk about your new mod or map here

Moderators: bert_the_turtle, jelco

lordofjesterds
level1
level1
Posts: 11
Joined: Sun Feb 26, 2006 9:38 pm

Changing team colours?

Postby lordofjesterds » Sun Feb 26, 2006 9:45 pm

Hi, this is my first here, so I hope I don't end up coming off as a flaming n00b. The username messup doesn't help I must admit...

I'm wondering if there is any way to change the colours of the teams in Darwinia?

I'm doing a small mod for a webcomic I run called Bunny, and it involves a little pink bunny (...don't look at me like that). I'm going through changing most of the models to custom versions... but I have a small problem with the actual darwinians...

I've changed the sprite, and it seems to work fine... except the sprite is in the team colour rather than the colour in the image file (as I expected and is covered in Nihils modding page)

It's not a terrible problem, but at the moment they just look a little silly...
Image

I'm guessing it's something that's hard-coded into the game itself and unmoddable, but I figured I'd ask incase it was possible and if anyone had an idea how to do it?

Thanks
-Lem
...is it over? is he gone?
User avatar
xander
level5
level5
Posts: 16868
Joined: Thu Oct 21, 2004 11:41 pm
Location: Highland, CA, USA
Contact:

Postby xander » Sun Feb 26, 2006 11:02 pm

As far as anyone can tell, the colors are hardcoded. Team 0 is green, team 1 is red, team 2 is yellow, team 3 is blue. Team 1 will attack teams 0 and 2 (possibly 3, as well). Team 0 will attack team 1. Team 2 is player controlled.


xander
lordofjesterds
level1
level1
Posts: 11
Joined: Sun Feb 26, 2006 9:38 pm

Postby lordofjesterds » Sun Feb 26, 2006 11:10 pm

xander wrote:As far as anyone can tell, the colors are hardcoded. Team 0 is green, team 1 is red, team 2 is yellow, team 3 is blue. Team 1 will attack teams 0 and 2 (possibly 3, as well). Team 0 will attack team 1. Team 2 is player controlled.


I was wondering if it was possible to tweak the RGB value of each of the team colours (i.e. change the green team from I assume 0 255 0 to ... say... 100 100 100 for a mid-grey colour)

Hmm... it does seem to be hardcoded, therefore it is as I feared.

Ah well, Green bunnies don't look ... that bad...?
...is it over? is he gone?
User avatar
xander
level5
level5
Posts: 16868
Joined: Thu Oct 21, 2004 11:41 pm
Location: Highland, CA, USA
Contact:

Postby xander » Sun Feb 26, 2006 11:28 pm

lordofjesterds wrote:
xander wrote:As far as anyone can tell, the colors are hardcoded. Team 0 is green, team 1 is red, team 2 is yellow, team 3 is blue. Team 1 will attack teams 0 and 2 (possibly 3, as well). Team 0 will attack team 1. Team 2 is player controlled.


I was wondering if it was possible to tweak the RGB value of each of the team colours (i.e. change the green team from I assume 0 255 0 to ... say... 100 100 100 for a mid-grey colour)

Hmm... it does seem to be hardcoded, therefore it is as I feared.

Ah well, Green bunnies don't look ... that bad...?

The green bunnies look great!

Also: http://www.nihilesthetics.info/Darwinia ... ThePot.htm

xander
nihilesthetics2
level2
level2
Posts: 101
Joined: Mon Dec 12, 2005 11:18 pm

Postby nihilesthetics2 » Tue Mar 14, 2006 12:00 am

The colours are hard coded, but you could edit the exe in a hex editor if you really want to go there. There are obvious problems with that, like distributing your mod. But let me know if you want to know how.

The same goes for smooth shading, by the way. Easy to do, but much harder to distribute with your mod.

Ive been patiently waiting for the DevCD to include some of these features, but Im worried, what with the release on Steam, whether the DevCD will ever surface. I think it was TrickFred that first brought up the spectre of " the consequences of the indie programmers under the leash of the big corporate game publisher". Steam has been great for IVs sales, we're told, which is the important thing ... I suppose.

N2
lordofjesterds
level1
level1
Posts: 11
Joined: Sun Feb 26, 2006 9:38 pm

Postby lordofjesterds » Tue Mar 14, 2006 12:22 am

I think for what I want to achieve with this mod (just a fun little model-swapping exercise), the green is perfectly acceptable.

But for tinkering myself, I'm more than happy to learn... though I have no knowledge at all of hex editing and there is a good chance that I'm unteachable without a large stick.

I can say the Bunnies are all sick or something right? right?
...is it over? is he gone?
nihilesthetics2
level2
level2
Posts: 101
Joined: Mon Dec 12, 2005 11:18 pm

Postby nihilesthetics2 » Tue Mar 14, 2006 12:27 am

sick radioactive mutant zombie bunnies maybe?

N2
lordofjesterds
level1
level1
Posts: 11
Joined: Sun Feb 26, 2006 9:38 pm

Postby lordofjesterds » Tue Mar 14, 2006 12:40 am

nihilesthetics2 wrote:sick radioactive mutant zombie bunnies maybe?

N2


If nessicary, yes!

It would be... strangely in keeping...
...is it over? is he gone?
User avatar
Battlefrank
level2
level2
Posts: 84
Joined: Thu Feb 09, 2006 4:01 am
Location: over there
Contact:

Postby Battlefrank » Tue Mar 14, 2006 1:23 am

RESIST! RESIST!
nihilesthetics2
level2
level2
Posts: 101
Joined: Mon Dec 12, 2005 11:18 pm

Postby nihilesthetics2 » Tue Mar 14, 2006 2:25 am

Image

Selecting a red darwinian
lordofjesterds
level1
level1
Posts: 11
Joined: Sun Feb 26, 2006 9:38 pm

Postby lordofjesterds » Tue Mar 14, 2006 2:29 am

nihilesthetics2 wrote:Image

Selecting a red darwinian


Using the power of the mind?
(is curious about this)
...is it over? is he gone?
User avatar
martin
level5
level5
Posts: 3210
Joined: Fri Nov 19, 2004 8:37 pm
Location: ::1
Contact:

Postby martin » Tue Mar 14, 2006 5:30 pm

well you can select team yellow like that so...
who knows?
GENERATION 22:The first time you see this, copy it into your sig on any forum and add 1 to the generation. Social experiment.
User avatar
trickfred
level5
level5
Posts: 1691
Joined: Sat Jul 24, 2004 5:01 am
Location: The Great White North, Eh?
Contact:

Postby trickfred » Tue Mar 14, 2006 5:41 pm

lordofjesterds wrote:
nihilesthetics2 wrote:Image

Selecting a red darwinian


Using the power of the mind?
(is curious about this)


martin wrote:well you can select team yellow like that so...
who knows?


...

nihilesthetics2 wrote:The colours are hard coded, but you could edit the exe in a hex editor if you really want to go there.
User avatar
xander
level5
level5
Posts: 16868
Joined: Thu Oct 21, 2004 11:41 pm
Location: Highland, CA, USA
Contact:

Postby xander » Tue Mar 14, 2006 5:47 pm

trickfred++

xander
User avatar
trickfred
level5
level5
Posts: 1691
Joined: Sat Jul 24, 2004 5:01 am
Location: The Great White North, Eh?
Contact:

Postby trickfred » Tue Mar 14, 2006 5:49 pm

xander, I can't really take the credit.

reading comprehension++

Return to “Mod Projects”

Who is online

Users browsing this forum: No registered users and 1 guest