billw2015
King
- Joined
- Jun 22, 2015
- Messages
- 837
I implemented this in the git repo (it won't work in SVN) and it seems to work okay. I made a very basic popup dialog with a progress bar when it is doing stuff during game start, so it is clear why it is taking some time.
When it first runs it will store the git revision along with a list of all locally changed files. It then builds the FPKs to include everything. From then on when it runs it will look at the differences between the original git revision and changed file list and the current git revision and changed file list, building a patch FPK that includes every file that is different.
Currently it will never rebuild the main FPKs unless you run the Tools\CleanFPKLive.bat file. I can make this smarter at a later date if it becomes a problem. For instance I can make it so that we can tag commits to force a rebuild of the FPKs automatically. Or do it based on how many files have changed since they were made.
When it first runs it will store the git revision along with a list of all locally changed files. It then builds the FPKs to include everything. From then on when it runs it will look at the differences between the original git revision and changed file list and the current git revision and changed file list, building a patch FPK that includes every file that is different.
Currently it will never rebuild the main FPKs unless you run the Tools\CleanFPKLive.bat file. I can make this smarter at a later date if it becomes a problem. For instance I can make it so that we can tag commits to force a rebuild of the FPKs automatically. Or do it based on how many files have changed since they were made.