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.

Read more  

⁠— 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.

Read more  

⁠— 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.

Read more  

⁠— 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.

Read more  

⁠— 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.

Read more  

⁠— 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.

Read more  

⁠— 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.

Read more  

⁠— 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.

Read more  

⁠— 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.

Read more  

⁠— 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.

Read more  

⁠— 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.

Read more  

⁠— 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.

Read more  

⁠— 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:

  Reveal hidden contents

 

 

Change to:

 

 

  Reveal hidden contents

 

 

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.

Read more  

⁠— 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.

Read more  

⁠— 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.

Read more  

⁠— 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.

  • Similar Topics

    • Stronghold Legends Custom Skirmish Invasions on Last Mission Not Starting.

      I have been working on a map for the past 2-3 days now. It is a 3 part map. Parts 1 and 2 work perfectly fine but the third part you are to face down the final invasions. The invasions show up but unfortunately they don't attack no matter what. They are just standing where I set them but they don't start their siege. Even though they have their siege equipment and everything set up. I tried playing a bit with the delay/date and I assume delay (from what I have read) means that they will wai

      in Stronghold Legends

    • Color Changing Progress

      Hello,   This thread is mostly for Lord Chris, but anyone can feel free to contribute.? I know on a previous thread here that there were discussions about efforts into diving into the coding of how color selection is made in Stronghold 2 and that I believe Chris was going to look into that.? Does anyone have any kind of information on if this is even possible or if there have been an efforts directed towards this?? I would love to push this however I can and am willing to help learn how to find

      in Stronghold 2

    • Error 0xc0000022 while starting Stronghold Crusader on Windows 10

      Hey, guys! First of all, this is not a question, this is a solution. I believe this will be useful for many people.   I have installed Steam version of Stronghold Crusader on my new laptop which runs Windows 10. When I tried to start the game, it just wouldn't work. No error, no nothing. When I tried to run Stronghold Crusader from the Steam folder: D:\Program Files (x86)\Steam\steamapps\common\Stronghold Crusader Extreme then I got the error code 0xc0000022. I tried with changing compatibility

      in Stronghold Crusader & Crusader Extreme

    • Stronghold 2 Tutorial for games starting as a freeman

      Hi. This is a video I recently made. Today I was editing it, because I was called on my phone at some moment. I wanted to cut that part.   I hope this will help those who find it easier to play starting with 5000 gold or more. It's a short 25 minutes video. There's nothing exciting to see in the video, but I hope it's going to be helpful.   The video turned out to be low quality, so I will try to convert it again, and re-upload it. Hopefully I would turn out to be better after uploading.

      in Stronghold 2

    • Starting a formal letter

      So, this definitely belongs to this subforum, as if this is not game related, nothing is. :)   I just wanted to start a short discussion here about what you thing would be a good starting of a formal letter in English? In Serbian I would start with "Po?tovani...", which means "respected" or "the respected one", and was looking many times about how to start a formal letter in English, and each time I feel awkward when I see suggested openings. :) For example, would "Dear Sir or Madam..." sound go

      in The Open Castle Inn

×
×
  • Create New...