2025-08-29 13:12 CEST

spring: develop 87be45f5 Diff ] Back to Repository ]
Author Committer Branch Timestamp Parent
trepan trepan develop 2007-03-23 14:17:56 develop 55be3371
Changeset * Added tools/scripts/obj2lua.lua (WaveFront OBJ converter)

* Added ".editdefs [0|1]" to allow lua based UnitDef editing

* Added ".reloadcob <unitName>" to reload cob scripts

* Added ".skip <[+|f]seconds>" for in-game and replay fast-forwarding

* Added "/safegl [0|1]" command for testing lua rendering overhead

* Added "/buffertext <text>", copies text into the console history

* Changed ".take" so that cheating must be enabled for spectators to use it

* Added Free camera mode (to help make better videos). It's primarily intended
  to be used with keyboard input (CTRL/ALT/SHIFT/META behave differently then
  the normal camera modes). It's is not in the toggle list by default.

* Added ScriptMoveType (incomplete, but functional). This should be tied into
  the COB scripting engine, and the 'stop' features and rotationOffset
  feature should be fixed.

* Added input text editing
  - backspace & delete
  - home & end (or ALT+{left|right})
  - CTRL+{left|right} for word skipping

* Added 'hardFail' bool to GetWaveId() calls, to avoid killing
  the program if a lua script's call to PlaySoundFile() fails

* Added LuaCob, LuaGaia, LuaRules synchronized scripting
  - LuaCob: (mod) provides access to lua functions for COB scripts
  - LuaGaia: (map) controllers the Gaia team
  - LuaRules: (mod) gives full read/ctrl to setup custom mod game rules

* Replaced LuaState functionality with dynamically linked access to the
  UnitDefs, FeatureDefs, and WeaponDefs tables. These tables are normally
  write protected for default values (in lua), but the user can add custom
  fields to them. The saves memory and decreases start-up time. It also
  provides more information then did LuaState.

* Changed FeatureHandler to use lowercase names for featureDefs

* Added text coloring for ally and spec message input

* Fixed CGlFont.CalcTextWidth() 0.03 -> 0.02

* Removed remaining NEW_GUI #ifndef/#endif's

* Added CMD_LOAD_ONTO handling to BuilderCAI
* Attached the CMD_LOAD_UNITS cursor to CMD_LOAD_ONTO for queue rendering
* Fixed the MobileCAI Move/Fight/Patrol/Guard/Autorepairlevel commands by
  reverting the onlyKey setting after CMD_LOAD_ONTO is pushed

* Added the CMD_INSERT and CMD_REMOVE commands
  (these can use the command tags, positions, and types)

* Added the LUA0-LUA9 (110-119) get/set COB script variables

* Added imageSizeX and imageSizeY UnitDef parameters

* Added paralyzed unit skipping for paralyzers
  (use ALT to disable skipping, same modifier as for permanent area commands)

* Added ReadMap::mapHumanName

* Fixed multiple ground attacks (again)

* Added "wait forced" (force to wait state)
* Added "selfd forced" (force to selfd off)

* Reverted the "ally-attack -> ground-attack" code

* Added unique numeric command tags for Commands in CCommandAIs

* Fixed UnitIdle() w.r.t. CMD_SET_WANTED_MAX_SPEED

* Added positional (3D) sound capability to lua scripts

* Added support for the Gaia team

* Added the "gaia" field to the FBI format (string value)

* Merged the LuaUI code with the new lua library setup

* Implemented the LuaCallInHandler. This added the following to LuaUI:
  - UnitIdle()
  - UnitDamaged()
  - UnitSeismicPing()
  - DrawShadows()
  - DrawReflection()
  - DrawRefraction()
  - DrawMinimap()
  (lua call-ins functions must be present when the script is loaded)

* Added the lua_pushhstring() / lua_calchash() functions to the lua API

* Implemented the CommandQueue wrapper class for managing commands

* Changed unit sharing so that allied units do not clear their command
  queue, and cleaned up some more state for enemy transfers.

* Disabled the ground flattening when building mobile units

* Disabled inCommand resets for icon mode mouse releases

* Keep track of the default command during reloadse

* Added the beginnings of weapons attack cone display
  (the current attack vectors are not readily available from cob scripts)

* Disable unit tracking when using middle mouse button scrolling

* Disable unit tracking when the viewport is set via the minimap

