Changesets: spring
develop 60889b68
Timestamp: 2008-07-16 00:42:48 Author: trepan [ Details ] [ Diff ] |
- lua scripts now get first crack at all mouse events (ex: the MMB used to be sent to the minimap UI element first) - lua scripts now get mouse events while Spring.IsGUIHidden() is true - added the GL evaluator functions to the lua GL interface (note the gl.EvalEnable() and gl.EvalDisable() can only be called in a gl.Eval(func) block). I've only tested the calls required to get the gl.EvalMesh2() functionality working. - changed Spring.AddHeightMap() to return the final height (makes it more like Spring.SetHeightMap(), and it might be useful) - added Spring.IsAboveMiniMap(x, y) -> boolean (convenience function) - started adding isbool(), isstring(), istable(), etc... git-svn-id: https://spring.clan-sy.com/svn/spring/trunk@6182 37977431-3df6-0310-b722-df95706aa16b |
||
mod - game/LuaUI/Widgets/camera_smooth_move.lua | [ Diff ] [ File ] | ||
mod - installer/builddata/springcontent/gamedata/unitdefs.lua | [ Diff ] [ File ] | ||
mod - rts/ExternalAI/Group.cpp | [ Diff ] [ File ] | ||
mod - rts/Game/SelectedUnits.cpp | [ Diff ] [ File ] | ||
mod - rts/Game/UI/MouseHandler.cpp | [ Diff ] [ File ] | ||
mod - rts/Lua/LuaOpenGL.cpp | [ Diff ] [ File ] | ||
mod - rts/Lua/LuaOpenGL.h | [ Diff ] [ File ] | ||
mod - rts/Lua/LuaSyncedCtrl.cpp | [ Diff ] [ File ] | ||
mod - rts/Lua/LuaUnsyncedRead.cpp | [ Diff ] [ File ] | ||
mod - rts/Lua/LuaUnsyncedRead.h | [ Diff ] [ File ] | ||
mod - rts/Lua/LuaUtils.cpp | [ Diff ] [ File ] | ||
mod - rts/Lua/LuaUtils.h | [ Diff ] [ File ] | ||
mod - rts/Rendering/InMapDraw.cpp | [ Diff ] [ File ] | ||
mod - rts/System/EventHandler.cpp | [ Diff ] [ File ] | ||
mod - rts/System/EventHandler.h | [ Diff ] [ File ] | ||
mod - rts/System/FileSystem/ArchiveScanner.cpp | [ Diff ] [ File ] | ||
develop 9c16d9ae
Timestamp: 2008-07-14 20:48:32 Author: kloot [ Details ] [ Diff ] |
submarines can now travel directly underneath surface vessels and floating obstacles (and conversely; ships can move across underwater objects), EDIT your mod's MoveInfo entries so that the classes used by submarine-style units have "subMarine=1;" set if you want to enable this fully git-svn-id: https://spring.clan-sy.com/svn/spring/trunk@6181 37977431-3df6-0310-b722-df95706aa16b |
||
mod - rts/Sim/Misc/GroundBlockingObjectMap.cpp | [ Diff ] [ File ] | ||
mod - rts/Sim/Misc/GroundBlockingObjectMap.h | [ Diff ] [ File ] | ||
mod - rts/Sim/MoveTypes/GroundMoveType.cpp | [ Diff ] [ File ] | ||
mod - rts/Sim/MoveTypes/MoveInfo.cpp | [ Diff ] [ File ] | ||
mod - rts/Sim/MoveTypes/MoveInfo.h | [ Diff ] [ File ] | ||
mod - rts/Sim/MoveTypes/MoveMath/MoveMath.cpp | [ Diff ] [ File ] | ||
mod - rts/Sim/MoveTypes/MoveMath/MoveMath.h | [ Diff ] [ File ] | ||
mod - rts/Sim/Path/PathFinder.cpp | [ Diff ] [ File ] | ||
mod - rts/Sim/Projectiles/ExplosionGenerator.cpp | [ Diff ] [ File ] | ||
mod - rts/Sim/Units/UnitDefHandler.cpp | [ Diff ] [ File ] | ||
mod - rts/Sim/Units/UnitLoader.cpp | [ Diff ] [ File ] | ||
mod - rts/Sim/Weapons/Weapon.h | [ Diff ] [ File ] | ||
develop dd06a36f
Timestamp: 2008-07-14 04:58:58 Author: trepan [ Details ] [ Diff ] |
- oops, OB2 ;-) git-svn-id: https://spring.clan-sy.com/svn/spring/trunk@6180 37977431-3df6-0310-b722-df95706aa16b |
||
mod - rts/Lua/LuaSyncedRead.cpp | [ Diff ] [ File ] | ||
develop f637da3b
Timestamp: 2008-07-14 04:55:39 Author: trepan [ Details ] [ Diff ] |
- better comment git-svn-id: https://spring.clan-sy.com/svn/spring/trunk@6179 37977431-3df6-0310-b722-df95706aa16b |
||
mod - rts/Lua/LuaUtils.cpp | [ Diff ] [ File ] | ||
develop 36ef4f87
Timestamp: 2008-07-14 04:51:29 Author: trepan [ Details ] [ Diff ] |
- globally changed 'sprayangle' to 'sprayAngle' - changed some of the labels in SetUnitWeaponState() to camelCase - mirrored the SetUnitWeaponState() parameters in GetUnitWeaponState() (with backwards compatibilty for unspecified parameter type) - cleaned up GetUnitWeaponState() a little; watch those refs ... - added LuaUtils::LowerKeys(), and applied it to all LuaParser returned tables. this automatic lowerKeys pass can be avoided by using the: DontMessWithMyCase(bool) LuaParser lua function. *** that last change means that files parsed *** *** by LuaParser now have case-insensitive keys *** git-svn-id: https://spring.clan-sy.com/svn/spring/trunk@6178 37977431-3df6-0310-b722-df95706aa16b |
||
mod - rts/Lua/LuaParser.cpp | [ Diff ] [ File ] | ||
mod - rts/Lua/LuaParser.h | [ Diff ] [ File ] | ||
mod - rts/Lua/LuaSyncedCtrl.cpp | [ Diff ] [ File ] | ||
mod - rts/Lua/LuaSyncedRead.cpp | [ Diff ] [ File ] | ||
mod - rts/Lua/LuaUtils.cpp | [ Diff ] [ File ] | ||
mod - rts/Lua/LuaUtils.h | [ Diff ] [ File ] | ||
mod - rts/Lua/LuaWeaponDefs.cpp | [ Diff ] [ File ] | ||
mod - rts/Sim/Units/COB/CobInstance.cpp | [ Diff ] [ File ] | ||
mod - rts/Sim/Units/UnitLoader.cpp | [ Diff ] [ File ] | ||
mod - rts/Sim/Weapons/BeamLaser.cpp | [ Diff ] [ File ] | ||
mod - rts/Sim/Weapons/Cannon.cpp | [ Diff ] [ File ] | ||
mod - rts/Sim/Weapons/DGunWeapon.cpp | [ Diff ] [ File ] | ||
mod - rts/Sim/Weapons/EmgCannon.cpp | [ Diff ] [ File ] | ||
mod - rts/Sim/Weapons/FlameThrower.cpp | [ Diff ] [ File ] | ||
mod - rts/Sim/Weapons/LaserCannon.cpp | [ Diff ] [ File ] | ||
mod - rts/Sim/Weapons/LightingCannon.cpp | [ Diff ] [ File ] | ||
mod - rts/Sim/Weapons/MissileLauncher.cpp | [ Diff ] [ File ] | ||
mod - rts/Sim/Weapons/Rifle.cpp | [ Diff ] [ File ] | ||
mod - rts/Sim/Weapons/StarburstLauncher.cpp | [ Diff ] [ File ] | ||
mod - rts/Sim/Weapons/TorpedoLauncher.cpp | [ Diff ] [ File ] | ||
mod - rts/Sim/Weapons/Weapon.cpp | [ Diff ] [ File ] | ||
mod - rts/Sim/Weapons/Weapon.h | [ Diff ] [ File ] | ||
mod - rts/Sim/Weapons/WeaponDefHandler.cpp | [ Diff ] [ File ] | ||
mod - rts/Sim/Weapons/WeaponDefHandler.h | [ Diff ] [ File ] | ||
mod - rts/Sim/Weapons/bombdropper.cpp | [ Diff ] [ File ] | ||
develop 9b4b362e
Timestamp: 2008-07-13 23:21:51 Author: KDR_11k [ Details ] [ Diff ] |
*added burst, burstRate and projectiles to SetUnitWeaponState (which do the same as the tags of the same names). git-svn-id: https://spring.clan-sy.com/svn/spring/trunk@6177 37977431-3df6-0310-b722-df95706aa16b |
||
mod - rts/Lua/LuaSyncedCtrl.cpp | [ Diff ] [ File ] | ||
mod - rts/Sim/Units/UnitLoader.cpp | [ Diff ] [ File ] | ||
mod - rts/Sim/Weapons/Weapon.cpp | [ Diff ] [ File ] | ||
mod - rts/Sim/Weapons/Weapon.h | [ Diff ] [ File ] | ||
develop b9d0bdf0
Timestamp: 2008-07-13 22:47:09 Author: trepan [ Details ] [ Diff ] |
- use streflop::fabsf() git-svn-id: https://spring.clan-sy.com/svn/spring/trunk@6176 37977431-3df6-0310-b722-df95706aa16b |
||
mod - rts/Lua/LuaSyncedCtrl.cpp | [ Diff ] [ File ] | ||
develop a0b57615
Timestamp: 2008-07-13 22:38:33 Author: trepan [ Details ] [ Diff ] |
- added Spring.AddHeightMap(x, y, h) - renamed Spring.SetHeight() to Spring.SetHeightMap() - used the absolute value of the change for heightMapAmountChanged git-svn-id: https://spring.clan-sy.com/svn/spring/trunk@6175 37977431-3df6-0310-b722-df95706aa16b |
||
mod - rts/Lua/LuaSyncedCtrl.cpp | [ Diff ] [ File ] | ||
mod - rts/Lua/LuaSyncedCtrl.h | [ Diff ] [ File ] | ||
develop 44ec3733
Timestamp: 2008-07-13 22:07:39 Author: jk [ Details ] [ Diff ] |
implement some ideas by trepan: * removed Spring.SetTerraform and added optional terraform argument to Spring.SetHeight(x,y,h[,t]) * Spring.SetHeight returns now the amount changed and Spring.SetHeightMapFunc returns the total amount changed (usefull to calc costs?) * fixed Spring.SetHeightMapFunc's RecalcArea ranges git-svn-id: https://spring.clan-sy.com/svn/spring/trunk@6174 37977431-3df6-0310-b722-df95706aa16b |
||
mod - rts/Lua/LuaSyncedCtrl.cpp | [ Diff ] [ File ] | ||
mod - rts/Lua/LuaSyncedCtrl.h | [ Diff ] [ File ] | ||
develop 6b9855ff
Timestamp: 2008-07-13 20:51:21 Author: kloot [ Details ] [ Diff ] |
nix another glGet() git-svn-id: https://spring.clan-sy.com/svn/spring/trunk@6173 37977431-3df6-0310-b722-df95706aa16b |
||
mod - rts/Rendering/Env/GrassDrawer.cpp | [ Diff ] [ File ] | ||
develop 518c4e94
Timestamp: 2008-07-13 20:27:27 Author: trepan [ Details ] [ Diff ] |
- fixed the SetTerraform() 't' parameter - cleaned up new heightmap call-ins for lua code style and indentation git-svn-id: https://spring.clan-sy.com/svn/spring/trunk@6172 37977431-3df6-0310-b722-df95706aa16b |
||
mod - installer/builddata/springcontent/gamedata/unitdefs.lua | [ Diff ] [ File ] | ||
mod - rts/Lua/LuaSyncedCtrl.cpp | [ Diff ] [ File ] | ||
develop 9c74bc75
Timestamp: 2008-07-13 20:12:00 Author: trepan [ Details ] [ Diff ] |
- missing space git-svn-id: https://spring.clan-sy.com/svn/spring/trunk@6171 37977431-3df6-0310-b722-df95706aa16b |
||
mod - rts/Sim/Units/UnitDefHandler.cpp | [ Diff ] [ File ] | ||
develop b1993bf6
Timestamp: 2008-07-13 20:06:24 Author: jk [ Details ] [ Diff ] |
* moved smf ground texture loading to BFGroundDraw::Update() (more time for the PBOs to upload the textures) * replaced two glGet's in SetupFor(Unit|S3O)Drawing * removed redundant EndStrip()'s in MiniMap.cpp * fixed black horizon in BumpWater * fixed reflection offset in BumpWater LuaOpengl * added gl.Texture($shading) & gl.Texture($grass) * fixed missing return;'s in gl.LoadMatrix() and gl.MulMatrix() * allow to use gl.CopyToTexture with non GL_TEXTURE2D, i.e. GL_TEXTURE_RECTANGLE LuaSynced(Read|Ctrl) * new Spring.GetUnitVectors(unitID) -> {front_x,front_y,front_z},{up_x,up_y,up_z},{right_x,right_y,right_z} * new Spring.GetUnitWeaponVectors(unitID,weaponNum) -> wpos_x,wpos_y,wpos_z, wdir_x,wdir_y,wdir_z * new Spring.SetHeightMapFunc(lua_func,arg1,arg2,..) This new function allows, in contrast to the old existing heightmap interfaces, to make non-planar heightmap changes (like mounds) with a decent performance (a whole 16x16 map takes 1:30min, using multiple Spring.LevelHeightMap() took >30mins!). Now instead of calling Spring.LevelHeightMap() multiple times, you call Spring.SetHeightMapFunc() once and use the following sub-functions: new Spring.SetHeight(x,z,h) only valid in Spring.SetHeightMapFunc! new Spring.SetTerraform(x,z,h,terraform) only valid in Spring.SetHeightMapFunc! with 0<=terraform<=1 . It is the same equation the engine use internal, terraform is 0 at the beginning and goes upto 1 when finished. example: Spring.SetHeightMapFunc(function(x1,z1,x2,z2) local scale = math.pi/300 for x=x1,x2 do for z=z1,z2 do Spring.SetHeight(x,z,(math.sin(scale*x)+math.cos(scale*z))*50) end end end, 0,0,Game.mapSizeX,Game.mapSizeZ) git-svn-id: https://spring.clan-sy.com/svn/spring/trunk@6170 37977431-3df6-0310-b722-df95706aa16b |
||
mod - installer/builddata/springcontent/shaders/bumpWaterFS.glsl | [ Diff ] [ File ] | ||
mod - rts/Game/Game.cpp | [ Diff ] [ File ] | ||
mod - rts/Game/UI/MiniMap.cpp | [ Diff ] [ File ] | ||
mod - rts/Lua/LuaOpenGL.cpp | [ Diff ] [ File ] | ||
mod - rts/Lua/LuaSyncedCtrl.cpp | [ Diff ] [ File ] | ||
mod - rts/Lua/LuaSyncedCtrl.h | [ Diff ] [ File ] | ||
mod - rts/Lua/LuaSyncedRead.cpp | [ Diff ] [ File ] | ||
mod - rts/Lua/LuaSyncedRead.h | [ Diff ] [ File ] | ||
mod - rts/Map/SMF/BFGroundDrawer.cpp | [ Diff ] [ File ] | ||
mod - rts/Map/SMF/BFGroundDrawer.h | [ Diff ] [ File ] | ||
mod - rts/Rendering/UnitModels/UnitDrawer.cpp | [ Diff ] [ File ] | ||
mod - rts/Rendering/UnitModels/UnitDrawer.h | [ Diff ] [ File ] | ||
mod - rts/Sim/Features/FeatureHandler.cpp | [ Diff ] [ File ] | ||
mod - rts/Sim/Projectiles/ProjectileHandler.cpp | [ Diff ] [ File ] | ||
develop ccf1d9f0
Timestamp: 2008-07-13 19:35:25 Author: trepan [ Details ] [ Diff ] |
- fixed filename case problem with SDD modInfo.lua detection - append "springcontent.sdz" directly to primary mod dependencies rather than doing it when retrieving the deps lists, such that springcontent.sdz's dependencies are used (ex: bitmaps.sdz) git-svn-id: https://spring.clan-sy.com/svn/spring/trunk@6169 37977431-3df6-0310-b722-df95706aa16b |
||
mod - rts/System/FileSystem/ArchiveScanner.cpp | [ Diff ] [ File ] | ||
develop 9aab98fa
Timestamp: 2008-07-13 18:30:34 Author: trepan [ Details ] [ Diff ] |
- and another git-svn-id: https://spring.clan-sy.com/svn/spring/trunk@6168 37977431-3df6-0310-b722-df95706aa16b |
||
mod - installer/builddata/springcontent/LuaGadgets/callins.lua | [ Diff ] [ File ] | ||
develop 6ccb1f33
Timestamp: 2008-07-13 18:28:09 Author: trepan [ Details ] [ Diff ] |
- missed a rename git-svn-id: https://spring.clan-sy.com/svn/spring/trunk@6167 37977431-3df6-0310-b722-df95706aa16b |
||
mod - installer/builddata/springcontent/LuaGadgets/gadgets.lua | [ Diff ] [ File ] | ||
develop 4ef12c2a
Timestamp: 2008-07-13 18:23:56 Author: trepan [ Details ] [ Diff ] |
- added the UnitMoveFailed() call-in - added the '/movewarnings [0|1]' action, and removed the (gs->frameNum % (GAME_FRAME * 3)) filter (better to not have the warnings at all then to have them be that inconsistent). The associated config parameter is: 'MoveWarnings' - renamed BuilderTerraformComplete() to TerraformComplete() - added sync protection in EventHandler.cpp git-svn-id: https://spring.clan-sy.com/svn/spring/trunk@6166 37977431-3df6-0310-b722-df95706aa16b |
||
mod - game/LuaUI/widgets.lua | [ Diff ] [ File ] | ||
mod - rts/Game/Game.cpp | [ Diff ] [ File ] | ||
mod - rts/Game/Game.h | [ Diff ] [ File ] | ||
mod - rts/Game/GameServer.cpp | [ Diff ] [ File ] | ||
mod - rts/Game/Team.cpp | [ Diff ] [ File ] | ||
mod - rts/Game/Team.h | [ Diff ] [ File ] | ||
mod - rts/Lua/LuaHandle.cpp | [ Diff ] [ File ] | ||
mod - rts/Lua/LuaHandle.h | [ Diff ] [ File ] | ||
mod - rts/Lua/LuaIO.cpp | [ Diff ] [ File ] | ||
mod - rts/Lua/LuaRules.cpp | [ Diff ] [ File ] | ||
mod - rts/Lua/LuaRules.h | [ Diff ] [ File ] | ||
mod - rts/Lua/LuaUnitRendering.cpp | [ Diff ] [ File ] | ||
mod - rts/Rendering/IconHandler.cpp | [ Diff ] [ File ] | ||
mod - rts/Sim/MoveTypes/GroundMoveType.cpp | [ Diff ] [ File ] | ||
mod - rts/Sim/Units/Unit.cpp | [ Diff ] [ File ] | ||
mod - rts/Sim/Units/UnitDefHandler.cpp | [ Diff ] [ File ] | ||
mod - rts/Sim/Units/UnitTypes/Builder.cpp | [ Diff ] [ File ] | ||
mod - rts/System/EventClient.cpp | [ Diff ] [ File ] | ||
mod - rts/System/EventClient.h | [ Diff ] [ File ] | ||
mod - rts/System/EventHandler.cpp | [ Diff ] [ File ] | ||
mod - rts/System/EventHandler.h | [ Diff ] [ File ] | ||
mod - rts/System/Platform/FileSystem.cpp | [ Diff ] [ File ] | ||
mod - rts/System/Platform/FileSystem.h | [ Diff ] [ File ] | ||
develop 413b0f7b
Timestamp: 2008-07-13 17:39:59 Author: trepan [ Details ] [ Diff ] |
- changed gl.RenderMode() to the 'wrapped function' style: gl.RenderMode(mode, func, ...) (no longer requires cheating) git-svn-id: https://spring.clan-sy.com/svn/spring/trunk@6165 37977431-3df6-0310-b722-df95706aa16b |
||
mod - rts/Lua/LuaOpenGL.cpp | [ Diff ] [ File ] | ||
develop ba9ef32d
Timestamp: 2008-07-13 17:15:04 Author: trepan [ Details ] [ Diff ] |
- gl.RenderMode() now requires that cheating be enabled git-svn-id: https://spring.clan-sy.com/svn/spring/trunk@6164 37977431-3df6-0310-b722-df95706aa16b |
||
mod - rts/Lua/LuaOpenGL.cpp | [ Diff ] [ File ] | ||
develop 006026dd
Timestamp: 2008-07-13 17:02:22 Author: kloot [ Details ] [ Diff ] |
make MoveData::depthMod and ::slopeMod mod-definable git-svn-id: https://spring.clan-sy.com/svn/spring/trunk@6163 37977431-3df6-0310-b722-df95706aa16b |
||
mod - rts/Sim/MoveTypes/MoveInfo.cpp | [ Diff ] [ File ] | ||
develop f67bf134
Timestamp: 2008-07-13 08:07:39 Author: trepan [ Details ] [ Diff ] |
- fixed a crash bug git-svn-id: https://spring.clan-sy.com/svn/spring/trunk@6162 37977431-3df6-0310-b722-df95706aa16b |
||
mod - rts/Lua/LuaOpenGL.cpp | [ Diff ] [ File ] | ||
develop 9bac8c28
Timestamp: 2008-07-13 07:51:30 Author: trepan [ Details ] [ Diff ] |
- added glSelectBuffer() support git-svn-id: https://spring.clan-sy.com/svn/spring/trunk@6161 37977431-3df6-0310-b722-df95706aa16b |
||
mod - rts/Lua/LuaOpenGL.cpp | [ Diff ] [ File ] | ||
mod - rts/Lua/LuaOpenGL.h | [ Diff ] [ File ] | ||
develop 4f2d18a5
Timestamp: 2008-07-13 01:08:52 Author: LordMatt [ Details ] [ Diff ] |
*Remove line about downloads hosted by UF git-svn-id: https://spring.clan-sy.com/svn/spring/trunk@6160 37977431-3df6-0310-b722-df95706aa16b |
||
mod - installer/spring.nsi | [ Diff ] [ File ] | ||
develop a25f693a
Timestamp: 2008-07-12 21:05:17 Author: kloot [ Details ] [ Diff ] |
fix the GlobalAI test script (AI orders were being rejected) git-svn-id: https://spring.clan-sy.com/svn/spring/trunk@6159 37977431-3df6-0310-b722-df95706aa16b |
||
mod - rts/Game/StartScripts/GlobalAITestScript.cpp | [ Diff ] [ File ] | ||
develop e8128359
Timestamp: 2008-07-12 19:28:02 Author: Auswaschbar [ Details ] [ Diff ] |
* demos should not desync any mre when recording a video git-svn-id: https://spring.clan-sy.com/svn/spring/trunk@6158 37977431-3df6-0310-b722-df95706aa16b |
||
mod - rts/Game/GameServer.cpp | [ Diff ] [ File ] | ||