Commit Graph

366 Commits

Author SHA1 Message Date
Mark Vejvoda 16ea7881ab - no longer allow killing self or team to update your skill levels 2011-04-20 16:46:47 +00:00
Mark Vejvoda 734db6c7d4 - bugfix, units can now heal self if they are capable of healing own unit type 2011-04-17 06:25:08 +00:00
Mark Vejvoda 06fb3decda - added some code for possible future use to improve pathfinder (not for this release) so disabled right now 2011-04-14 02:51:13 +00:00
Titus Tscharntke 5aa6092f1f produce commands are not ALWAYS queued! Behaviour should be like in original glest! 2011-04-08 20:25:03 +00:00
Mark Vejvoda a48406a592 - attempt to fix bailout pathfinding logic to have better performance 2011-04-04 04:32:01 +00:00
Mark Vejvoda 0e9cf65e70 - more code cleanup (removal of dead code that is no longer used)
- fix the icon for wartime mechanic's heal command
2011-03-29 16:27:01 +00:00
Mark Vejvoda c58f338d1b - clear pathfinder precache for units when they die to free memory sooner 2011-03-29 10:01:01 +00:00
Mark Vejvoda 1fc330ace3 - bugfix (And removal) for stop command and animation stopping when upgrading 2011-03-28 23:47:22 +00:00
Mark Vejvoda 56bc84923a - disabled the stopcommand throttling for now to see if performance is still ok 2011-03-28 21:10:49 +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
Mark Vejvoda 90c12da33e - see if this removes the command delay when issuing commands on idle units 2011-03-25 01:50:35 +00:00
Mark Vejvoda 860777aaec - try to see if this stil lfixes performance without so much delay. 2011-03-25 01:08:34 +00:00
Mark Vejvoda 47a81f8b44 - performance improvements for units using the stop command when units are idle 2011-03-24 21:55:39 +00:00
Mark Vejvoda bca617cf18 - bugfix for socket mutex locked when deleting socket
- added faction detail in lobby when CRC's do not match on techtree
2011-03-19 12:04:18 +00:00
Mark Vejvoda 505abbd1ec - observers now hear sounds from units of all team units in visible quad 2011-03-18 21:23:34 +00:00
Mark Vejvoda 07f56669b7 - attempt to see if threaded pathfinding will work and if it improves performance 2011-03-18 03:53:06 +00:00
Titus Tscharntke 273ab4c502 Option to switch on/off tileset particles 2011-03-06 13:11:22 +00:00
Mark Vejvoda c4795eb6cb - more fixing of map corner position actions causing memory access violations (this will further stabilize the code) 2011-02-25 04:15:22 +00:00
Mark Vejvoda 16c7316887 - initial attempt to enable pathfinder caching (think it might work now). Please test 2011-02-23 07:03:38 +00:00
Mark Vejvoda 7dcb12ff60 - some more memory cleanup 2011-02-12 09:08:50 +00:00
Mark Vejvoda 0533ce2c63 - a simple attempt to improve pathfinder performance (this needs to be tested well and can easily be disabled by setting: const bool tryLastPathCache = false;) 2011-02-11 23:32:24 +00:00
Mark Vejvoda 7cae047f15 - added more code guards around morph validation
- some render debug info
2011-02-11 04:48:17 +00:00
Titus Tscharntke e856d5e4f0 MuwuMs changes ( spawn attack and more ) 2011-02-06 18:33:49 +00:00
Mark Vejvoda 1a3545f8ab - cleaned up compiler warnings in g3d viewer
- added a bunch of new lua commands for 'da boys' to be documented after being fully tested.
2011-01-29 12:42:18 +00:00
Mark Vejvoda 23135b5bab - when units get congested now we try to randomly pick different approaches to find resources 2011-01-28 07:17:32 +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 c54e6dbf5d - a little bit of plumbing for VBO's for static models (currently disabled via # define)
- small small speed improvement when calculating interpolations
2011-01-18 07:52:06 +00:00
Mark Vejvoda c51eb0a3c4 - attempt to cleanup some debug logging to see if it helps restore normal performance 2011-01-17 16:31:25 +00:00
Mark Vejvoda a7ca23d18e - speed improvement for anti-hack checking 2011-01-15 04:13:15 +00:00
Mark Vejvoda 2ab82c9271 - added some basic protection against memory hacking tools 2011-01-14 23:51:15 +00:00
Mark Vejvoda 7347dc9545 - bugfix for multi-build queued commands 2011-01-08 21:53:05 +00:00
Mark Vejvoda ec467b6ac4 - bugfix, when a unit morphs we now add to stored resource count if the unit is of that type (used to only work when building, now works during a morph) 2011-01-07 05:15:39 +00:00
Mark Vejvoda 896b1c308c - added a backtrace for gcc compiled binary when we get a runtime error.
- added more out of synch checks and better error handling
2011-01-02 00:39:13 +00:00
Mark Vejvoda 335749a15e - updated hp regeneration method to look for negative hp regen values and if health ticks below 0 the unit dies 2010-12-28 02:17:44 +00:00
Mark Vejvoda 409c15d3f0 - more tweaking of threaded logging as well as removal of world synch logging items that are not needed 2010-12-26 01:13:04 +00:00
Mark Vejvoda 03eaa2c033 numerous important bugfixes:
- observers and end game fog of war enable would most likely cause out of synch, I think its fixed now
- better handling of threaded logging
- cleanup of socket thread processing to ensure all network packets get processed properly and in order
2010-12-24 08:43:09 +00:00
Titus Tscharntke cfba817280 dansk language; fix for fog of war off; command queuing works a bit better ( especially when attacking ); 2010-12-23 10:44:11 +00:00
Mark Vejvoda 8deec8d518 - changed debug world synch formatting so on xplatform we don't have issues with filename and other header tag items 2010-12-01 23:38:03 +00:00
Mark Vejvoda b02da7d1e0 - finally found and fixed out of synch related to AI.
- added ability to log all unit activity to world synch logfiles so we can diff game info from different network clients
2010-11-30 23:32:39 +00:00
Mark Vejvoda 33aac9f2ae - added useful debug info for world synch debugging (unit path and faction info) 2010-11-28 03:46:28 +00:00
Mark Vejvoda cc4f268988 - some additional AI caching for improved performance 2010-11-11 08:02:50 +00:00
Mark Vejvoda d89953ee96 - improved performance and bug fixes. 2010-11-09 09:06:52 +00:00
Mark Vejvoda ca9cbc6e75 - removed some debugging that created very large debug files and improved performance a little bit 2010-11-07 02:37:00 +00:00
Mark Vejvoda 9978cbeff5 - added some initial work to support FBO (frame buffer objects)
- added many NULL check guards throughout the code
- added a safe mutex around ptr access of background thread on custom menu
2010-11-01 16:44:05 +00:00
Mark Vejvoda dfedf2259b - numerous bugfixes to building an d repairing units.
- added new unit cell property called allowEmpty to allow units to build other units with cellmaps that have all 0's (since you can produce these types of units anyways)
2010-10-30 08:54:00 +00:00
Mark Vejvoda dec9dfe653 - added new attribute for tileset objects named "height". Air units will try to fly above the height of units and objects now (up to a max of terrain height + 15) 2010-10-30 04:05:48 +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
Mark Vejvoda 7cb1d6a5b1 - some performance improvements with the new cached resource data 2010-10-24 01:49:25 +00:00
Mark Vejvoda 6104dedc76 - added a resource harvest success cache for stuck units to look at when they cannot harvest. 2010-10-20 07:28:27 +00:00
Mark Vejvoda 913df7ec3b - added more cached information to help deal with units getting stuck while harvesting. Trying to keep them busy instead of standing around. 2010-10-19 22:26:49 +00:00
Mark Vejvoda 3d4ccb460c - added a little extra logic for units when pathfinding. We keep temporary lists of bad cells of harvest resources where a unit simply cannot get to. This is kept for small periods of time and then the bad cell list is purged when data gets old. This tremendously helps units to be more active when getting stuck in challenging places on maps. 2010-10-17 08:50:27 +00:00
Mark Vejvoda 55b4f0bd2b - Incremented version to next major release # so new work can begin.
- some initial work to assist units from getting stuck when given commands. This is for both AI and human players and deals with the pathfinder and units getting constantly blocked from their destination.
2010-10-17 06:34:42 +00:00
Titus Tscharntke 59b2cdb78f max-unit-count works for buildings 2010-10-08 19:30:53 +00:00
Titus Tscharntke 88335f112b fix for the AI not respecting max-unit-count 2010-10-04 19:21:09 +00:00
Mark Vejvoda 02e0a1302f - more AI fixes.
#1: AI does not try to harvest resources that the unit cannot yet harvest (could be an upgrade required)

