-
Notifications
You must be signed in to change notification settings - Fork 50
How to build and run CivOne?
The CivOne library is being developed on top of .NET Standard 2.0. The OpenTK runtime uses .NET Core 2.0 and is intended to run on Windows, MacOS X and Linux. To build/run CivOne, you need the following:
- Visual Studio Code: https://code.visualstudio.com/
- .NET Core framework: https://www.microsoft.com/net/core
- The original game files for Sid Meier's Civilization. They should be placed in the ~/data/ directory. For more information: https://github.com/SWY1985/CivOne/wiki/Project-files-folders
After you've downloaded and installed the proper tools you can download or clone CivOne. In Visual Studio Code, choose File > Open Folder... Choose the folder where you downloaded CivOne. Now follow the platform specific instructions.
Follow your platform specific guide here:
The development of this project currently focusses on the SDL runtime, which uses .NET Core 2.0 and SDL. There used to be an OpenTK runtime as well, but it is no longer maintained. If you're interested, you can find the code in the OpenTK branch. There's a win32/.NET4.7 runtime as well, but it is also no longer maintained. The code can be found in the win32 branch. I have done some experiments and the game can run on Xamarin, so an Android version is likely to happen in the future.
CivOne supports plugins, though the API is incomplete. For early samples of the possibilities, have a look at the CivOne-Plugins repository. The API is still under development and subject to change. If you want to develop a plugin, be prepared for breaking API changes.