Skip to content

Commit 737a321

Browse files
committed
Fix script.txt format to match SpringBoard's script generator
Based on actual SpringBoard code analysis: save_project_info_command.lua:109-126 creates a script table: mapSeed = project.randomMapOptions.mapSeed, (top level) mapOptions = { new_map_x = ..., new_map_y = ... }, StartScript.GenerateScriptTxt() converts this to: [MAPOPTIONS] { new_map_x=...; new_map_y=...; } [MODOPTIONS] { mapseed=...; } Note: 'mapseed' is lowercase in generated files (_script.txt line 25) The script needs BOTH sections: - [MAPOPTIONS] for map dimensions - [MODOPTIONS] for map seed This matches the format in test-engine/test-data/_script.txt
1 parent e114679 commit 737a321

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test-smoke.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ cat > script.txt << 'EOF'
6565
new_map_x=10;
6666
new_map_y=8;
6767
}
68+
[MODOPTIONS]
69+
{
70+
mapseed=1;
71+
}
6872
[PLAYER0]
6973
{
7074
Name=TestPlayer;

0 commit comments

Comments
 (0)