File information

Last updated

Original upload

Created by

IMaVeRicK

Uploaded by

IMaVeRicK

Virus scan

Safe to use

246 comments

  1. eleglas
    eleglas
    • premium
    • 45 kudos
    Locked
    Sticky
    Hi OP, could you tell me how you did the catalogue change? I'm trying to add your catalogue changes to my own file to make compatible with Red Dead Offline but I can't open yours to see the difference in Notepad or OpenIV.
    1. IMaVeRicK
      IMaVeRicK
      • premium
      • 294 kudos
      Find this:
              <item>
                <key>0x55986ED6</key>
                <layout>0x09D350D6</layout>
                <flags />
                <items>
                  <item>
                    <key>COMPONENT_RIFLE_SCOPE02</key>
                    <linkshopid />
                    <linkmenuid />
                  </item>
                  <item>
                    <key>COMPONENT_RIFLE_SCOPE03</key>
                    <linkshopid />
                    <linkmenuid />
                  </item>
                  <item>
                    <key>COMPONENT_RIFLE_SCOPE04</key>
                    <linkshopid />
                    <linkmenuid />
                  </item>
                </items>
              </item>

      There should be two results that look like that, Rolling Block & Carcano respectively.
      Add this above the Scope02 item

                  <item>
                    <key>COMPONENT_SCOPE_NONE</key>
                    <linkshopid />
                    <linkmenuid />
                  </item>

      Or you can just replace COMPONENT_RIFLE_SCOPE02 with COMPONENT_SCOPE_NONE
    2. eleglas
      eleglas
      • premium
      • 45 kudos
      Thanks man, worked like a charm.
    3. eleglas
      eleglas
      • premium
      • 45 kudos
      I found it easier to search for:<key>COMPONENT_RIFLE_SCOPE04</key>because only two weapons in the game have that scope size, the sniper rifles. Search for that in the catalog_sp.ymt file, move up to above the first <item> section, insert a new line and this code:
                  <item>
                    <key>COMPONENT_SCOPE_NONE</key>
                    <linkshopid />
                    <linkmenuid />
                  </item>
      It should all look uniform. Then just repeat for the 2nd rifle, save and done.
    4. Iqbalev
      Iqbalev
      • premium
      • 19 kudos
      Hi, can anyone help me? What exactly do I need to change in weapons.ymt?
    5. IMaVeRicK
      IMaVeRicK
      • premium
      • 294 kudos
      This isn't a guide to edit weapons.ymt, you don't need to. Just install the weapons.ymt from my mod and delete the one in RDO. 

      This is to help you edit catalog_sp.ymt in RDO, don't install catalog_sp.ymt from my mod (delete it), install RDO, open catalog_sp.ymt in RDO folder in a text editor.

      Search for 'COMPONENT_RIFLE_SCOPE04' as mentioned above.

      You will see a list of scopes these are shop entries.
      COMPONENT_RIFLE_SCOPE02 > change this one to COMPONENT_SCOPE_NONE
      COMPONENT_RIFLE_SCOPE03
      COMPONENT_RIFLE_SCOPE04

      Search for COMPONENT_RIFLE_SCOPE04 one more time (Press F3 basically)
      You should see an identical section, so repeat the previous step.
      COMPONENT_RIFLE_SCOPE02 > change this one to COMPONENT_SCOPE_NONE
      COMPONENT_RIFLE_SCOPE03
      COMPONENT_RIFLE_SCOPE04

      I repeat: These are changes you need to make in catalog_sp.ymt of RDO or other mods that use that file, delete catalog_sp.ymt from my mod's folder after that.
      But do not delete weapons.ymt from my mod's folder, delete it from RDO's mod folder. That way both mods will work fine together, my weapons.ymt already has the edits RDO need to work properly.
  2. LittleBigSmoak
    LittleBigSmoak
    • member
    • 16 kudos
    Sticky
    Hello OP, what entries in the weapons.ymt file would I need to edit in order to have this work with another mod that has the same files? This isn't really a case where we could just swap them out or organize them differently, my only real solution is to edit the text itself.

    Edit: I figured it out

    General no forced scope:

    Replace the sniper's weaponcamera with this:

              <WeaponCamera>
                <CameraDictionaryHash />
                <DefaultCameraHash>0xBACAE759</DefaultCameraHash>
                <InteractionLockonCameraHash>0x5D3DEFD9</InteractionLockonCameraHash>
                <AimCameraHash />
                <FireCameraHash />
                <HorseCameraHash>0xA84858C8</HorseCameraHash>
                <CoverCameraHash>0xC4E1F206</CoverCameraHash>
                <CoverReadyToFireCameraHash>0x0797BD96</CoverReadyToFireCameraHash>
                <CoverHipFireCameraHash>0x0797BD96</CoverHipFireCameraHash>
                <RunAndGunCameraHash>DEFAULT_THIRD_PERSON_PED_RUN_AND_GUN_CAMERA</RunAndGunCameraHash>
                <CinematicShootingCameraHash />
                <GrappleCameraHash>DEFAULT_FOLLOW_PED_CAMERA</GrappleCameraHash>
                <CameraFov value="35.00000000" />
                <FirstPersonAimFovMin value="42.00000000" />
                <FirstPersonAimFovMax value="47.00000000" />
                <FirstPersonDofSubjectMagnificationPowerFactorNear value="1.02500000" />
                <FirstPersonDofMaxNearInFocusDistance value="0.00000000" />
                <FirstPersonDofMaxNearInFocusDistanceBlendLevel value="0.30000000" />
                <ZoomFactorForAccurateMode value="1.00000000" />
                <RecoilShakeHash>DEFAULT_FIRST_PERSON_RECOIL_SHAKE</RecoilShakeHash>
                <RecoilShakeHashFirstPerson />
                <AccuracyOffsetShakeHash />
                <MinTimeBetweenRecoilShakes value="150" />
                <RecoilShakeAmplitude value="1.00000000" />
                <RecoilShakeAmplitudeFirstPerson value="1.00000000" />
                <ExplosionShakeAmplitude value="-1.00000000" />
              </WeaponCamera>

    and replace the sniper's weaponflags with this:

    <WeaponFlags>CarriedInHand Gun CanLockonOnFoot CanLockonInVehicle CanFreeAim TwoHanded AnimReload UsableInCover 0x5A3E5EDA 0xE8C586DD UsableOnFoot HasLowCoverSwaps OnlyFireOneShot OnlyFireOneShotPerTriggerPress AllowCloseQuarterKills UseFPSAimIK UseFPSSecondaryMotion 0xCE1E0473 0x1152CE2C 0x1FCE1778 0x081F0BDD 0xC6550BE0 0x1FE95B8B 0xDCF43CF3 0x7BA2F91C 0x42D5F625 0x460F96C0 0x3A51C194 0xCC2A57A6 0x90882C1A 0x40B6CD20 0xE29937E6 0x08157808 0x3A829C54 0xE0217110 0x46B4F2E8 0x07982641 0x67B5DC71 0x87BD9548 0x27895875 0x628A469E 0x323DB9E4 0xD62ED034 0xE3DFFF32</WeaponFlags>

    Do this for every sniper (carcano, rollingblock, rare rollingblock, lenny's rollingblock if you have the gang member mod in, etc.)

    Deadeye Targeting:

    To allow for deadeye targeting, on every sniper scroll down to the bottom of their individual weapon entries in the weapons ymt, and look for <MaxDeadeyeTaggedTargets value="0" />, and set 0 to -1.

    Scopeless option in customization menu:

    For allowing yourself to remove the scope in the catalogue, find the keys that show scope02, scope03, etc. (those tell the game what to allow you to buy at the gunsmith regarding customization)

    so for example, find this:

            <item>
              <key>0x55986ED6</key>
              <layout>0x09D350D6</layout>
              <flags />
              <items>
                <item>
                  <key>COMPONENT_RIFLE_SCOPE02</key>
                  <linkshopid />
                  <linkmenuid />
                </item>
                <item>
                  <key>COMPONENT_RIFLE_SCOPE03</key>
                  <linkshopid />
                  <linkmenuid />
                </item>
                <item>
                  <key>COMPONENT_RIFLE_SCOPE04</key>
                  <linkshopid />
                  <linkmenuid />
                </item>
              </items>
            </item>

    Afterwards, just under <items> put in the following:

                <item>
                  <key>0xB74325F6</key>
                  <linkshopid />
                  <linkmenuid />
                </item>

    This allows you to remove the scope at the gunsmith.
    1. TheSwampFox
      TheSwampFox
      • supporter
      • 10 kudos
      kudos for the help
    2. Pnubs
      Pnubs
      • supporter
      • 21 kudos
      I second that kudos. And to find each sniper, just search in the weapons.ymt, WEAPON_SNIPERRIFLE_ROLLINGBLOCK(_Exotic and _Lenny) and WEAPON_SNIPERRIFLE_CARCANO, the weapon camera line should be nearby and then search for the <weaponflags> line, which is close below, and replace that. Much thanks to the mod author for this great additon which should've been in the game to begin with.
    3. wakwo
      wakwo
      • supporter
      • 0 kudos
      You're awesome for this bro, was able to get this working with WhyEm's + EEE + GFA merge and W.E.R.O cuz of you
    4. bastouu
      bastouu
      • member
      • 10 kudos
      Thanks bro just perfect
    5. CaptWolfy97
      CaptWolfy97
      • premium
      • 2 kudos
      When i replace all the WeaponFlags of the Rolling Block, there is a bullet case clipping out of its breech, to fix this i used these flags : i can now lock peds like any other weapon however i cant switch scope, i have to remove the scope throm the gunsmith.

      Rolling Block :

      <WeaponFlags>CarriedInHand Gun CanLockonOnFoot CanLockonInVehicle CanFreeAim TwoHanded AnimReload UsableInCover 0x5A3E5EDA 0xE8C586DD UsableOnFoot HasLowCoverSwaps OnlyFireOneShot OnlyFireOneShotPerTriggerPress AllowCloseQuarterKills UseFPSAimIK UseFPSSecondaryMotion 0xCE1E0473 0x1152CE2C 0x1FCE1778 0x081F0BDD 0xC6550BE0 0x1FE95B8B 0xDCF43CF3 0x7BA2F91C 0x42D5F625 0x460F96C0 0x3A51C194  0x40B6CD20 0xE29937E6 0x08157808 0x3A829C54 0xE0217110 0x46B4F2E8 0x07982641 0x67B5DC71 0x87BD9548 0x27895875 0x628A469E 0x323DB9E4 0xD62ED034 0x90882C1A 0x50CF49B4 0x4A113F84 0xCA742415 </WeaponFlags>
    6. This guy deserves Kudos guys, give him! 
    7. RageGreeny
      RageGreeny
      • supporter
      • 1 kudos
      You're the man!
    8. Cerealkiller257
      Cerealkiller257
      • member
      • 0 kudos
      I appreciate it, this worked perfectly. Although the Carcano is bit too much of a laser beam. What settings can I edit to bring the reticle speed/accuracy more in line with the Bolt Action?
    9. JackKiddArt
      JackKiddArt
      • member
      • 36 kudos
      For the recoil effect I discovered you can just swap out the recoil code:

      <RecoilShakeHash>DEFAULT_FIRST_PERSON_RECOIL_SHAKE</RecoilShakeHash>
      <RecoilShakeHashFirstPerson />

      Instead put:

      <RecoilShakeHash>DEFAULT_THIRD_PERSON_RECOIL_SHAKE</RecoilShakeHash>
      <RecoilShakeHashFirstPerson>0x7EA7439D</RecoilShakeHashFirstPerson>

  3. jmazzxd
    jmazzxd
    • member
    • 0 kudos
    Is everything okay with the weapons.ymt file in No Forced Scope ? It shows gibberish in notepad++ and in openiv it shows full of "UNK_MEMBER_0x........ value =..."

    helperino pls
  4. SimiaEternum
    SimiaEternum
    • member
    • 1 kudos
    Does not work idk.
    1. fishcakez77
      fishcakez77
      • member
      • 0 kudos
      you have a weapons ymt conflict
  5. awqaear
    awqaear
    • member
    • 0 kudos
    Why does the file become garbled after downloading
  6. awqaear
    awqaear
    • member
    • 0 kudos
    为什么下载后文件会变得乱码
  7. StoriedAxe4242
    StoriedAxe4242
    • premium
    • 0 kudos
    Is there a way to get this to work with the Hawkins rifle mod by Labakou?
  8. sasfasdSa
    sasfasdSa
    • member
    • 15 kudos
    So my rolling block rifle is supposed to be able to aim down iron sight in first person ?I can't aim through the iron sight ,can only aim as there's a dot in the middle of my screen or use scope .Is that means something went wrong ?Or it's just how it should be ?
    1. drakedare
      drakedare
      • member
      • 0 kudos
      Would like to know this as well...
      Does this mod also work for 1st person?
  9. Endlessunset
    Endlessunset
    • member
    • 1 kudos
    Can you tell us what values you edited in the weapons.ymt and what to change them to? I have too many weapons.ymt conflictions and I'm struggling to make them all compatible.
  10. bobbyjim4
    bobbyjim4
    • supporter
    • 0 kudos
    Ive got Whems and RDR Offline, Tried using the Manual edit to the YMT as seen below and I can see the third person camera fine. Just when i try to use the Iron sights im forced into a scope, Any ideas?
  11. StepanSlimov221
    StepanSlimov221
    • member
    • 0 kudos
    Hi, will it be possible to remove the sight from a bolt-action rifle?
  12. HemaYousry2001
    HemaYousry2001
    • member
    • 0 kudos
    tried for hours the mod shows in Mod Loader an still doesn't work
    i have lots of mods but none that uses Weapon.ymt 
    any help OP ? thanks.