Commit Graph

184 Commits

Author SHA1 Message Date
Mark Vejvoda c8fdc9269f - fix win32 build
- cleanup a lot of win32 compiler warnings
2012-04-16 20:15:57 +00:00
Mark Vejvoda 8c0bf75bf5 - got built in memory leak working. Just edit leak_dumper.h and uncomment:
//#define SL_LEAK_DUMP
- got better / more accurate stack dumps when we detect errors in game.
- Both of these need to be worked on in windows next, win32 may not compile for now until i fix it on that platform.
- BE VERY CAREFUL when working in leak_dumper.* it may cause GCC and your system to crash if you don't know what you are doing!
2012-04-14 21:21:09 +00:00
Mark Vejvoda 76c3fa1949 - fixed segfault when a unit is selected and they die (this is a long standing bug and not related to savegame) 2012-04-12 15:38:53 +00:00
Mark Vejvoda 2ab041813f - code cleanup based on cppcheck report 2012-04-05 03:53:59 +00:00
Titus Tscharntke 4aae520da6 Highlighting rendering without cycling through all units each frame ... 2012-04-04 22:57:32 +00:00
Titus Tscharntke 6c12bfbec8 Improved resource object selection implementation which allows highlight effects now too.
Generally changed highlight effect to something more obvious
2012-04-04 00:30:16 +00:00
Titus Tscharntke 1df365d697 I removed the automatic game pausing when message are shown because I don't like it ( sc does not like it at all so ... ). Still auto-pausing while showing menues ingame in singleplayer. 2012-04-03 00:32:52 +00:00
Titus Tscharntke 8c6dde365b mouse pointer shows multi click command state 2012-04-02 23:37:03 +00:00
Titus Tscharntke 42b289fe1e cursor work in progress ... ( for tomreyn and me to test ) 2012-04-02 22:17:10 +00:00
Mark Vejvoda fc125bec37 - added command groups and unit selection to save / load game info 2012-03-15 07:09:36 +00:00
Mark Vejvoda c5331b7e8a - initial work to save game state to XML. Current only saves when out of synch or game end occurs and saves to same folder as log files and file is called: megaglest-saved.xml
(Currently we store way too much info but this is a starting point)
2012-03-10 03:27:25 +00:00
Mark Vejvoda 9852325da6 - fixed Martiño Figueroa's name in all copyrights in source code
- added copyrights to files that were missing it
2011-12-14 07:40:48 +00:00
Mark Vejvoda d33e1174a5 - bugfixes related to cppcheck report
- bugfixes found using valgrind (memory leaks)
2011-12-02 16:07:59 +00:00
Mark Vejvoda c6d4e898a0 small bugfix for handling morph commands in the UI (was not properly handling commandclass). Added validation to tell modders that we have a max if 6 morphs that can display in the UI 2011-10-21 16:04:21 +00:00
Mark Vejvoda d44959d69c - phase 1 of cppcheck verbose fixes 2011-08-31 23:10:43 +00:00
Mark Vejvoda 2c80543889 - attempt to group command execution so units given the same command at the same time will work more smartly (closer units go first and so on) 2011-07-05 04:37:35 +00:00
Mark Vejvoda 4b6bc7a4a7 - loads of changes in order to prepare for better input (not using char but SDLKey instead) 2011-06-26 01:55:08 +00:00
Mark Vejvoda ba3071c15b - bugfix for group key camera movement (respect different group keys being pressed) 2011-06-10 16:59:19 +00:00
Mark Vejvoda 36c25f709d - new recall group camera center timeout value can be overriden in glestuserini using:
RecallGroupCenterCameraTimeoutMilliseconds=1500
2011-06-09 22:41:49 +00:00
Mark Vejvoda d668550942 - exclusive feature for Coldfusionstorm! Press the group key a second time within 1.5 seconds and the camera centers on the group 2011-06-09 22:37:37 +00:00
Titus Tscharntke bc2c59a82a just put a hud.png in a faction dir and you got a HUD overlay 2011-06-09 00:59:03 +00:00
Mark Vejvoda 9c992ed353 - fixed observers to be able to see queued commands of all other players
- updated authors for tilesets that we replaced sounds for
- updated source code release archive building script with improvements from svenstaro
- added commondata folder to data and install scripts
2011-05-06 08:44:50 +00:00
Titus Tscharntke d4fb120b88 this fixes it ... but i am not very happy with the current state :/
maybe better skip the update call for release?
2011-05-02 01:22:33 +00:00
Titus Tscharntke 6c8e36fd24 last try to fix the display crash for today. If this does not work comment the line 813 to fix it. 2011-05-02 00:34:04 +00:00
Titus Tscharntke 620fc1cff1 next try to fix the display crash problem .... 2011-05-01 23:48:08 +00:00
Titus Tscharntke c8bb5e6fce bugfix for crash ( when no unit is selected and display text is calculated ) 2011-05-01 22:28:42 +00:00
Titus Tscharntke 9ce83ed21b queued commands are displayed in a better way 2011-05-01 20:19:41 +00:00
Mark Vejvoda 0abca7fb7a - bugfixes for clicking outside of the map co-ordinates
- show up to 5 descriptions for queued items when producing
2011-04-27 22:35:45 +00:00
Mark Vejvoda dd9b984a82 - in observer mode, show queued work for all factions
- when showing queues, now also show up to a max of 4 details for the first 4 items in the queue
2011-04-27 05:58:08 +00:00
Mark Vejvoda 5a6418ac60 - removed some debug statements to see if it will improve debug logging performance 2011-04-11 00:11:52 +00:00
Titus Tscharntke b7fb8fe335 missing resources to morph are reported to console now 2011-04-05 21:46:02 +00:00
Titus Tscharntke 2f250846b1 forgot to comment debug ... 2011-03-29 23:19:19 +00:00
Titus Tscharntke c99fb68f5b selecting mining positions (and by this mining itself ) should be much better now 2011-03-29 21:44:36 +00:00
Mark Vejvoda 3b56aa4475 - performance changes... (problem found by titi) most debug calls line are skipped when the debug flag is disabled even BEFORE getting into the handledebug method.
This improves performance VERY MUCH.
2011-03-28 03:54:23 +00:00
Titus Tscharntke 5db11ec538 double click selection for units standing near or in buildings 2011-03-08 20:19:19 +00:00
Titus Tscharntke 922df8e025 up to 36 units selectable; maps can set camera heigth now ( be careful with this for performance reasons! ) 2011-02-25 00:31:42 +00:00
Titus Tscharntke a06cb541b1 units with move skill have higher priority while selecting now than those without move skill ( typically buildings ) 2011-02-22 16:18:44 +00:00
Mark Vejvoda 2357e2cfd1 - Titi, fixed the remove object so its done in the Object destructor (using an interface) 2011-02-15 04:34:19 +00:00
Titus Tscharntke 01db66105e status of serverline display fix / ressources are no longer selectable via rectangle ( which was quite useless ) 2011-02-15 00:24:31 +00:00
Titus Tscharntke a214fa87f5 clickable resources with display ; softcoder please look at unit_updater.cpp line 1032 2011-02-13 21:04:30 +00:00
Titus Tscharntke 30da435fc2 target selection for ressource objects is done with opengl picking now 2011-02-13 14:35:17 +00:00
Titus Tscharntke 9faa63fd27 upgraded or upgrading upgrades still show their info 2011-01-23 23:57:46 +00:00
Mark Vejvoda 66261ad662 - updated line endings to unix style characters to fix Bug #3085838 2011-01-20 15:56:30 +00:00
Mark Vejvoda 9b275a5077 - added guard against NULL commandtype clicking in icon panel (discovered during testing) 2011-01-10 06:43:47 +00:00
Titus Tscharntke 38da21ae18 fix in german languagefile, buildings can set meeting points when under construction 2011-01-09 20:52:00 +00:00
Mark Vejvoda 7347dc9545 - bugfix for multi-build queued commands 2011-01-08 21:53:05 +00:00
Titus Tscharntke 591acdded4 No red 3d arrow pointer is painted when commanding via minimap 2010-12-20 03:12:00 +00:00
Titus Tscharntke 7305391b6d Unit commanding via minimap 2010-12-18 17:18:36 +00:00
Mark Vejvoda 5cf0313c5a - bugfix for cancel icon displaying when unit has only the 'stop' command active 2010-10-28 18:31:12 +00:00
James McCulloch e8b28b4298 * Fix for phantom cancel button 2010-09-24 04:52:51 +00:00
Titus Tscharntke df9e8a7900 forgot to remove one line .... 2010-09-10 12:28:52 +00:00
Titus Tscharntke 729bd23f58 improved box selection ( much better regarding performance now and updates selection without moving the mouse ) 2010-09-10 12:15:21 +00:00
Mark Vejvoda 0783b23e12 - bugfixes for rendering (new ini setting toggles new quad cache and is called: UseQuadCache=true) 2010-09-10 08:51:32 +00:00
Mark Vejvoda ab44c83168 - added leak_dumper header all over the place (not yet functional in linux)
- Bugfix for particle cleanup
2010-09-07 05:25:40 +00:00
Mark Vejvoda 2ea8b69e22 - first attempt at allowing multiple units to build at the same time 2010-08-28 01:46:26 +00:00
Mark Vejvoda 2ada9e7550 - bugfix for multi-unit selection (pressing shift does not unselect previously selected units now) 2010-07-15 19:48:28 +00:00
Mark Vejvoda b0b775dc49 - adjusted ? toggle key to always allow toggling of FPS (whether or not debug in enabled) 2010-07-06 15:11:10 +00:00
Mark Vejvoda eeda623b4f - removed the rotateunit flag (its now just part of MG)
- updated rendering to consider both visible and explored cells when rendering untis and objects
- added a warning message when a client is lagging and coming close to being kicked off
2010-06-17 00:08:27 +00:00
Mark Vejvoda 085d4e4bfe - added more debug statements to try to track beta bugs
- added safer customization of ini files
- added ability to customize game keys
- added more error checking for ogg file loading
- added faction loader progress
- added a few more thread protections on custom menu
2010-06-12 18:27:39 +00:00
Mark Vejvoda 8ea52485cc - Attempt to fix unit id allocation issues 2010-05-31 09:24:44 +00:00
Mark Vejvoda 7753435b3a - Added ability to render text titles for each unit (currently used to debug) 2010-05-29 05:41:40 +00:00
Mark Vejvoda b69d808a0b - added loads of debug potential. We can now output most objects as a string for logging purposes.
- when we get the command type id not found error we now dump the whole world to a textfile
- Pressing the | hotkey at any time during a game dumps the whole world to a textfile
2010-05-18 03:53:57 +00:00
Mark Vejvoda 83dbaf7886 added hotkey of ? as a way to toggle on/off the debug UI display 2010-05-15 19:51:58 +00:00
Mark Vejvoda f748874601 Ported streflop code to win32 2010-04-24 11:15:15 +00:00
Mark Vejvoda 2bfaa4d1d7 Added streflop (standalone reproducible floating point library) layer to mega-glest (initial checkin only) and changed a few areas to use the library in linux 2010-04-24 03:57:38 +00:00
PolitikerNEU 54db1e20f6 Chaning of the queuing key is easier 2010-04-18 19:28:52 +00:00
PolitikerNEU e06e964728 Added queing commands with shift 2010-04-18 07:35:48 +00:00
Titus Tscharntke 304739e990 'm' is no longer use dto move units ( I think noone ever used it ) Its used to display faded messages now
Releasenotes are in the reame.txt now
2010-04-16 00:07:32 +00:00
Mark Vejvoda af87e53bbe Bugfix for trace bug#: 2984991
falling back to english text for scenarios text. 
- Also added more error checking and commented out some excessive debug output statements.
2010-04-11 01:25:06 +00:00
Titus Tscharntke f5e21ae896 ingame fontcolor change with key 'C' is back 2010-04-08 20:19:25 +00:00
Mark Vejvoda 9a2b958869 bugfix for ctrl + # grouping of units in win32 2010-04-06 14:25:00 +00:00
Titus Tscharntke 42919a50f2 data is ready for rotation feature
some little hotkey changes
2010-03-27 16:08:03 +00:00
Titus Tscharntke c1ec8f97df new switch <rotationAllowed value="false" /> for buildings
new switch <relativeDirection value="false" /> for UnitParticleSystems
2010-03-27 03:09:11 +00:00
James McCulloch 00dd0f490d * fix for map names (possible duplicate entries if mgm and gbm with same name) & alphabetically sorted now
* re-implemented building rotation (Note: requires particle systems that should be rotated with the building to be 'relative')
2010-03-25 12:15:10 +00:00
Mark Vejvoda b22adbfa02 bugfix for scripted scenarios and placing unit model not showing 2010-03-24 21:26:17 +00:00
Mark Vejvoda d713349187 Changed unit rotation logic to attach to existing ccBuild command (placing rotateAmount into the targetId field which was always unused for this commandtype). Commented out the old network code that was used to do this for now. 2010-03-22 04:47:16 +00:00
Titus Tscharntke d4202298fd - when you swittch off the ai in a scenario the faction does not consume consumable ressources anymore ( food ..)
- gui bugfix commands are no more canceled when any unit dies
2010-03-20 15:02:52 +00:00
Mark Vejvoda 965a7ac2ba Updated debug logic to use a debug class to better control debug logging and centralize the control of it. 2010-03-19 23:26:00 +00:00
Mark Vejvoda f838293632 Added code for the following:
a) Complete Unit Rotation for multi-player
b) Added support for user defined data folders
2010-03-18 21:26:40 +00:00
Mark Vejvoda 2012b7e22c Made changes to properly isolate new unit rotation code so that it is disabled by default 2010-03-13 21:10:45 +00:00
Mark Vejvoda e9847750c1 Disabled in progress code related to unit rotation feature (will re-enabled after current release) 2010-03-12 07:42:55 +00:00
Mark Vejvoda 43c3f2457e Code Restructuring to make mega-glest more standard 2010-03-12 05:20:53 +00:00
Mark Vejvoda 7cb4f99ec4 Code Restructuring to make mega-glest more standard 2010-03-12 05:11:28 +00:00
Titus Tscharntke 0ce9b5fcac initial version ( megaglest 3.2.3-beta3 ) 2010-01-22 01:45:58 +00:00