Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!   (92,169 visits to this link)

    2. News

    1. GTA Online

      1. Find Lobbies & Players
      2. Guides & Strategies
      3. Vehicles
      4. Content Creator
      5. Help & Support
    2. Crews

      1. Events
      2. Recruitment
    1. Grand Theft Auto Series

    2. GTA Next

    3. GTA V

      1. PC
      2. Guides & Strategies
      3. Help & Support
    4. GTA IV

      1. Episodes from Liberty City
      2. Multiplayer
      3. Guides & Strategies
      4. Help & Support
      5. GTA Mods
    5. GTA Chinatown Wars

    6. GTA Vice City Stories

    7. GTA Liberty City Stories

    8. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    9. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    10. GTA III

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    11. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    12. Wiki

      1. Merchandising
    1. GTA Modding

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    3. Featured Mods

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Red Dead Redemption 2

    2. Red Dead Redemption

    3. Rockstar Games

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Programming
      5. Movies & TV
      6. Music
      7. Sports
      8. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Forum Support

    2. Site Suggestions

Neodymium

[WIP|V] MetaTool (ymt, ymap, ytyp)

Recommended Posts

_CP_

LODTYPES_DEPTH_SLOD1 is the reference to a medium LOD, so it's a second level of model, first is the detailed model, and third is a LOD of entire area.

Share this post


Link to post
Share on other sites
BlackScout

Hmm, sounds confuse, I was focusing more on the lodDist value...
tEwmZkQ.png
8000 sounds like the last one, I don't know really.

Share this post


Link to post
Share on other sites
_CP_

Draw distance values in YMAP is really weird, they are set in YTYP already, why R* put them there too? Very interesting.

Share this post


Link to post
Share on other sites
EncryptedReality

Could it be related to shadow distance?

Share this post


Link to post
Share on other sites
_CP_

Maybe, who knows?
I'm trying to put a custom model on a cleaned map with new directory and using new YTYP/YMAP but nothing.

Share this post


Link to post
Share on other sites
nkjellman

Maybe, who knows?

I'm trying to put a custom model on a cleaned map with new directory and using new YTYP/YMAP but nothing.

Perhapss the manifest.ymf tells the game what ymap and ytyp files to load.

 

It also may specify other attributes such as if the file can be loaded and unloaded via native like the interiors or North Yankton. I also should note that when I was doing Heist Map Updates a year ago, I had issues with different combos of the files, such as lods appearing. It could also contain info regarding DLC maps. If you look at the Online update files, the sizes on the ymaps are identical to the originals, but the ytyps are much smaller in the DLC. Not to mention that the names are different, so it has to somehow relate the original one to the updated one.

 

There also could be information relating to the props which Rockstar has disabled in GTA Online.

Share this post


Link to post
Share on other sites
_CP_

All I see in .ymf file is the models/textures list. I thought about levels.ymt, but it isn' this.

Share this post


Link to post
Share on other sites
BlackScout

Stupid guess:

YYNfRkm.png

gta5_cache_y.dat

line 1129

 

pseudo scrambled xml like file, weird

Edited by BlackScout

Share this post


Link to post
Share on other sites
nkjellman

So has anyone been successful at adding7 to the map yet with a race track or something? Something like the Laguna Seca Raceway map.

Share this post


Link to post
Share on other sites
NTAuthority

Stupid guess:

YYNfRkm.png

gta5_cache_y.dat

line 1129

 

pseudo scrambled xml like file, weird

[level]_cache_[platform] contains the boundaries of existing file hashes so the game won't have to scan these on initial load. Anything not listed in the cache will just be scanned like traditional GTA behavior in SA/IV was as well.

 

The _manifest.#mf file in streamed RPFs only specifies 'high-LOD' linking for @hi/+hidr/... collisions/models/textures, and is not required to load a map.

 

Also, guys, please try to do a proper file system loader and stop modifying core RPFs and having to deal with 'oh is this file in that DLC', the whole DLC/update/DLC-patch/cacheLoader system will make you nuts... even more so the actual game itself has most of the 'load a non-gta5 level' code intact and you should use it, see also levels.meta (or well, #mt in PC, try console versions instead, also the only bit not kept intact is loading a different level during the game).

 

also just for you guys

 

0xA023A02C = archetypeName
just to make your xml look less sh*tty Edited by NTAuthority

Share this post


Link to post
Share on other sites
NTAuthority

Maybe, who knows?

I'm trying to put a custom model on a cleaned map with new directory and using new YTYP/YMAP but nothing.

... probably you missed something? 'I've been trying [this] but I'm not showing how I tried it but it doesn't work' doesn't help much.

Share this post


Link to post
Share on other sites
_CP_

What did I do?
1) Used cleaned up images.meta to remove V map.

