Post by predaaator on Oct 7, 2016 1:27:07 GMT
Hi my friends, I have figured out the way to make custom ammo, but there are some stuff I still dont know (I will describe them at the end), but as soon as I know it I will add them here. By the moment it work like a sharm.
For this tutorial I will make "Magnum ammo" for .44 Magnum (Hunter) and the D50 (Deagle).
1.Changing Deagle ammo from pistol to magnum:
Open the entity 7676525528817.ark.xml (Deagle properties) and make this change:
this...
<field name="text_ammoAmmoType" type="String">pistol</field>
<field name="ammoAmmoType" type="Hash32">A2D12CBB</field>
for this...
<field name="text_ammoAmmoType" type="String">magnum</field>
<field name="ammoAmmoType" type="Hash32">24095A1C</field>
To make the Hash32 convertion use the tool "Razor.DataConversion.exe", write magnum and convert string to CRC32
2.Adding the magnum ammo to the "Small_Ammo_Pickup" entity:
Open the entity 252209162487459487.ark.xml, copy and past these lines into <object hash="DE337C1A">:
<object hash="5B0F6343">
<field hash="AB258E09" type="BinHex">706973746F6C00</field> // pistol (string -> bixhex)
<field hash="5957C8C7" type="BinHex">BB2CD1A2</field>
<field hash="AA58921D" type="BinHex">00000000</field>
<field hash="12F0DC28" type="BinHex">08000000</field> // ammo amount
<field hash="0A8C4D27" type="BinHex">00</field>
</object>
now you will have a duplicated of pistol ammo, just change the name, the ammo amount and save
<object hash="5B0F6343">
<field hash="AB258E09" type="BinHex">6D61676E756D</field> // magnum (string -> bixhex)
<field hash="5957C8C7" type="BinHex">1C5A0924</field> // convert magnum for string to crc32, then convert the crc32 to binary (binhex -> crc32)
<field hash="AA58921D" type="BinHex">00000000</field>
<field hash="12F0DC28" type="BinHex">06000000</field> // ammo amount (75% pistol)
<field hash="0A8C4D27" type="BinHex">00</field>
</object>
3.Adding the ammo to the store:
Convert the CDCB723F8C565609.maybe.rml to CDCB723F8C565609.xml, open it and search the Name="Ammo/Handgun", copy and paste these lines:
<Generic disLibItemId="7713433095097" Name="Ammo/Handgun" hidGUID_Legacy="{BEC3FE8C-F35B-417D-9F2A-025B1D3B929A}" hidSingleObject="0" bCanBeShared="1" hidName="Ammo/Handgun" disId="1391" locidItemNameId="145636" shpcatCategory="11" shpscataSubCategory1="190" shpscatbSubCategory2="255" shpitpeItemType="73" shpisubtpeItemSubType="255" locidDescriptionId="145623" locidBuyConditionId="1153375296" locidRecommendedUse="625474432" locidLockText="484445808" bIsSingleHanded="0" locidWeaponTypeText="373081472" selAttachmentType="0" ammoAmmoType="pistol" iAmmoAmount="24" selGadgetType="0" arkArchetype="7722561908339" fRotationSpeed="0.07" fRotationAmplitude="0.02" sName="" fRefillAllAmmoCostMultiplier="1" iXPOnLoot="0" iKarmaOnLoot="0" iSortId="5" UnlockOnMissionComplete="" UnlockFromScript="" ecoUnlockFromShopItem="0" sUnlocksAbility="" bVisibleWhenLocked="0" bVisibleInInventory="0" bShowCurrentCount="1" sShopIconName="TX_Handgun" sHudIconName="Human_AmmoLoot" bIsLootItem="0" bIsTreasureMap="0" bIsRareItem="0" selCollectibleType="3" bIsWeaponStatistics="0" sULC_Name="" wikiItemId="65535" sStatStringToUpdate="">
<DefaultPositionOnScreen vectorDisplayDefaultPosition="-0.13,-0.37,0.31" DisplayDefaultAngles="-4.1,-29.7,93.9" vectorDisplayDefaultPositionWithSilencer="0,0,0" DisplayDefaultAnglesWithSilencer="0,0,0" />
<CategoryPositionOnScreen bDisplayAsDefaultItem="0" vectorDisplayDefaultCategoryPosition="0,0,0" DisplayDefaultCategoryAngles="0,0,0">
<DefaultAttachmentsNames>
<DefaultAttachmentName Name="" />
</DefaultAttachmentsNames>
</CategoryPositionOnScreen>
<ShopTypeDatas>
<ShopTypeData shptypShopType="1" buyValue="2000" sellValue="-1" bModulateCostOfItemWithKarmaLevel="0" />
<ShopTypeData shptypShopType="2" buyValue="2000" sellValue="-1" bModulateCostOfItemWithKarmaLevel="0" />
<ShopTypeData shptypShopType="255" buyValue="-1" sellValue="-1" bModulateCostOfItemWithKarmaLevel="0" />
</ShopTypeDatas>
<PositionOnFullScreen FullscreenpAngles="0,0,0" vectorFullscreenCenterOffset="0,0,0" />
</Generic>
now you have the pistol ammo duplicated. Change this lines:
disId="1001" (you can create your own, but this works for me)
locidItemNameId="58338" (I take that name from the Hunter/.44 Magnum, I guess it need be added in oasis file)
ammoAmmoType="magnum"
iAmmoAmount="18" (this represent 75% of pistol ammo)
4.Unknown stuff:
1.limit the default pistol ammo (that because appears 1000 in the store)
2.Ammo name (I guess it need be added in oasis file)
3.lootinggroups_default (This contain the ammo lootable from corpses in FC3, I didn't find it on FC4)
4.Ammo Pile (I could not find the entity for it)
5.Known bugs:
When you take the small ammo pickup, it doesnt display the ammo name but the amount (I guess it need be added in oasis file).
6.Magnum ammo mod:
magnum_ammo.rar (102.56 KB)
For this tutorial I will make "Magnum ammo" for .44 Magnum (Hunter) and the D50 (Deagle).
1.Changing Deagle ammo from pistol to magnum:
Open the entity 7676525528817.ark.xml (Deagle properties) and make this change:
this...
<field name="text_ammoAmmoType" type="String">pistol</field>
<field name="ammoAmmoType" type="Hash32">A2D12CBB</field>
for this...
<field name="text_ammoAmmoType" type="String">magnum</field>
<field name="ammoAmmoType" type="Hash32">24095A1C</field>
To make the Hash32 convertion use the tool "Razor.DataConversion.exe", write magnum and convert string to CRC32
2.Adding the magnum ammo to the "Small_Ammo_Pickup" entity:
Open the entity 252209162487459487.ark.xml, copy and past these lines into <object hash="DE337C1A">:
<object hash="5B0F6343">
<field hash="AB258E09" type="BinHex">706973746F6C00</field> // pistol (string -> bixhex)
<field hash="5957C8C7" type="BinHex">BB2CD1A2</field>
<field hash="AA58921D" type="BinHex">00000000</field>
<field hash="12F0DC28" type="BinHex">08000000</field> // ammo amount
<field hash="0A8C4D27" type="BinHex">00</field>
</object>
now you will have a duplicated of pistol ammo, just change the name, the ammo amount and save
<object hash="5B0F6343">
<field hash="AB258E09" type="BinHex">6D61676E756D</field> // magnum (string -> bixhex)
<field hash="5957C8C7" type="BinHex">1C5A0924</field> // convert magnum for string to crc32, then convert the crc32 to binary (binhex -> crc32)
<field hash="AA58921D" type="BinHex">00000000</field>
<field hash="12F0DC28" type="BinHex">06000000</field> // ammo amount (75% pistol)
<field hash="0A8C4D27" type="BinHex">00</field>
</object>
3.Adding the ammo to the store:
Convert the CDCB723F8C565609.maybe.rml to CDCB723F8C565609.xml, open it and search the Name="Ammo/Handgun", copy and paste these lines:
<Generic disLibItemId="7713433095097" Name="Ammo/Handgun" hidGUID_Legacy="{BEC3FE8C-F35B-417D-9F2A-025B1D3B929A}" hidSingleObject="0" bCanBeShared="1" hidName="Ammo/Handgun" disId="1391" locidItemNameId="145636" shpcatCategory="11" shpscataSubCategory1="190" shpscatbSubCategory2="255" shpitpeItemType="73" shpisubtpeItemSubType="255" locidDescriptionId="145623" locidBuyConditionId="1153375296" locidRecommendedUse="625474432" locidLockText="484445808" bIsSingleHanded="0" locidWeaponTypeText="373081472" selAttachmentType="0" ammoAmmoType="pistol" iAmmoAmount="24" selGadgetType="0" arkArchetype="7722561908339" fRotationSpeed="0.07" fRotationAmplitude="0.02" sName="" fRefillAllAmmoCostMultiplier="1" iXPOnLoot="0" iKarmaOnLoot="0" iSortId="5" UnlockOnMissionComplete="" UnlockFromScript="" ecoUnlockFromShopItem="0" sUnlocksAbility="" bVisibleWhenLocked="0" bVisibleInInventory="0" bShowCurrentCount="1" sShopIconName="TX_Handgun" sHudIconName="Human_AmmoLoot" bIsLootItem="0" bIsTreasureMap="0" bIsRareItem="0" selCollectibleType="3" bIsWeaponStatistics="0" sULC_Name="" wikiItemId="65535" sStatStringToUpdate="">
<DefaultPositionOnScreen vectorDisplayDefaultPosition="-0.13,-0.37,0.31" DisplayDefaultAngles="-4.1,-29.7,93.9" vectorDisplayDefaultPositionWithSilencer="0,0,0" DisplayDefaultAnglesWithSilencer="0,0,0" />
<CategoryPositionOnScreen bDisplayAsDefaultItem="0" vectorDisplayDefaultCategoryPosition="0,0,0" DisplayDefaultCategoryAngles="0,0,0">
<DefaultAttachmentsNames>
<DefaultAttachmentName Name="" />
</DefaultAttachmentsNames>
</CategoryPositionOnScreen>
<ShopTypeDatas>
<ShopTypeData shptypShopType="1" buyValue="2000" sellValue="-1" bModulateCostOfItemWithKarmaLevel="0" />
<ShopTypeData shptypShopType="2" buyValue="2000" sellValue="-1" bModulateCostOfItemWithKarmaLevel="0" />
<ShopTypeData shptypShopType="255" buyValue="-1" sellValue="-1" bModulateCostOfItemWithKarmaLevel="0" />
</ShopTypeDatas>
<PositionOnFullScreen FullscreenpAngles="0,0,0" vectorFullscreenCenterOffset="0,0,0" />
</Generic>
now you have the pistol ammo duplicated. Change this lines:
disId="1001" (you can create your own, but this works for me)
locidItemNameId="58338" (I take that name from the Hunter/.44 Magnum, I guess it need be added in oasis file)
ammoAmmoType="magnum"
iAmmoAmount="18" (this represent 75% of pistol ammo)
4.Unknown stuff:
1.limit the default pistol ammo (that because appears 1000 in the store)
2.Ammo name (I guess it need be added in oasis file)
3.lootinggroups_default (This contain the ammo lootable from corpses in FC3, I didn't find it on FC4)
4.Ammo Pile (I could not find the entity for it)
5.Known bugs:
When you take the small ammo pickup, it doesnt display the ammo name but the amount (I guess it need be added in oasis file).
6.Magnum ammo mod:
magnum_ammo.rar (102.56 KB)