#2: AI no longer tries to expand near resources that they are not yet able to harvest. (found using RealtimeFreaks test mod and map). This makes for a more aggresive CPU in scenarios where there are additional resource types since they expand much more quickly.
2010-10-02 01:11:59 +00:00
James McCulloch 9d8bb49a1b * fix static resource production on unit morph 2010-09-25 02:23:47 +00:00
Mark Vejvoda ab88a2971a - small improvement for when units and objects are deleted. 2010-09-10 19:44:00 +00:00
Mark Vejvoda 793ac7a8cb - added a dirty cache flag when a unit dies 2010-09-10 15:51:16 +00:00
Mark Vejvoda d806e7f9ff - a few more performance optimizations and logging changes 2010-09-09 05:42:19 +00:00
Mark Vejvoda 77eadd7710 - attempt to improve explorecells usage when each unit is signalled to move 2010-09-09 01:44:25 +00:00
Mark Vejvoda 958184e018 - more memory cleanup 2010-09-07 21:01:22 +00:00
Mark Vejvoda 63cf199322 - more memory cleanup 2010-09-07 18:28:09 +00:00
Mark Vejvoda 9817e8a860 - memory leak fixes 2010-09-07 17:30:13 +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 ca30612c9c - attempt to cleanup particles when a unit is deleted 2010-09-06 17:52:33 +00:00
Mark Vejvoda 21ded6679f - some code cleanup for multi-build debug 2010-09-01 04:42:10 +00:00
Mark Vejvoda ca49e0ba68 - attempt to fix multi-build 2010-08-31 23:14:15 +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 855443d98f - added a lookup cache for unit updater's frequently called unitOnRange logic 2010-08-25 07:29:35 +00:00
Mark Vejvoda 65cf1bfdac - attempt to lessen memory footprint of particles and speed up rendering 2010-08-24 01:21:34 +00:00
Titus Tscharntke 8e281e2faf new attribute MaxUnitCount in units and yellow select circle for allies 2010-08-22 21:09:35 +00:00
Mark Vejvoda f43fffc083 - added more debug for game end crash 2010-08-10 22:46:08 +00:00
Mark Vejvoda bca03b0c0c - initial changes to support multiple path finders 2010-07-21 18:21:40 +00:00
James McCulloch bdd4f306f4 * added GAE path finder (SearchEngine and friends)
* some small changes to Unit, UnitType, Vec2<> & Map needed for the new path finder
 * compiles, but not hooked up yet, old PathFinder still in use
