Post by JRavens on Apr 12, 2015 23:47:58 GMT
NOTE - this is a VERY long winded post. Be prepared. You have been warned
If you've previously read bontainer's thread "Modding 105 Changing prices" located here farcrymods.freeforums.net/thread/9/modding-105-changing-prices you'll know that there are some files in FC4 which can be converted in human readable .xml files.
There aren't too many of these, but when you find one it's a real godsend because prior to finding these files everything had to be changed with a hex editor and it's was all done with rather a lot of difficulty (and LOTS of trial and error). Not fun. XML files are by far much, much easier to understand and edit.
One such useful file is what I call "the shop file". I don't know it's actual correct filename and filepath, but it contains a ton of very interesting and useful information we can edit.
So let's take a look:
You need to unpack the patch_hd file using Gibbed tools (I'm assuming you know how to do this. If not start with modding 101 and work your way up to understanding how to pack and unpack the files, etc)
Once unpack you are looking for the file \_unknonw\misc\CDCB723F8C565609.maybe.rml
(I always think of this in my head also as the "CDC file" like the center for disease control. No idea why but it helps me to remember that this is the file I want when I want to edit stuff in the shop)
This file can be converted back and forth using the gibbed tool Gibbed.Dunia2.ConvertXml.exe
When converted back you will need to rename it back to CDCB723F8C565609.maybe.rml
Let's take a look at the first entry in the converted file:
PS - sorry there seems to be a length limit on posts so I shall follow up in the next few replies below.
If you've previously read bontainer's thread "Modding 105 Changing prices" located here farcrymods.freeforums.net/thread/9/modding-105-changing-prices you'll know that there are some files in FC4 which can be converted in human readable .xml files.
There aren't too many of these, but when you find one it's a real godsend because prior to finding these files everything had to be changed with a hex editor and it's was all done with rather a lot of difficulty (and LOTS of trial and error). Not fun. XML files are by far much, much easier to understand and edit.
One such useful file is what I call "the shop file". I don't know it's actual correct filename and filepath, but it contains a ton of very interesting and useful information we can edit.
So let's take a look:
You need to unpack the patch_hd file using Gibbed tools (I'm assuming you know how to do this. If not start with modding 101 and work your way up to understanding how to pack and unpack the files, etc)
Once unpack you are looking for the file \_unknonw\misc\CDCB723F8C565609.maybe.rml
(I always think of this in my head also as the "CDC file" like the center for disease control. No idea why but it helps me to remember that this is the file I want when I want to edit stuff in the shop)
This file can be converted back and forth using the gibbed tool Gibbed.Dunia2.ConvertXml.exe
When converted back you will need to rename it back to CDCB723F8C565609.maybe.rml
Let's take a look at the first entry in the converted file:
<Generic disLibItemId="7713433132708" Name="Ammo/40mm" hidGUID_Legacy="{026BE039-3EFF-455F-B05B-D44FECB3E4EF}" hidSingleObject="0" bCanBeShared="1" hidName="Ammo/40mm" disId="1794" locidItemNameId="199206" shpcatCategory="11" shpscataSubCategory1="190" shpscatbSubCategory2="255" shpitpeItemType="73" shpisubtpeItemSubType="255" locidDescriptionId="145625" locidBuyConditionId="1444505472" locidRecommendedUse="625038672" locidLockText="346817920" bIsSingleHanded="0" locidWeaponTypeText="373167968" selAttachmentType="0" ammoAmmoType="m79" iAmmoAmount="6" selGadgetType="0" arkArchetype="7722563559306" fRotationSpeed="0.07" fRotationAmplitude="0.03" sName="" fRefillAllAmmoCostMultiplier="1" iXPOnLoot="0" iKarmaOnLoot="0" iSortId="12" UnlockOnMissionComplete="" UnlockFromScript="" ecoUnlockFromShopItem="0" sUnlocksAbility="" bVisibleWhenLocked="0" bVisibleInInventory="0" bShowCurrentCount="1" sShopIconName="TX_GL94" sHudIconName="Human_AmmoLoot" bIsLootItem="0" bIsTreasureMap="0" bIsRareItem="0" selCollectibleType="3" bIsWeaponStatistics="0" sULC_Name="" wikiItemId="65535" sStatStringToUpdate="">
<DefaultPositionOnScreen vectorDisplayDefaultPosition="-0.078,-0.131,0.29" 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="7200" sellValue="-1" bModulateCostOfItemWithKarmaLevel="0" />
<ShopTypeData shptypShopType="2" buyValue="7200" sellValue="-1" bModulateCostOfItemWithKarmaLevel="0" />
<ShopTypeData shptypShopType="255" buyValue="-1" sellValue="-1" bModulateCostOfItemWithKarmaLevel="0" />
</ShopTypeDatas>
<PositionOnFullScreen FullscreenpAngles="0,0,0" vectorFullscreenCenterOffset="0,0,0" />
</Generic>
PS - sorry there seems to be a length limit on posts so I shall follow up in the next few replies below.