use fileleft var
fix testgame pack generator