2010-07-11 18:31:02 +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 c7c9e69567 - added initial work to better manage rendering (but not yet enabled)
- added new commandline parameter: --version
- some thread cleanup to try adjusted timings when threads shutdown
2010-06-15 16:27:52 +00:00
Mark Vejvoda cdb820a8e8 - fixed a network read problem where there is more data needed before reading large command lists can be processed.
- added more error checking
2010-06-14 06:38:24 +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 4fd75e5d7d - fixed two nasty AI bugs which would cause out of synch and memory corruption problems
- added new glest.ini setting to log commands for each client
2010-06-08 07:40:32 +00:00
Mark Vejvoda 8ebd901dfa Fixed the following nasty bugs:
- memory corruption when mouse click happens because there are more than 3 possible values for mouse button click
- Recursive crash when outputting string representation of unitRef.
2010-06-02 08:03:56 +00:00
Mark Vejvoda 8ea52485cc - Attempt to fix unit id allocation issues 2010-05-31 09:24:44 +00:00
Mark Vejvoda 0069fbf4f0 - added more debug code and fixed a server bug where client connecting at the same time a server opens a slot would result in a crash sometimes. 2010-05-31 06:11:31 +00:00
Mark Vejvoda e8cc925a8b - added more debuging 2010-05-29 16:55:55 +00:00
Mark Vejvoda ffef6e4098 - more debug info to hunt down synch issue 2010-05-29 10:34:56 +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 908b155d62 some changes to how we use streflop:
- Removed all unneeded includes of cmath
- added proper wrapper classes for lua calls to toggle streflop back and forth
- some code cleanup
2010-05-28 05:31:17 +00:00
Mark Vejvoda 4b6e017241 - Added particle support to g3d viewer 2010-05-25 18:06:42 +00:00
PolitikerNEU 6d4697f2ba Tried to fix the command-queing bug not canceling attack on produce command 2010-05-18 21:18:51 +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 f091df9954 - added a more simpler version of right click to set meeting point from RCL 2010-05-10 23:56:55 +00:00
Mark Vejvoda 04bb6659ce Added more debugging and option to disable new streflop usage. 2010-05-01 20:14:25 +00:00
Mark Vejvoda 58386a72e8 Bugfix for cases where command cache was not yet initialized 2010-05-01 09:27:08 +00:00
Mark Vejvoda 140a304541 changed world synch logging locations 2010-04-29 17:00:14 +00:00
Mark Vejvoda 5af308125b - Cleanup of logging code to properly manage multiple logs etc
- Cleaned up a bunch of compiler warnings (conversion from int to float and vice versa)
2010-04-27 20:38:34 +00:00
Mark Vejvoda cfe7d8cec8 Updated world synch logging so we can better compare exact results every 40 frames 2010-04-27 14:10:53 +00:00
Mark Vejvoda 6d4838f470 Changed the logging system to be more flexible and to support world synch logging 2010-04-27 03:36:36 +00:00
Mark Vejvoda 472e34dc6c HAd to add a #define for includes on non WIN32 platform 2010-04-24 11:33:50 +00:00
Mark Vejvoda 1d6f3ebe58 fixed broken build (renabled some header files) 2010-04-24 11:22:59 +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
Mark Vejvoda d412cb5f79 Added a bunch of NULL pointer guards, changed undertake to cleanup dead units more safely and added more debug tracing 2010-04-20 02:19:37 +00:00
PolitikerNEU e06e964728 Added queing commands with shift 2010-04-18 07:35:48 +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 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 b6b54f1001 damage particlesystem / new glest.ini / ingame option to switch of particles 2010-03-01 00:30:51 +00:00
Titus Tscharntke 59faabfe14 bugfix/improvement for teamcolor particles ** units can morph to flying units ** tech faction with particles 2010-02-27 00:34:03 +00:00
Titus Tscharntke f80359fdca proper particle cleanup in unit destructor; campfire is using new particles now 2010-02-21 23:30:12 +00:00
Titus Tscharntke daa9c94129 multiple particle systems for every skill 2010-02-21 13:56:17 +00:00
Titus Tscharntke 0550d06faf particles for te skills 2010-02-16 01:12:48 +00:00
Mark Vejvoda fb5035c230 Updated with initial 3.4.4 codebase includes:
- network fixes for multiplayer defects found
- initial code (disabled currently) for content crc checking and downloading
- code compiles on Win32 using VS2008 express, project files not yet included
2010-02-03 01:09:50 +00:00
Titus Tscharntke 0ce9b5fcac initial version ( megaglest 3.2.3-beta3 ) 2010-01-22 01:45:58 +00:00