Welcome to Close Combat Series
  Login or Register Home  ·  Downloads  ·  Forums  ·  Combat Camera  ·  Help  

  Survey
Do incapacitations count as a soldier's kills?

Yes
No



Results
Polls

Votes 1245
Comments: 1

  Shout Box!!

Only registered users can shout. Please login or create an account.

  Main Menu
Articles & News  
    Help
    Player`s News
    Site News
    Multiplayer
    Terrain Challenge
    Boot Camp
Community  
    Forums
    Downloads
    Combat Camera
    MOOXE @ Youtube
    Statistics
Members  
    Private Messages
    Your Account
    Logout

  Donations
Anonymous - $25.00
08/15/2022

Anonymous - $25.00
08/15/2022

Anonymous - $25.00
12/18/2021

Anonymous - $100.00
11/08/2021

Anonymous - $15.00
04/09/2021

Anonymous - $100.00
04/05/2021

Anonymous - $20.00
02/20/2021

Anonymous - $10.00
12/29/2020

Anonymous - $1.00
11/06/2020

ZAPPI4 - $20.00
10/10/2020

Find our site useful? Make a small donation to show your support.



Search for at
Close Combat Series Advanced Search


 Author
Message
 
LapsedPacifist




PostPosted: Mon May 18, 2009 6:38 pm Post subject: Uniforms.txt in CC tLD Reply with quote

Does anyone understand the data in Uniforms.txt in CC tLD?

Be most grateful of an explanation of how to change the colours of the uniforms as the default ones are a real backward step from most of the mods out there.

I've used the soldier colour editor for CC5 before but that isn't going to work with CC tLD is it?

Any help appreciated.


SNAFU
Back to top
View user's profile Send private message
 
Sapa

Rep: 76.3
votes: 8


PostPosted: Mon May 18, 2009 6:54 pm Post subject: Re: Uniforms.txt in CC tLD Reply with quote

This is one of the old discussions who was made with the release of War Crying or Very sad  before you could use the Soldeditor program but not now, the developers says it is easier with the txt files but i havent a clue how to change the soldier colours Mad

Maybe you should ask on the Matrix forum or someone who was involved in the development of the updated games...


Mats
Back to top
View user's profile Send private message
 
squadleader_id

Rep: 53.2
votes: 7


PostPosted: Tue May 19, 2009 12:08 am Post subject: Re: Uniforms.txt in CC tLD Reply with quote

Yup...I agree that the stock Atomic uniforms used in CCTLD is "a real backward step" Wink
I've been using a custom uniforms.txt based on the popular CC5 mods (which goes back to Dreaded88's work)...plus a few of my own little touches (Pzgrenadiers with Heer camo - from GJS; Brit/French Commandos with green berets).
I can upload the file...but you have to mod the Teams files to use my custom uniforms correctly.
Back to top
View user's profile Send private message Visit poster's website
 
Senior_Drill

Rep: 9.7
votes: 2


PostPosted: Sun Jul 26, 2009 3:43 pm Post subject: Re: Uniforms.txt in CC tLD Reply with quote

I imagine that there is a new uniform color editing tool for WaR and TLD, but I haven't seen it or even heard it mentioned.  There is a workaround to be able to edit uniform colors in WaR and TLD, but it is not elegant or overly simple.

Attached is the Uniform Color Editor for CCMT.  This was released a couple of years ago but I can't find it anywhere now.  It is made by TheBlood! for the UniformColor.txt format of CCMT.  To use it for WaR or TLD, whose Uniform.txt file is in a different format, you will need to do some file manipulation.

Up through CCMT, there were only 57 usable color sets with 28 for normal uniforms and 28 for snow camoflauge uniforms (and one leftover) divided into Styles declared in the *Teams .txt or .adb files. Starting with WaR, there are now 96 possible normal uniform colors and 96 snow camo uniform color sets divided into 8 nations which have 4 styles composed of 12 color sets.  The CCMT Uniform Color Editor will only process the first 57 color sets.

So here is the workaround:  If you have CCMT, make a copy of the UniformColor.txt and work on that copy.  If you do not have CCMT, make a copy of your WaR or TLD Uniform.txt file to work on.

On the copy of WaR or TLD Uniform.txt you will need to completely remove all the commented lines - those starting with an " # ".  This is necessary because the tool reads lines from 0 to 56 and does not recognize #, ;, / or // as comments to skipover.

Edit the first 57 lines of the modified file with the tool and save.  Make a copy of the saved file and remove the first 57 lines and reopen it with the CCMTUniform Color Editor and edit the remaining 27 lines (or 39 if you add the 7th nation) and save.  Use the same process for the snow camo uniform colors.

With care and attention to detail,  copy and paste the edited lines to (yet another copy) of the WaR or TLD Uniform.txt file and test.  You will note that the CCMT Uniform Color Editor uses and saves the ninth color code of 0x000000.  WaR and TLD's Uniform.txt file does not have that extra, unused color code.  In very limited testing, it does not appear to cause WaR of TLD any problems with it left on, but if it does, then you will need to go through the Uniform.txt file line by line and delete the extra color code.



CCMT Uniform Color Editor.zip
 Description:

Download
 Filename:  CCMT Uniform Color Editor.zip
 Filesize:  427.86 KB
 Downloaded:  321 Time(s)



C'est magnifique, mais ce n'est pas la guerre.
Back to top
View user's profile Send private message
 
papa_whisky

Rep: 42.2
votes: 4


PostPosted: Mon Oct 26, 2009 11:46 pm Post subject: Re: Uniforms.txt in CC tLD Reply with quote

Drill, following on from your post. For CCMT how is the index number determined? I see that the style and the map type partly determines the uniforms are used. How is the sniper, infantry & crew, and AT determined? Is this from the team type, or from the soldier type or something that I have missed? Many thanks in advance.
Back to top
View user's profile Send private message
 
Tejszd

Rep: 133.6
votes: 19


PostPosted: Tue Oct 27, 2009 1:03 am Post subject: Re: Uniforms.txt in CC tLD Reply with quote

It has been posted before, though probably forgotten given all the complaining/crap posted posted by the whiners, but Mafi added an option in RtBTool to extract uniforms.

So mod uniforms like you always have in CC5 using the tools you always have and then extract them into the War text file format....



RtbTool Uniform Extract.jpg
 Description:
 Filesize:  32.11 KB
 Viewed:  6445 Time(s)

RtbTool Uniform Extract.jpg


Back to top
View user's profile Send private message
 
squadleader_id

Rep: 53.2
votes: 7


PostPosted: Tue Oct 27, 2009 1:33 am Post subject: Re: Uniforms.txt in CC tLD Reply with quote

Tejszd, Mafi added that feature to RtBTool (Mafi rules!) after the whining and complaining Wink
S3T just extracted the uniforms values from the exe to txt without any color tables for the hex values...without Mafi's tool editing the uniforms colors was next to impossible!
Maybe that's why CCWAR and CCTLD were both released with those ugly looking stock soldier uniforms  Rolling Eyes
I like the Nation slots expansion though...the more uniform slots the merrier  Very Happy
Back to top
View user's profile Send private message Visit poster's website
 
Tejszd

Rep: 133.6
votes: 19


PostPosted: Tue Oct 27, 2009 1:41 am Post subject: Re: Uniforms.txt in CC tLD Reply with quote

Can't argue with you squadleader_id, Mafi rules!!!

Thank you again Mafi for all your work on the CC tools for the mod makers, without you it would be much much harder to make mods and there would way less mods available for CC....
Back to top
View user's profile Send private message
 
Sapa

Rep: 76.3
votes: 8


PostPosted: Tue Oct 27, 2009 6:02 am Post subject: Re: Uniforms.txt in CC tLD Reply with quote

Sorry Crying or Very sad  if you think i am one of the complainers/winers...

..just got dissapointed getting a "new" CC with new features and not beeing able to change them in an easy way Sad

Mats
Back to top
View user's profile Send private message
 
Senior_Drill

Rep: 9.7
votes: 2


PostPosted: Tue Oct 27, 2009 4:34 pm Post subject: Re: Uniforms.txt in CC tLD Reply with quote

papa_whisky wrote (View Post):
Drill, following on from your post. For CCMT how is the index number determined? I see that the style and the map type partly determines the uniforms are used. How is the sniper, infantry & crew, and AT determined? Is this from the team type, or from the soldier type or something that I have missed? Many thanks in advance.


It is based on the Weapons.txt Type column; it backtracks the *Teams.txt Soldier List column back through Soldiers.txt Primary Weapon to the Weapons.txt Type.


C'est magnifique, mais ce n'est pas la guerre.
Back to top
View user's profile Send private message
 
papa_whisky

Rep: 42.2
votes: 4


PostPosted: Tue Oct 27, 2009 9:15 pm Post subject: Re: Uniforms.txt in CC tLD Reply with quote

Senior_Drill wrote (View Post):
It is based on the Weapons.txt Type column; it backtracks the *Teams.txt Soldier List column back through Soldiers.txt Primary Weapon to the Weapons.txt Type.


Many thanks Snr Drill, you have saved a few hours of experimentation Razz . That is neat. So for sniper does it only look as far as the team type in the team.txt or does it look at team.txt for uniform, then on to the weapons.txt for the weapon i.e. AT non-AT?
Back to top
View user's profile Send private message
 
Senior_Drill

Rep: 9.7
votes: 2


PostPosted: Tue Oct 27, 2009 10:44 pm Post subject: Re: Uniforms.txt in CC tLD Reply with quote

The key to a soldier's uniform color is his primary weapon.  This sounds strange at first, but it makes sense when one thinks about it.  Most of any group of soldiers are going to be in similar uniforms - Green troops with unfaded colors, vets with faded colors, FJ different than Heer and so on.  The main difference is the appearent color of their weapon - rifles with brown stocks, LMG's in some sort of gun metal grey and FT and AT weapons (primary weapons, mind you) being painted some other color.

How the engine goes about it, I dunno, but the path seems to be for each team line:

1.  *Teams.txt Nation, saved as a variable
2.  *Teams.txt Style, saved as a variable
3.  *Teams.txt Soldier List for primary weapon index number
4.  Soldiers.txt Primary Weapon for Weapons.txt Index number
5.  Weapons.txt Type of primary weapon, saved as a variable
6.  Uniform.txt to find Nation and Style, then selecting one of the three color sets based on the primary weapon's Type

Somewhere in there, it also evaluates the map type as no snow or snow (or desert in CCM and CCMT, for a third set of Styles) to decide which camo group to use.

Snipers armed with a rifle are going to be classed in the "Other" catagory and use the first color set in any of a Nation's four Styles.  If he was armed with, say a Boys AT Rifle and it has a Type of AT, then he would use the third set.  There is a bit of a restiction imposed by having only 4 Styles per Nation, but in a mod that uses only two sides, the Us'uns and the They'uns, each could use 4 of the 8 possible Nations for 12 Styles each.

If it were 4 factions, the Us'uns, the They'uns, the Them'uns and the Whothefugarethey'uns, each could have 2 Nations apiece and 8 possible Styles.  With the use of 8 possible styles, I could set sniper teams in Ghillly suits by calling them Nation 0 and the rest of the ash and trash in clown suits as Nation 0 and 1, as long as no other team member in Nation 0 uses an "other" weapon, or to put it in other words, all have clown suits and are armed with LMG's and banana cream pie throwing AT Piats while the scout snipers section is impossilbe for me to find to give orders to without using team outlines.

Hummm...... Evil Clown mod...... must think on that.


C'est magnifique, mais ce n'est pas la guerre.
Back to top
View user's profile Send private message
 
papa_whisky

Rep: 42.2
votes: 4


PostPosted: Wed Oct 28, 2009 1:22 am Post subject: Re: Uniforms.txt in CC tLD Reply with quote

Thanks Snr Drill, that is all pretty clear. All we need now is somebody to work out how to write an excel macro for the workbooks that takes an RGB value shows the colour and gives you the hex value Wink

Barnam v Vatican Swiss mercenaries would be a colourful mod. I like the concept of the PIAT cream pie thrower, alter the elements text to destroys to splurge.
Back to top
View user's profile Send private message
 
papa_whisky

Rep: 42.2
votes: 4


PostPosted: Thu Oct 29, 2009 12:01 am Post subject: Re: Uniforms.txt in CC tLD Reply with quote

The colour code appears to use a 6 bit RGB coding to convert from standard 8 bit rgb it appears you need to use the following formula:

6bit = 8bit/8 - 18

It seems to give pretty colose results, anyone got anything better?
Back to top
View user's profile Send private message
 
 
Post new topicReply to topic printer-friendly view Close Combat Series Forum Index -> Modding Workshop


 
   
 


Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum




Forums ©





In August of 2004, Zappi, Homba, Bambam887, RedScorpion and MOOXE all pitched
in to create this Close Combat site. I would to thank all the people who have visited and
found this site to thier liking. I hope you had time to check out some of the great Close Combat
mods and our forums. I'd also like to thank all the members of our volunteer staff that have
helped over the years, and all our users that contributed to this site!