Conditional Trading is a modification for the game Stronghold Crusader HD that adds conditional trading functionality. This mod has been successfully tested with versions 1.3 and 1.41 of the game, both in Russian and English editions, and is also compatible with the Extreme version.
-
Open/Close Menu:
- Press the
M
key to toggle the menu on or off.
- Press the
-
Product Selection:
- Use the
<-
and->
arrow buttons to select the product you want to manage.
- Use the
-
Set Sale Threshold:
- The
sale >
field defines the threshold above which the product will be sold. If the stock quantity is greater than this value, the product will be sold. - You can increase or decrease this value using the + and - buttons. You can also hold down these buttons to continuously and rapidly adjust the value.
- The
-
Set Buy Threshold:
- The
buy <
field defines the threshold below which the product will be purchased. If the stock quantity is less than this value, the product will be purchased. - You can increase or decrease this value using the + and - buttons. You can also hold down these buttons to continuously and rapidly adjust the value.
- The
-
Default Settings:
- By default, all products have a
sale
threshold of 500 and an emptybuy
threshold.
- By default, all products have a
-
Reset Settings:
- The
reset
button will restore all user settings to their defaults for all products.
- The
- Download the
dplayx.dll
file from the Releases page. - Place the
dplayx.dll
file in the root directory of your Stronghold Crusader HD game. - Now the mod is installed and you can run the game.
To compile the mod from source, follow these steps:
-
Install MSYS2:
- Download and install MSYS2 from MSYS2.org.
-
Open MSYS2 MINGW32:
- Launch the MSYS2 MINGW32 terminal.
-
Install Compilation Tools:
pacman -S git mingw-w64-i686-gcc mingw-w64-i686-make mingw-w64-i686-cmake
-
Clone the Repository:
git clone --recurse-submodules https://github.com/Ciptik/crusader-automarket.git
-
Go to the project folder
cd crusader-automarket
-
Create a Build Directory:
mkdir build
-
Navigate to the Build Directory:
cd build
-
Generate Build Files with CMake:
cmake -G "MinGW Makefiles" ..
-
Compile the Project:
mingw32-make
-
Verify the Build:
- Upon successful compilation, the
dplayx.dll
file will be generated in thebuild
directory. Move this file to the root directory of your Stronghold Crusader HD game to apply the mod.
If you find this project helpful, I would greatly appreciate your support. You can send donations to the following cryptocurrency address:
USDT (TRC20): TRgeV6eHbQHF7uVrGRor3T3wUGmbxkFkHy