Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    2. News

    1. Red Dead Redemption 2

      1. News
      2. Red Dead Online
    1. GTA Online

      1. After Hours
      2. Find Lobbies & Players
      3. Guides & Strategies
      4. Vehicles
      5. Content Creator
      6. 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. 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

Neodymium

THIS TOOL IS DISCONTINUED.
After the OpenIV team received a C&D letter for their tool, I decided to stop any activity related to GTAV. I already stopped developing new tools some time ago and I am not willing to stuggle with problems like these in the future by providing modding tools for GTAV.
I'm sorry for everyone interested in my work.

 

------------------------------------------------------------------------------------------------------------------

Meta Toolkit

 

Meta Toolkit is a tool for GTAV that allows you to edit:

- definition files (*.ytyp)

- placement files (*.ymap)

- manifest files (*.ymf)

- meta files (*.ymt, only resource files, no PSO files)

 

Just drag and drop the file onto the executable for converting it to xml. Drag and drop the xml again onto the executable to convert it back. There are a lot of unknown fields in the xml. If you experiment with them, feel free to discuss your results here.

 

Remember to backup your GTAV files before u use this tool!
Do NOT use GTA Online if you edited files. I do not take responsibilities for possible bans.

 

Prerequisites:
.NET Framework 4.6

 

[DOWNLOAD LINK REMOVED]

Edited by Neodymium

Share this post


Link to post
Share on other sites
_CP_

Which files could be used after converting? (if any of them?)

Share this post


Link to post
Share on other sites
Mr.Arrow

Very interesting,it must be a bitch to translate these binary blocks :beerhat:

 

YPtWmx0.jpg

How long have you been working this?

Edited by Mr.Arrow

Share this post


Link to post
Share on other sites
Neodymium

Which files could be used after converting? (if any of them?)

None of them. It's just for viewing. I don't know if I am motivated to spend time to write an importer, but if so, the output xml will be probably a bit different.

 

Very interesting,it must be a bitch to translate these binary blocks :beerhat:

How long have you been working this?

Not so long. Reading the resource file itself is not very hard. And then there is a descriptiong of the structures, field types and enums inside each ymt file (and ymap and ytyp, the format is exactly the same). I simply write the xml according to this description.

Share this post


Link to post
Share on other sites
_CP_

I guess that most of the hashes in .ymap/.ytyp is the same as in IV, so it shouldn't be so hard to get their names.
I'm glad to see other people involved in V modding, OpenIV team is good but monopoly isn't quite ok.

Also - only bruteforce is the way to find missing names for hashes, right?

Edited by _CP_

Share this post


Link to post
Share on other sites
unknown modder

I guess that most of the hashes in .ymap/.ytyp is the same as in IV, so it shouldn't be so hard to get their names.

I'm glad to see other people involved in V modding, OpenIV team is good but monopoly isn't quite ok.

 

Also - only bruteforce is the way to find missing names for hashes, right?

sometimes things are documented in the exe, but there isnt much

Share this post


Link to post
Share on other sites
_CP_

Maybe getting out all strings from EXE could be useful to match few hashes.

Edited by _CP_

Share this post


Link to post
Share on other sites
Neodymium

I updated the tool from the first post. The list of known names is updated and you can also convert the file back to ymt, ymap and ytyp. Just drag and drop it again onto the exe. The game seems to accept the rebuilt files but I have not tested whether editing really works. So feel free to provide feedback.

Share this post


Link to post
Share on other sites
Mr.Arrow

I updated the tool from the first post. The list of known names is updated and you can also convert the file back to ymt, ymap and ytyp. Just drag and drop it again onto the exe. The game seems to accept the rebuilt files but I have not tested whether editing really works. So feel free to provide feedback.

 

Are you going to support .ymf too? It seems pretty vital for map editing.

Edited by Mr.Arrow

Share this post


Link to post
Share on other sites
_CP_

Tried to move Michael's house up, but nothing happened, maybe related files are somewhere else.

Wait... it works, IT WORKS!

YfUYB0zh.jpg

Edited by _CP_

Share this post


Link to post
Share on other sites
WildBrick142

Tried to move Michael's house up, but nothing happened, maybe related files are somewhere else.

Did you replace the ymap in x64l or patchday2ng? It moved up fine for me. The only thing that didn't move is the LOD.

 

RaIbdhW.png

 

 

 

Can't wait for proper map mods that support Rockstar Editor and other game features.

Share this post


Link to post
Share on other sites
_CP_

Ah, OK, I edited x64l, that's why his house didn't move up.

 

Next step - new entries for custom model.

Share this post


Link to post
Share on other sites
Neodymium

 

I updated the tool from the first post. The list of known names is updated and you can also convert the file back to ymt, ymap and ytyp. Just drag and drop it again onto the exe. The game seems to accept the rebuilt files but I have not tested whether editing really works. So feel free to provide feedback.

 

Are you going to support .ymf too? It seems pretty vital for map editing.

 

I don't know yet. This is a PSO file. Reading it should not be too hard, but I have never tried to change them.

Share this post


Link to post
Share on other sites
_CP_

OK, .ymf file is important too for map modding. Could you take a look at it too?

Share this post


Link to post
Share on other sites
BlackScout

WOW, actual progress! Great!! Going to try it.

 

EDIT:
Poor attempt of loading v_int_70 aka v_70_bikerbar props using v_int_58 aka Solomon's Office
MK6TzMD.jpg

 

kwKSPDQ.jpg

 

Some sh*tty copy n' paste from the <entities> part...

Here lines for the Jukebox and Clock

 

<Item type="CEntityDef">          <hash_A023A02C>prop_game_clock_02</hash_A023A02C>          <flags value="18350080" />          <guid value="4292267417" />          <position x="1.086914" y="3.94558" z="-0.06017303" />          <rotation x="0.0" y="0.0" z="0.0" w="1.0" />          <hash_9CA32637 value="1.0" />          <hash_10FB7C42 value="1.0" />          <parentIndex value="-1" />          <lodDist value="-1.0" />          <hash_CA974BCD value="0.0" />          <hash_6C8F1715>enum_hash_7D934F41</hash_6C8F1715>          <hash_A687AC89 value="0" />          <hash_2691F019>enum_hash_73D556CB</hash_2691F019>          <extensions />          <hash_18C1D587 value="255" />          <hash_23C0E543 value="255" />          <hash_3C852527 value="0" />        </Item>        <Item type="CEntityDef">          <hash_A023A02C>prop_jukebox_02</hash_A023A02C>          <flags value="18350080" />          <guid value="305444235" />          <position x="-0.7437134" y="6.295013" z="-2.082581" />          <rotation x="0.0" y="0.0" z="0.7071068" w="0.7071068" />          <hash_9CA32637 value="1.0" />          <hash_10FB7C42 value="1.0" />          <parentIndex value="-1" />          <lodDist value="-1.0" />          <hash_CA974BCD value="0.0" />          <hash_6C8F1715>enum_hash_7D934F41</hash_6C8F1715>          <hash_A687AC89 value="0" />          <hash_2691F019>enum_hash_73D556CB</hash_2691F019>          <extensions />          <hash_18C1D587 value="255" />          <hash_23C0E543 value="255" />          <hash_3C852527 value="0" />        </Item>

 

 

Edited by BlackScout

Share this post


Link to post
Share on other sites
Neodymium

Btw, the hash_C200AB4C field in the CMapData type of the ymap files contains the vehicle placement.

Share this post


Link to post
Share on other sites
_CP_

Sadly, custom models/textures entries aren't working, tried to add a LC model and nothing, game requires edited manifest.ymf, which is a info of models in archive. Neodymium, take a look at, please, I guess it's an only barrier to put custom maps.

Share this post


Link to post
Share on other sites
BlackScout

I don't have a life.

 

So, I replaced all the entries for prop_tree_birch_04 with some palm tree I forgot the model name... (using ls-multiplayer website, there is a nice index with search and yadda yadda)

