Well, resources don’t actually get packed into the game file until after Preinit is done. But according to the docs it shouldn’t really matter (it should just load the original files from disk). I couldn’t find any info about file safety levels in the compiler that might be interfering during preinit…
Where does the compiler create the .t3 file, and what is your current working directory when you invoke it? Are they both the same directory that has cache in it?
Because if I am just loading this file to write its contents into a Vectorfor preinit caching, then I guess I don’t really need to bundle the file with the game, do I…? …I, uh, had not considered this…
People on this forum are amazing.
Yup! gameMain.t, gameMain.t3, and cache/ are in the same directory!
(Though, after your previous point, this might not relevant anymore lol)
Why are you packing the file into the t3 file if you’re reading it during preinit anyway? You’re including an unneeded file with the t3. The file is not needed anymore when shipping the game since you’ve already read it in preinit.