Home » MODDING HQ 1.13 » v1.13 Modding, Customising, Editing » v1.13 XML Customization » Creating Molle Items (Guide)
Creating Molle Items (Guide)[message #326499] Fri, 11 October 2013 18:52 Go to next message
Off_Topic

 
Messages:1019
Registered:January 2009
There was no How To for this so i had to scrape info together and
depend on Deprissivebrot and Strohmann for advice so i'll put what i learned here.

1. Create an LBE item (Either RIG/Vest or Modular Pouch)

You'll also need to assign a NasattAchmentclass. In 1.13 4096=Small Molle/8192=Medium.

The Rig/Vest is where your Pouches will attach to.

You can do this two ways, the traditional attachment method or with the attachment point system. I used the attachment point system.

Strohmann's Info:

For example:
	
		0
		None
	
	
		1
		Scopes
	
	
		2
		Laser Attachments
	
	
		4
		Muzzle Attachments
	
	
		8
		Underbarrel Attachments
	
	
		"preceding id*2 (2x8=16 in this case)"
		abc
	
	
		"preceding id*2 (2x16=32 in this case)"
		xyz
	
...
In Items.xml you add these ids to the attachments in *here*<.
The up to 10 0< entries define which attachments an item can take.

Examples:[list][*]4< enables all attachments with the id 4, in this case scopes.
[*]12< enables in this case muzzle and underbarrel attachments (4+8=12).
[*]15< enables all attachments from the list above (1+2+4+8=15).

In the case of Stock 1.13 there were no attachment points so i assigned them like this:


0
None


1
Small Molle


2
Medium Molle


3
All Molle


This means when you are creating an item, if it's a pouch you assign it either 1 if you want it to be a small pouch or 2 if you want a medium pouch. If you assign it as attachmentpoint 3 it will accept both small (1) and (2) pouches.

If you are designing a RIG/Vest, you'll need to assign the following:

[color:#009900]===LoadBearingEquipment.xml===

How much space is there to add pockets?[/color]

This depends on the base unit you are using. For example, i used the Tiny Pocket as a base of volume 1, so from that you can work out how big you want your vest/rig to be. If you set AvailableVolume at 5 for example, even though you might have 6 pockets available, you will not be able to fit all 6 Tiny pockets.

[color:#009900]
A bitfield that determines if a free spot can be used at all (limits the number of slots on smaller carriers)[/color]

Depri's info:

1 1
2 2
3 4
4 8

5 16
6 32
7 64
8 128

9 256
10 512
11 1024
12 2048


That's all of them, if you need more than one pocket, just add up their values.

So for example, if you want 5 pockets on your Leg Rig, you'll need to add 1+2+4+8+16=31

31 is the number you enter in lbePocketsAvailable to allow 5 pockets.


[color:#009900]===Pockets.xml===

How large is this pocket? This is used internally to check if a carrier can't fit anymore pockets, even if there are empty slots.[/color]

1.13 now has volume attached to each pocket type and is related to lbeavailablevolume. A pistol Mag pocket has a volume of 2, a pistol holster 13.


[color:#009900]
===AttachmentSlots.xml===

The pocket that this slot changes
Range 1-12
Corresponds to PocketIndex1...12[/color]

sets the width, 0 is far left, increasing this value moves the slot to the right.

10 is the far left
190 is the far right.

sets the height, 0 is top, increasing this value moves the slot down. You can move a slot outside of the description box, but then obviously you don't see it anymore, so not advisable.

10 is the upper row of the Vest descbox
34 is the lower



===Items.xml===
16777216
Not a new tag, but this AC denotes pouch attachments and accepts duplicates like Grenade and Rocket do

SILVERSURFER

I'm working on the Molle system at the moment.

The display positions of are hardcoded for the different . The defines the slots that we see once we equip an LBE and where we put our stuff.

LBE Classes:
1 = Thigh Pack
2 = Vest
3 = Combat Pack
4 = Backpack
5 = LBE Pocket
6 = other Pocket

Here is a basic view how the Pocket Indexes are arranged.

The layout of the different LBE classes can be seen in AttachmentSlots.xml. I gave each pocket a descriptive name. Check indexes 26 to 61. There you can also see from their x and y position which ones belong together in a row or column.

Vests:
	1	2	3	4	5	11 	11
	6	7	8	9	10	12	12

Leg Rigs:
	1	2
	3	4
	5	5

Combat Pack:
	1	2
	3	4
	5	5
	6	6
	7	7

Backpack:
	1	5	9	9
	2	6	10	10
	3	7	11	11
	4	8	12	12

The numbers that you see in this table are the entries for each pocket.

11 + 12 are the medium slots on vests and 5 is the medium slot on leg rigs.

The position of the attachment slots is not hardcoded. We need to define this in AttachmentSlots.xml but we need to have a definition for vests and one for leg rigs. Otherwise we will get a chaotic display and we want to see the same layout that the item uses in the end.
So I assigned two new (3 and 4).

NAS Layout Classes:
1 = default
2 = Multi-Shot Grenade Launchers
3 = Molle Leg Rigs
4 = Molle Vests

Here is a screenshot to show what I mean by correct layout:
http://img132.imageshack.us/img132/9734/nntq.png
As you can see the attachment slots on the left are exactly in those positions that the attachment takes in the end on the right side.

Now I have to assign all new Molle items their correct . When this is done I will check the pockets because I have already seen that in some cases there are empty hooks assigned on top of a fixed pocket assignment.

If I find Molle items with another LBE class (combat pack for example) I will assign more NAS layout classes as needed.

[Updated on: Thu, 23 January 2014 22:03] by Moderator



Re: Creating Molle Items (Guide)[message #357864 is a reply to message #326499] Tue, 13 August 2019 21:36 Go to previous messageGo to next message
Piotr_1987

 
Messages:14
Registered:May 2013
Location: Poland
Hi,

it's been a long while but I managed to find time to sit at IOV and started to change it to fix MOLLE issue. Without this guide I wouldn't be able to figure it out myself in such short time ... MANY MANY thanks happy
Re: Creating Molle Items (Guide)[message #357873 is a reply to message #357864] Wed, 14 August 2019 21:19 Go to previous messageGo to next message
Piotr_1987

 
Messages:14
Registered:May 2013
Location: Poland
Little help needed. I'm stuck. I modified IOV vests to use new MOLLE system and everything is working fine when I'm working with small MOLLE. When I try to add Big MOLLE attachment slot it's not showing up.

I found that for vests it working with below layout but I cannot figure out what's the number for big slot

1 2 4 8 16 ?

32 64 128 256 512 ?

Any help would be appreciated.
Re: Creating Molle Items (Guide)[message #358665 is a reply to message #357873] Tue, 17 December 2019 01:32 Go to previous messageGo to next message
Kitty

 
Messages:105
Registered:October 2017
Location: Germany
Piotr_1987 wrote on Wed, 14 August 2019 21:19
Little help needed. I'm stuck. I modified IOV vests to use new MOLLE system and everything is working fine when I'm working with small MOLLE. When I try to add Big MOLLE attachment slot it's not showing up.

I found that for vests it working with below layout but I cannot figure out what's the number for big slot

1 2 4 8 16 ?

32 64 128 256 512 ?

Any help would be appreciated.
items.xml:

<ITEM>
<uiIndex>1682</uiIndex>
<szItemName>MAT-V</szItemName>
<szLongItemName>TT Modular Vest</szLongItemName>
<szItemDesc>The TT Modular Adjustable Tactical Vest is a modern update to the traditional modular vest.</szItemDesc>
<szBRName>TT Modular Tactical Vest</szBRName>
<szBRDesc>The Modular Adjustable Tactical Vest is a modern update to the traditional modular vest. The MAT-V has been designed to combine function and comfort without sacrificing either.</szBRDesc>

<usItemClass>131072</usItemClass> is = LBE (seen in TableData\Lookup\itemClass.xml

<nasLayoutClass>8</nasLayoutClass> is = Molle Vests (seen in TableData\Lookup\NasLayoutClass.xml

<AvailableAttachmentPoint>3</AvailableAttachmentPoint> is = All Molle (seen in TableData\Lookup\AttachmentPoint.xml)(All Molle = Small Molle plus Medium Molle.With this, both sizes are available)

<ubClassIndex>82</ubClassIndex> is = UiIndex of Item in TableData\Items\LoadBearingEquipment.xml

<ubGraphicType>2</ubGraphicType>
<ubGraphicNum>210</ubGraphicNum>
<ubWeight>12</ubWeight>
<ItemSize>23</ItemSize>
<usPrice>300</usPrice>
<ubCoolness>6</ubCoolness>
<BR_NewInventory>2</BR_NewInventory>
<BR_UsedInventory>1</BR_UsedInventory>
<CamoBonus>15</CamoBonus>
<usOverheatingCooldownFactor>100.0</usOverheatingCooldownFactor>
<STAND_MODIFIERS />
<CROUCH_MODIFIERS />
<PRONE_MODIFIERS />
</ITEM>

LoadBearingEquipment.xml:

<LOADBEARINGEQUIPMENT>

<lbeIndex>82</lbeIndex> is = ClassIndex in items.xml

<lbeClass>2</lbeClass> is = Vest (seen in TableData\Lookup\LBEClass.xml)

<lbeCombo>0</lbeCombo> true: 1 / false: 0 Used for combination of Backpacks and CombatPacks (example would be TIMS-Backpack and TIMS-CombatPack)

<lbeFilledSize>29</lbeFilledSize> Item Size after filled, is higher then size in items.xml

<lbeAvailableVolume>70</lbeAvailableVolume> Maximum that can fit in Vest (Backpack, Rig, etc.). Each attached pocket has own weight-value, so sometimes vest is "full", even if there is still a free

slot.




<lbePocketsAvailable>3968</lbePocketsAvailable> All AttachmentSlots that fit type of Molle as set in "AvailableAttachmentPoint"-tag in Items.xml can be made available here. In this case "All Molle",

Small and Medium, are allowed. However, for this vest slots 1-7 allready carry pockets by default and therefore are no longer available. Slots for PocketIndex 8 to 12 are free and can be made available.

To do so, one must add up their numbers (not sure how to name them), see below. For this vest the math works like this: 128 + 256 + 512 + 1024 + 2048 = 3968 (adding up the values for 8,9,10,11 and 12)



<lbePocketIndex1>55</lbePocketIndex1> Upper Row 1 Small (in AttachmentSlots.xml), IndexNr from Pockets.xml, Double Grenade
<lbePocketIndex2>54</lbePocketIndex2> Upper Row 2 Small (in AttachmentSlots.xml), IndexNr from Pockets.xml, Flashbang1x
<lbePocketIndex3>45</lbePocketIndex3> Upper Row 3 Small (in AttachmentSlots.xml), IndexNr from Pockets.xml, Double AR
<lbePocketIndex4>45</lbePocketIndex4> Upper Row 4 Small (in AttachmentSlots.xml), IndexNr from Pockets.xml, Double AR
<lbePocketIndex5>38</lbePocketIndex5> Upper Row 5 Small (in AttachmentSlots.xml), IndexNr from Pockets.xml, Carabiner Ring

<lbePocketIndex6>17</lbePocketIndex6> Lower Row 1 Small (in AttachmentSlots.xml), IndexNr from Pockets.xml, Small General
<lbePocketIndex7>17</lbePocketIndex7> Lower Row 2 Small (in AttachmentSlots.xml), IndexNr from Pockets.xml, Small General

<lbePocketIndex8>0</lbePocketIndex8> Lower Row 3 Small (in AttachmentSlots.xml), free AttachmentSlot, made available because it's added to "lbePocketsAvailable"- tag above
<lbePocketIndex9>0</lbePocketIndex9> Lower Row 4 Small (in AttachmentSlots.xml), free AttachmentSlot, made available because it's added to "lbePocketsAvailable"- tag above
<lbePocketIndex10>0</lbePocketIndex10> Lower Row 5 Small (in AttachmentSlots.xml), free AttachmentSlot, made available because it's added to "lbePocketsAvailable"- tag above

<lbePocketIndex11>0</lbePocketIndex11> Upper Row 6 Medium (in AttachmentSlots.xml), free AttachmentSlot, made available because it's added to "lbePocketsAvailable"- tag above
<lbePocketIndex12>0</lbePocketIndex12> Lower Row 6 Medium (in AttachmentSlots.xml), free AttachmentSlot, made available because it's added to "lbePocketsAvailable"- tag above

</LOADBEARINGEQUIPMENT>



LAYOUT-Design MAT-V Vest:

Upper Row: 1 2 3 4 5 11
Lower Row: 6 7 8 9 10 12

LAYOUT-Design MAT-V Vest in Numbers:

Upper Row: 1 2 4 8 16 1024
Lower Row: 32 64 128 256 512 2048

(1--1, 2--2, 3--4, 4--8, 5--16, 6--32, 7--64, 8--128, 9--256, 10--512, 11--1024, 12--2048) (Dunno, are those Flags?)

I guess the numbers you are searching for were 1024 and 2048. If slot for medium Molle attachments doesn't show up I suggest it's either
because you couldn't get the right summ for "lbePocketsAvailable"-tag or in items.xml "AvailableAttachmentPoint"-tag has an value that
doesn't include the medium sized molle pockets (must be 3 or 7).

Hope this is of some help.

[Updated on: Tue, 17 December 2019 01:39]




I need more details.

(Didi Hallervorden)
Re: Creating Molle Items (Guide)[message #358670 is a reply to message #358665] Tue, 17 December 2019 17:46 Go to previous message
DepressivesBrot

 
Messages:3747
Registered:July 2009
Minor nitpick: <lbeCombo> isn't a boolean, it's another flag mask. Base 1.13 just so happens to only have the TIMS combo available but you can do the same 2^n math with it.



Chat with us!
#bearpit on IRC
Discord
Get your latest 1.13 Builds
(Pls don't use my forum PMs for general game queries)


Previous Topic: How to deal with JA2set.dat.xml ?
Next Topic: XML Editor Update: Let me deal with this!
Goto Forum:
  


Current Time: Mon Jan 20 13:35:35 EET 2020

Total time taken to generate the page: 0.01884 seconds