Creation of War-file. Code from Daniel Nachtmann