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
|
|
Off_Topic |
  |
Messages:997
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:

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 Report message to a moderator
|
|
|
|
Goto Forum:
Current Time: Mon Mar 24 08:54:49 GMT+2 2025
Total time taken to generate the page: 0.00776 seconds
|