[How-to] Fix failed ZLIB call

Does this still work if the size of the file is over 16 mb? I did everything right changed 512x512 ARGB8888 to DXT5 and resized anything that had over 1024 but it still crashes :frowning:

Good question. Which model are you trying to get working? I’ll take a look at it when I have time.

That’s very kind of you! Not used to people like you :stuck_out_tongue:

there’s some models I have but mainly titanic so heres the link to that mod: https://www.gta5-mods.com/vehicles/rms-titanic-hq-add-on
I guess the main reason is that the textures are so many on this I had very hard time getting it work.

Intresting and slightly related to topic bug: if you change the taillights of the Ingot, it wil only change the LOD1 ones, which means from further away your taillights will be modded (in this case, completely murdered out) but up close they’re the originals.

Am I doing something wrong?

You can batch resize dds with ImageMagick(cmdline), or Irfranview (gui), but is there a way to batch extract import them to gtav file formats?

The problem with batching them is that you might end up saving as the improper compression format. Yes, it’s slower if you don’t do it by batch, but well worth on saving the filesize, bandwidth and ultimately the loading times of joining your server.

If only the textures seem to change, then you need to generate MIP maps. If the whole model seems to change, then the issue is with the model lacking LOD versions. Why are you still replacing cars when you can add new cars?

There indeed seems to be a problem if the texture dictionary is over 16MB. If you manage to downscale textures enough and get it under 16MB it will work. I have updated the OP with this information.

“Why are you still replacing cars when you can add new cars?”

Because fuck asking a server owner to add it. I play on many servers and I’d rather have my mods clientsided.

That being said, how do I generate Mipmaps? I don’t have PS but I do have Paint.NET

EDIT: I tried the DDS plugin for The GIMP but it still won’t work as it should. Wat do?

Did you just make Titanic work or was that in singleplayer?

Cause if you did please send me the YTD :smiley:

That is completely incorrect. Textures can be up to 8k. The ytd file must be under 16mb, though.

I see but MsQuerade just showed me a pic of titanic working in multiplayer so can we have that?

Please send it to me D:

Also incorrect. I’m aware that in some cases 1024+ textures do work, but for the sake of avoiding problems and people having to trial-and-error, this is what I wrote as limitations. I’ve added about 30 cars and in quite a few cases the texture dictionary is under 16 MB but with textures over 1024 resolution and in a single case one texture being A8R8G8B8 crashed the game.

Yes, it’s in multiplayer. The idea was to let you do it yourself so you could learn but I saved the file just in case. Seems that I accidentally deleted the file in a rush, though :\ sorry.

Guess I will never be able then, I already tried but it’s way too much work to trial and error with this thing since it’s so huge.

I might do it later for you then. But I will batch process it, so some things may turn out ugly (low resolution). Is that okay?

Who are you to decide what ‘mods’ to run on a server? If you want to decide that so badly, go play by yourself or run your own server, don’t be surprised nobody’ll help you with that.

YEahp! it is more than ok thanks! :smiley:

Clientsided mods are the past now, you can stream vehicle meta files now and there are tools for meging vehicle meta files data with eacother now so I see no reason to why you owuld fuck up your client, I always got an error when messing with clientsided vheicles like init_session and then crash with some error.

Why would you need a tool to ‘merge’ them when you can simply have multiple files? Rather one could use a set intersection tool to only get entries that are only in one of two files.

Car mods that I use != car mods that every server needs because I joined it

Who would want to have mods like blacked out taillights on my Ingot, Knight Racer’s KITT model for the Ruiner, or the VD90R mod? No one, except me, because i’m the only one who drives them. Would be pretty weird to see every Ingot have blacked out taillights, a fuckhueg spoiler, sideskirts and hood scoop, or that KITT spawned in traffic.

Unless you can make a data_folder directive that looks for .meta files, I don’t fancy having to manage four sets of data_file directives for every car I implement. So why you need a tool to merge them? Well, it’s just easier and faster. It also ensures that the vehicles added have mods visible in the FiveReborn Enhanced Trainer menu. For something that only took an hour or two to make, I’m glad I made it, it was worth every second invested.

Here you go. I haven’t tested this new one, but it should work.