Jump to content
Turkman

Changing Starting Keep,Color

Recommended Posts

Is there any way to change our starting large keep to Wooden one like Olaf's and any way to change our color from red to like blue

Share this post


Link to post
Share on other sites

Welcome to the forums! :)

 

As far as I can see, it is just finding the appropriate files in order to do such a modification.

 

(You probably already know this, but you can have a custom keep if you create the map in the Map Editor)

 

All the keep buildings are located in the /stronghold 2/meshes/buildings/ directory, and the default keep (yours) appear to be the "keep_medium" files.

 

I suppose you could try renaming those with (say the wooden ones - "keep_small" or "keep_wooden" files. Most of them appear to have similar filenames. I'll have a look now, and see if I can spot any config for them.

 

 

Changing your colour will be much harder. Like in Stronghold Crusader, it will probably be in Hex Code, but where to me is unknown. However, that is not to say it cannot be done - just recently I found the recruitment images, I didn't know where they were either.


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

I've just changed the keep. Go to your /stronghold 2/meshes/buildings/ folder, and find the following files:

 

keep_medium.bdg, keep_wooden.bdg

 

Simply switch the file names.

 

EDIT: Don't literally switch the filenames, the AI who have the other castle react badly. Just copy and paste the keep_wooden.bdg, rename keep_medium.bdg to keep_medium_BACKUP.bdg (or something) and then rename keep_wooden.bdg.

 

Hope this helps :)

Edited by Lord_Chris

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

Thanks my friend i finally change my keep but i got some problem my lord cant get top of the wooden keep he can only stay inside in upstairs.

Share this post


Link to post
Share on other sites

I'll have a look and see what's wrong.

 

P.S. What version are you on of SH2?


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

I've just tried with the Grand Keep, you can get them up on the roof. It must be something to do with the Wooden one. I'll have a browse around, I probably missed something really obvious.


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

You're very welcome, I hope you enjoy being a member of our community :)

 

I do think I may be on to changing the colours as well - possibly files in the /stronghold 2/shaders/ folder, or in some of the .xml files.


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

I am not good with the coding if you found changing color can you explain me i will be very happy thank you.

Share this post


Link to post
Share on other sites

Yes, I'll post back here straight away if I find a way.

 

I've also searched through the files in the folder stated above, and I have returned 98 hits of the word "colour" (and there is more of "color" which i haven't searched for yet).

 

 

I may just be adding 2 and 2, but to me it seems like this is it somehow.

Edited by Lord_Chris

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

also i cannot get top of the small keep too :/ did I doing something wrong ? i just copy paste the keep_small and rename keep_small to keep_medium

Share this post


Link to post
Share on other sites

Were the files you swapped bdg files?


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

Well, as far as I can see, there should be no difference between changing the .UNI files for your troops, and the .bdg files for the buildings.

 

Can you try with the Grand Keep to make sure, I can definitely get men on top of there?

 

I'll have a go with the other smaller ones, that way we'll know whether it is a patch thing or not. (I'm still on 1.3 Deluxe)


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

Sorry about the wait, I was having to sort out some server problems. I'll go and check now.


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

So far, I still don't really know what type of coding it is. My best guess is C or C++, but my last attempt to find out was disproved of.

 

#ifndef _STRONGHOLD2_FX
#define _STRONGHOLD2_FX


//	The following #define's will be configured by the game
//#define USE_SHADER_VERSION_30
//#define USE_SHADER_VERSION_20
//#define USE_SHADER_VERSION_14
//#define USE_SHADER_VERSION_13
//#define USE_SHADER_VERSION_11
//#define USE_SHADER_VERSION_FF
//#define USE_MULTIPASS_SHADERS

//#define ENABLE_ENHANCED_WATER
//#define ENABLE_DEPTH_OF_FIELD


#if (!defined(USE_SHADER_VERSION_20) || !defined(USE_MULTIPASS_SHADERS)) && defined(ENABLE_DEPTH_OF_FIELD)
#undef ENABLE_DEPTH_OF_FIELD
#endif


#include "CommonMaterialParameters.fx"
#include "GameParameters.fx"
#include "TransformState.fx"
#include "WorldLighting.fx"

 

I'll start looking into C & C++ and see if it's similar to this.

 

Sorry for any delays


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

Well, thanks to the help of @Black_Knight, I have found out what it is! The coding is C++. I will attempt to learn some and try a modification. :)


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

Ok, I think I may have found some C++ colour codes.

 

http://www.flounder.com/csharp_color_table.htm

 

By searching through the files, I might find some of the codes if I'm lucky. (Fingers Crossed)

Just thought I'd let you know. I have a feeling we're really getting close now!

 

And Merry Christmas! :)


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

I have even changed the colour of the symbols that appear above the buildings to black now. I'm 100% certain that it lies in the /stronghold2/shaders/ directory.

 

The default player colour is

COLOR0

. By changing the following in some of the files, you can change the colour of the picture below to black. (I'll work on changing the colour, but it will take several days to solve it as there is a lot to do to eventually change it)

 

OK, so to get results similar to the black sign below open up the /stronghold2/shaders/ui/default.fx file in a text editor (I.E. Notepad. I use Notepad++ but any will do)

 

Go to line 6:

float4 PS_Default(float4 colour : COLOR0, float2 uv : TEXCOORD0) : COLOR

 

 

Change to:

 

 

float4 PS_Default(float4 colour : COLOR1, float2 uv : TEXCOORD0) : COLOR

 

 

Save the file and play.

 

Images:

 

From:

 

Red Symbolhttp://s32.postimg.cc/gksu67im9/red_symbol.png[/img]

 

To:

 

Black Symbolhttp://s32.postimg.cc/wxcj6ssn9/black_symbol.png[/img]

 

It's a temporary success.


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

Greetings. Someone from FF once said on Stronghold Knights, don't try and change the colors, it will just mess everything up.


HG Angel

Share this post


Link to post
Share on other sites

Welcome to the forums! :)

 

Thanks for your advice, and actually looking at it, it does look like a pretty impossible task; the colours are re-defined in almost every file, and it looks a very complex setup. (It also doesn't help that I'm new to C++ :) )


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

Thanks,

 

There were some minor successes, but nothing permanent or repeatable. People were trying to exploit the fact that in custom scenarios when you get reinforcements from an ally, if you do not let them stop moving they will remain their old color. A few archers were able to stick around in one case, I think there is a saved map on HG somewhere. There was also a save with a burning troop that never died unless you shot him. The bugs in this game makes modding it so much fun.


HG Angel

Share this post


Link to post
Share on other sites

That's one of the reasons I love it so much, and especially since modding it is so easy as well. I'm quite sad that stronghold 3 is on Steam, partially because you can't modify it, and also because it's just generally annoying.

 

But, I suppose from Firefly's view it does stop the modding, which for them would be good. Would you be able to post a link to those files you talked about above, they sound pretty good?

 

I've also seen your email, would you like to write the tutorial if I gave you a link via the PM? Seen as you wrote it initially for HG, you should get the credit for it here as well.


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

I have some things to do around HG right now so if you want to re-write it go ahead. The yellow archers I'm not sure where to find them, the burning troop is here

 

"Post errors

The following errors need to be corrected before the message can be posted:

You are not allowed to post links"

 

Seems like a problem.

Edited by Doomsword

HG Angel

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

×
×
  • Create New...