Monti18 Posted September 5, 2021 Share Posted September 5, 2021 Hey all, So it seems I have a problem adding multiple pictures into one tex and xml file. First I tried it with the Texture and Atlas Packer of Kzisor. The file was created correctly but unfortunaly it seems the game can't read it properly. When opening it with TexTool, I could see that the tex file looked exactly as it should, but still the game doesn't seem to recognize it. I get no error log in the client log and I also see through the prints that the correct file was loaded, but no picture can be seen. I then tried it with ZTools from Zarklord, in the hope that this will work, but I can't seem to get the programm running. When downloading the already assembled file from the page, it tells me that my pictures are not pictures and skips them. I tried just making a sample png in gimp and it still didn't recognize it as a picture. I then tried to build it but I also get errors there when trying to build, not sure why exactly this is failing. So my question is: How can I add multiple pictures into a single tex file? If somebody perhaps already has a built version of ztools that he could send me I would also be grateful to try it! Thanks in advance! 1 Link to comment https://forums.kleientertainment.com/forums/topic/133300-pack-multiple-pictures-into-1-tex-file/ Share on other sites More sharing options...
penguin0616 Posted September 5, 2021 Share Posted September 5, 2021 (edited) ztools has an issue with the generated XML files in that they're missing a link to the texture. You'll have to edit that manually. That being said, it's able to do what you want for me. I just create a folder filled with .pngs, then do (current working directory is the ztools folder) ./ztools path_to_folder --verbose My output example: Spoiler What are the build errors you are getting? Edited September 5, 2021 by penguin0616 2 Link to comment https://forums.kleientertainment.com/forums/topic/133300-pack-multiple-pictures-into-1-tex-file/#findComment-1491296 Share on other sites More sharing options...
Monti18 Posted September 6, 2021 Author Share Posted September 6, 2021 (edited) Thanks for your response @penguin0616 When doing this, I get the error that my png's are not pictures and skips all of them. That's why I already tried to make just a an white png file from scratch to see if they were corrupted, but it seems like that's not the case. Spoiler When adding a second verbose argument, it also tells me atlas_minimum_dimensions are: 0x0 which is clear as it doesn't find any pictures. That's why I tried to build it myself as it seems as the version I have is somehow not working correctly. I also get an error when trying to open a tex file Error: ztools.exe: RegistryKeyLookupFailed `CoderModulesPath' @ error/module.c/GetMagickModulePath/665 Edited September 6, 2021 by Monti18 1 Link to comment https://forums.kleientertainment.com/forums/topic/133300-pack-multiple-pictures-into-1-tex-file/#findComment-1491503 Share on other sites More sharing options...
penguin0616 Posted September 6, 2021 Share Posted September 6, 2021 (edited) It's possible that something is wrong with your installation of ImageMagick. I remember having some issues with it, I think something to do with the 32-bit VS 64-bit version. I would suggest first trying to build with the 32-bit version, then the 64-bit version. Of course, uninstall the previous version when you do. Edited September 6, 2021 by penguin0616 2 Link to comment https://forums.kleientertainment.com/forums/topic/133300-pack-multiple-pictures-into-1-tex-file/#findComment-1491523 Share on other sites More sharing options...
Monti18 Posted September 6, 2021 Author Share Posted September 6, 2021 Oh sorry I wrote the last paragraph a bit confusing. I meant that I get this error when using the already compiled version from zarklord, that's why I thought that the version I have has a problem. When trying to compile ztools I got this error: But I now found the solution! It seems I didn't install the c and c++ code in Visual Studio, that's why it could't compile the build. I used ImageMagick 32 bit and successfully build ztools and now it also accepted the pictures to make one tex file out of them. And now the file is also working correctly! So thank you very much, I was getting pretty frustrated getting this to work 2 Link to comment https://forums.kleientertainment.com/forums/topic/133300-pack-multiple-pictures-into-1-tex-file/#findComment-1491555 Share on other sites More sharing options...
Rickzzs Posted June 17, 2022 Share Posted June 17, 2022 Sounds like ztools is more useful. But I get the same error with precompiled version. However, I was not able to build on windows 10 x64. Can you send me a compiled one? Link to comment https://forums.kleientertainment.com/forums/topic/133300-pack-multiple-pictures-into-1-tex-file/#findComment-1577384 Share on other sites More sharing options...
Leonidas IV Posted June 17, 2022 Share Posted June 17, 2022 19 hours ago, Mr.Rickzzs said: Sounds like ztools is more useful. But I get the same error with precompiled version. However, I was not able to build on windows 10 x64. Can you send me a compiled one? It took a lot of work to compile (you need ImageMagick 32 bit + some other stuff I can't remember. But here's the version I compiled: ztools.exe Apparently the error is that the available version does not accept images with more than 8 bits of depth, aka all images with transparency Link to comment https://forums.kleientertainment.com/forums/topic/133300-pack-multiple-pictures-into-1-tex-file/#findComment-1577747 Share on other sites More sharing options...
Rickzzs Posted June 18, 2022 Share Posted June 18, 2022 2 hours ago, Leonidas IV said: It took a lot of work to compile (you need ImageMagick 32 bit + some other stuff I can't remember. But here's the version I compiled: ztools.exe Apparently the error is that the available version does not accept images with more than 8 bits of depth, aka all images with transparency Thank you! This version works fine. But I wonder if the bug of lacking atlas reference in xml file can be fixed. One can locate the code at filetypes/atlas.cpp:116 and insert a new element <Texture filename="tex_path" /> to fix it. Link to comment https://forums.kleientertainment.com/forums/topic/133300-pack-multiple-pictures-into-1-tex-file/#findComment-1577813 Share on other sites More sharing options...
Leonidas IV Posted June 18, 2022 Share Posted June 18, 2022 13 hours ago, Mr.Rickzzs said: Thank you! This version works fine. But I wonder if the bug of lacking atlas reference in xml file can be fixed. One can locate the code at filetypes/atlas.cpp:116 and insert a new element <Texture filename="tex_path" /> to fix it. Yeah, I'll see if I can. Link to comment https://forums.kleientertainment.com/forums/topic/133300-pack-multiple-pictures-into-1-tex-file/#findComment-1577957 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now