* Added featureDefsVector[] and feature->id to tag featureDefs


LuaUI Lua Code

* Added the action manager (actions.lua)

* Sent more warnings to the game console from the lua widget manager
  (rather then sending them to standard out)

* Added the WG shared widget table to widget namespaces

* Added the camera_ctrl.lua widget

* Added the minimap_startbox.lua widget

* Added the gui_modeltest.lua widget

* Added the tools/scripts/obj2lua.lua tool



git-svn-id: https://spring.clan-sy.com/svn/spring/trunk@3484 37977431-3df6-0310-b722-df95706aa16b
mod - AI/Global/AAI/AAIBuilder.cpp Diff ] File ]
mod - AI/Global/AAI/AAIBuilder.h Diff ] File ]
mod - AI/Global/AAI/AAIExecute.cpp Diff ] File ]
mod - AI/Global/AAI/AAIFactory.cpp Diff ] File ]
mod - AI/Global/AAI/aidef.h Diff ] File ]
mod - AI/Global/CSAI/ABICompatibilityLayer/AbicAICallback.cpp Diff ] File ]
mod - AI/Global/KAI-0.12/Include.h Diff ] File ]
mod - AI/Global/KAI-0.12/UnitHandler.cpp Diff ] File ]
mod - AI/Global/KAI-0.22/Include.h Diff ] File ]
mod - AI/Global/KAI-0.22/Unit.cpp Diff ] File ]
mod - AI/Global/KAI-0.22/UnitHandler.cpp Diff ] File ]
mod - AI/Group/CentralBuildAI/GroupAI.cpp Diff ] File ]
mod - AI/Group/EconomyAI/GroupAI.cpp Diff ] File ]
mod - AI/Group/MexUpgraderAI/GroupAI.cpp Diff ] File ]
mod - AI/Group/ReportIdleAI/GroupAI.cpp Diff ] File ]
mod - game/LuaUI/API.txt Diff ] File ]
mod - game/LuaUI/CHANGELOG.txt Diff ] File ]
add - game/LuaUI/Models/colors.lua Diff ] File ]
add - game/LuaUI/Models/colors.mtl Diff ] File ]
add - game/LuaUI/Models/colors.obj Diff ] File ]
add - game/LuaUI/Widgets/camera_ctrl.lua Diff ] File ]
mod - game/LuaUI/Widgets/cmd_circle.lua Diff ] File ]
mod - game/LuaUI/Widgets/cmd_doline.lua Diff ] File ]
mod - game/LuaUI/Widgets/cmd_savequeue.lua Diff ] File ]
mod - game/LuaUI/Widgets/dbg_debug.lua Diff ] File ]
mod - game/LuaUI/Widgets/gui_bigcursor.lua Diff ] File ]
mod - game/LuaUI/Widgets/gui_minimap.lua Diff ] File ]
add - game/LuaUI/Widgets/gui_modeltest.lua Diff ] File ]
mod - game/LuaUI/Widgets/gui_selbuttons.lua Diff ] File ]
mod - game/LuaUI/Widgets/hook_copyqueue.lua Diff ] File ]
mod - game/LuaUI/Widgets/ico_customicons.lua Diff ] File ]
add - game/LuaUI/Widgets/minimap_startbox.lua Diff ] File ]
mod - game/LuaUI/Widgets/unit_factory_guard.lua Diff ] File ]
mod - game/LuaUI/Widgets/unit_immobile_buider.lua Diff ] File ]
mod - game/LuaUI/Widgets/unit_metal_maker.lua Diff ] File ]
mod - game/LuaUI/Widgets/unit_stockpile.lua Diff ] File ]
add - game/LuaUI/actions.lua Diff ] File ]
mod - game/LuaUI/ctrlpanel.txt Diff ] File ]
mod - game/LuaUI/debug.lua Diff ] File ]
mod - game/LuaUI/layout.lua Diff ] File ]
add - game/LuaUI/loadmodel.lua Diff ] File ]
mod - game/LuaUI/main.lua Diff ] File ]
mod - game/LuaUI/modui_dialog.lua Diff ] File ]
mod - game/LuaUI/selector.lua Diff ] File ]
mod - game/LuaUI/system.lua Diff ] File ]
mod - game/LuaUI/utils.lua Diff ] File ]
mod - game/LuaUI/widgets.lua Diff ] File ]
mod - game/gui.lua Diff ] File ]
add - lua/lua/README_SPRING Diff ] File ]
mod - lua/lua/include/lua.h Diff ] File ]
mod - lua/lua/src/lapi.c Diff ] File ]
mod - lua/lua/src/lstring.c Diff ] File ]
mod - lua/lua/src/lstring.h Diff ] File ]
mod - rts/ExternalAI/AICallback.cpp Diff ] File ]
mod - rts/ExternalAI/AICallback.h Diff ] File ]
mod - rts/ExternalAI/AICheats.cpp Diff ] File ]
mod - rts/ExternalAI/AICheats.h Diff ] File ]
mod - rts/ExternalAI/GlobalAICInterface/AbicAICallback.cpp Diff ] File ]
mod - rts/ExternalAI/Group.cpp Diff ] File ]
mod - rts/ExternalAI/IAICallback.h Diff ] File ]
mod - rts/ExternalAI/IAICheats.h Diff ] File ]
mod - rts/Game/CameraController.cpp Diff ] File ]
mod - rts/Game/CameraController.h Diff ] File ]
mod - rts/Game/Game.cpp Diff ] File ]
mod - rts/Game/Game.h Diff ] File ]
mod - rts/Game/GameController.cpp Diff ] File ]
mod - rts/Game/GameController.h Diff ] File ]
mod - rts/Game/GameHelper.cpp Diff ] File ]
mod - rts/Game/GameHelper.h Diff ] File ]
mod - rts/Game/GameServer.cpp Diff ] File ]
mod - rts/Game/GameSetup.cpp Diff ] File ]
mod - rts/Game/Player.cpp Diff ] File ]
mod - rts/Game/PreGame.cpp Diff ] File ]
mod - rts/Game/SelectedUnits.cpp Diff ] File ]
mod - rts/Game/SelectedUnitsAI.cpp Diff ] File ]
mod - rts/Game/StartScripts/AirScript.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/StartScripts/TestScript.cpp Diff ] File ]
mod - rts/Game/Team.cpp Diff ] File ]
mod - rts/Game/Team.h Diff ] File ]
mod - rts/Game/UI/CursorIcons.cpp Diff ] File ]
mod - rts/Game/UI/GuiHandler.cpp Diff ] File ]
mod - rts/Game/UI/GuiHandler.h Diff ] File ]
mod - rts/Game/UI/KeyAutoBinder.cpp Diff ] File ]
mod - rts/Game/UI/KeyAutoBinder.h Diff ] File ]
mod - rts/Game/UI/KeyBindings.cpp Diff ] File ]
mod - rts/Game/UI/KeyBindings.h Diff ] File ]
rm - rts/Game/UI/LuaState.cpp Diff ] File ]
rm - rts/Game/UI/LuaState.h Diff ] File ]
mod - rts/Game/UI/LuaUI.cpp Diff ] File ]
mod - rts/Game/UI/LuaUI.h Diff ] File ]
mod - rts/Game/UI/MiniMap.cpp Diff ] File ]
mod - rts/Game/UI/MiniMap.h Diff ] File ]
mod - rts/Game/UI/MouseHandler.cpp Diff ] File ]
mod - rts/Game/UI/MouseHandler.h Diff ] File ]
mod - rts/Game/UI/ShareBox.cpp Diff ] File ]
mod - rts/Game/UI/SimpleParser.cpp Diff ] File ]
mod - rts/Game/UI/TooltipConsole.cpp Diff ] File ]
mod - rts/Game/WaitCommandsAI.cpp Diff ] File ]
mod - rts/Game/WaitCommandsAI.h Diff ] File ]
mod - rts/Game/WordCompletion.cpp Diff ] File ]
mod - rts/Game/command.h Diff ] File ]
add - rts/Lua/LuaCallInHandler.cpp Diff ] File ]
add - rts/Lua/LuaCallInHandler.h Diff ] File ]
add - rts/Lua/LuaCob.cpp Diff ] File ]
add - rts/Lua/LuaCob.h Diff ] File ]
add - rts/Lua/LuaConstCMD.cpp Diff ] File ]
add - rts/Lua/LuaConstCMD.h Diff ] File ]
add - rts/Lua/LuaConstCMDTYPE.cpp Diff ] File ]
add - rts/Lua/LuaConstCMDTYPE.h Diff ] File ]
add - rts/Lua/LuaConstGL.cpp Diff ] File ]
add - rts/Lua/LuaConstGL.h Diff ] File ]
add - rts/Lua/LuaConstGame.cpp Diff ] File ]
add - rts/Lua/LuaConstGame.h Diff ] File ]
add - rts/Lua/LuaConstSpring.cpp Diff ] File ]
add - rts/Lua/LuaConstSpring.h Diff ] File ]
add - rts/Lua/LuaDefs.h Diff ] File ]
add - rts/Lua/LuaFeatureDefs.cpp Diff ] File ]
add - rts/Lua/LuaFeatureDefs.h Diff ] File ]
add - rts/Lua/LuaGaia.cpp Diff ] File ]
add - rts/Lua/LuaGaia.h Diff ] File ]
add - rts/Lua/LuaHandle.cpp Diff ] File ]
add - rts/Lua/LuaHandle.h Diff ] File ]
add - rts/Lua/LuaHandleSynced.cpp Diff ] File ]
add - rts/Lua/LuaHandleSynced.h Diff ] File ]
add - rts/Lua/LuaHashString.h Diff ] File ]
add - rts/Lua/LuaOpenGL.cpp Diff ] File ]
add - rts/Lua/LuaOpenGL.h Diff ] File ]
add - rts/Lua/LuaREADME.txt Diff ] File ]
add - rts/Lua/LuaRules.cpp Diff ] File ]
add - rts/Lua/LuaRules.h Diff ] File ]
add - rts/Lua/LuaSyncedCtrl.cpp Diff ] File ]
add - rts/Lua/LuaSyncedCtrl.h Diff ] File ]
add - rts/Lua/LuaSyncedMoveCtrl.cpp Diff ] File ]
add - rts/Lua/LuaSyncedMoveCtrl.h Diff ] File ]
add - rts/Lua/LuaSyncedRead.cpp Diff ] File ]
add - rts/Lua/LuaSyncedRead.h Diff ] File ]
add - rts/Lua/LuaSyncedTable.cpp Diff ] File ]
add - rts/Lua/LuaSyncedTable.h Diff ] File ]
add - rts/Lua/LuaTODO.txt Diff ] File ]
add - rts/Lua/LuaUnitDefs.cpp Diff ] File ]
add - rts/Lua/LuaUnitDefs.h Diff ] File ]
add - rts/Lua/LuaUnsyncedCtrl.cpp Diff ] File ]
add - rts/Lua/LuaUnsyncedCtrl.h Diff ] File ]
add - rts/Lua/LuaUnsyncedRead.cpp Diff ] File ]
add - rts/Lua/LuaUnsyncedRead.h Diff ] File ]
add - rts/Lua/LuaUtils.h Diff ] File ]
add - rts/Lua/LuaWeaponDefs.cpp Diff ] File ]
add - rts/Lua/LuaWeaponDefs.h Diff ] File ]
mod - rts/Map/ReadMap.cpp Diff ] File ]
mod - rts/Map/ReadMap.h Diff ] File ]
mod - rts/Rendering/Env/AdvWater.cpp Diff ] File ]
mod - rts/Rendering/Env/DynWater.cpp Diff ] File ]
mod - rts/Rendering/IconHandler.cpp Diff ] File ]
mod - rts/Rendering/IconHandler.h Diff ] File ]
mod - rts/Rendering/ShadowHandler.cpp Diff ] File ]
add - rts/Rendering/Textures/NamedTextures.cpp Diff ] File ]
add - rts/Rendering/Textures/NamedTextures.h Diff ] File ]
mod - rts/Rendering/glFont.cpp Diff ] File ]
mod - rts/Sim/Misc/Feature.cpp Diff ] File ]
mod - rts/Sim/Misc/Feature.h Diff ] File ]
mod - rts/Sim/Misc/FeatureDef.h Diff ] File ]
mod - rts/Sim/Misc/FeatureHandler.cpp Diff ] File ]
mod - rts/Sim/Misc/FeatureHandler.h Diff ] File ]
mod - rts/Sim/Misc/LosHandler.h Diff ] File ]
mod - rts/Sim/Misc/QuadField.cpp Diff ] File ]
mod - rts/Sim/Misc/QuadField.h Diff ] File ]
mod - rts/Sim/Misc/RadarHandler.h Diff ] File ]
mod - rts/Sim/MoveTypes/MoveType.h Diff ] File ]
add - rts/Sim/MoveTypes/ScriptMoveType.cpp Diff ] File ]
add - rts/Sim/MoveTypes/ScriptMoveType.h Diff ] File ]
mod - rts/Sim/Units/COB/CobEngine.cpp Diff ] File ]
mod - rts/Sim/Units/COB/CobEngine.h Diff ] File ]
mod - rts/Sim/Units/COB/CobFile.cpp Diff ] File ]
mod - rts/Sim/Units/COB/CobFile.h Diff ] File ]
mod - rts/Sim/Units/COB/CobInstance.cpp Diff ] File ]
mod - rts/Sim/Units/COB/CobInstance.h Diff ] File ]
mod - rts/Sim/Units/COB/CobThread.cpp Diff ] File ]
mod - rts/Sim/Units/COB/CobThread.h Diff ] File ]
mod - rts/Sim/Units/CommandAI/AirCAI.cpp Diff ] File ]
mod - rts/Sim/Units/CommandAI/AirCAI.h Diff ] File ]
mod - rts/Sim/Units/CommandAI/BuilderCAI.cpp Diff ] File ]
mod - rts/Sim/Units/CommandAI/BuilderCAI.h Diff ] File ]
mod - rts/Sim/Units/CommandAI/CommandAI.cpp Diff ] File ]
mod - rts/Sim/Units/CommandAI/CommandAI.h Diff ] File ]
mod - rts/Sim/Units/CommandAI/FactoryCAI.cpp Diff ] File ]
mod - rts/Sim/Units/CommandAI/FactoryCAI.h Diff ] File ]
mod - rts/Sim/Units/CommandAI/MobileCAI.cpp Diff ] File ]
mod - rts/Sim/Units/CommandAI/MobileCAI.h Diff ] File ]
mod - rts/Sim/Units/CommandAI/TransportCAI.cpp Diff ] File ]
mod - rts/Sim/Units/Unit.cpp Diff ] File ]
mod - rts/Sim/Units/Unit.h Diff ] File ]
mod - rts/Sim/Units/UnitDef.h Diff ] File ]
mod - rts/Sim/Units/UnitDefHandler.cpp Diff ] File ]
mod - rts/Sim/Units/UnitHandler.cpp Diff ] File ]
mod - rts/Sim/Units/UnitHandler.h Diff ] File ]
mod - rts/Sim/Units/UnitLoader.cpp Diff ] File ]
mod - rts/Sim/Units/UnitLoader.h Diff ] File ]
mod - rts/Sim/Units/UnitTracker.cpp Diff ] File ]
mod - rts/Sim/Units/UnitTypes/Builder.cpp Diff ] File ]
mod - rts/Sim/Units/UnitTypes/Building.cpp Diff ] File ]
mod - rts/Sim/Units/UnitTypes/Building.h Diff ] File ]
mod - rts/Sim/Units/UnitTypes/Factory.cpp Diff ] File ]
mod - rts/Sim/Units/UnitTypes/TransportUnit.cpp Diff ] File ]
mod - rts/Sim/Weapons/Weapon.cpp Diff ] File ]
mod - rts/Sim/Weapons/WeaponDefHandler.h Diff ] File ]
mod - rts/System/FileSystem/FileHandler.cpp Diff ] File ]
mod - rts/System/FileSystem/FileHandler.h Diff ] File ]
mod - rts/System/GlobalStuff.cpp Diff ] File ]
mod - rts/System/GlobalStuff.h Diff ] File ]
mod - rts/System/Main.cpp Diff ] File ]
mod - rts/System/MouseInput.cpp Diff ] File ]
mod - rts/System/Net.cpp Diff ] File ]
mod - rts/System/Platform/Linux/OpenALSound.cpp Diff ] File ]
mod - rts/System/Platform/Linux/OpenALSound.h Diff ] File ]
mod - rts/System/Platform/NullSound.h Diff ] File ]
mod - rts/System/Platform/Win/DxSound.cpp Diff ] File ]
mod - rts/System/Platform/Win/DxSound.h Diff ] File ]
mod - rts/System/Script/LuaFunctions.cpp Diff ] File ]
mod - rts/System/Sound.h Diff ] File ]
add - tools/scripts/obj2lua.lua Diff ] File ]