Hael wrote:Heya, thanks I really appreciate the help. I'm being an idiot it seems.
so ive tested things with a bunch of different control files and think ive spotted the problem.
everytime i pack things in a directory that doesn't contain a subdirectory, the program works fine.. however if there is a subdirectory in there, it reads the directory like a string?? and mucks up (which then messes up everything else)
eg
deflate:"data/%"
deflate:"fonts/%"
deflate:"atlas/people/%"
works and packs correctly, however
deflate:"atlas/%"
gives the following error
Failed to read from atlas/people while writing package: Unexpected EOF
everything is in my home directory:
eg
build-pkg.exe
control-file.txt
extract-pkg.exe
ftl.dat (when its built)
and the directories
atlas, audio, data, fonts, img
in that case, you probably need to make one entry per file extension, so the build-pkg.exe does not try to read those folders as files.
so you should be able to do something like that:
Code: Select all
deflate:"atlas/%.tex"
deflate:"atlas/%.txt"
deflate:"atlas/people/%.tex
...
I just wrote a little script, when I was building those packages, that listed all files without any wildcards, but that script would not work on windows. It might be a good idea to create something similar for your operation system, so not everybody has to create a control file manually. Even if you decide to continue creating that file by hand, you should upload it once it is working to make the process easier for other people.