Commit Graph

244 Commits

Author SHA1 Message Date
Mark Vejvoda
4013af9447 - for multiple animations added a new xml node to tell the engine to pick a random animation ONLY x number of times (so death animation is random but not changing when completed animating):
<animation-random-cycle-maxcount value="1" />
2011-06-25 21:40:27 +00:00
Mark Vejvoda
1700cbba2d - working implementation of particles for new attack-boost xml tag 2011-06-25 20:44:46 +00:00
Mark Vejvoda
14b6f195e6 - for multiple animations, now can specify a 'preferred' animation based on the units hp using:
<animation path="models/archer_standing.g3d" fromHp="0" toHp="10" />
2011-06-25 15:30:18 +00:00
Mark Vejvoda
86743e2718 - more bugfixes for attack-boost check (and now in debug mode if unit selected show his attack-boost radius as well as the units affected) 2011-06-25 14:18:53 +00:00
Mark Vejvoda
b0f8675a65 - small bugfix for attack-boost check 2011-06-25 09:01:31 +00:00
Mark Vejvoda
c252402e71 - initial implementation of attack-boost logic (this is in progress code which is only triggered by new xml entries). Will explain later once tested. 2011-06-25 08:53:53 +00:00
Mark Vejvoda
5dda269151 - bugfix for multiple models per skilltype (let existing model finish animating before allow next random model to be selected)
- started work on a new feature called 'attack-boost' that should prove VERY INTERESTING once fully implemented (shhh its a secret)
2011-06-25 07:31:01 +00:00
Titus Tscharntke
8b9d4a662a switch for non rotatable objets in tilesets; cleaned up the way the particles were bound to tileset objects 2011-06-22 20:26:39 +00:00
Titus Tscharntke
9ce83ed21b queued commands are displayed in a better way 2011-05-01 20:19:41 +00:00
Mark Vejvoda
f71f83d2b8 - bugfix for AI repairing fixes a long standing legacy bug where the AI never repaired units with a cell map starting with a 0 at the first x,y in the cellmap (like magic faction). 2011-05-01 05:36:04 +00:00
Mark Vejvoda
700e768b0f - changed default command display text to be same as 3.4 but with support to override and show queued commands up to a max of: MaxQueuedCommandDisplayCount=x where x is max queued text to show
- added ini support on linux so it by default looks for glest.ini and glestkeys.ini in /usr/share/megaglest and /usr/local/share/megaglest first
2011-05-01 03:12:36 +00:00
Mark Vejvoda
5ef1313296 - only show queued # in text if queued commandcount > 1 2011-05-01 02:31:36 +00:00
Mark Vejvoda
d266bbb55c - changed default displayed command queue text to 3 2011-04-29 04:13:31 +00:00
Mark Vejvoda
c747a7c037 make queued commandcount configurable 2011-04-28 00:16:26 +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
89de9f4c8b - fixed to handle duplicate resources in unit requirement costs without crashing 2011-04-26 22:28:37 +00:00
Mark Vejvoda
8d3a53235a - better error message on null resource 2011-04-26 22:11:18 +00:00
Mark Vejvoda
47ef05ceed - attempt to improve pathfinder performance and lengthen max nodes to 900 2011-04-26 21:51:18 +00:00
Mark Vejvoda
cb113514e1 - limit current resource amounts to max storage allowed at game start 2011-04-25 06:39:40 +00:00
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
1b68053397 - attempt disabling threaded faction pathfinder precache 2011-04-18 06:51:10 +00:00
Mark Vejvoda
0a0ee9113c - found a rare case where cancelling an upgrade with multiple upgrades happening and a unit dies causes a crash 2011-04-18 05:34:31 +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
678fca2aad - disable faction threads when user selects route planner pathfinder (fixes current crash) 2011-04-03 06:18:21 +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
68f1ec06b5 - fix for harvesting workers to reset to original harvest location each time they deliver resources 2011-03-25 20:51:14 +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
6c9ba8bea4 - added more error details when some errors are generated 2011-03-22 17:55:11 +00:00
Mark Vejvoda
e3fd34c18c - attempt to make more randomized cell direction when harvesting using locations in the resource cache 2011-03-21 01:03:14 +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
5e844c39e4 particles for ressouces ... the gold will glow tomorrow :-D 2011-03-09 01:32:27 +00:00
Titus Tscharntke
4874d31ddd hopefully fix for tileset particle related crash in windows; particles must be removed from objects before the particle manager is cleared 2011-03-06 22:50:04 +00:00
Titus Tscharntke
273ab4c502 Option to switch on/off tileset particles 2011-03-06 13:11:22 +00:00
Titus Tscharntke
fefed3e3ce No more flickering! Thanks gonana ! ; Tilesetparticles are only rendered/calculated when visible now 2011-03-05 14:34:36 +00:00
Titus Tscharntke
792d0aa665 particles for tilesets ( too much rendered at the moment ) 2011-03-01 23:36:33 +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
2357e2cfd1 - Titi, fixed the remove object so its done in the Object destructor (using an interface) 2011-02-15 04:34:19 +00:00
Mark Vejvoda
31e722287f - bugfixes for when players disconnect, do not switch observers to AI and only show message once.
- Attempts to debug/improve network performance
2011-02-15 03:32:14 +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
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
ccaaf5ab35 - simple attempt to avoid one small type of cheating related to resource values (please test this tomreyn) 2011-01-14 21:16:43 +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
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
045c2f95e8 - added new commandline options to tell the game where to look for data, ini's and where to write logs 2010-12-09 20:41: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
c55855c6f2 - bugfix for stack overflow 2010-12-01 00:05:33 +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
664b2b1b7d - disabled another cache in pathfinder trying to hunt down xplatform out of synch 2010-11-28 00:07:08 +00:00
Mark Vejvoda
81d755cc83 - disabled a cache (cacheUnitCommandClassList) as we suspect this may cause crashes and is unstable 2010-11-26 00:09:54 +00:00
Mark Vejvoda
c1529fd8dc - added validation for unit's to ensure they still have the cached commandclass 2010-11-16 23:32:15 +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
9d9fa0deeb - improved performance for when the AI decides which resource is closest. 2010-11-07 03:27:06 +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
de3a92081d - a bunch of in progress work related to texture compression and more timely texture memory management cleanup. For now to test texture compression use the following ini setting: EnableTextureCompression=true 2010-10-28 00:51:25 +00:00
Mark Vejvoda
43670f76c9 - bugfix for invalid map co-ordinates when looking for resources 2010-10-26 15:25:38 +00:00
Mark Vejvoda
c47b6c676c - attempt to further improve pathfinder performance when MANY units are on the map 2010-10-26 06:43:42 +00:00
Mark Vejvoda
8bbbe403ad - more performance improvements for resource cache logic (try to avoid repetitive caching logic when it was already done once) 2010-10-25 22:02:36 +00:00
Mark Vejvoda
117521a8d4 - disabled the recently introduced pathfinding cache as its too slow and not sure that it really does any good. This should help performance to be better. 2010-10-24 06:53:30 +00:00
Mark Vejvoda
7cb1d6a5b1 - some performance improvements with the new cached resource data 2010-10-24 01:49:25 +00:00
Mark Vejvoda
e53e6b49a9 - bugfix for multiple consumable resources applying incorrectly during the update interval. (thanks silnarm) 2010-10-22 22:52:37 +00:00
Mark Vejvoda
b72124a89a - bugfix for segfault (using wrong index variables again). This time I understand what to change and what not to change :) 2010-10-22 17:29:23 +00:00
Mark Vejvoda
cf5164d5ce - bugfix for consumable resources. Now we get the total usage value BEFORE applying the consequences (thanks for finding this Zoythrus) 2010-10-22 04:16:11 +00:00
Mark Vejvoda
178809ada3 - changed resource faction cache to a map for better performance 2010-10-21 21:53:08 +00:00
Mark Vejvoda
07fe6a2196 - added to the faction resource cache pool for even better AI discovery of resources 2010-10-21 20:31:09 +00:00
Mark Vejvoda
ae367fb252 - updated to units harvesting so they try to harvest different resources when blocked if other resources are close by. 2010-10-21 19:26:14 +00:00