Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for .xtf #9

Open
jokubasver opened this issue Jan 5, 2021 · 2 comments
Open

Support for .xtf #9

jokubasver opened this issue Jan 5, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@jokubasver
Copy link

jokubasver commented Jan 5, 2021

It would be nice to have support for .xtf (.vtf equivalent used in the Original Xbox port of HL2) with VTFLib.

I'm providing some info of .xtf:

Discussion on the format: https://forum.xentax.com/viewtopic.php?t=2101

Some header files from ancient Source SDK code, that include .xtf file header information and various other info on .xtf (check _XBOX defines, and also XTF lines):

vtf.h: https://pastebin.com/4mtE8zdj
imageformat.h: https://pastebin.com/VHjfxc3f
swizzler.h: https://pastebin.com/Km8Dc4fj

Example .xtf file: https://anonfiles.com/NfG7Ie5cpd/alyx_sheet_xtf

Currently I am able to to convert .xtf to .dds using gssmt (linked in the xentax forum, it's the last post), and then I am able to convert .dds to .xtf by hex editing the .dds, replacing the first bytes from an original .xtf file. This obviously has issues, as there's no room for any changes (like resolution and such)

@NeilJed NeilJed added the enhancement New feature or request label Jan 21, 2021
@NeilJed
Copy link
Owner

NeilJed commented Jan 21, 2021

I remember when we first started VTFLib we made the decision not to support the XBox format as no modders were developing for XBox and we had no access to any Xbox format files to test with.

It probably could be added back in but it won't be a quick job. The general "fixing" of the libary and tools needs to happen first.

@jokubasver
Copy link
Author

Thanks for responding.

I started modding the Xbox port quite heavily, there's some other people involved, so after years it's starting to happen lol.

If you do decide to add support for XTF, it would be great!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants