The error message "X program has encountered a problem and needs to close. Info: appcompat.txt" indicates that the program has crashed due to compatibility issues. "appcompat.txt" is a file generated by Windows to record information about the compatibility of the program with the operating system. The file may contain details about the reason for the crash, which can be helpful in troubleshooting the issue. To fix the problem, you can try updating the program or the operating system, reinstalling the program, or running the program in compatibility mode.
But as you can see you almost did the troubleshootig procedure above There is a higher chance that game may simply not be compatible with modern operating systems, if it's ok may I know what is the exact game you want to play?