-
Content Count
2,457 -
Joined
-
Last visited
-
Days Won
120
Everything posted by Lord_Chris
-
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;
-
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.
-
I'm not sure whether you seen my last reply, I'll quote it here again: I also think that float4 is red, possibly why it appears to be defined so much and in so many files.
-
Great, does he know the username & password?
-
OK, I've found Orange. I searched Google for "colour 0.95 c++" and I found the Hex code FFBF00. I then went to html-color-codes.info and entered it into the box there to get the exact same shade or orange that's in the game.
-
That would be very useful as it's just guess work at the moment. Seeing what I do above confirms what I've been dreading not to find out. It means that the codes are likely to be in Hex or some other form of coding. I'm not sure whether C++ has any colour codes, if so it may be using those. This will be a lot more complex than just blue or red I'm afraid.
-
One of the key files is the /stronghold 2/shaders/PhongShader.fx. You can tell this as you find this in almost every file from the shaders subdirectories. #include "../PhongShader.fx" In all programming, ../ means up one folder. This example was from the file /stronghold2/shaders/units/default.fx. So you go up one folder and include the file PhongShader.fx. This basically means that any coding in that file is almost added into the default.fx file for it to be used in it. This is what I'm talking about when I say it's hard - there are several files included in each file itself. We will be the people who do it though. :) Not entirely true - the lord colour will always be your player colour. If you think about it, when you change to Olaf, his cloak turns to red, however, if you replace Olaf with your lord, then your lord will appear Olaf's colour. This means it is pre-decided before the game even starts, and seems to point to the fact there is something in the DDS file of unit "X" which allows the shader stuff to colour a certain part of the unit in the player colour - I.E. The stomach of the archer is the player colour. This also seems to also explain why when you attempted to colour the archer completely black it did it to all the archers on the map - you simply overwrote this "colour deciding" feature so it wasn't there for the game to use, because it wasn't there it simply did without it meaning that you couldn't distinguish which archers belonged to which lord. I've also had a browse around and found where TeamColour is defined. Go to /stronghold 2/shaders/GameParameters.fx and you will see shared float4 TeamColour = float4(1.0, 1.0, 1.0, 1.0); on line 27. Now our next mission is to find what shared means, and what float4 is - float4 is used in nearly all the files. Ready? :)
-
I've never played them before but I must admit, from that video they look very good indeed. I would get some, but I don't think they'd work now on my machine though, especially since they were released in 1996 as I have Windows 8 which even has compatibility issues with fairly new games. :(
-
Bradley0095 is playing as well, that's three people so far. Maybe Letchy will join in too. Thanks for the offer, If you could spread the word about it that would be really useful ;)
-
I'm hosting it but it depends on how many players there are as to whether we can play in teams or not.
-
Great to hear it! :) The password and username can be found here
-
Increasing the Outlaws' Javelin Speed
Lord_Chris replied to sh4d0wknight7447's topic in Stronghold 2
OK, though it is far from perfect yet, I have only briefly looked, and I haven't really got concrete details on what you want I have got something small working. 1.) Go to /stronghold 2/meshes/units/models/ and find "dagger_outlaw.GR2". Copy and paste the file "spear_lo.GR2" and rename it to the first name. 2.) Go to /stronghold 2/meshes/units/animations/soldier/ and find the files: "outlaw_attack_dagger.GR2" -> "outlaw_attack_dagger_backup.GR2" "outlaw_attack_spear_e.GR2" -> "outlaw_attack_spear_e_backup.GR2" "outlaw_defend.GR2" -> "outlaw_defend_backup.GR2" Copy and paste the file 3 times: "outlaw_attack_spear.GR2" Rename the copies to the files: outlaw_defend.GR2, outlaw_attack_spear_e.GR2, outlaw_attack_dagger.GR2 Tell me if this is similar to what you want. If you can answer the following questions it will help more. 1.) Would you like the outlaw to defend themselves with the dagger when they get in close proximity to an enemy and hold the spear the remainder of the time, or would you just like them to fight with a spear all the time 2.) If the answer to the last question is the latter option, would you want them to fight in the same way spearmen do when they get close, or would you want them purely to always throw? -
Increasing the Outlaws' Javelin Speed
Lord_Chris replied to sh4d0wknight7447's topic in Stronghold 2
OK, unfortunately our DNS was being updated when sh4d0wknight474 replied to this topic and he posted to the old server so the reply was lost. Luckily, I still managed to get the reply notification, and know what version he is using. For the benefit of other people following this topic, the response is shown below. Apologies for your post being lost, I assure you though it won't happen again. I'll attempt to find the files and change it now, however, please do note that because it is the 1.4.1 version if it is a heavy modification it may not work. -
If you would like to join in with the event, please post here so we know how many lobbies to set up. Otherwise, we cannot guarantee you a place!
-
We are currently moving servers, and our name servers need updating. For that reason, this afternoon I will be placing the site in maintenance mode to make sure that the transition happens correctly and without any chaos or loss of data.
-
Increasing the Outlaws' Javelin Speed
Lord_Chris replied to sh4d0wknight7447's topic in Stronghold 2
They are pretty useless without them, I would agree there, but I suppose no unit can be invincible. Before I attempt anything could you tell me which game version you have? The medal is based on your rank, yours currently is a Squire so you have a red one. With every increase in your rank, your medal becomes more decorative. Just a nice add-on really :) You upgrade your rank based on your post count. Your rank also affects what privileges you have on the site; the higher your rank, the more privileges you have. See here for more info on that. -
Increasing the Outlaws' Javelin Speed
Lord_Chris replied to sh4d0wknight7447's topic in Stronghold 2
To increase the Outlaws' javelin speed, do you mean you want to decrease the time between it being thrown and spawning again? You can definitely do it in Stronghold Legends (which I've been meaning to do a tutorial on actually), so there will be a way in Stronghold 2 as well. But, it is different, I'll have a look for it and let you know when I find it. By that, I take it you mean a new topic. You go to the forum you want to post in, and click the "New Topic" button on the top right of the forum. -
I personally apologise for the unexpected 6 and a half loss of our site both yesterday and today. We have now permanently fixed this issue.
-
I knew that it wouldn't just be as easy as changing file names, but at least we have an answer now. At the time I was busy, I didn't have a lot of time to check it out properly and figure out exactly what to change - then forgot about it afterwards. Another Note: I don't know whether you've seen my tutorial on adding units from stronghold legends into stronghold 2 - if you have, when you open up the UNI files in notepad or a text editor, you can do the exact same with the BDG files to see what files are required for that particular building. However, in theory that should be no different to changing the ".BDG" files because they are the equivalent of the .UNI files from the units. Are you talking about the GR2 files, DDS files or both here? - I would take it that it should be both, but just to confirm. Could you post them here in the forum, they sound great? :)
-
Stronghold 2 gaming event 23rd March discusion
Lord_Chris replied to bradley0095's topic in Gaming Events
Is Letchy joining in? -
Stronghold 2 gaming event 23rd March discusion
Lord_Chris replied to bradley0095's topic in Gaming Events
Please also remember that if you would like to join it would be easier to post here so we know how many lobbies to setup. We will only wait a maximum of 10-15 minutes after the start time (5:30 GMT). If you do not post, we cannot guarantee you a place! -
I've sent @Black_Knight a PM, and I'm waiting for him to respond. He's the real C++ expert here. If you only colour part of the .dds file in you will still be able to distinguish which troop belongs to which lord. Take a look at Stronghold 2 Heaven Miscellaneous Files, premade by users. You can see how users have coloured parts in, but not all so that people can still distinguish which troop belongs to which lord. There are also one or two in our Download Central, but not as many. You are also welcome to upload any mods you make to our site here. But, obviously as Doomsword has said above it may corrupt your game: So you'll have to be careful if you do still want to do it.
-
OK, hope you get better soon, I'll see you later.
-
There should be something that can be done really. I thought I was losing the connection, and I was about to leave because it just froze. I suppose when you're playing without a password, that's all you can expect. Shall we have a one between the two of us or shall we leave it at that?
-
It's a bit inconsiderate in my opinion. I don't know how they caused it, but they should have at least warned us first.