Navigation Menu

Skip to content

YMT Game Limit And Crash Issues

TayMcKenzieNZ edited this page Apr 11, 2024 · 1 revision

GTA V Game Engine limits

Internally the game has a fixed amount of .ymt files that can be loaded in total. This limit seems to be 80 (before mpg9ec) around 100 (since mpg9ec) .ymt files per gender in total. With every GTA: Online DLC that is pushed, R* adds new clothes and therefore takes up more .ymt files - until the limit is reached.

Additionally there is a limit of components/props that can be added per drawable/component type.

Component / Prop limit per type

Clothes are categorized into components and props, where components are everything you wear as clothes (Shirts, Pants, Shoes etc) and props are everything you can put on top of your model (like hats, glasses, watches, ear rings etc.)

Internally we call all these types together drawable types, the game currently has 25 drawable types in total. Some of them are unused tho.

128 drawables (component / prop) per type, per gender

One YMT file (per gender) can hold 128 cloth items per drawable type in total.

For example, you can have 128 cloth items of type PV_COMP_JBIB (Component id 11 / Shirts) for your male in one addon cloth resource. With 26 variations per cloth item, this would be 128 * 26 = 3.328 shirt variations. Going beyond this limit can and will cause game crashes.

255 props (hats etc) per gender total

For Props there is an additional limit of 255 total props per gender allowed to exist in the entire game (base + addons). This limit only applies to alt:V, RageMP and FiveM Client Version below 7559.

Going beyond this limit will in most cases not cause any game crashes but instead just appear as invisible props. You won't see the props like hats beyond the limit of 255 total of their respective type.

Important Notice: The 255 props limit got patched in FiveM Client Version 7669+

FiveM patched the ped props limit of 255 from 8bit to 32bit, which increases the ped prop limit to a total of 2,147,483,647 props. This means there is basically no need to consider any limit in this regards anymore.

To achieve this, you are required to use the server artificacts number 7669 or above and run the FiveM client on Latest (Unstable). Please note that instabilities may occur as this channel is mainly for public testing of new features, until Cfxre pushes it out to public release.

Bypassing the prop limits for Single Player

GTA5Mods users Zombieguy and William Halverd have made an ASI version of the FiveM patch which basically patches the limit of the ped props that characters use (Mostly mp freemode), and replaces the limit of 255 from RAGE of 8bit style to 32bits, which increases as result the ped prop limit to a total of 2,147,483,647 props.

This patch was tested on the current game build (3095v Chop Shop Update), and it will work at least the older version 2372v (Los Santos Tuners).

To install it, simply drag and drop into the root folder of GTA V. You will need the latest ASI loader and ScriptHookV for it to work as intended.

Download the ASI file here:

https://www.gta5-mods.com/scripts/pedprop-limit-adjuster

Credits: Zombieguy and FiveM team.


Durty Cloth Tool will automatically make sure you are not hitting any of these limits, and warn you if you do

Drawable Types

Number represents the internal component type / id.

Components

  • 0 PV_COMP_HEAD
  • 1 PV_COMP_BERD
  • 2 PV_COMP_HAIR
  • 3 PV_COMP_UPPR
  • 4 PV_COMP_LOWR
  • 5 PV_COMP_HAND
  • 6 PV_COMP_FEET
  • 7 PV_COMP_TEEF
  • 8 PV_COMP_ACCS
  • 9 PV_COMP_TASK
  • 10 PV_COMP_DECL
  • 11 PV_COMP_JBIB

Props

  • 0 ANCHOR_HEAD
  • 1 ANCHOR_EYES
  • 2 ANCHOR_EARS
  • 3 ANCHOR_MOUTH (Unused)
  • 4 ANCHOR_LEFT_HAND (Unused)
  • 5 ANCHOR_RIGHT_HAND (Unused)
  • 6 ANCHOR_LEFT_WRIST
  • 7 ANCHOR_RIGHT_WRIST
  • 8 ANCHOR_HIP (Unused)
  • 9 ANCHOR_LEFT_FOOT (Unused)
  • 10 ANCHOR_RIGHT_FOOT (Unused)
  • 11 ANCHOR_PH_L_HAND (Unused)
  • 12 ANCHOR_PH_R_HAND (Unused)

YMT Limit in detail

YMT limit applies to each gender seperately.

For example, if we talk about 10 additional free .ymt slots available, it means you have 10 .ymt slots for female and 10 .ymt slots for male ped.

Lets take a look at how Rockstar Games takes up the free .ymt slots every update:

  • In game version b1604 (mpchristmas2018) we had 14 additional free .ymt slots to be used
  • In game version b1737 (mpvinewood) we had 12 additional free .ymt slots to be used
  • In game version b1868 (mpheist3) we had 10 additional free .ymt slots to be used
  • In game version b2060 (mpsum) we had 8 additional free .ymt slots to be used
  • In game version b2189 (mpheist4) we had 6 additional free .ymt slots to be used
  • In game version b2372 (mptuner) we had 4 additional free .ymt slots to be used
  • In game version b2545 (mpsecurity) we have 2 additional free .ymt slots to be used
  • In game version b2612 (mpg9ec), R* seems to have increased the YMT limit, we have about 20 additional free .ymt slots to be used
  • In game version b2699 (mpsum2), we have about 16 additional free .ymt slots to be used
  • In game version b2802/b2824/b2845 (mpchristmas3), we have about 14 additional free .ymt slots to be used
  • In game version b2944 (mp2023_01), we have about 12 additional free .ymt slots to be used
  • In current game version b3095 (mp2023_02), we have about 10 additional free .ymt slots to be used

