Skip to content
Snippets Groups Projects
Commit 55ac47f0 authored by Blank_Alt's avatar Blank_Alt Committed by Pregmodder
Browse files

secExp-backport and building sugarcube.txt tweaks

parent d25f272d
No related branches found
No related tags found
No related merge requests found
Showing
with 6 additions and 8 deletions
This brief how-to guides through patching and building sugarcube (https://github.com/tmedwards/sugarcube-2)
for the Free Cities. Sugarcube sources can be obtained locally by cloning its Git repository.
Prerequisites (listed NOT in the installation order, please read the list to the end first):
1. Node.js with npm (https://nodejs.org).
2. To build some packages, Node.js requires python and a C/C++ compiler. On Windows you may want to
......@@ -54,13 +53,12 @@ CAUTION: Requited dependencies change during the project lifetime and vary from
you may need to run npm install again after some time, or after branch/tag change. Try to run it in
case of strange build errors.
The next is done in the directory where SC repo was cloned. Loop over required SugarCube versions:
1. git reset --hard to clean any local changes
2. (Optionally) git checkout v2.30.1 (any tag or head here, of course)
3. git apply ~/games/fc-pregmod/devNotes/sugarcube\ stuff/sugarcube-fc-changes.patch
3. git apply <full path to sugarcube-fc-changes.patch>
4. node build.js -b 2 to build release version
5. cp dist/twine2/sugarcube-2/format.js <whenever you want>
6. node build.js -b 2 -u -d to build debug version
7. cp dist/twine2/sugarcube-2/format.js <whenever you want to place the debug header>
7. cp dist/twine2/sugarcube-2/format.js <whenever you want to place the debug header>
\ No newline at end of file
File moved
File moved
File moved
File moved
File moved
File moved
......@@ -195,12 +195,12 @@ With our current industrial and research capabilities upgrades will be finished
<<if $currentUpgrade.time <= 0>>
<br>Security Drones:
<<if $secBotsBaseDefense <= 3 || $droneUpgrades >= 3>>
<<if $weapLab < 3>>
Upgrade the research facility further to unlock more upgrades for the security drones.
<br><br>
<<else>>
<<elseif $completedUpgrades.containsAll(-1, -2, -3)>>
You have fully upgraded the security drones.
<</if>>
<<if !$completedUpgrades.containsAll(-1, -2, -3)>> <br> <</if>>
/* Drones upgrades */
<<if !$completedUpgrades.includes(-1)>>
<<link "Develop dynamic battle aware AI">>
......@@ -240,7 +240,7 @@ With our current industrial and research capabilities upgrades will be finished
<</link>>
<br>//Will take _time weeks, cost <<print cashFormat(30000)>> and will increase the base hp value of the security drones.//
<</if>>
<<if $secBotsBaseDefense <= 3 || $droneUpgrades >= 3>> <br> <</if>>
<<if !$completedUpgrades.containsAll(-1, -2, -3)>> <br> <</if>>
/* human troops upgrades */
<br>Troops:
......
File moved
File moved
File moved
File moved
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment