Official Map Modding Tutorial (Part 3) : Making a custom ymap!
Back again with part 3. This one will show you how to start making your own custom ymap and spawn the custom .ydr you created in part 2 with codewalker.
REMEMBER TO CHECK OUT MY PREVIOUS TUTORIALS BEFORE DOING THIS ONE
- Part one: https://forums.gta5-mods.com/topic/17754/official-map-modding-tutorial-part-1-setting-up-a-dlc-pack
- Part two: https://forums.gta5-mods.com/topic/17815/official-map-modding-tutorial-part-2-making-a-custom-ydr
Programs we will be using for this tutorial:
- Codewalker https://www.blender.org/download/
- Ytyp Generator https://www.gta5-mods.com/tools/gims-evo-with-gta-v-support
- Open IV https://www.gta5-mods.com/tools/openiv
Making a custom map using the custom .ydr created
Step One: The first step you want to create a .ytyp for the object. All you need for this is a program I made. You can read the instructions on how to make a .ytyp for an object. All you need to do is open the .odr (we will be using CubeExample.odr) and calculate BB's then Import them and change the flags to 32, make sure to check embedded collisions and then name the ytyp file to something meaning full. Here is the CubeExample done:
Now click create and then your done. Take that ytyp file created and set it next to the .odr used to create the ytyp. The last thing you want to do is go to the content.xml under the dlc.rpf and add in these new lines:
Replace the name that is highligted with the name of the .ytyp that was generated.
Step Two: Next just put the .odr and the .ytyp in the "models.rpf" that was created when setting up a dlc pack for map modding. Like this:
Step Three: Next you need to download this _manifest.ymf from here: https://ufile.io/9cn4e Just place that inside the "models.rpf" next to the ytyp. should look like this:
Step Four: Open codewalker you will see the gtaV world start to render. Next you need to click the little << in the corner and one by one enable mods and dlcs. Like so:
Step Five: Now just click tools... and select project window then you will see a new window popup it should look like this:
Step Six: Now click file >new > ymap file and you will see this load:
Now just select the map1.ymap and in the toolbar click ymap > new entity it should then show this:
Now all you have to do is where it says "Archetype:" type in your custom ydrs name for this we will be using CubeExample (MAKE SURE IT IS LOWERCASE) Like so:
Now you will see in the background your object loaded in. You can now move around to view it better.
Now just click T and you will see a tool bar pop up:
Now you can move/rotate/scale the object with them buttons and place it where you want it in the world when you have it in a suitable location in the world click the map1.ymap and click "Calculate Extents". Like so:
Step Seven: Once that is done you can click file > save Map1.ymap as... And save it to a location where you will remember you can name it whatever you want for this tutorial I will use "cubeexample". Here is what it looks like done:
Step Eight: After that click the "new codewalker project and the "manifset" tab and then click generate, you should get something like this:
After that you want to copy all that stuff generated and go into openIV where the _manifest.ymf is and paste all that data in and save it. Once done it should look like this:
Step Nine: Place the .ymap inside the "models .rpf " and thats it. Once all complete the models.rpf sshould look like this:
Conclusion: Time to test. I placed the cube right in front of franklins house so I could see it really quick, here is a screenshot:
Extra Notes: Never forget your _manifest.ymf or the ymap will not be loaded.
IF YOU NEED HELP BEST WAY TO CONTACT ME IS THROUGH DISCORD YOU CAN JOIN MY MAP MODDING SERVER HERE : https://discord.gg/7xbYQaN Your always welcome dont be afraid to join!!
@skylumz this is just awesome information! Presented very clearly! Thank you!
@DarthPungz Anything to help the community and spread the word!! Thanks