creaturemetadata files

Please note that adding heels and head props to your pack will create an additional ymt file known as 'creaturemetadata' which will count towards your gamebuild ymt limit. For example, if we are on gamebuild b3095 (mp2023_02), we have about 10 additional free .ymt slots to be used.

If we create a pack with high heels, we would be using 3 YMTs; Male clothing, Female clothing, Male & Female hats props and female heels.

mp_m_freemode_01_mp_m_yourpack.ymt
mp_f_freemode_01_mp_f_yourpack.ymt
mp_creaturemetadata_yourpack.ymt

Effects of reaching the limit

Using up more than the additional free .ymt slots for one gender in the given versions, will end up with your game crashing or other weird issues.

For example in FiveM you will end up with crashes like:

  • b1604: oven-happy-sad || GTA5.exe!sub_1406B14FC (0xf)
  • b2189: earth-august-saturn || FiveM_b2189_GTAProcess.exe!sub_1406D21B0 (0xf)
  • b2372: yellow-stairway-december || FiveM_b2372_GTAProcess.exe!sub_14070E7A8 (0xf)

While you will be receiving errors in the console similar to:

InvokeNative: execution failed: Error executing native 0x00a1cadd00108836 at address 0x1407a0b54.
SCRIPT ERROR: Execution of native 00a1cadd00108836 in script host failed: Error executing native 0x00a1cadd00108836 at address 0x1407a0b54.

TxdStore Pool Full, Size == 95500 error

Adding more YTD files than a certain limit by either putting new vehicles, new clothes, new MLOs or similar on your server, will possibly cause a game pool full error, which essentially means that you have hit the total amounts of YTD files supported by the game.

This error was previously known as pool full size == 85500

For example in FiveM you will end up with crashes like:

The only way to currently fix this is by trying to shrink down the amounts of YTDs you are adding to your game/server. This means you will have to remove either some other mods (like vehicles / mlos etc) or some clothes from your clothes resource.

Why not put all clothes in one big .ymt file

Each .ymt file can define up to a total of 128 (0-127) cloth items per drawable type, per gender. Drawable types being jbib, feet, teef etc. - Each type representing model parts like pants, shirts, hats...

When this limit is reached, we have to create a new .ymt file in order to add more clothes.

How to prevent YMT amount related issues

The most simple way to not have any issues at all, is to just keep your addon cloth packs to a minimum. For example don't try to have more than 1 addon cloth pack containing clothes for female & male ped or alternatively 2 addon cloth packs with each containing just male or female clothes.

You will always need to keep in mind that every cloth collection created for one gender, will end up creating 1 .ymt file. Additionally if you have special flags enabled for any of your clothes (Like Is High Heels, Cut Hairs etc), one extra creaturemetadata.ymt file will be created. This one also counts up to the general .ymt limit per gender.

Examples

Lets say we run some multiplayer mod with the GTA Online Update mptuner, which has 4 free YMT slots for clothes (it was before R* raised the YMT limits a bit).

We create one basic addon cloth pack with female and ped clothes, without any special flags (Is High Heels, Cut Hairs etc). This should work fine as we are now using up 2 of the 4 additional .ymt slots we have available. This would be enough to create one additional basic addon cloth pack.

Setting special flags like Is High Heels, Cut Hairs etc will generate an additional YMT file that will also count towards the YMT limit


Another example would be creating 2 basic addon cloth packs, each having male & female clothes without any special flags set. This should be fine as we are now using up 4 of the 4 additional .ymt slots. We will not be able to use any additional addon cloth pack.

Each of our basic addon cloth pack / resource will take up 2 YMTs (1x male clothes, 1x female clothes)


Lets do another one with 1 advanced addon cloth pack. We have 1 addon cloth pack that contains female & male clothes + special flags set (high heels flag and cut hairs for example). This will end up using up 4 of the 4 additional .ymt slots available. We will not be able to use any additional addon cloth pack.

With special flags set there will be an additional YMT file generated that is needed to make this work, this will count towards the general YMT limit

Replacing vanilla / R* clothes

In case these limits don't satisfy your needs of adding hundreds of more modding clothes, the only case to workaround these limits is currently by overwriting clothes provided by the game itself. (So called replace mods / clothes)

As Durty Cloth Tool doesn't support this yet, I will not go much into detail on how to do this.

Pleb Masters: Forge is a useful tool to figure out texture & model file paths of clothes you want to replace, as you will need the file names and collection names for replacing them. See https://forge.plebmasters.de/clothes/

Credits

Thanks to FumaPraQue for his deep research on this topic over at the FiveM forums: https://forum.cfx.re/t/setplayermodel-crash-when-you-have-too-much-ymts-assigned-to-a-freemode-ped-model/1934063