Commit Graph

121 Commits

Author SHA1 Message Date
Mark Vejvoda dda594cf33 - a slight change in dealing with units getting stuck while harvesting. Trying to keep them busy instead of standing around. 2010-10-19 16:54:48 +00:00
Mark Vejvoda 182f2cd20d - bugfixes to AI where workers harvesting think they have arrived but really did not. 2010-10-19 04:38:55 +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 0d050f62d4 - added code to now output all eerors to console (with option to save in log file)
- added more LUA debug info
2010-10-06 20:22:06 +00:00
Mark Vejvoda 5ecda82be0 - bugfix for allowing players to view map at game end for network games 2010-09-30 00:49:57 +00:00
Mark Vejvoda c300905d70 - a better attempt to fix the issue with multi-build where the repairers stop repairing 2010-09-28 19:52:31 +00:00
Mark Vejvoda c3fc45995c - an attempt to fix the issue with multi-build where the repairers stop repairing 2010-09-28 15:22:04 +00:00
Mark Vejvoda b836bf0039 - turned off staggered faction updates (can toggle via ini setting: StaggeredFactionUpdates)
- added more debug info for resource depletion
2010-09-17 04:00:48 +00:00
Mark Vejvoda 7e7c7216a5 - fixed screen flickering of fog of war texture when staggered updates is enabled. 2010-09-15 23:32:29 +00:00
Mark Vejvoda c295697aba - added map preview on custom game menu 2010-09-12 05:05:08 +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 2c1b6b6304 - added a caching system for rendering game entities 2010-09-10 00:28:14 +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 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 5fdbce7651 - commented out a debug line that gets called a ZILLION times and grows the logfile too much 2010-09-06 20:52:53 +00:00
Mark Vejvoda aca497781c - attempt to correct final issue with multi-build 2010-09-06 05:34:55 +00:00
Mark Vejvoda 8f0894e0c9 - last minute bugfix for fog of war for observers 2010-09-04 01:32:50 +00:00
Mark Vejvoda e93ac6d756 - changed observer faction to use a special team # and fog of war is auto turned off for this special team #. 2010-09-04 00:32:56 +00:00
Mark Vejvoda 358d61aa38 - first attempt to add a special builtin Observer faction to allow people to observe games 2010-09-03 07:12:40 +00:00
Mark Vejvoda 8b681e1cb9 - more bugfixes for multi-build. Added extra check for repairer / builder swap so that old builder who became a repairer will not try to start building when another unit already took over. 2010-09-02 05:38:49 +00:00
Mark Vejvoda d6d1fe2add - bugfixes for multi-build. Now the other units are checked that they can not only build but repair too. Also those who repair now try to approach from the best angle as well as the builder. 2010-09-01 04:19:20 +00:00
Mark Vejvoda ca49e0ba68 - attempt to fix multi-build 2010-08-31 23:14:15 +00:00
Mark Vejvoda 135a03e95a - added NULL pointer checks in surface atlas 2010-08-31 04:39:25 +00:00
Mark Vejvoda e32eb9c162 - modified command object to support special states which flow through network play as well. This allows for better handling of multi-unit build and allows for better future expanding of command processing. 2010-08-30 20:45:12 +00:00
Mark Vejvoda f16bb3f28b - some bugfixes for new LUA features 2010-08-29 06:30:41 +00:00
Mark Vejvoda 5ae0430928 - added more LUA functions:
int registerCellTriggerEventForUnitToUnit(int sourceUnitId, int destUnitId);
int registerCellTriggerEventForUnitToLocation(int sourceUnitId, const Vec2i &pos);
int registerCellTriggerEventForFactionToUnit(int sourceFactionId, int destUnitId);
int registerCellTriggerEventForFactionToLocation(int sourceFactionId, const Vec2i &pos);
int getCellTriggerEventCount(int eventId);
void unregisterCellTriggerEvent(int eventId);
int startTimerEvent();
int stopTimerEvent(int eventId);
int timerEventSecondsElapsed(int eventId);
int triggeredCellEventId();
int triggeredTimerEventId();
LUA events:
timerTriggerEvent
cellTriggerEvent
2010-08-29 04:45:15 +00:00
Mark Vejvoda dc5bf0f850 - bugfix for AI not losing HP when food is out
- added new LUA commands (for Tiger):
giveAttackCommand
disableAi
enableAi
disableHunger
enableHunger
2010-08-28 08:06:32 +00:00
Mark Vejvoda 4bc00cbf73 - added new calculation method when building units, builder units use best approach to build it instead of top left. 2010-08-28 03:43:14 +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 5fb040c9f1 - Fixed bug related to particles not updating smoothly 2010-08-26 01:25:27 +00:00
Mark Vejvoda 5a796444b8 - added a cache for compute fog of war 2010-08-25 23:55:59 +00:00
Mark Vejvoda 014165de69 - explicitly clear the cache. 2010-08-25 16:01:24 +00:00
Mark Vejvoda 49978632c4 - removed one lookup key from new cache as it was not required 2010-08-25 15:55:17 +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 c9ca56e91b - small optimization for moving units when source and destintation position are the same 2010-08-25 00:29:56 +00:00
Mark Vejvoda c781982e57 - increased explorecells cache size 2010-08-24 23:36:23 +00:00
Mark Vejvoda 4ee98e7155 - some changes to the explorecells cache for less memory and better performance.
- updated performance logging to more easily find things in the log
2010-08-24 23:15:33 +00:00
Mark Vejvoda 0e3c0a8d0e - disabled staggered unit updates 2010-08-24 02:49:55 +00:00
Mark Vejvoda 65cf1bfdac - attempt to lessen memory footprint of particles and speed up rendering 2010-08-24 01:21:34 +00:00
Mark Vejvoda 1daecc4145 - made staggered faction updates toggle flag 2010-08-23 19:49:00 +00:00
Mark Vejvoda 61a2340e14 - disable faction update staggering 2010-08-23 19:35:55 +00:00
Mark Vejvoda 70817a07d1 - some performance updates to fog of war computation 2010-08-23 15:10:37 +00:00
Mark Vejvoda 284371f206 - some performance updates to fog of war computation 2010-08-23 14:48:33 +00:00
Mark Vejvoda db47a14940 - attempt to spread out faction world ticks for better performance 2010-08-23 09:53:04 +00:00
Titus Tscharntke 401a39c3e1 harvesting units of size>1 should work better ( testing is still needed for this! ) 2010-08-22 22:30:17 +00:00
Mark Vejvoda cce338a2c6 - atempt to squeeze some extra rendering performance 2010-08-21 18:50:56 +00:00
Mark Vejvoda fe8d3b3130 - numerous bugfixes mostly centered around network lag, but also added more logging and protective code (like buffer overflow checks)
*NOTE: This version is NOT backwards compatible with other builds
2010-08-07 03:26:38 +00:00
Mark Vejvoda a7c86fb86b - a better attempt to safely end games and hopefully fix the delete cells bug once for all 2010-08-04 20:07:39 +00:00