grzybeek / YMTEditor

YMTEditor is a free tool which allows to easily edit GTA5 .ymt files (Peds clothes)
67 stars 22 forks source link

Can't add more than 255 slots? #20

Open ThommyMD opened 1 month ago

ThommyMD commented 1 month ago

Hi. I have many addon clothing for jbib and tried to add more than 255 slots (add multiple drawables). But program crashes. Is this a limitation of tool or the game code?

thoubias95 commented 1 month ago

I think I can answer you: 255 is the maximum decimal value for 8 bit unsigned variable. However, the game does not handle properly anything above slot 127, the maximum positive decimal value for 8 bit signed variable. From what I have understood, these may appear okay for yourself in-game, but the items above slot 127 will have bad desync issues for other players. I strongly recommend just having several custom clothing addons if you need to reach higher than to slot 127.

So, the tool crashing at 255 slots does not really sound like a big problem in my opinion, but the tool allowing to add more than 127 slots per DLC maybe could be something worth patching for.

ThommyMD commented 1 month ago

Thank you for your quick response. I didn't have any problems with 240 JBIB files in one dlc. All items are shown ingame. Ok the limit is the 8-bit code itself, allright. Then i have to add more JBIB files in another dlc :)