Log in to reply
 

[Tutorial] Swapping Michael, Trevor and Franklin with non-streamed pedestrians using OpenIV



  • I've recently been swapping M, T and F with non-streamed/normal models (i.e. models that consists of only 4 files) and I though I could share with you guys how I did that using only OpenIV.

    For this example, I swapped Franklin with Arena War's Bryony. First, I exported csb_bryony.ydd and csb_bryony.ytd as open formats, exporting them as .odd and .otd files respectively. To transfer her glasses, I also exported csb_bryony_p.ydd and csb_bryony_p.ytd to open formats. I then exported csb_bryony.ymt and csb_bryony.yft as normal and renamed them player_one.ymt and player_one.yft respectively.

    You will now need to create new .odd and .otd files inside the csb_bryony folder OpenIV created when you exported the .ydd and .ytd files. ODD and OTD files reference .odr and .otx files respectively and OpenIV will automatically convert them YDD or YTD files respectively when you drag them into a RPF. The structure of ODD and OTD files are rather simple and can be edited with a text editor. For a streamed model, an OTD file will look like this:

    Version 13 30
    {
    uppr_diff_000_a_uni.otx
    }

    An ODD file:

    Version 165 32
    {
    accs_000_u.odr
    }

    Inside csb_bryony, I created the following ODD files (they all reference ODR files of the same name)

    • accs_000_u.odd
    • feet_000_u.odd
    • hair_000_u.odd
    • head_000_r.odd
    • jbib_000_u.odd
    • lowr_000_r.odd
    • task_000_u.odd
    • uppr_000_r.odd

    Rename ODR files if necessary so that they will match with the ODD files. I also found adding ".otx" to the ends DiffuseSampler, BumpSampler and SpecSampler files also helps fixes texture issues.

    In the same folder, I created the following OTD files (most reference OTX files of the same name):

    • accs_diff_000_a_uni.otd
    • feet_diff_000_a_uni.otd
    • hair_diff_000_a_uni.otd
    • head_diff_000_a_bla.otd -> this file will reference head_diff_000_a_whi.otx
    • jbib_diff_000_a_uni.otd
    • lowr_diff_000_a_whi.otd
    • task_diff_000_a_uni.otd
    • uppr_diff_000_a_whi.otd

    These OTD file names should match the file of the DiffuseSampler being referenced in the ODR file.

    Inside csb_bryony_p, create the following files:

    • p_eyes_000.odd
    • p_eyes_diff_000_a.otd

    Drag the ODD and OTD files from csb_bryony to mods\x64v.rpf\models\cdimages\streamedpeds_players.rpf\player_one and from csb_bryony_p to mods\x64v.rpf\models\cdimages\streamedpedprops.rpf\player_one_p (I also recommend deleting all the existing ydd and ytd files inside player_one). Replace player_one.ymt and player_one.yft with your modded ymt and yft files. Don't forget to delete the player_one files and folders in mppatchesng and patchday3ng. After starting up the game, use a trainer to give Bryony her glasses.

    I also decided to replace Michael and Trevor with Sacha Yetarian (ig_sacha) and Alan Jerome (csb_alan) respectively. I won't go into detail on how I did that, but I will show you the .ydd and ytd files that I ended up using for both:
    alt text
    alt text

    For Trevor, you will also need to replace decl_000_u.ydd with a "blank" ydd file inside mods\update\x64\dlcpacks\mpheist\dlc.rpf\x64\models\cdimages\trevor_outfits.rpf\player_two_trevor_heist, or else you'll have a TP Industries decal floating on top of your character. You can simple use decl_000_u.ydd inside x64v.rpf\models\cdimages\streamedpeds_mp.rpf\mp_m_freemode_01 as a replacement/

    Here are some screenshots of the three protagonists replaced by the Arena War characters:

    alt text
    alt text
    alt text
    alt text
    Sacha Yetarian, Bryony and Alan Jerome

    And here's a video I made of this model swap (because ig_sacha has no lip movements, I replaced him with someone else):

    You can also download the mod here:
    https://drive.google.com/open?id=1SLTeOAWLZvUHIPjAZswJiI9GRWV3KvBe

    Finally, you might be wondering why I decided to go through all of this instead of using Unknown Modder's Character Swap mod. The reason is that Unknown Modder's Character Swap mod only swaps one character at a time, while this method allows to swap multiple characters at once. Also, that Character Swap doesn't seem to carry through when you replay certain missions, including Something Sensible.



  • The power of open formats



  • Here's another swap I did, swapping Michael with Agatha Baker (csb_agatha)

    Bryony and Agatha Baker
    Bryony and Agatha Baker
    Bryony and Agatha Baker
    Bryony and Agatha Baker
    Bryony and Agatha Baker
    Bryony and Agatha Baker

    And one bonus screenshot I thought I could share of this mod screwing up in a cutscene:
    alt text

    Download:
    https://drive.google.com/open?id=11JmTw0Qy5eRzCx80LF52QZc1Mji6zBOk



  • Sad that Vincent was fired from the Diamond Casino & Resort? Well, here's some #VengeanceForVincent:

    Playing the Time's Come mission with swapped models was a little tricky given that not only does the game forces Michael to wear a non-default outfit (uppr_022_u, lowr_026_u and feet_004_u to be exact), but it also forces those components to use non-default textures.

    Download
    https://drive.google.com/file/d/1eZgIlT8GNpnH1RyLOF4i8clE0vA0zP7t/view



  • hey,

    i tried to do the same steps using an custom ped that i downloaded here. the thing is its hard to follow your guide.

    To sum it up what i did:

    • Extract .ydd, .ytd of the ped using right-click on open format in OpenIV

    • .odd and .otd are created with all the extracted .odr and .otx files within the peds name folder

    Now this is the part where it gets really confusing. In your post you stated I have to create more .odd and .otd to reference the .odr and .otx so OpenIV can convert the files into .ydd and .ytd.

    So I did the part where I create for each .odr file .odd reference for e.g

    hair_000_r.odr

    -> creating "hair_000_r.odd"

    within the .odd file I put:

    Version 165 32
    {
    hair_000_r.odr
    }

    Now I did this for each .odr file (rename, then with in the .odd referencing the .odr did the same with the .otx file)

    when I tried to load the game the texture looks janky and it didn´t fully replaced the ped. I also took the .ymt and the .yft of the chacracter and replaced it with player_1 (michael) but i dont seem to get it working.

    I really want to get it working since theres no any other reliable way to permanent modding the single player character out in the game.



  • Hey,

    it seems I am way too dumb to follow your instructions.

    A video tutorial would be great.



  • Ok,
    so now I got it to work. But the textures are odd. They are changing from normal to a kinda wet look and other strange texture issues. Do you know how i can fix this?



  • try adding .OTX format in the odr file
    example head_000_r.odr:
    ped.sps
    {
    DiffuseSampler head_diff_000_a_whi.otx
    BumpSampler head_normal_000.otx
    SpecSampler head_spec_000.otx
    ...



  • I already did this but to no avail.



  • @Infinite can you send a screenshot?
    maybe help set default outfits in game



  • This post is deleted!




  • @Infinite try delete spec and normal texture in ytd file



  • @owigoshi you mean in odd respectively ydd? Because there is no spec or texture in ytd. Should I delete SpecSampler? And where do I find the normal texture?



  • @Infinite i have normal and spec texture in .ydd file, and diff texture in .ytd file
    like this



  • @owigoshi ok I found it and deleted spec and normal. But still no changes



  • HAY bro when i am change the name for example : hair_000_r_.odr to odd and drop in player_one the open format popup this errer
    Some files not imported, more information below.

    head_000_r.odd(Line 3): Property ".odr" expected but "Shaders" found.

    lowr_000_u.odd(Line 3): Property ".odr" expected but "Shaders" found.

    lowr_001_r.odd(Line 3): Property ".odr" expected but "Shaders" found.

    uppr_000_r.odd(Line 3): Property ".odr" expected but "Shaders" found.

    uppr_001_r.odd(Line 3): Property ".odr" expected but "Shaders" found.

    hair_000_r.odd(Line 3): Property ".odr" expected but "Shaders" found.

    hair_001_r.odd(Line 3): Property ".odr" expected but "Shaders" found



  • Hi, thank you so much for writing this tutorial.
    Yes, I replaced Trevor with 2B de Nier: automata :P

    Thanks for your guide I make it.

    The shortcoming is that there is a little problem.

    1. There is a small piece of paper suspended on the head of 2B, as shown in the figure:alt textalt textlink text link text
    2. 2B's hair blocked the camera when using the first person (the first person was normal when 2B was a pedestrian before, and nothing blocked the camera):alt textlink text
    3. Sorry, I use Google Translate, just like I read your tutorial.


  • @Luo-Tianyi are you using the Alex189 2B&A2 mod?
    I think your 2B is shorter than she should be, that's why the box(maybe it's the camera?) isn't rendering inside the head like it would be usually.

    And if you figure it out, could you link the mod here? I tried myself but I don't understand what I'm doing.



  • @YoRHae Yeah, Alex's.
    I think so too. The position of the camera seems to be close to the top of 2B. This should be the height of Trevor's eyes. How to lower the height of the camera? I'm a complete rookie of MOD, even problem one can't be solved



  • Thank you!
    This, coming to it without knowing anything about modding GTA V is a hard read, but after some YouTube videos, trial and errors, a few days... I made a working Trevor Replacer!
    I am absolutely thrilled, thank you so very much! :smiley:

    EDIT: I made a working PED for Trevor, 3 actually, but the same peds have stiff thighs on Franklin, they don't move like the rest of the model instead just stretching out when the calf moves. As for Michael thats just a whole mess, only shows a bald head and hands, they are the correct ones at least. I find it odd that each player behaves differently, they all work on Trevor no problem it's weird.

    EDIT:/Update: For Franklin, I tried swapping skeletons with another peds, same problem. I've tried replacing the lowr files but found out for the peds I've tried so far that's for the hands. Have now found out the problem[?] is in the uppr files, somewhere.

    EDIT:/Update: Some custom peds are made differently and will cause issues, others work fine, in game peds all appear to work perfectly.



  • Hey, I tried replacing Franklin with a streamed ped. But during cutscenes, his mouth doesn't move. Anyone know how I can fix that?


Log in to reply
 

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