1
Fork 0
mirror of https://github.com/redstrate/Physis.git synced 2025-07-20 15:57:46 +00:00
Commit graph

15 commits

Author SHA1 Message Date
1d3192de23 Fix various Cargo and Clippy warnings 2025-06-02 17:32:31 -04:00
cdc39ad4b6
Partial map write support (#9)
This adds initial support for writing new/modified maps, which are made up of layer groups (LGB) and terrain (TERA). Neither one is really tested yet, but I started checking some simple examples and it seems to work.
2025-04-13 18:34:18 -04:00
f8db40d74d Improve layer group parsing (lgb files)
I guessed the name, it's more like a collection of layers. This actually fixes a
bunch of mistakes (on my part) as I copied the layout from Lumina, but added a
few changes to make it work with modern zones. There's a whole lot more work
here to do, but now it works to parse New & Old Gridania.
2025-03-15 17:38:54 -04:00
bb7c74fec8 Redesign how IndexFile parsing works, again
Now it reads much more of the index file format, and tries to handle
index1/index2 differences more opaquely. I'm not yet happy with the API, it
needs a bit more work.
2025-03-06 18:52:26 -05:00
7b8c4c9c5f Add tests for the string file operations, fix nul terminator handling
Since this recently had a hand in patch regression, let's start adding
some basic tests for this function.

I realized the writing functions did not take into account the nul
terminator, which is not correct and has been fixed.
2024-07-18 14:17:24 -04:00
66034b6e8d Patch fixing redux: Trim trailing null characters
This fixes broken file operations
2024-07-18 14:08:10 -04:00
30ed0180ce Implement write_string, add get_string_len helper function 2024-06-29 12:36:54 -04:00
51105859e5 Begin converting all existing patch structs to writable forms
This isn't complete yet of course, for future work.
2024-06-29 11:15:19 -04:00
e5caab2e64 Run rustfmt and fix more Clippy warnings 2024-05-18 09:42:07 -04:00
8ecbd74283 Better expose the color table rows for materials 2024-05-04 14:20:02 -04:00
b595d48963 Add support for reading the color table from a material 2024-04-30 19:43:47 -04:00
149e9bb25b Simplify PBD parsing 2024-04-30 16:17:04 -04:00
d5b3b8a468 Run cargo fmt 2024-04-20 13:18:03 -04:00
26e89e8873 Remove more dead code 2024-04-16 21:19:08 -04:00
f067b653b1 Add common functions for converting bool back and forth from u8/16
Sort of unnecessary, but these are also tested.
2024-04-16 21:03:26 -04:00