2025-07-31 20:09 CEST

spring: develop 26549bea Diff ] Back to Repository ]
Author Committer Branch Timestamp Parent
Tobi Vollebregt Tobi Vollebregt develop 2010-01-26 00:16:10 develop a36d7be0
Changeset Removed hardcoded (start) scripts completely.

Reasons:
- This was all outdated and barely used / not used at all.
- The scripts had double function (at two different moments in the load process), making the entire thing incredibly confusing. (i.e. abstraction of functionality behind menu items on load screen, and actual pre- and in-game behaviours (which should be in Lua anyway))
- Removing these code removes a lot extra code paths on startup, and hence a lot of potential for bugs.

Removed functionality:
- StartUnit (as specified in sidedata.lua) isn't spawned anymore by engine. This should be done using a gadget (example included).
- No more air, test and spawn script (aww, someone remake those in Lua?)
- No more loading of savegames through start menu (easy to re-add, if desired)

Changed APIs:
- Engine does nothing anymore with "ScriptName" mod option. (start script)
- Engine does nothing anymore with "Script" map tag. (map SMD)
- "StartUnit" tag in sidedata.lua is only passed through to Lua Spring.GetSideData, engine doesn't use it anymore.
add - installer/builddata/springcontent/LuaGadgets/Gadgets/game_spawn.lua Diff ] File ]
mod - rts/Game/Game.cpp Diff ] File ]
mod - rts/Game/Game.h Diff ] File ]
mod - rts/Game/GameSetup.cpp Diff ] File ]
mod - rts/Game/GameSetup.h Diff ] File ]
mod - rts/Game/PreGame.cpp Diff ] File ]
rm - rts/Game/StartScripts/AirScript.cpp Diff ] File ]
rm - rts/Game/StartScripts/AirScript.h Diff ] File ]
rm - rts/Game/StartScripts/CommanderScript.cpp Diff ] File ]
rm - rts/Game/StartScripts/CommanderScript.h Diff ] File ]
rm - rts/Game/StartScripts/EmptyScript.cpp Diff ] File ]
rm - rts/Game/StartScripts/EmptyScript.h Diff ] File ]
rm - rts/Game/StartScripts/LoadScript.cpp Diff ] File ]
rm - rts/Game/StartScripts/LoadScript.h Diff ] File ]
rm - rts/Game/StartScripts/Script.cpp Diff ] File ]
rm - rts/Game/StartScripts/Script.h Diff ] File ]
rm - rts/Game/StartScripts/ScriptHandler.cpp Diff ] File ]
rm - rts/Game/StartScripts/ScriptHandler.h Diff ] File ]
rm - rts/Game/StartScripts/SkirmishAITestScript.cpp Diff ] File ]
rm - rts/Game/StartScripts/SkirmishAITestScript.h Diff ] File ]
rm - rts/Game/StartScripts/SpawnScript.cpp Diff ] File ]
rm - rts/Game/StartScripts/SpawnScript.h Diff ] File ]
rm - rts/Game/StartScripts/TestScript.cpp Diff ] File ]
rm - rts/Game/StartScripts/TestScript.h Diff ] File ]
mod - rts/Map/MapInfo.cpp Diff ] File ]
mod - rts/Map/MapInfo.h Diff ] File ]
add - rts/Menu/ScriptHandler.cpp Diff ] File ]
add - rts/Menu/ScriptHandler.h Diff ] File ]
mod - rts/Menu/SelectMenu.cpp Diff ] File ]
mod - rts/Menu/SelectionWidget.cpp Diff ] File ]