Commit graph

21 commits

Author SHA1 Message Date
badda50a87 libeuropa/util: Add some structs for mesh/math stuff 2025-01-20 01:36:36 -05:00
035f6a040f libeuropa/structs/yatf: Tweak structs a bit 2025-01-19 13:48:21 -05:00
f5d03cfdeb *: "Support" MSVC
For Windows builds of EuropaTools. For now I'm using MSVC since clang completely barfs.
2025-01-17 20:25:34 -05:00
6a565e3244 libeuropa/util: Move 4bpp/8bpp paint support 2025-01-16 20:56:42 -05:00
69e9ecd35c libeuropa/io/yatd: Support YATF v2 (Jedi Starfighter)
Rather confusingly, it seems like they wanted to make this backwards compatible. In practice, due to the magic fourcc being written with a different endian, it's not really. (OK well the header is the same but you get my point)

Also, for some reason, they decided to I guess jumble format types around. Thanks guys.
2025-01-16 16:24:12 -05:00
d0b8d0f3ea libeuropa/io/yatf: Fix YATF 24-bpp support
This completely redoes the garbage flags stuff I did before. OOPS. This seems a lot closer to the format, and also exports everything Starfighter has properly.
2025-01-16 01:12:53 -05:00
9c6448a817 libeuropa,libeuropa/tools: Drop libpixel dependency
libpixel (suprisingly) still compiles, but depends on libraries in a very annoying manner that makes EuropaTools hard to compile. Also, I don't like stb_image_write.

Replace it with some hand-done structs and the simpler/faster/better `lodepng`.
2025-01-15 23:40:41 -05:00
dc95b3ba9c libeuropa/structs: Fix Pak V3 TOC entry
As it turns out, the unix time is NOT junk in them. The short I identified is *before* it. Oops

The hexpat is also fixed up so it can analyze v3, v4, and v5 successfully.
2025-01-12 16:22:02 -05:00
1aebeffb3f libeuropa/io: Refactor some stuff
Meh.
2025-01-12 16:15:06 -05:00
9757b79e7e libeuropa/io: Get JSF STREAMS extraction working
As it turns out the thing I marked as "header size" is more likely just a discarded revision.

Anyways, to detail this: pak version 5 adds fields to the header for sector alignment. The reader now handles this and reads the sectoralignment TOC entry, which now allows STREAMS (and any other packages with this set?) to extract properly.

Woohoo.
2025-01-12 16:05:58 -05:00
bdc55f5483 *: Relicense to MIT
A ironically more-free license. Also no more foot fungus (or other various shitty things a certain RMS has done.)
2025-01-07 18:02:27 -05:00
307e92768c *: Correct all license headers 2025-01-07 14:17:50 -05:00
2c0237933c Initial support for Ver3/.PMDL archives
................. fuck

This really needs to be cleaned up before I'm willing to call it "good" but ultimately the API changes here needed to be done anyhow
2023-08-01 18:18:40 -04:00
f79c92c742 chore(*): .h -> .hpp
Preferences change a bit.
2022-09-21 02:59:16 -05:00
6228bf77e8 chore(*): fix spdx headers for right license
Oops!
2022-09-21 02:49:57 -05:00
cab58d0d34 Mishmash commit
While working with scrc I made the pak files output sorted by size. This doesn't
seem to have helped with performance but I guess it might be nice to maybe
do the conversion in hand.. or just make the writer take a vector of pair to use.
2022-09-21 02:31:33 -05:00
4452b87780 Fix io::PakWriter, add pakcreate
Also improves paktest.

Pakcreate is a new utility for creating completely new archives from a directory.

Usage:
pakcreate [input path] [output .PAK/pmdl filename] [--jedi]

Options:
--jedi : Make Jedi Starfighter archive
2022-09-15 04:11:53 -05:00
fae513fdfe Try to optimize things a bit
PakReader won't read everything in ReadData(), it now only reads the header and TOC.

Files now need to be read in separately.

Adds progress bar to europa_pack_extractor.

Moved code around.
2022-09-07 04:07:40 -05:00
5d03f49e21 Add possibly not WIP package writer
Don't have a tool for building "fresh" packages yet, but the "paktest" tests regurgitating a pak into a new pak file.

Usage is:

./paktest [pak file]

it will write to "new.pak" always, which meh. It's just a test utility.
2022-09-05 19:59:46 -05:00
1782fef0dc Add WIP YATF exporter
Doesn't work for *everything* but works for a good chunk of stuff
2022-09-05 03:24:50 -05:00
62862d832f Initial commit 2022-09-04 16:11:14 -05:00