(simple replacement, it works perfectly, but I'm not sure whether I have to add v_palm at the end of the file or not. idk)

I'm tired, I spent 3h with this sh*t, I'll release a mod later, I kinda like it.

 

Screens:

VisualV 2.7.0 + Bank_HWLD modifier

 

 

oqGG19M.jpg

ijFquGs.jpg

byNZUcm.jpg

niie6ga.jpg

4iBMeZc.jpg

 

 

Edited by BlackScout

Share this post


Link to post
Share on other sites
InfamousSabre

So since this deals with map mods and models, maybe someone here can tell me: what is the model name for the FIB building? Ive looked all over but just cant seem to find it.

Share this post


Link to post
Share on other sites
_MK_

Amazing work there @Neodymium.

@BlackScout

That looks nice,i was actually trying to put the Beta tree back in the game by replacing models but then saw this thread,i plan on replacing all the long trees North the map with the tall Beta tree,but then when using ls-multiplayerthe search came up with a massive amount of trees (for prop_tree_cedar_04 which is one of the tall final trees used in the game),so do i have to replace each line at those locations shown with LSMP's search results ?

Edited by _MK_

Share this post


Link to post
Share on other sites
BlackScout

Amazing work there @Neodymium.

@BlackScout

That looks nice,i was actually trying to put the Beta tree back in the game by replacing models but then saw this thread,i plan on replacing all the long trees North the map with the tall Beta tree,but then when using ls-multiplayerthe search came up with a massive amount of trees (for prop_tree_cedar_04 which is one of the tall final trees used in the game),so do i have to replace each line at those locations shown with LSMP's search results ?

It's simple.

First, the massive amount is because it shows all the references in all ymaps for this specific prop...

 

Second, make sure that is really the one you're looking to replace.

You need to know the exact name of it, the exact model. So when looking up on LS Multiplayer database you'll see where the coords for the tree model are located and in which files/regions they are present

 

Third, if you want to replace all of them, you'll need to edit ALL the .ymaps containing coords for this prop. Just replace the name of the model, it's pretty simple. Even a sh*tty tool like Notepad can do a "Replace All"

e.g: find prop_tobereplaced and replace with prop_youwanttoreplacewith

 

Fourth, if you're lost about where the location of the prop is, you can guide yourself using collision viewer and gta5map.glokon.org

Edited by BlackScout

Share this post


Link to post
Share on other sites
WildBrick142

Are the collisions controlled in ymaps or will it require editing the actual collision model?

 

Planted some trees but they aren't solid.

 

yuXaDdf.png

WkiKxIY.png

Edited by WildBrick142

Share this post


Link to post
Share on other sites
_CP_

Props has collisions inside models. Which palm tree model did you use?

Share this post


Link to post
Share on other sites
WildBrick142

Props has collisions inside models. Which palm tree model did you use?

 

prop_palm_med_01b

 

Added into bh1_rd_strm_3.ymap

Share this post


Link to post
Share on other sites
_CP_

Well... no idea why they doesn't have cols.

 

Instead of added tree, I moved an original tree few meters further - collision don't move, that's weird.

mmyo3ykh.jpg

Edited by _CP_

Share this post


Link to post
Share on other sites
Jestic

Are the collisions controlled in ymaps or will it require editing the actual collision model?

 

Planted some trees but they aren't solid.

 

Is the draw distance of each model also controlled in YMAP?

IV had a limitation where 'dynamic' objects (props) couldn't have a draw distance further than 300. If you pushed it beyond 300, it would render the model, but never load the collision.

 

EDIT:

CP just basically debunked this theory.

 

Edited by Jestic

Share this post


Link to post
Share on other sites
_CP_

YMAP has the entries for draw distance too, no idea why.

 

... or it's related to LOD indexing, but is it even possible?

Edited by _CP_

Share this post


Link to post
Share on other sites
EncryptedReality

This is great, i can finally start working on what i wanted to. Won't reveal what though, defeats the purpose of doing it for me :D

Share this post


Link to post
Share on other sites
Jestic

I figured out why.

 

The palms (among other props) are in fact placed in the YBN static collision files.

No idea why it has a collision inside the YDR, maybe a leftover.

 

EIBPxfa.png

Edited by Jestic

Share this post


Link to post
Share on other sites
_CP_

Weird choice, R*, weird choice. v_palm.rpf didn't have an .ymf file, but adding an entry of custom model crashed the game at the loading screen.

 

At least mailbox collision is OK.

XMtFbAch.jpg

 

Now I think how can we put .rpf files to load custom maps, stripped images.meta works, map is fully unloaded, now what?

Edited by _CP_

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

  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

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