Log in to reply
 

Deleting the cockroach files - where?



  • Hey guys.

    I would like to entirely delete those crawling cockroach bugs scuttling around near dumpsters, Trevor's trailer and other run-down areas.

    I have some kind of a phobia and these bugs are utterly revolting to me... Especially that their textures tend to glitch out in the port of Los Santos from time to time... making them as big as cats. :nauseated_face:


  • MODERATOR

    @TheMurderousCricket said in Deleting the cockroach files - where?:

    making them as big as cats

    say whatttttt!?!?!? pr00f!


  • MODERATOR

    @ReNNie yeah i wanna see this lol



  • @TheMurderousCricket reading your last words I think your phobia is huuuuuge when you exaggerate like that :grin: but sorry, I know only about mod which tells you location of Trevors trailer trash but not about cockroaches :shrug_tone3:



  • @ReNNie said in Deleting the cockroach files - where?:

    @TheMurderousCricket said in Deleting the cockroach files - where?:

    making them as big as cats

    say whatttttt!?!?!? pr00f!

    Non-believers. :grin: Alright, I'll produce proof as soon as I can.



  • Significant standout passes at 1:12...

    Well, maybe I exaggerated with the cat size... Sure a size of a large rat though...

    Anyway, there! :D

    "Big, Revolting Roaches Saying They'll Eat Me in My Sleep".

    https://www.mediafire.com/file/k428pgh2jbtm03t/ckr.mov/file


  • MODERATOR

    @TheMurderousCricket damn if i saw that in real life i think i'd move country

    edit: take a look at this lol



  • @TheMurderousCricket Yep, I've seen them as well thought I was tripping out maybe it's something to do in procedural?


  • Banned

    I did a binary search through Codewalker and got

    0_1574815329012_upload-0e407406-aad9-4f7d-b809-2be38929619b

    So try editing
    0_1574815356590_upload-b60d5d5c-640d-4d67-8ad1-fd71d024c3bd Good luck



  • @Reacon said in Deleting the cockroach files - where?:

    @TheMurderousCricket damn if i saw that in real life i think i'd move country

    edit: take a look at this lol

    Oh Lord... Why did I open this link...

    alt text

    Thanks @eleventwentytooo, I'll give it a go. ;)


  • Banned

    What happened?



  • @TheMurderousCricket said in Deleting the cockroach files - where?:

    Oh Lord... Why did I open this link...

    Small mercies, @Reacon's Reddit post allowed me to confirm instead of having to get you to look at the roaches again to do it so it was probably happening one way or the other :thumbsup:

    The texture for the 'amb_cockroaches' ( @eleventwentytooo :thumbsup:) ptfx is stored in the 'core.ypt' files here:

    ...\Grand Theft Auto V\mods\update\update.rpf\x64\patch\data\effects\ptfx.rpf\core.ypt
    ...\Grand Theft Auto V\mods\update\update.rpf\x64\patch\data\effects\ptfx_hi.rpf\core.ypt
    ...\Grand Theft Auto V\mods\update\update.rpf\x64\patch\data\effects\ptfx_lo.rpf\core.ypt

    I've not confirmed but presumably:

    • ptfx_lo.rpf = 'Medium' In-game Particle Settings
    • ptfx.rpf = 'High' In-game Particle Settings
    • ptfx_hi.rpf = 'Very High' In-game Particle Settings

    Here is the 'ptfx_insects_rgb.dds' texture with the roaches removed. :thumbsup:

    You can use Texture Toolkit to edit the 'core.ypt' file/s & replace the 'ptfx_insects_rgb' texture with mine from the link above.

    Texture Toolkit Instructions:

    • Texture Toolkit > 'File' > 'Load' > Load your 'core.ypt' (or simply drag & drop the 'core.ypt' onto the 'TextureTool.exe' or a shortcut to it)
    • 'Edit' > 'Import' > Import my 'ptfx_insects_rgb.dds' texture
    • Save the 'core.ypt' file somewhere (if it's a 0kb file or it crashes your game on startup, do it again until it works (it will)).

    Any trouble with getting it done (Texture Toolkit being a total dick etc), just send me a link to the 'core.ypt' file you are using or let me know if it's vanilla etc & I can make it roach free & send it back to you :thumbsup:

    If you always use the same ParticleFX setting in-game, find out what 'core.ypt' it uses, edit it to remove the roaches & then use that 'core.ypt' file to replace all the occurrences of 'core.ypt' in your 'mods' folder. That way there should be no surprises in future. Say, if you forgot about the roaches & changed the Particle FX settings in-game or for some reason the game falls back to using a file in a different location etc, causing them to re-appear.
    Alternatively, you can edit each file individually with Texture Toolkit but given it's unstable nature that'll take a bit longer.



  • @TheMurderousCricket

    If Texture Toolkit is too much hassle for you :thumbsup:

    Alternative way of removing cockroaches:

    The 'amb_cockroaches' references are found in '.ytyp' files & look like this.

    Example:

            <Item type="CExtensionDefParticleEffect">
              <name>Prop_Skip_06a</name>
              <offsetPosition x="0.67765050" y="-1.86515800" z="0.00564500"/>
              <offsetRotation x="0.00000000" y="0.00000000" z="0.04583400" w="0.99894910"/>
              <fxName>amb_cockroaches</fxName>
              <fxType value="0"/>
              <boneTag value="0"/>
              <scale value="1.00000000"/> <<< might answer the giant cockroach question
              <probability value="20"/> <<< ="0" possibly another way to remove them
              <flags value="0"/>
              <color value="0xFFFFFFFF"/>
            </Item>
    

    These are the files I found in my game that had 'amb_cockroaches' references like that^ in them:

    v_bins.ytyp (the main bin one)
    country_01_metadata_005_strm.ytyp
    country_02_metadata_002_strm.ytyp
    country_02_metadata_003_strm.ytyp
    country_02_metadata_004_strm.ytyp
    country_02_metadata_006_strm.ytyp
    country_02_metadata_009_strm.ytyp
    country_02_metadata_013_strm.ytyp
    country_02_metadata_017_strm.ytyp
    indust_02_metadata_007_strm.ytyp
    port_metadata_001_strm.ytyp
    port_metadata_005_strm.ytyp
    port_metadata_009_strm.ytyp
    sanpedro_metadata_004_strm.ytyp
    sunset_metadata_008_strm.ytyp
    sunset_metadata_013_strm.ytyp

    I removed all the references to 'amb_cockroaches' from those files & you can grab them here if you want to use them. :thumbsup:.
    They are in '.ytyp.xml' format, drag & drop into OpenIV window & they convert to '.ytyp' automatically.
    Use Ctrl+F3 in OpenIV to search for their load location (probably in a patchday) & replace the ones in your game. :thumbsup:

    Note: I haven't updated my game in years so you may have the odd file with 'amb_cockroaches' in it that I don't. If you want to get rid of them yourself (you know, make their extermination personal :thumbsup:) the easiest thing to do is:

    • OpenIV > 'Ctrl+F3' > Search for '_metadata.rpf'
    • Right-click > 'Open' (from search window)
    • Insert '.ytyp' in the Filter box (top right)
    • Select All (Ctrl+A)
    • Right-click > 'Export to META/XML'
    • Export them all to a folder of your choice.

    If you repeat that procedure the 'ytyp' filter will stay in place & each time you open a '.rpf' from the search window the '.ytyp' files will already be filtered. Makes it a pretty quick process to export them all to meta :thumbsup:

    Reminder: There is also 'v_bins.ytyp' (& maybe the odd other file) to edit (won't show up in that^ search):

    ...\Grand Theft Auto V\mods\x64i.rpf\levels\gta5\props\roadside\v_bins.rpf\v_bins.ytyp

    Then use a search program like Agent Ransack or something to search inside the files & edit/remove the 'amb_cockroaches' references you find.

    That will hopefully get rid of them for good or at least give you a way to get rid of them quickly & easily if the odd reference turns up again (patches etc) :thumbsup:

    Hint: Use Codewalker to find the file name that contains the 'amb_cockroaches' if you know their location in-game :thumbsup:

    Finding Roaches



  • @a63nt-5m1th Dude, you must be the smartest person on the site I wouldn't have a clue what to do there LMAO



  • @a63nt-5m1th Great Research, but it could be overhaul? Maybe you should delete the cockroaches textures LMAO. Instead of modifying the ytyp files.



  • @Venkey
    I covered editing the 'ptfx_insects_rgb' texture in 'core.ypt' (to remove the cockroaches) in my previous post :thumbsup:

    Both ways will work (as long as one makes the cockroaches transparent using the alpha channel), but a lot of the time editing the '.ytyp' files is easier & quicker than dealing with all the crashes Texture Toolkit throws at you :thumbsup:



  • @a63nt-5m1th - Hey, thanks for an immensly informative and valuable post as always. Sorry for the late reply. I'll have to find some spare time and see into this!


Log in to reply
 

Looks like your connection to GTA5-Mods.com Forums was lost, please wait while we try to reconnect.