Home » MODDING HQ 1.13 » Flugente's Magika Workshop » New feature: Easily applicable clothes
New feature: Easily applicable clothes[message #310208] Sun, 16 September 2012 04:46 Go to next message
Flugente

 
Messages:3509
Registered:April 2009
Location: Germany
Visual merc customization: colours can now be applied specifically

As Thor volunteered to do the necessary picture work, and I pretty much liked the idea, I made this addition. It is strongly tied to the covert ops trait (http://www.bears-pit.com/board/ubbthreads.php/topics/310182/1.html), however I feel a separate thread is justifiable.

Basically, clothes are now regular items. One can decide to wear them, simply by dropping them onto the merc silhouette in your inventory. The merc will immediately switch clothes.

In the current implementation, clothes exist as shirts and pants separately, although it is perfectly possible to combine both. As of GameDir r1541, there is an example merge that does exactly that.

If one already ears clothes (that is, a clothes item has previously been applied in that slot), you will retrieve the old clothes item. This allows for easy switching of clothes. Provided you have the items, you can now dress your mercs in whatever colours you like. So you could, say, colour your squads differently, or devise your own colourscheme depending on your mercs role in the field (medics are red, snipers are blue... :bunny: ).

If you apply both shirt and pants, your merc will disguise (for the new covert ops skill). If you dress in a soldier's uniform, you will be disguised as a soldier, otherwise you'll be disguised as a civilian. Note that this even works if you switch the uniform colours in the xml, no need to stick to the classic redshirt-theme for this.

If you want to get out of the clothes, you can get back to your mercs original clothes via '4' on the menu called via 'Ctrl' + '.'. When covert, the covert flags will be removed, if not, the custom clothes will be taken off.

Note that loosing your disguise while covert no longer causes your merc to strip, as you can do that yourself.

Clothes items can be bought at BR, at local merchants or from dead bodies. You can now take the clothes off of any human corpse that isn't too much decayed. You will recieve a shirt and a pair of pants (provided your xmls are up to date).

As these kind of items would perfectly fit into Tinas shop, along with LBE gear, it would be nice if certain people (whose name I spontaneously forgot :wrysmiley: ) would code the possibility of more merchants, like they said they would...

You can easily create new clothes combos (like an item that gives green shirt and green pants). However, it is very important that you do NOT change the first 17 items in Clothes.xml, they are needed for spawning clothes items.

Again, many thanks to Thor for creating the item pics.

Demonstration pics:

http://i46.tinypic.com/bhanf8.jpg
This is Malice with a wide selection of clothes.

http://i46.tinypic.com/j7eo0h.jpg
This is malice after dressing.

http://i49.tinypic.com/2uotog3.jpg
Press '4' and he'll be back to usual.

Needed revisions are GameDir r1541 and Exe r5568.

JMich-only part for xml editor:

Items.xml has a new UINT32 tag, . It is the number of the clothes type in the new Clothes.xml
Aslo note that for the Action Item fix, I added the UINT32-flagmask there.

Clothes.xml:


    23              // UINT16 - number of clothes item.
    shirt and pants   // a CHAR16-field of length 80. Simply the name in this xml, not used anywhere
    YELLOWVEST            // PaletteRepID is a typedef of a 30-length CHAR8, see Army/UniformColors.xml for reference
    JEANPANTS           // PaletteRepID is a typedef of a 30-length CHAR8, see Army/UniformColors.xml for reference



or can perfectly be omitted. However, if they do exist, it is important that they correspond to an existing PaletteRepID, so be careful if you alter anything. The possible names are in the comments of the xml file.

[Updated on: Sun, 16 September 2012 17:07] by Moderator

Report message to a moderator

Captain

Re: New feature: Easily applicable clothes[message #310212] Sun, 16 September 2012 09:56 Go to previous messageGo to next message
lockie is currently offline lockie

 
Messages:3721
Registered:February 2006
Location: Scotland
I demand a suit , what self respecting merc doesn't travel with a suit ?

Oh , and several white shirts , ties and some decent socks wouldn't go amiss ...... :wrysmiley:

Report message to a moderator

Captain

Re: New feature: Easily applicable clothes[message #310217] Sun, 16 September 2012 11:44 Go to previous messageGo to next message
DepressivesBrot is currently offline DepressivesBrot

 
Messages:3658
Registered:July 2009
You forgot to change the project files to include the new .cpp.

Report message to a moderator

Captain

Re: New feature: Easily applicable clothes[message #310219] Sun, 16 September 2012 12:21 Go to previous messageGo to next message
JAsmine is currently offline JAsmine

 
Messages:306
Registered:May 2011
"take off all clothes"???
I've been waiting years for this to happen! Can't wait to see Dr. Quinten naked!

But seriously: This is a nice feature for applying uniforms e.g. for squad 1 & 2 or different roles within the team. I like it. And the idea of turning Tina into a merchant for clothes is great. :bluecool:

Report message to a moderator

Master Sergeant
Re: New feature: Easily applicable clothes[message #310220] Sun, 16 September 2012 13:55 Go to previous messageGo to next message
Thor is currently offline Thor

 
Messages:423
Registered:February 2007
Location: Belgium
Great job, Flugente! And fast. You're welcome. Well, I'm not exactly thrilled yet about the clothes images I made (now that I see them in-game), but I will be able to change their appearance more easily once I can check 'em in-game... We can always replace them later. At least we have something workeable now to get a new appearance for the merc thanks to your coding, mate! Wink
Great addition to your covert system as well and personally, I'll be inclined to hire mercs I wouldn't have hired earlier.

Report message to a moderator

Master Sergeant
Re: New feature: Easily applicable clothes[message #310221] Sun, 16 September 2012 15:36 Go to previous messageGo to next message
Thor is currently offline Thor

 
Messages:423
Registered:February 2007
Location: Belgium
I should make the pics a bit darker.

Report message to a moderator

Master Sergeant
Re: New feature: Easily applicable clothes[message #310224] Sun, 16 September 2012 17:10 Go to previous messageGo to next message
Flugente

 
Messages:3509
Registered:April 2009
Location: Germany
Thanks for the info, Depri, just did that. r5568 is the newest exe.

@JAsmine: Oh, I also considered those interests in there. :blackcat: Very Happy

[Updated on: Sun, 16 September 2012 17:11] by Moderator

Report message to a moderator

Captain

Re: New feature: Easily applicable clothes[message #310230] Sun, 16 September 2012 20:59 Go to previous messageGo to next message
Thor is currently offline Thor

 
Messages:423
Registered:February 2007
Location: Belgium
Probably the clothes that you showed in the images that have changed and gotten lighter, right? I'll use the P2 for 'em. The BigItems are still okay? Where can I get the correct files to see 'em in-game?

Report message to a moderator

Master Sergeant
Re: New feature: Easily applicable clothes[message #310231] Sun, 16 September 2012 21:04 Go to previous messageGo to next message
Flugente

 
Messages:3509
Registered:April 2009
Location: Germany
You can get the new files from GameDir revision 1541 and higher. BigItems look okay, its the medium items where the palettes don't mix well.

Report message to a moderator

Captain

Re: New feature: Easily applicable clothes[message #310240] Sun, 16 September 2012 23:57 Go to previous messageGo to next message
Thor is currently offline Thor

 
Messages:423
Registered:February 2007
Location: Belgium
Here they are... A folder with the .BMP files (11v + 6p) and a .STI file with all of them in MDP2 colours Wink

[Updated on: Sun, 16 September 2012 23:57] by Moderator

Report message to a moderator

Master Sergeant
Re: New feature: Easily applicable clothes[message #310242] Mon, 17 September 2012 00:12 Go to previous messageGo to next message
Flugente

 
Messages:3509
Registered:April 2009
Location: Germany
Eh... thanks, but a link to that would be very helful Very Happy

Report message to a moderator

Captain

Re: New feature: Easily applicable clothes[message #310246] Mon, 17 September 2012 00:31 Go to previous messageGo to next message
Thor is currently offline Thor

 
Messages:423
Registered:February 2007
Location: Belgium
http://www.filefactory.com/file/5zxt7lolqmu3/n/Vests_amp_Pants_zip

Smile Ouch... The new v.1.13 files, how can I find them most easily? SVN?

[Updated on: Mon, 17 September 2012 00:31] by Moderator

Report message to a moderator

Master Sergeant
Re: New feature: Easily applicable clothes[message #310249] Mon, 17 September 2012 00:50 Go to previous messageGo to next message
Flugente

 
Messages:3509
Registered:April 2009
Location: Germany
https://ja2svn.dyndns.org/source/ja2_v1.13_data/GameDir

Report message to a moderator

Captain

Re: New feature: Easily applicable clothes[message #310251] Mon, 17 September 2012 01:25 Go to previous messageGo to next message
Thor is currently offline Thor

 
Messages:423
Registered:February 2007
Location: Belgium
Adjusted MDP2ITEMS.STI: http://www.filefactory.com/file/773jrfb9ujx1/n/MDP2ITEMS_STI

Report message to a moderator

Master Sergeant
Re: New feature: Easily applicable clothes[message #310256] Mon, 17 September 2012 02:49 Go to previous messageGo to next message
Flugente

 
Messages:3509
Registered:April 2009
Location: Germany
Thank youagain.

Since this is now ingame, you might want to take a look at it yourself. Most colours are better, but some (bluejeans and light green shirt) are just odd...

An exe with this is propably in Depri's sig.

Report message to a moderator

Captain

Re: New feature: Easily applicable clothes[message #310257] Mon, 17 September 2012 03:08 Go to previous messageGo to next message
Thor is currently offline Thor

 
Messages:423
Registered:February 2007
Location: Belgium
Just downloaded the SVN file... Doesn't work, though. I'll try again later.

Light green shirt? Hmm... wasn't the intention...Should be dark green. I'm also redoing the BigItems... I don't like the white border so much.

[Updated on: Mon, 17 September 2012 03:32] by Moderator

Report message to a moderator

Master Sergeant
Re: New feature: Easily applicable clothes[message #310285] Mon, 17 September 2012 19:37 Go to previous messageGo to next message
Thor is currently offline Thor

 
Messages:423
Registered:February 2007
Location: Belgium
Aha, now I know what you mean... Made a mistake. The GYELLOW... It's green-yellow, thought it was gold-yellow...

Report message to a moderator

Master Sergeant
Re: New feature: Easily applicable clothes[message #310289] Mon, 17 September 2012 22:40 Go to previous messageGo to next message
Flugente

 
Messages:3509
Registered:April 2009
Location: Germany
Yes. No idea why its called yellow when its more like green, but thats the way it is.

Update: As of r5572, shooting/stabbing someone can damage their vest/pants independently. This also works on your mercs' clothes - if they get shot, the stuff they wear can get bloody - they still wear the shirt/pants, but upon taking it off, you do not receive the item (as its bloody, it would no longer work for covert ops, that's why).

Report message to a moderator

Captain

Re: New feature: Easily applicable clothes[message #310363] Tue, 18 September 2012 23:37 Go to previous messageGo to next message
Flugente

 
Messages:3509
Registered:April 2009
Location: Germany
Nope. Those items aren't sold, you have to kill for them.

Also, the BigItems are way brighter than the other ones...

Report message to a moderator

Captain

Re: New feature: Easily applicable clothes[message #310365] Tue, 18 September 2012 23:43 Go to previous messageGo to next message
Thor is currently offline Thor

 
Messages:423
Registered:February 2007
Location: Belgium
Yes, I'm planning to change them Wink

Report message to a moderator

Master Sergeant
Re: New feature: Easily applicable clothes[message #310409] Wed, 19 September 2012 21:16 Go to previous messageGo to next message
Thor is currently offline Thor

 
Messages:423
Registered:February 2007
Location: Belgium
New clothes images:
http://www.filefactory.com/file/55g27wq8h37n/n/Clothes_zip

Here's new BigItems pics for pants & trousers... I can't check the new (darker) interface pics in-game... If I try to replace them, my JA2 game doesn't start anymore... Seems resetted in the ini editor. Can also have to do with that I accidentally try to run the normal Ja2 demo, but I think it wasn't a problem before. I normally used version 5568.
Anyway, I couldn't check the BigItems in game, but I have great expectations.

(Ha, and I thought when I saw the earlier versions in-game (BR's), that you mixed the colours from two clothes. The jeans with something else if I remember correctly). Anyway... gotta go now, cheers! Wink

Report message to a moderator

Master Sergeant
Re: New feature: Easily applicable clothes[message #310414] Wed, 19 September 2012 22:16 Go to previous messageGo to next message
Flugente

 
Messages:3509
Registered:April 2009
Location: Germany
Thanks again, again. These pics look waay better. A problem is that this is oen sort of item where you can really tell if the colour fits, as you see it ingame on your merc Smile

As in:

The medium pic for the white shirt looks blue.
The medium pic for the blue pants looks purple.
Thee big pic for the green pants looks black.
The big pics for jean and blue pants look almost the same.

I guess this comes from our beloved STI-format, that constantly adjusts colours to its own will. I'll check the new pics in today, then you can see (and experiment) for yourself.

Report message to a moderator

Captain

Re: New feature: Easily applicable clothes[message #310426] Thu, 20 September 2012 03:16 Go to previous messageGo to next message
Thor is currently offline Thor

 
Messages:423
Registered:February 2007
Location: Belgium
Thanks for checking. Okay, saw the clothes in-game. They look a lot better, indeed.
You (or I) seem to have exhanged the white medium shirt with the jean shirt... That's why it's blue and the jean shirt white.
I'll look into the others later.
Noticed that the medium light green shirt looks yellow still.

Report message to a moderator

Master Sergeant
Re: New feature: Easily applicable clothes[message #310503] Sat, 22 September 2012 12:16 Go to previous messageGo to next message
Aona is currently offline Aona
Messages:1
Registered:September 2012
Hello I am a novice excuse me, where can I find Exe r5568. Can download it

Report message to a moderator

Civilian
Re: New feature: Easily applicable clothes[message #310504] Sat, 22 September 2012 12:34 Go to previous messageGo to next message
Gambigobilla

 
Messages:693
Registered:July 2008
DepressivesBrot compiles exes regularly. You should check his forum sig.

Here is the link for his SkyDrive: http://tinyurl.com/cux34yk

Report message to a moderator

First Sergeant
Re: New feature: Easily applicable clothes[message #310638] Tue, 25 September 2012 20:41 Go to previous messageGo to next message
Flugente

 
Messages:3509
Registered:April 2009
Location: Germany
Just out of curiosity, I experimented a bit further with the palettes of clothes. For example, one can do things like this:

http://i45.tinypic.com/2ppfs5l.jpg

In this case, I hacked in other colours. However, one has to alter a whole palette, in this case, 14 different colours, each an RGB value. A more severe problem is that these values are read from a .dat file in BINARYDATA - does anybody know an Editor for that (is there even one? Binary does not sound good).

Report message to a moderator

Captain

Re: New feature: Easily applicable clothes[message #310641] Tue, 25 September 2012 21:40 Go to previous messageGo to next message
Scheinworld is currently offline Scheinworld

 
Messages:961
Registered:December 2007
Location: Baltic Sea, Germany
Hallo Flugente,

Flugente
[...] A more severe problem is that these values are read from a .dat file in BINARYDATA - does anybody know an Editor for that (is there even one? Binary does not sound good).


You mean the JA2PAL.dat file located in the BinaryData? This one can be edited with the JA2PAL Editor by Toxic:

http://kermi.pp.fi/JA_2/Modding_Tools/JA2PAL_Editor.rar


Best regards; Schein

Report message to a moderator

First Sergeant

Re: New feature: Easily applicable clothes[message #314508] Mon, 21 January 2013 17:23 Go to previous messageGo to next message
jumika is currently offline jumika
Messages:1
Registered:January 2010
How can i obtain the clothes from the bodies? I tried to use knife on dead bodies, but it only gave me the throusers.

Report message to a moderator

Civilian
Re: New feature: Easily applicable clothes[message #314509] Mon, 21 January 2013 17:43 Go to previous messageGo to next message
Sam Hotte

 
Messages:1966
Registered:March 2009
Location: Middle of Germany
Welcome to the pit, jumi. :cheers:

Jumi
How can i obtain the clothes from the bodies? I tried to use knife on dead bodies, but it only gave me the throusers.


If the body is dead becuase someone shot/stabbed at its upper body, then that's why:

Flugente
Update: As of r5572, shooting/stabbing someone can damage their vest/pants independently. This also works on your mercs' clothes - if they get shot, the stuff they wear can get bloody - they still wear the shirt/pants, but upon taking it off, you do not receive the item (as its bloody, it would no longer work for covert ops, that's why).


So vests/shirts that show marks from the kill cannot be looted from dead bodies.

Report message to a moderator

Sergeant Major
Re: New feature: Easily applicable clothes[message #314873] Mon, 28 January 2013 22:27 Go to previous messageGo to next message
Thor is currently offline Thor

 
Messages:423
Registered:February 2007
Location: Belgium
Hmmm... how come my mercs take their clothes off? They are civilian clothes actually, and I guess they take them off right after they are identified as enemies? My plan was to merely use them as uniforms, but it doesn't seem possible this way..

Could it be because I play without the food feature enabled? Are the features linked to each other?

Report message to a moderator

Master Sergeant
Re: New feature: Easily applicable clothes[message #314874] Mon, 28 January 2013 23:13 Go to previous messageGo to next message
Flugente

 
Messages:3509
Registered:April 2009
Location: Germany
If you are disguised and revealed, clothes go off automatically. However, if you are disguised and click the 'Take off clothes'-button, you will only lose the disguise-property, but not the clothes... So simply dress up however you like, and then click that once.

These features are not linked together.

Report message to a moderator

Captain

Re: New feature: Easily applicable clothes[message #314875] Tue, 29 January 2013 00:13 Go to previous message
Thor is currently offline Thor

 
Messages:423
Registered:February 2007
Location: Belgium
Aha, good to know. Thanks a lot, mate! Wink

Report message to a moderator

Master Sergeant
Previous Topic: New feature: enemy assassins
Next Topic: New feature: Class specific gun/item choices
Goto Forum:
  


Current Time: Fri Mar 29 12:09:15 GMT+2 2024

Total time taken to generate the page: 0.02104 seconds