2) Created manhat directory in levels/gta5.
3) Created manhat09.rpf and manhat_metadata.rpf.

4) manhat09.rpf has two files, model and texture dictionary of a V palm.

5) manhat_metadata.rpf has one YTYP - manhat_metadata_001 and four YMAP files - manhat09, manhat09_critical_0, manhat09_strm_0, manhat_lod.

6) images.meta has entries to load my custom RPFs.

Share this post


Link to post
Share on other sites
fastman92

Good work.

I'm eager to try this software today.

Edited by fastman92

Share this post


Link to post
Share on other sites
nkjellman

 

Stupid guess:

YYNfRkm.png

gta5_cache_y.dat

line 1129

 

pseudo scrambled xml like file, weird

[level]_cache_[platform] contains the boundaries of existing file hashes so the game won't have to scan these on initial load. Anything not listed in the cache will just be scanned like traditional GTA behavior in SA/IV was as well.

 

The _manifest.#mf file in streamed RPFs only specifies 'high-LOD' linking for @hi/+hidr/... collisions/models/textures, and is not required to load a map.

 

Also, guys, please try to do a proper file system loader and stop modifying core RPFs and having to deal with 'oh is this file in that DLC', the whole DLC/update/DLC-patch/cacheLoader system will make you nuts... even more so the actual game itself has most of the 'load a non-gta5 level' code intact and you should use it, see also levels.meta (or well, #mt in PC, try console versions instead, also the only bit not kept intact is loading a different level during the game).

 

also just for you guys

 

0xA023A02C = archetypeName
just to make your xml look less sh*tty

 

The problem with using the console files is for one, they could be outdated, but worse, there are some files where taking the console version doesn't work. Take using pedpersonality.meta from console in place of pedpersonality.ymt. It does not work due to missing fields. Which sucks because I am pretty damn sure that I know what to change in those files to fix the broken stealth and action mode animations on the peds that they don't work on. If Neodymium were to add the PSO formats to his tool, I could fix this bug. The funny part is, we know what the file format is inside, but there are additional fields on the PC version. It is my guess that they are relating to first person. Both peds and pedpersonality files are .meta in the dlc packs so we do know their format.

Share this post


Link to post
Share on other sites
_CP_

Creating own "level" will be much better than modyfing gta5, so NTA has a point. But levels.ymt is a PSO file, so there is no way to modify it now.

Share this post


Link to post
Share on other sites
_CP_

But it's useless for now, we can't put it directly to the game without saving it to PSO.

Share this post


Link to post
Share on other sites
BlackScout

So perhaps deal with the weird GTA 5 level is the only way out? +deleting cache

Share this post


Link to post
Share on other sites
_CP_

In this way, we won't have to touch any of the levels/gta5 files.

Share this post


Link to post
Share on other sites
Mr.Arrow

But it's useless for now, we can't put it directly to the game without saving it to PSO.

 

Just delete the line using PC format (ymt) , and replace it with console version.

 

Thats how it works for me

 

http://pastebin.com/aNa2byJC

 

H2NbHkD.png

Edited by Mr.Arrow

Share this post


Link to post
Share on other sites
Stryfaar

83c69ebf16da3d040c252a25e6dda6fd.png

 

Am I the only one?

Share this post


Link to post
Share on other sites
_CP_

@Mr.Arrow

Show your modified file on pastebin.

 

Are you sure that file is loaded correctly?

Edited by _CP_

Share this post


Link to post
Share on other sites
Mr.Arrow

@Mr.Arrow

Show your modified file on pastebin.

 

Are you sure that file is loaded correctly?

No,the game crashed as it loads.I thought you want to see how the file is saved as PSO.

Share this post


Link to post
Share on other sites
EncryptedReality

For future in map modding i found out why shadows were dissappearing in FiveReborn and Multifive, i'm sure it'll be useful for new custom made maps. So the files to blame are most likely the IPL map occluder files: occlu_citye occlu_cityw and occlu_count. I also emptied the mapzones.xml as well as heightmap.dat.

 

Also, if you're wondering how grass was placed, current research shows that it's done manually inside ymap files

Edited by GTARandom

Share this post


Link to post
Share on other sites
_CP_

Yep, I knew it. I hope there won't be big problems to move occluders from IV to V.

Edited by _CP_

Share this post


Link to post
Share on other sites
BlackScout

Oh, by the way it seems Rockstar can even control grass color in YMAPs. That's really interesting!!

Share this post


Link to post
Share on other sites
nkjellman

For future in map modding i found out why shadows were dissappearing in FiveReborn and Multifive, i'm sure it'll be useful for new custom made maps. So the files to blame are most likely the IPL map occluder files: occlu_citye occlu_cityw and occlu_count. I also emptied the mapzones.xml as well as heightmap.dat.

 

Also, if you're wondering how grass was placed, current research shows that it's done manually inside ymap files

Regarding the disappearing shadows, the normal game has the issue. Looking at the aircraft altimeter when flying an aircraft over low terrain, if you fly above the 4th notch down from the height limit, the shadows disappear. It does this everywhere. I was wondering if it is possible to have shadows render up to the height limit. You cam especially see this when you fly in first person. I can't remember if last gen had this bug.

 

Also, has anyone tested how far you can place objects from the original map? There already is a mod that lets you fly way out over the ocean without your aircraft stalling.

 

Additionally, I believe that we will need to modify the gameconfig.xml to add to the map, which unfortunately makes the game get out of memory errors. No one has made a gameconfig.xml that can run forever for the add on cars, except for Rockstar themselves.

Share this post


Link to post
Share on other sites
Jestic

Oh, by the way it seems Rockstar can even control grass color in YMAPs. That's really interesting!!

That's indeed mildly interesting. Can you change it to any color, let's say purple, or is it set to a specific range of green shades?

 

 

 

Am I the only one?

Don't just open the tool, but drag a YTYP\YMAP file on the exe and it will work.

Share this post


Link to post
Share on other sites
NTAuthority

5) manhat_metadata.rpf has one YTYP - manhat_metadata_001 and four YMAP files - manhat09, manhat09_critical_0, manhat09_strm_0, manhat_lod.

