Skip to content

How to build and run CivOne?

SWY1985 edited this page Mar 21, 2018 · 20 revisions

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:

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.

Platforms

Follow your platform specific guide here:

Runtimes

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.

Plugins

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.