Jump to content

Recommended Posts

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! 

  • Like 1

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

image.thumb.png.25758ad680a94781177176dcfbed3147.png

What are the build errors you are getting?

 

Edited by penguin0616
  • Like 2

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

image.thumb.png.6363df28b5f4a2f1ffb38d14686cd238.png

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 by Monti18
  • Like 1

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 by penguin0616
  • Like 2

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:

image.thumb.png.1c453fda5cc710bd89ae8025765bd1b7.png

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 :D

  • Like 2
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

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.

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...