Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!   (85,209 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

Unknown_Modder

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

 

Just change the flags value to this ⤵ :) Should work for all objects, btw

 

<flags value="1572865" />
BLZzDNf.jpg

Share this post


Link to post
Share on other sites
EncryptedReality

Gotta get the custom objects to work

Share this post


Link to post
Share on other sites
BlackScout

Interesting, yesterday I tried adding a prop and nothing happened, no prop was added...

Maybe that's because Rockstar is a f*cking cock and keeps dozens of copies of the same file in many different patch folders.

ERWJMyq.png

Also, patchday3ng substitutions seem not to work, if anything is duplicate between patchday1,2,3, stick with 2 or replace everything.

Share this post


Link to post
Share on other sites
_CP_

Try to modify files in patchday2ng, these should be the newest and read by the game.

 

@GTARandom

Do you have any progress?

Share this post


Link to post
Share on other sites
BlackScout

@_CP_ Yeah, I realized that yesterday ^^.

Going to try the collision thing.

Share this post


Link to post
Share on other sites
_CP_

Confirmed, @Unknown_Modder flag is working.

 

Yeah...

YZSMBWAh.jpg

 

Palms collisions aren't so accurate, maybe that's why R* used a static ones (sounds idiotic but hey, it's R*).

W7Wrtbzh.jpg

Edited by _CP_

Share this post


Link to post
Share on other sites
Mr.Arrow

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

Well sh*t

 

Does the static collision apply to palm trees only,or does it apply to all static props?Mapping is going to be a pain in the butt....

Edited by Mr.Arrow

Share this post


Link to post
Share on other sites
BlackScout

This flag actually screwed all the lods... (Which are already not correct due to the model swap + I haven't thought of something that could fix it)

 

0GtVm7k.png

The lods are still the ones for prop_tree_birch_04... Even though I replaced all entries with prop_palm_sm_01f

Edited by BlackScout

Share this post


Link to post
Share on other sites
NTAuthority

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

... #dr having collisions? That might be your viewer misinterpreting a skeleton - only #ft contains both a drawable and a bound, or you're talking about #bd as usual?

Interesting how V actually added a bound to gtaDrawable, cute change.

 

If you guys manage to find out what fields are used to enable alpha testing for an object it'd be nice, in Cfx I had to patch out a check to get the alpha testing flag to work at all. :/

 

(also, LOD linking parent relationships in V are clearly more complex than 'all streamed placement entries parent to the non-streamed one', yes they're still 'line' indices relative to rage::fwEntityDef but they're more weird)

 

Does the static collision apply to palm trees only,or does it apply to all static props?Mapping is going to be a pain in the butt....

In IV pretty much everything was static world-space collision already, not much changed here except the _manifest-based 'high-quality' collisions. Edited by NTAuthority

Share this post


Link to post
Share on other sites
BlackScout

@NTA

hy1dmXO.png

Apologies for the meme.

Edited by BlackScout

Share this post


Link to post
Share on other sites
lunchxbles

Adding Custom Models is currently possible, pretty sure manifest.ymf is just for ytyp and ymaps.

Heres how I was able to put a custom model in the game without replacing anything:

1. I started by adding my model vicecity_palm.ydr and the texture vicecity_palm_1.ytd to v_palm.rpf.

2. I modified the v_palm.ytyp and copied one palm tree entry and changed the name and texture dictionary (hash_75D215A1 is the texture slot):

 

wrgCm6o.jpg

 

3. I ported the ytyp back into v_palm.

4. I used bh1_04_critical_0.ymap as my ymap file. I copied the entry for one tree and renamed it to match my model like with the ytyp:

 

O7vZNdQ.jpg

 

5. I put the file back into the folder where I found it and loaded up the game, and this was the result, I replaced no entries in either the ymap or ytyp, all new entries.

KT0vjYn.jpg

Edited by lunchxbles

Share this post


Link to post
Share on other sites
EncryptedReality

Someone should write a OPL and IDE to ymap/ytyp(xml)

Share this post


Link to post
Share on other sites
lunchxbles

Someone should write a OPL and IDE to ymap/ytyp(xml)

or better for you and me, json to ymap/ytyp

Share this post


Link to post
Share on other sites
_CP_

Why JSON if doing an straight convert will be much better?

Share this post


Link to post
Share on other sites
lunchxbles

Why JSON if doing an straight convert will be much better?

I guess you're right. Testing some things with this, may try porting san fierro in 16 parts, we'll see how big of a mess this is.

Share this post


Link to post
Share on other sites
_CP_

I'm so excited to see any progress, don't dissapoint me fellas.

Share this post


Link to post
Share on other sites
Mr.Arrow

I wonder if it's possible to delete the game map,using this tool without crashing the game....

Edited by Mr.Arrow

Share this post


Link to post
Share on other sites
Kaai210

Seems to crash on me when dropping combattasks.ymt onto the .exe am I missing something?

Share this post


Link to post
Share on other sites
nkjellman

This looks fantastic. Does this mean that we can throw away the map editor and convert the maps to .ymap? I would love to convert ProjectWood to a ymap.

Share this post


Link to post
Share on other sites
_MK_

Is anyone having issues with trees not loading unless the player gets close to them ? I'm having this with no matter what tree when replacing prop_tree_pine_02 and prop_tree_cedar_03,increased LOD distance didn't do a thing,any ideas ?

 

EDIT:Can someone please test it?

x64o.rpf\levels\gta5\_hills\cityhills_02\cityhills_02_metadata.rpf\ch2_02_critical_4.ymap

https://www.mediafire.com/?8471o3dl9r657h6

The trees should show at this location:

uJ88d0e.jpg

Edited by _MK_

Share this post


Link to post
Share on other sites
_CP_

@Mr.Arrow

 

stripped images.meta works, map is fully unloaded

@Kaai210

Not all .ymt files are openable.

 

Could you take a look at this? Is this OK to load in the game?

http://pastebin.com/n0rqZ9CZ

Edited by _CP_

Share this post


Link to post
Share on other sites
Mr.Arrow

Clearly I must be doing wrong things;the map still exist.

 

Its located in common.rpf>levels>stripped am I right?

Edited by Mr.Arrow

Share this post


Link to post
Share on other sites
_CP_

Nope, update.rpf/common/data/levels/gta5.

Share this post


Link to post
Share on other sites
BlackScout

Common.rpf is mostly unused

 

I'm willing to try some sh*t later, as soon as I get available...

Edited by BlackScout

Share this post


Link to post
Share on other sites
Mr.Arrow

The game crashed.Oh well, I will try tomorrow.

@_CP_

Nevermind, it works! I manage to delete the game map,but it looks like the lods from the map still exist? Is there a way to remove it?

 

5zoXk8C.jpg

 

O41mJQZ.jpg

Edited by Mr.Arrow

Share this post


Link to post
Share on other sites
_MK_

So with this progress will it be possible to have a in-game tool to remove and replace any prop like the Map Editor but with the ability to directly save to the game's files ? (In the Map Editor you can put the pointer on any of the the props and copy/remove/move that prop and save,but that only works for the props spawned via Map Editor,so a tool exactly like that but does the saving directly to the game).

Share this post


Link to post
Share on other sites
_CP_

Everything is done manually at this moment, which is a bit troublesome. Now my main goal is to get to work at least few custom models.

Share this post


Link to post
Share on other sites
BlackScout

Yesterday I tried adding an entry in Stream YTYPs so I could use a LC converted model...

 

However, when I tried to reconvert the xml into ytyp (strm_metadata) the MetaTool crashed.

I don't know if it was my fault or not.

 

I'm pretty sure these are compared to San Andreas IDE's, so we need model references in them first before adding it in ymap with coords.

Edited by BlackScout

Share this post


Link to post
Share on other sites
_CP_

What coulf be wrong? Maybe try to cleanup one .ytyp without any model entries.

Share this post


Link to post
Share on other sites
BlackScout

I think I have some ideas on how to erase lods.

They are always managed in for example

 

Venice Beach (area name in game files as always original names)

 

vb_01.ymap

 

The start of the file says

 

<CMapData>  <name>vb_01</name>  <parent>vb_lod</parent>
There are some references

 

<lodDist value="500.0" /><hash_CA974BCD value="250.0" /><hash_6C8F1715>LODTYPES_DEPTH_SLOD1</hash_6C8F1715><lodDist value="8000.0" /><hash_CA974BCD value="250.0" /><hash_6C8F1715>LODTYPES_DEPTH_SLOD1</hash_6C8F1715>
So, perhaps, erasing entries on it will kill the lods...

 

@_CP_

 

Yeah, it's complicated when everything is hashed and I don't know what I can remove and/or keep...

Edited by BlackScout

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

×

Important Information

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