Limit: Not more than 128 Hierarchy elements

GTA:V Modding with ZModeler3 discussion.

Moderator: madga182

Post Reply
Retrocop
Posts: 10
Joined: Wed Jan 03, 2018 9:58 am

Limit: Not more than 128 Hierarchy elements

Post by Retrocop »

Hello all! I discovered new limit, and suggest to do warning in zmodeler 3 for users who trespass it. Limit is - having not more than 128 hierarchy elements for .yft .
I work on unmarked police cars, with different set of lightbars, with active usage of extras system.
Thats how it looking with broken limit:
Image
Image
All become normal when i optimised hierarchy and combined some elements.
Image
Will be good if zmodeler 3 will show warning, like warning about [COL] without related object, or material without full set of textures.
User avatar
Oleg
Site Admin
Posts: 11541
Joined: Fri Feb 06, 2004 3:54 am
Contact:

Re: Limit: Not more than 128 Hierarchy elements

Post by Oleg »

You can change in Settings->Profile->Editor
on
Preferences->Filters->GTARage
a value for "MaxBones". Default is 128, you can set something like 180. press OK and restart ZModeler.
User avatar
Jacobmaate
Posts: 19
Joined: Sat Feb 20, 2021 7:06 am
Location: Kent, United Kingdom
Contact:

Re: Limit: Not more than 128 Hierarchy elements

Post by Jacobmaate »

Hi Oleg,

The setting change you put forward above does indeed fix the original issue (a similar thing happens when turning on emegergency lights), but it would appear that increasing the original limit from 128 causes the game to crash whenever the vehicle collides with something (as seen in this video below):

https://youtu.be/V9Ea9D_rgzU

Unless there's some other way to sort this, I reckon the suggestion put before about having a warning message on export would be a good idea, for those who may not be aware of this issue or to serve as an added reminder to us all.
Many thanks.
Lore Friendly Modder // EUP & RDE Developer
User avatar
Oleg
Site Admin
Posts: 11541
Joined: Fri Feb 06, 2004 3:54 am
Contact:

Re: Limit: Not more than 128 Hierarchy elements

Post by Oleg »

i think these issues are unrelated. remove most of collision objeccts, use just one for chassis plus four wheels and test in game. I doubt collisions issue is related to hierarchy elements count. unless you don't exceed 255.
User avatar
Jacobmaate
Posts: 19
Joined: Sat Feb 20, 2021 7:06 am
Location: Kent, United Kingdom
Contact:

Re: Limit: Not more than 128 Hierarchy elements

Post by Jacobmaate »

I tried removing all the COLs, just keeping the chassis [COL] and respective collisions for the wheels as you said, and the same problem persists - colliding with anything instantly crashes the game.

It's certainly a weird one, but as soon as I go back to 128 components or less, the model works just fine.
It may require some more testing from others to verify this, just in case I am doing something wrong, but it would seem that this is related to the hierarchy count.
Lore Friendly Modder // EUP & RDE Developer
User avatar
Oleg
Site Admin
Posts: 11541
Joined: Fri Feb 06, 2004 3:54 am
Contact:

Re: Limit: Not more than 128 Hierarchy elements

Post by Oleg »

Another thing,
if you change "Max bones" to a high value like 180 and convert your scene to have 128 or less components, does it work in game?

Also, have you seen any original game vehicle with more than 128 components? (so I could take a look whether it has something specific inside a file)
User avatar
Jacobmaate
Posts: 19
Joined: Sat Feb 20, 2021 7:06 am
Location: Kent, United Kingdom
Contact:

Re: Limit: Not more than 128 Hierarchy elements

Post by Jacobmaate »

To answer your first question, vehicles with 128 components or less seem to work, even with the "max bones" limit defined as higher than 128.

As for your second question, I don't think I've explicitly noticed any vanilla models which have over 128 components but I'll have a look around to see if there are any and get back to you on that. :)
Lore Friendly Modder // EUP & RDE Developer
User avatar
Jacobmaate
Posts: 19
Joined: Sat Feb 20, 2021 7:06 am
Location: Kent, United Kingdom
Contact:

Re: Limit: Not more than 128 Hierarchy elements

Post by Jacobmaate »

A quick update on my last post, I've still to find any models in the game which have 128 or more components. The highest I could find was a model with 127 components - this was the BOMBUSHKA, from mpsmuggler dlc (Smuggler's Run).
Lore Friendly Modder // EUP & RDE Developer
User avatar
Deadspin
Beginner
Posts: 116
Joined: Sun Sep 10, 2017 1:34 pm
Location: North Carolina

Re: Limit: Not more than 128 Hierarchy elements

Post by Deadspin »

Group your objects in the hierarchy. Not every piece added to a vehicle needs to be it's own single element.
[Lore and 3rd Party Emergency Vehicles | Custom Ped/EUP]
Post Reply