Jump to content
Sheltered

Clothing v41 - Generation XML

Recommended Posts

Hello,

 

I would like to know more about clothings in v41, more specifically the generation of XML.

media\clothing\clothing.xml - This file creates specific respawn for professions, for example, makes the zombie declared as Firefighter respawn only in fireman's clothes without mixing with policeman or any other.
This file uses code that I believe is generated by some type of programming or website.
Example: 56e0b193-733d-4061-9a73-167f6b253ec7
This code represents the Jacket_Fireman detailed in
media\clothing\clothingItems\Jacket_Fireman.XML
And with the respawn set at a 50% (0.5) chance of appearing on the fireman through line 659 of the Fireman zombie clothing.xml file.

The point is that this link is very important for the creation of clothing MODS as the textures and respawns are being directed through these XML.
To maintain a standardization in the MOD based on the base coding, the question remains. How are these codes generated?

 

If they are generated randomly, how should I proceed to create new ones without repeating any code from the base of the game so as not to generate errors?

Edited by Sheltered

Share this post


Link to post
Share on other sites
Posted (edited)

Those weird strings are called GUIDs.

 

The idea is that it is so astronomically improbable that anyone could ever generate the same GUID as someone else, ever, anywhere, throughout human history and until the sun explodes, that you can very safely assume that they will be unique from all others in your game or application.

 

There are websites that will generate one for you.

 

Edited by ohgodspidersno
Emphasis on improbable

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...