Jump to content
sh4d0wknight7447

Modifying Team Colour

Recommended Posts

I'm reopening this topic because I just realized that no-one solved it. So far, all we have deduced is that the files which determines the shading colors are located within C:\Program Files (x86)\Firefly Studios\Stronghold 2\shaders due to Lord_Chris' earlier attempt to find the shading file.

 

By going to the directory C:\Program Files (x86)\Firefly Studios\Stronghold 2\shaders\UI\Default.FX you will see this screen when opened up with notepad:

 

2nknpyo.jpg

 

By changing the "COLOR0" value to "COLOR1", we find that:

 

so8e3c.jpg

 

Becomes:

 

14czlva.png

 

Furthermore, we have identified that the scripting is in C++ and coding in Hexadecimal as the orange color has the Hexadecimal code of FFBF00

This is a subject which I have been very interested in because I hate the default red color and love the bandit black color.

 

2dqjxwm.png

 

So far what we've done is"a temporary success" :D


35011y1.jpg

 

"To Strive, To Seek, To Find, And Not To Yield." - Alfred Tennyson

"Dulce et decorum est pro patria mori" - Wilfred Owen

Share this post


Link to post
Share on other sites

Quote

The fields have eyes, and the woods have ears.

⁠— Geoffrey Chaucer, The Canterbury Tales: The Knight's Tale

Useful Articles

Share this post


Link to post
Share on other sites

Right, just had a look and I can see this line occurring frequently within the shading files:

 

float4(0, 0, 0, 0);

 

Using a bit of C++ myself, I can see that it is stating 4 variables, and these could be a vector, position, color (red, green, blue values), etc.

In addition, I think the more obvious and most probable solution is located within the "TeamColour.FX" so I think some trial and improvement will be involved to changing the color, however I see one potential problem - that changing these variables will change every player color. I'll poke around with this, change the constant variable values and see what I find. In the mean time while your computer is down, I would appreciate you finding similar forums and references because this one was really useful. :)


35011y1.jpg

 

"To Strive, To Seek, To Find, And Not To Yield." - Alfred Tennyson

"Dulce et decorum est pro patria mori" - Wilfred Owen

Share this post


Link to post
Share on other sites

I'm guessing yes. But I'm honestly not sure.

 

Someone at Firefly was supposed to have said years ago that changing the colour would mess up a lot of game files but no real progress was ever really made on this.


Quote

The fields have eyes, and the woods have ears.

⁠— Geoffrey Chaucer, The Canterbury Tales: The Knight's Tale

Useful Articles

Share this post


Link to post
Share on other sites

IT is possible to change the Team colour for maps which you only play in that map in that colour and this works fully without coding, with savedgames?;).

Edited by Tokamaps

Share this post


Link to post
Share on other sites

Well this certainly is a breakthrough!

 

Good work in completing this long worked-on task. For those users who have not seen the thread @Tokamaps is referring to, it can be found here: http://forums.strongholdnation.co.uk/post/6869/#p6869


Quote

The fields have eyes, and the woods have ears.

⁠— Geoffrey Chaucer, The Canterbury Tales: The Knight's Tale

Useful Articles

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...