Skip to content

Commit e281c2d

Browse files
committed
Merge branch 'develop' into sdl_console
2 parents 9fe9295 + 516ade1 commit e281c2d

189 files changed

Lines changed: 7066 additions & 3909 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/generate-symbols.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ on:
3636
default: default
3737
options:
3838
- default
39+
- experimental
3940
- testing
4041
- adventure_test
4142
- beta
@@ -133,7 +134,7 @@ jobs:
133134
+quit
134135
tar xjf dfhack-symbols-linux64-build.tar.bz2 -C DF_steam
135136
xml/symbols_gen_linux.sh ${{ inputs.version == 'auto' && '50.0' || inputs.version }} STEAM DF_steam
136-
if [ "${{ inputs.version }}" = "auto" ]; then
137+
if [ "${{ inputs.version }}" == "auto" ]; then
137138
while pgrep dwarfort; do
138139
echo "waiting for DF to exit"
139140
sleep 0.5

.github/workflows/watch-df-release.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,17 @@ jobs:
1515
fail-fast: false
1616
matrix:
1717
# df_steam_branch: which DF Steam branch to watch
18-
# platform: leave blank to default to all
18+
# platform: for symbols generation; leave blank to default to all
1919
# structures_ref: leave blank to default to master
2020
# dfhack_ref: leave blank if no structures update is desired
2121
# steam_branch: leave blank if no DFHack steam push is desired
2222
include:
2323
- df_steam_branch: public
2424
- df_steam_branch: beta
25+
- df_steam_branch: experimental
26+
structures_ref: experimental
27+
dfhack_ref: experimental
28+
steam_branch: experimental
2529
steps:
2630
- name: Fetch state
2731
uses: actions/cache/restore@v4
@@ -31,7 +35,8 @@ jobs:
3135
- name: Compare branch metadata
3236
uses: nick-fields/retry@v3
3337
with:
34-
timeout_minutes: 2
38+
timeout_minutes: 5
39+
retry_wait_seconds: 60
3540
command: |
3641
blob=$(wget 'https://api.steamcmd.net/v1/info/975370?pretty=1' -O- | \
3742
awk '/^ *"branches"/,0' | \
@@ -117,7 +122,8 @@ jobs:
117122
- name: Compare versions
118123
uses: nick-fields/retry@v3
119124
with:
120-
timeout_minutes: 2
125+
timeout_minutes: 5
126+
retry_wait_seconds: 60
121127
command: |
122128
version=$(wget "${{ matrix.url }}" -qO- | tr '"' '\n' | fgrep 'tar.bz2' | head -n1 | sed -r 's/${{ matrix.prefix }}_([0-9]{2})_([0-9]{2})_linux.tar.bz2/\1.\2/')
123129
echo "latest ${{ matrix.channel }} version: $version"

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ ci:
44
repos:
55
# shared across repos:
66
- repo: https://github.com/pre-commit/pre-commit-hooks
7-
rev: v5.0.0
7+
rev: v6.0.0
88
hooks:
99
- id: check-added-large-files
1010
- id: check-case-conflict
@@ -20,7 +20,7 @@ repos:
2020
args: ['--fix=lf']
2121
- id: trailing-whitespace
2222
- repo: https://github.com/python-jsonschema/check-jsonschema
23-
rev: 0.30.0
23+
rev: 0.33.3
2424
hooks:
2525
- id: check-github-workflows
2626
- repo: https://github.com/Lucas-C/pre-commit-hooks

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ cmake_policy(SET CMP0048 NEW)
66
cmake_policy(SET CMP0074 NEW)
77

88
# set up versioning.
9-
set(DF_VERSION "51.04")
9+
set(DF_VERSION "52.04")
1010
set(DFHACK_RELEASE "r1")
1111
set(DFHACK_PRERELEASE FALSE)
1212

@@ -67,7 +67,7 @@ endif()
6767

6868
if(WIN32)
6969
set(MSVC_MIN_VER 1930)
70-
set(MSVC_MAX_VER 1942)
70+
set(MSVC_MAX_VER 1944)
7171
if(NOT MSVC)
7272
message(SEND_ERROR "No MSVC found! MSVC 2022 version ${MSVC_MIN_VER} to ${MSVC_MAX_VER} is required.")
7373
elseif((MSVC_VERSION LESS MSVC_MIN_VER) OR (MSVC_VERSION GREATER MSVC_MAX_VER))

build/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ _CPack_Packages
77
*.tar.*
88
.cmake
99
win64-cross
10+
dest

ci/test.lua

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ local gui = require('gui')
66
local helpdb = require('helpdb')
77
local json = require('json')
88
local mock = require('test_util.mock')
9+
local overlay = require('plugins.overlay')
910
local script = require('gui.script')
1011
local utils = require('utils')
1112

@@ -289,12 +290,13 @@ local MODES = {
289290

290291
local function load_test_config(config_file)
291292
local config = {}
293+
print ("loading test config from " .. config_file)
292294
if dfhack.filesystem.isfile(config_file) then
293295
config = json.decode_file(config_file)
294296
end
295297

296298
if not config.test_dir then
297-
config.test_dir = dfhack.getHackPath() .. 'scripts/test'
299+
config.test_dir = dfhack.getHackPath() .. '/scripts/test'
298300
end
299301

300302
if not config.save_dir then
@@ -426,6 +428,7 @@ end
426428

427429
local function finish_tests(done_command)
428430
dfhack.internal.IN_TEST = false
431+
overlay.rescan()
429432
if done_command and #done_command > 0 then
430433
dfhack.run_command(done_command)
431434
end

data/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/blueprints/
2424
FILES_MATCHING PATTERN "*"
2525
PATTERN blueprints/test EXCLUDE)
2626

27+
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/patches/
28+
DESTINATION ${DFHACK_DATA_DESTINATION}/patches
29+
)
30+
2731
if(BUILD_TESTS)
2832
install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/blueprints/test/
2933
DESTINATION "${DFHACK_DATA_DESTINATION}/data/blueprints/test")

data/art/design.png

241 Bytes
Loading

data/art/design_toolbar.png

599 Bytes
Loading

data/art/logo.png

216 Bytes
Loading

0 commit comments

Comments
 (0)