[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
An ODD file:
Version 165 32
Inside csb_bryony, I created the following ODD files (they all reference ODR files of the same name)
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):
- head_diff_000_a_bla.otd -> this file will reference head_diff_000_a_whi.otx
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:
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:
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:
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:
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)
And one bonus screenshot I thought I could share of this mod screwing up in a cutscene:
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.
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
-> creating "hair_000_r.odd"
within the .odd file I put:
Version 165 32
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.
it seems I am way too dumb to follow your instructions.
A video tutorial would be great.
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
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?
@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
Thanks for your guide I make it.
The shortcoming is that there is a little problem.
- There is a small piece of paper suspended on the head of 2B, as shown in the figure:link text link text
- 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):link text
- 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
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!
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?
@infinityyul can you show me which youtube video tutorial you watch? "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." how to create new .odd and otd. files?
Hello dear Community, i tried to swap many models but they looked so wet,buggy and i know what is the problem. the problem is that i cant add in e.g. the head mesh the spec and normal maps. so i mean i dont know how to do that with a notepad. everything is fine just the textures look so buggy and can somebody please help me? i would be very thankful if somebody could say me how to add spec and normal map textures into the ydd (otd) mesh because i tried it more than 4 hours so i mean i tried to figure out a way, tried my ideas but none of them worked so i would give a small donation for help. greetings
UPDATE Thank you very much for sharing this method it was really hard for me but i think it was very much harder for
you to find a method like that. i'm really thankful for sharing this
if you have wet,buggy textures then you just have to put .otx to bump and spec samplers and then it sould work perfect
This is extremely useful to me, however I am attempting something slightly more ambitious, I'm bored of GTA V singleplayer and I want to go through and replace virtually all of the cutscene characters in order to create an extremely strange experience.
Would this same process apply to the other cutscene characters as well? I'm extremely new to this and I will have to acquaint myself with the modding tools and file types and respective file names necessary to do it. I've already seen non-player cutscene characters swapped with addon models/skins, so I know it is technically possible.
I think the thing I will have the most trouble with is
knowing which filetypes to replace and what they correspond to.
knowing the names of the cutscene characters I want to replace/switch.
If anyone could provide some info on that, perhaps a repository of names/etc especially on the latter, I would be extremely grateful.