Building the project - reyandme/kam_remake GitHub Wiki
Building the project
Build is made using bat scripts, which are located in the \bat\
directory.
Pre-requirements
- Delphi (version 10.3 or higher)
- .NET Framework (version 4.0 or higher)
- GIT client (TortoiseGit, GitHub for Windows or any other of your choice)
- Inno Setup (version 6 or higher)
- Pandoc for generating documentation
- Lazarus/FPC cross-platform compiler (check further instructions)
- Original "Knights and Merchants: The Peasants Rebellion" data files
- Secure assets, such as
KM_NetAuthSecure.pas
andCheckKaM.iss
. Installation could be made without them as an unofficial release (check further instructions) - KaM Remake video files (renamed original videos). Could be taken from any released beta version
- KaM Remake older versions, f.e. r6720
- Clone kam_remake, kam_remake_maps and kam_remake_resources repositories to some folder on you hard drive
- Clone
ScriptingEditor
repository to some folder on you hard drive, if you have access to it. Otherwise skip this step - Clone
kam_remake_private
repository to some folder on you hard drive, if you have access to it. Otherwise skip this step - Run FPCUPdeluxe to get Lazarus and FPC installations: FPCUPdeluxe is used to configure FPC compiler and Lazarus to compile Linux dedicated servers. FPCUPdeluxe web site FPCUPdeluxe GitHub repo
- Download and run latest FPCUPdeluxe version (tested on the version v2.4.0e)
- Choose directory to install FPCUPdeluxe.
- On the
Basic
tab chooseInstall/update FPC + Lazarus
. Tested on FPC v3.2.0, Lazarus v3.4. Needed packets will be downloaded and installed into the chosen folder. - On the
Cross
tab choose CPUi386
and OSlinux
and clickInstall compiler
to install Linux x86 compiler - On the
Cross
tab choose CPUx86_64
and OSlinux
and clickInstall compiler
to install Linux x64 compiler
- Create file
\bat\rsvars_local.bat
in the project directory and set variables in it as shown in the\bat\rsvars_local_example.bat
file - To build installation exe file you will need to run
\bat\make_beta_and_installer.bat
(in yourkam_remake
repository). It could take up to 5-10 minutes. At the end there should be a message that InnoSetup Compilation is complete. If you do not receive this message, it means the installation failed. You will see what was the last step in console and check details in the corresponding log file.