forked from Kromster80/kam_remake
-
Notifications
You must be signed in to change notification settings - Fork 30
Building the project
Rey edited this page Nov 27, 2024
·
6 revisions
Build is made using bat scripts, which are located in the \bat\
directory.
- Delphi (version 2009 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)
- Lazarus cross-platform compilation (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 repository to some folder on you hard drive
- Clone kam_remake_maps repository 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 - fpcupdeluxe installation.
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 fcupdeluxe.
- 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.