First of all let me say I am completely new to ymaps and codewalker. I followed a tutorial on youtube on how to do it, and it came along very nicely! Atleast so it seemed. In codewalker everything is right, and looks the way we want it to look. However if we load into the server its a completely different story. Alot of props are missing or not in the right scale. I have tried clearing the cache, saving the ymap again, adding other entities, saving the manifest and load that. But to no avail. Does anyone know whats wrong, or how to stream this properly? Ill include a video of how it looks in codewalker vs ingame.
There could be more reasons why your map doesn’t work:
[1] you cannot scale props - there are two scenarios, which could come out of scaling: a) the prop won’t even appear; b) the prop won’t scale properly [2] you need to calculate the flags and extents of the ymap - props outside of the bounds or not matching the flags might not appear in the game [3] double check the _manifest.ymf, I spent hours and hours solving problems which could be solved by regenerating the manifest.
Thank you I will try that! It also appears I need to extract some props and entities from OpenIV, I did that and put them in a separate stream folder and now some objects appear. But the one’s who are scaled are not there indeed. Ill check if I set them all to 1 again if they are there. Thank you for your response. Ill keep you updated!
There we go thank you now its working. I still need to stream certain props to see them. But thats fine! Also sometimes like on the taxi building if you click a fence, you get the whole terrain why is that?
You might need to stream some props due to them being from a DLC. The fence is perhaps a part of the terrain model. You can’t separate some objects - the map was done this way to reduce performance hit.
Allright! Thank you once again, one more question haha then I am done! Is it possible to remove objects? For example the trash containers, since they are not part of the ymap but part of the world map so to speak it doesnt get saved if we remove them?
You’re welcome It is possible to remove anything from the map. If you need to remove some containers which are in the map by default, edit the vanilla ymap. You can do this easily in CodeWalker by using the Add to project button in the project manager, after you select the prop you need to remove. The YMAP will then be added to your project. Save the edited YMAP (leave the ymap’s name as it is!) and stream it to FiveM.
You need to stream all the YMAPs you’ve edited. That means you have to be really careful - usually when removing props from only one area, one YMAP is edited.
About the error - this seems to be a model problem. If the prop shows up properly, don’t worry about it. If not, don’t forget to stream the YTYP which adds the prop into the game.
And at last - I’m glad I could be of any help. I learned all this by myself and know the struggle of starting with it
YTYP files are meta files, which define new archetypes (registers models to the game) and interiors. All props, that are originally in the game, must also be “registered” in a YTYP file, which means this file already is in the game, and thus you don’t need to create one. Sometimes the YTYP file is included in the folder along with the model files (YTDs), sometimes it’s in a separate folder, often called or with a suffix “metadata”. The name of the YTYP file can be found using CodeWalker easily
We almost got it 100% working haha! Thanks to you!
Only thing we need to get rid of is aircons. I did it like you said add to project and then delete it and stream the ymap. But now theres a big gray box with no collision ingame, which isnt visible in codewalker, only ingame! Do you know how to fix this aswell?
It looks like the airconditioning units are a part of a LOD model (which means you would have to edit the LOD YTD file to remove it completely). If you find the name of the model using codewalker (just find out what the building’s YTD name is), I’ll gladly remove it for you when I have the time.
Awesome glad to hear that! Youre amazing haha! Its this taxibuilding. And then the 4 aircons on top. I hope this picture provides you with enough information, when I move it, the whole building comes along with it so it should be that file.