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

  • Similar Topics

    • Join Development Team

      Hey sir ! I am a software engineer , I am playing stronghold 2 since many years, Can i be apart of stronghold developers team ?   My expertise is Java  c++  javascript  Dart now  I am working on Native apps mobile development  and I am interested to have SH2 in mobile Phone .     

      in Site Questions and Support

    • Modifying Stronghold 3

      I've posted a tutorial which tells you how to unarchive the game files from the '.v' format which they are in. This now means that modifying Stronghold 3 is finally possible.   To do so, you must download the following modding utility:   http://www.strongholdnation.co.uk/downloads/file/349-modifying-utility/   Here is the tutorial: http://www.strongholdnation.co.uk/article/195-unarchiving-stronghold-3-files   Let me know if anyone has any issues :)

      in Stronghold 3

    • New Tutorial - Modifying Crusader 2

      I've posted this on the main site under a tutorial, but since this helps people to modify the game files which wasn't possible beforehand, I'll post a link to it here: http://www.strongholdnation.co.uk/article/167-enable-viewing-all-game-files   This can be a help thread in case people need assistance with it :)

      in Stronghold Crusader 2

    • Teal Player Colour Maps?

      Would anyone be able to upload some large size (400x400) blank invasion maps for Stronghold and Stronghold Crusader where the player colour has been switched to teal?   I tried downloading the map pack by Jalis from Stronghold Heaven but all the maps were tiny size, and when I tried to resize them I can't place any buildings outside the original tiny borders. Not sure if that's a bug with the Mac version or what, but in any case it would be great if someone could help me with getting those maps

      in Volunteer Work

×
×
  • Create New...