CK3 Save
CK3 Save is a library to ergonomically work with Crusader Kings III (CK3) saves (ironman + regular).
use ;
let data = read?;
let file = from_slice?;
assert_eq!;
let meta = file.parse_metadata?;
let header: HeaderBorrowed = meta.deserializer.build?;
let mut zip_sink = Vec new;
let parsed_file = file.parse?;
let save: Gamestate = parsed_file.deserializer.build?;
assert_eq!;
assert_eq!;
Ironman
By default, ironman saves will not be decoded properly.
To enable support, one must supply an environment variable
(CK3_IRONMAN_TOKENS
) that points to a newline delimited
text file of token descriptions. For instance:
0xffff my_test_token
0xeeee my_test_token2
In order to comply with legal restrictions, I cannot share the list of tokens. I am also restricted from divulging how the list of tokens can be derived.