Nice one! Managed to get the "WAghost" file created, but not sure how to replay it during a game. Is there a special key combination?
Edit: Managed to get it working. Misread the first line as needing to press Ctrl+N twice, but you only need to do it once and it creates the ghost from the beginning of the turn up until the point you press Ctrl+N.
Also, disabling both vsync settings prevents the ghost from flickering if anyone has that issue. There is screen tearing without vsync, but you can disable it, create a ghost using a replay file, then enable vsync again for racing against it.