Skip to content

Commit b063278

Browse files
committed
Remove ALL map file/directory code - NO map files needed
Removed: - All .sdd directory creation code - All mapinfo.lua / modinfo.lua creation - All 'mkdir games/sb_test_map.sdd' commands Clean script.txt format: - MapName=generated_test_map (no file exists) - [MAPOPTIONS] { new_map_x=10; new_map_y=8; } - [MODOPTIONS] { mapseed=1; } Map generation happens in the engine based on these parameters. NO map files or directories required.
1 parent 32d9666 commit b063278

File tree

3 files changed

+4
-100
lines changed

3 files changed

+4
-100
lines changed

.github/workflows/smoke-test.yml

Lines changed: 3 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -71,49 +71,15 @@ jobs:
7171
cat test-data/springsettings.cfg
7272
echo "Sound subsystem disabled via Sound = 0 config"
7373
74-
- name: Create map project directory for generation
75-
run: |
76-
# Create a .sdd directory that Spring will use as the map
77-
# The mapinfo.lua without a mapfile field triggers map generation
78-
mkdir -p games/sb_test_map.sdd
79-
80-
cat > games/sb_test_map.sdd/mapinfo.lua << 'MAPINFO'
81-
local mapinfo = {
82-
name = "sb_test_map",
83-
version = "1.0",
84-
description = "Test map for generation",
85-
modtype = 3,
86-
depend = {"Map Helper v1"},
87-
}
88-
return mapinfo
89-
MAPINFO
90-
91-
cat > games/sb_test_map.sdd/modinfo.lua << 'MODINFO'
92-
local modinfo = {
93-
name = "sb_test_map",
94-
shortname = "sb_test",
95-
version = "1.0",
96-
mutator = "Official",
97-
description = "Test project",
98-
modtype = 1,
99-
depend = {"SpringBoard Core $VERSION"},
100-
}
101-
return modinfo
102-
MODINFO
103-
104-
ls -lah games/sb_test_map.sdd/
105-
echo "Map project directory created"
106-
10774
- name: Create Spring script.txt for map generation
10875
run: |
109-
# MapName MUST reference the .sdd directory we created
110-
# MAPOPTIONS/MODOPTIONS tell SpringBoard how to generate
111-
echo "Using map generation: sb_test_map 1.0"
76+
# Map generation - NO map files needed!
77+
# Engine generates based on MAPOPTIONS parameters
11278
cat > script.txt << 'SCRIPTEND'
11379
[GAME]
11480
{
11581
GameType=SpringBoard Core;
116-
MapName=sb_test_map 1.0;
82+
MapName=generated_test_map;
11783
IsHost=1;
11884
MyPlayerName=TestPlayer;
11985
[MAPOPTIONS]

test-engine/script_test_project.txt

Lines changed: 0 additions & 31 deletions
This file was deleted.

test-smoke.sh

Lines changed: 1 addition & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -51,44 +51,13 @@ EOF
5151
echo "✓ Config created"
5252
echo ""
5353

54-
# Create map project directory for generation
55-
echo "Creating map project directory..."
56-
mkdir -p games/sb_test_map.sdd
57-
58-
cat > games/sb_test_map.sdd/mapinfo.lua << 'MAPINFO'
59-
local mapinfo = {
60-
name = "sb_test_map",
61-
version = "1.0",
62-
description = "Test map for generation",
63-
modtype = 3,
64-
depend = {"Map Helper v1"},
65-
}
66-
return mapinfo
67-
MAPINFO
68-
69-
cat > games/sb_test_map.sdd/modinfo.lua << 'MODINFO'
70-
local modinfo = {
71-
name = "sb_test_map",
72-
shortname = "sb_test",
73-
version = "1.0",
74-
mutator = "Official",
75-
description = "Test project",
76-
modtype = 1,
77-
depend = {"SpringBoard Core $VERSION"},
78-
}
79-
return modinfo
80-
MODINFO
81-
82-
echo "✓ Map project directory created"
83-
echo ""
84-
8554
# Create script.txt
8655
echo "Creating Spring script..."
8756
cat > script.txt << 'EOF'
8857
[GAME]
8958
{
9059
GameType=SpringBoard Core;
91-
MapName=sb_test_map 1.0;
60+
MapName=generated_test_map;
9261
IsHost=1;
9362
MyPlayerName=TestPlayer;
9463
[MAPOPTIONS]

0 commit comments

Comments
 (0)