2025-08-28 17:38 CEST

spring: develop 1171b9f3 Diff ] Back to Repository ]
Author Committer Branch Timestamp Parent
trepan trepan develop 2008-06-27 05:35:24 develop f256116f
Changeset // UNITSYNC
- added LuaParser API to unitsync
  (and some test code to unitsync/test/test.cpp, needs more testing)

- added OpenArchiveType(name, type) to unitsync (at Satirik's request)
  (type can be "zip", "7z", "dir", or "hpi")

- added 'const char* GetSideStartUnit(int side)' to unitsync


// GAME
- changed the order of selections for scriptless execution:
    was: map, script, mod
    now: mod, script, map
  this was done so that ValidMaps.lua could be implemented
  properly for scriptless execution, which should help implement
  scriptless execution missions

- added the '-C <filename>' command line option
  (for using alternate config files, or registry paths (right term?))

- added separate sonarJammer LOS maps
  (#define SONAR_JAMMER_MAPS in RadarHandler.h to enable)

- added the CPlayer::controlledTeams set

- added the SideParser.cpp parser (unifies the side parsing)

- did some more cleanup in ArchiveScanner


// MAP
- added SMF height overrides in the SMD file, example:
    smf = {
      minheight = -100.0f,
      maxheight = 200.0f,
    }
  (note: these values can be changed by MapOptions)


// LUAUI migration
- moved most of the LuaUI call-outs into LuaUnsyncedRead
  and LuaUnsyncedCtrl. The LuaUnsyncedCtrl call-outs require
  that the modUICtrl variable be enabled for non-user scripts
  to use them. I've also considered adding a user controlled
  file that lists the call-ins and call-outs the the unsynced
  global scripts can use. The handling for net message related
  call-outs might also change...

- moved most of the LuaUI call-ins into LuaCallInHandler and
  LuaHandle. The moved call-ins require that the modUICtrl
  variable be enabled for non-user scripts to receive them.

- added the /luamoduictrl [0|1] command

- added the "LuaModUICtrl" (default = 1) config variable

// SYNCED call-ins
- added UnitEnteredWater(unitID, unitDefID, unitTeam) call-in
- added UnitEnteredAir(unitID, unitDefID, unitTeam) call-in
- added UnitLeftWater(unitID, unitDefID, unitTeam) call-in
- added UnitLeftAir(unitID, unitDefID, unitTeam) call-in

// SYNCED call-outs
- added Spring.ValidUnitID(number id) -> boolean
- added Spring.ValidFeatureID(number id) -> boolean

// UNSYNCED call-ins
- added a real ViewResize() call-in

// UNSYNCED call-outs
- added Spring.GetModUICtrl()
- added Spring.GetViewGeometry() -> sizeX, sizeY, posX, posY
- added Spring.GetWindowGeometry() -> sizeX, sizeY, posX, posY
- added Spring.GetScreenGeometry() -> sizeX, sizeY, posX, posY

- modified Spring.GetVisibleUnits() so that the team specifier can
  use the ALL_UNITS, ALLY_UNITS, ENEMY_UNITS, and MY_UNITS values.

- removed the following compatibility defines from luaconf.h:
    LUA_COMPAT_VARARG
    LUA_COMPAT_MOD
    LUA_COMPAT_LSTR
    LUA_COMPAT_GFIND
    LUA_COMPAT_OPENLIB

- adjusted the lua scripts in SVN for the compatibility changes



git-svn-id: https://spring.clan-sy.com/svn/spring/trunk@6079 37977431-3df6-0310-b722-df95706aa16b
mod - SConstruct Diff ] File ]
mod - game/LuaUI/Widgets/camera_ctrl.lua Diff ] File ]
mod - game/LuaUI/Widgets/gui_clock.lua Diff ] File ]
mod - game/LuaUI/Widgets/gui_comm_ends.lua Diff ] File ]
mod - game/LuaUI/Widgets/gui_eyes.lua Diff ] File ]
mod - game/LuaUI/Widgets/gui_modeltest.lua Diff ] File ]
mod - game/LuaUI/Widgets/gui_mousetrail.lua Diff ] File ]
mod - game/LuaUI/Widgets/gui_tooltip.lua Diff ] File ]
mod - game/LuaUI/Widgets/ico_customicons.lua Diff ] File ]
mod - game/LuaUI/Widgets/snd_chatterbox.lua Diff ] File ]
mod - game/LuaUI/actions.lua Diff ] File ]
mod - game/LuaUI/callins.lua Diff ] File ]
mod - game/LuaUI/fonts.lua Diff ] File ]
mod - game/LuaUI/layout.lua Diff ] File ]
mod - game/LuaUI/widgets.lua Diff ] File ]
mod - game/teamcolors.lua Diff ] File ]
mod - installer/builddata/maphelper/MapOptions.lua Diff ] File ]
mod - installer/builddata/maphelper/maphelper/applyopts.lua Diff ] File ]
add - installer/builddata/maphelper/maphelper/mapdefaults.lua Diff ] File ]
add - installer/builddata/maphelper/maphelper/setupopts.lua Diff ] File ]
mod - installer/builddata/springcontent/LuaGadgets/actions.lua Diff ] File ]
mod - installer/builddata/springcontent/LuaGadgets/gadgets.lua Diff ] File ]
mod - installer/builddata/springcontent/gamedata/explosions.lua Diff ] File ]
mod - rts/Game/Game.cpp Diff ] File ]
mod - rts/Game/Game.h Diff ] File ]
mod - rts/Game/GameHelper.cpp Diff ] File ]
mod - rts/Game/GameServer.cpp Diff ] File ]
mod - rts/Game/GameSetup.cpp Diff ] File ]
mod - rts/Game/GameSetupData.h Diff ] File ]
mod - rts/Game/Player.cpp Diff ] File ]
mod - rts/Game/Player.h Diff ] File ]
mod - rts/Game/PreGame.cpp Diff ] File ]
mod - rts/Game/PreGame.h Diff ] File ]
mod - rts/Game/SelectedUnits.cpp Diff ] File ]
mod - rts/Game/SelectedUnits.h Diff ] File ]
mod - rts/Game/SelectedUnitsAI.cpp Diff ] File ]
mod - rts/Game/StartScripts/CommanderScript.cpp Diff ] File ]
mod - rts/Game/StartScripts/CommanderScript2.cpp Diff ] File ]
mod - rts/Game/StartScripts/GlobalAITestScript.cpp Diff ] File ]
mod - rts/Game/StartScripts/SpawnScript.cpp Diff ] File ]
mod - rts/Game/Team.cpp Diff ] File ]
mod - rts/Game/Team.h Diff ] File ]
mod - rts/Game/UI/EndGameBox.cpp Diff ] File ]
mod - rts/Game/UI/EndGameBox.h Diff ] File ]
mod - rts/Game/UI/GameSetupDrawer.cpp Diff ] File ]
mod - rts/Game/UI/GuiHandler.cpp Diff ] File ]
mod - rts/Game/UI/GuiHandler.h Diff ] File ]
mod - rts/Game/UI/LuaUI.cpp Diff ] File ]
mod - rts/Game/UI/LuaUI.h Diff ] File ]
mod - rts/Game/UI/MouseHandler.cpp Diff ] File ]
mod - rts/Game/UI/ShareBox.cpp Diff ] File ]
mod - rts/Game/UI/TooltipConsole.cpp Diff ] File ]
mod - rts/Lua/LuaCallInHandler.cpp Diff ] File ]
mod - rts/Lua/LuaCallInHandler.h Diff ] File ]
mod - rts/Lua/LuaConstGame.cpp Diff ] File ]
mod - rts/Lua/LuaHandle.cpp Diff ] File ]
mod - rts/Lua/LuaHandle.h Diff ] File ]
add - rts/Lua/LuaInputReceiver.cpp Diff ] File ]
add - rts/Lua/LuaInputReceiver.h Diff ] File ]
mod - rts/Lua/LuaOpenGL.cpp Diff ] File ]
mod - rts/Lua/LuaParser.cpp Diff ] File ]
mod - rts/Lua/LuaParser.h Diff ] File ]
mod - rts/Lua/LuaSyncedRead.cpp Diff ] File ]
mod - rts/Lua/LuaSyncedRead.h Diff ] File ]
mod - rts/Lua/LuaTextures.h Diff ] File ]
mod - rts/Lua/LuaUnitRendering.cpp Diff ] File ]
mod - rts/Lua/LuaUnsyncedCtrl.cpp Diff ] File ]
mod - rts/Lua/LuaUnsyncedCtrl.h Diff ] File ]
mod - rts/Lua/LuaUnsyncedRead.cpp Diff ] File ]
mod - rts/Lua/LuaUnsyncedRead.h Diff ] File ]
mod - rts/Lua/LuaWeaponDefs.cpp Diff ] File ]
mod - rts/Map/BaseGroundDrawer.cpp Diff ] File ]
mod - rts/Map/MapInfo.cpp Diff ] File ]
mod - rts/Map/MapInfo.h Diff ] File ]
mod - rts/Map/ReadMap.cpp Diff ] File ]
mod - rts/Map/ReadMap.h Diff ] File ]
mod - rts/Map/SMF/SmfReadMap.cpp Diff ] File ]
mod - rts/Rendering/IconHandler.cpp Diff ] File ]
mod - rts/Sim/Misc/LosHandler.cpp Diff ] File ]
mod - rts/Sim/Misc/LosHandler.h Diff ] File ]
mod - rts/Sim/Misc/RadarHandler.cpp Diff ] File ]
mod - rts/Sim/Misc/RadarHandler.h Diff ] File ]
mod - rts/Sim/ModInfo.cpp Diff ] File ]
mod - rts/Sim/ModInfo.h Diff ] File ]
mod - rts/Sim/Path/PathEstimator.cpp Diff ] File ]
add - rts/Sim/SideParser.cpp Diff ] File ]
add - rts/Sim/SideParser.h Diff ] File ]
mod - rts/Sim/Units/Unit.cpp Diff ] File ]
mod - rts/Sim/Units/Unit.h Diff ] File ]
mod - rts/Sim/Units/UnitDefHandler.cpp Diff ] File ]
mod - rts/Sim/Units/UnitLoader.cpp Diff ] File ]
mod - rts/System/FileSystem/ArchiveFactory.cpp Diff ] File ]
mod - rts/System/FileSystem/ArchiveFactory.h Diff ] File ]
mod - rts/System/FileSystem/ArchiveScanner.cpp Diff ] File ]
mod - rts/System/FileSystem/ArchiveScanner.h Diff ] File ]
mod - rts/System/FileSystem/VFSHandler.cpp Diff ] File ]
mod - rts/System/FileSystem/VFSHandler.h Diff ] File ]
mod - rts/System/GlobalStuff.cpp Diff ] File ]
mod - rts/System/MouseInput.cpp Diff ] File ]
mod - rts/System/Platform/ConfigHandler.cpp Diff ] File ]
mod - rts/System/Platform/ConfigHandler.h Diff ] File ]
mod - rts/System/SpringApp.cpp Diff ] File ]
mod - rts/lib/lua/README_SPRING Diff ] File ]
mod - rts/lib/lua/include/luaconf.h Diff ] File ]
add - tools/unitsync/LuaParserAPI.cpp Diff ] File ]
add - tools/unitsync/LuaParserAPI.h Diff ] File ]
mod - tools/unitsync/test/test.cpp Diff ] File ]
add - tools/unitsync/test/test.cxx Diff ] File ]
mod - tools/unitsync/unitsync.cpp Diff ] File ]