Commit e114679
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
1 file changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | | - | |
66 | 65 | | |
67 | 66 | | |
68 | 67 | | |
| |||
0 commit comments