Jump to content
Turkman

Changing Starting Keep,Color

Recommended Posts

Oh right. Yes that makes sense, but what does it specifically mean?


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

In programming, when something is defined it is given a value. It can be given a new value simply by being re-defined. The reason float4 is probably re-defined in almost every file is probably to stop people doing exactly what we are trying to do now - change the code. It's also in a lot of files probably because of this reason.


  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

Makes sense, but how do we override this, it seems locked up tighter than a drum.

Edited by sh4d0wknight7447

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

By changing the value that it is given, or adding something in to change it.

 

Note: // will make anything on that line a comment and will not be included in the code

 

For example, the original code from ShadowMapAlpha Test.fx:

 

ColorWriteEnable = 0;

 

We can redefine it after, I.E.

 

ColorWriteEnable = 0;

// Old value will work here

ColorWriteEnable = NEW VALUE;

// New value will stay from now on

 

Or, instead we could just redefine it from the start:

 

ColorWriteEnable = NEW VALUE;

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

In this example you gave, what will changing the colorwriteenable value do?


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 not sure, I only picked it because it was value that was defined easily and was a straight forward example. But I can tell you now that it won't work because I gave it the value of "NEW VALUE" and of course it should have the value of a number.

 

Change it, run it & see what it does. The worst that will happen is a message appears when you start the game saying that it failed to compile an effect file and then you can just change it back. I would also recommend downloading Notepad ++ as it makes the code a lot easier to read and shows you the line numbers.etc.

Edited by Lord_Chris
Updated download link

  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

Tell me what you find ;)


  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 didn't really expect anything would. This proves that to perform a modification as big as changing the colour you will not be able to get by just by changing certain things, it will require a more advanced modification that will likely affect all files in the /stronghold 2/shaders/ directory. You mentioned before about getting someone who knows C++ in, this may well be the time to do so as we are very much stuck in our tracks and it is just guess work currently.


  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

Just as a notice, as a lot of your posts have been very short and could be classed as violating our one-liners rule (see below) in certain instances. We welcome all posts, please just make sure they are slightly longer from now on :)

 

  Quote
[...]

 

You may not spam under any circumstance unless an area is explicitly designated for it. Our staff team don't spam your own websites, so we don't expect spam in return. If you are unhappy about no spamming, please create your own website and spam there.

 

Spamming includes, but is not limited to:

 

? Useless one line posts or thread bumping

? Constant off topic posts or threads

? Typing gibberish or nonsensical messages

? Using any kind of official or unofficial code instead of posting in English

? Posting messages without content, with very little, or duplicated content

? Links to your own websites, services or free "__" links [...]

Read more  

 

I believe that the file /stronghold 2/shaders/Units/Default.fx is one of the key files in changing the colour as I think it sets the default colour from there based on interactions from other files as well from what I appear to have just found.


  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

MOD EDIT: Abusive content removed. You may not re-edit this message.

Edited by Lord_Chris

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

Firstly, I told you as a notice, not as a warning. Secondly, I post entire paragraphs and not single lines and/or words, and no content of mine can be seen as one liners or thread bumping as it is informative and helpful, and not one liners such as "yep" "will do" or "nothing happened", those few words the total of three of your posts. Several other posts could also be mentioned in addition. Thirdly, we do not delete accounts, not even the spam accounts, we have other ways of dealing with them. All content you have posted, along with your user profile will remain live on the web. If you do not want to have your account here anymore, simply clear out your profile and never login again.

 

I can guarantee that there are no posts of mine that could be classed as one liners or topic bumping. An occasional one liner post is OK, and I'm not saying that you were spamming, all I was giving you was a notice that you appeared to be posting short posts that in some cases, could be seen as pointless and/or one liners. Also, remember via PM when I explicitly told you not to be abusive? This is one of those times. Your account is now disabled for 24 hours for abuse. Any further abuse will result in a permanent ban.

 

Thread Closed.


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