Skip to content

Commit e114679

Browse files
committed
Fix script.txt format to match SpringBoard's expectations
Corrections based on SpringBoard code analysis: 1. MapName: Use 'sb_initial_blank_10x8' (no version suffix) - SpringBoard generates random names like 'blank_123456project 1.0' - For testing, a simple name without version works 2. Map generation params: Use [MAPOPTIONS] not [MODOPTIONS] - SpringBoard reads new_map_x/y via Spring.GetMapOptions() - This corresponds to [MAPOPTIONS] section in script.txt 3. MapSeed: Removed from script.txt - SpringBoard hardcodes mapSeed=42 internally (project.lua:155) - Comment says: 'FIXME: Not the real mapseed but probably not an issue' - No need to specify it in script References: - scen_edit/model/project.lua:149-157 (_LoadFromMapOpts) - scen_edit/view/dialog/new_project_dialog.lua:115-120 - scen_edit/command/project/save_project_info_command.lua:109-126 This matches how SpringBoard's NewProjectDialog creates generated maps.
1 parent e7ad92e commit e114679

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test-smoke.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,8 @@ cat > script.txt << 'EOF'
6060
MapName=sb_initial_blank_10x8;
6161
IsHost=1;
6262
MyPlayerName=TestPlayer;
63-
[MODOPTIONS]
63+
[MAPOPTIONS]
6464
{
65-
MapSeed=42;
6665
new_map_x=10;
6766
new_map_y=8;
6867
}

0 commit comments

Comments
 (0)