Why would you need all of these? Just have a single ymap and don't set any parent (like _lod probably does?).

 

 

Creating own "level" will be much better than modyfing gta5, so NTA has a point. But levels.ymt is a PSO file, so there is no way to modify it now.

The console version of the meta should have the same fields the PC version does. Issue might be 'gta5' is hardcoded in a few places in the EXE to be the default level, IIRC.

 

(oh, research shows all the field names changed. great! seems I can't trace the parser fields much either)

 

 

Regarding the disappearing shadows, the normal game has the issue. Looking at the aircraft altimeter when flying an aircraft over low terrain, if you fly above the 4th notch down from the height limit, the shadows disappear. It does this everywhere. I was wondering if it is possible to have shadows render up to the height limit. You cam especially see this when you fly in first person. I can't remember if last gen had this bug.

Filip is probably talking about an issue with regards to grcore geometry in old versions of FiveM/such.

 

 

Also, has anyone tested how far you can place objects from the original map? There already is a mod that lets you fly way out over the ocean without your aircraft stalling.

The old sector system has been replaced with a dynamic entity graph so it could be anywhere, but the #map streaming boundaries are still a fixed 8192.0 quadtree.

 

 

Additionally, I believe that we will need to modify the gameconfig.xml to add to the map, which unfortunately makes the game get out of memory errors. No one has made a gameconfig.xml that can run forever for the add on cars, except for Rockstar themselves.

... because you'll have to modify the heap in the EXE and can't do that with just gameconfig.xml, and R* does that whenever they need to?

 

 

Also, if you're wondering how grass was placed, current research shows that it's done manually inside ymap files

There's also a field in rage::phBound* that's mainly used from 'plants manager' stuff as mentioned by @listener.

 

 

Don't just open the tool, but drag a YTYP\YMAP file on the exe and it will work.

doesn't mean the tool shouldn't at least test args.Length and show usage

 

 

Yep, I knew it. I hope there won't be big problems to move occluders from IV to V.

you do know they're like not even needed if you do LOD linking properly, the IV ones didn't really optimize the game Edited by NTAuthority

Share this post


Link to post
Share on other sites
_CP_

@NTAuthority
Even with one YMAP, game didn't load my model, entry in YTYP was correct.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.