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
Mark Vejvoda
bc7ba297fd
- more tweaking for units harvesting, this hopefully cleans up segfaults and makes things more stable.
2010-10-20 20:40:29 +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
7564635643
- added initial code for switching dropped network players to AI (currently hard coded to normal CPU)
2010-10-18 23:09:43 +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
Mark Vejvoda
67c1c52caa
- added an extra NULL check to new max unit check
2010-10-11 15:58:10 +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
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
f84a710d2c
- initial logic to allow client side controlled AI
2010-09-14 19:10:37 +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
3f393fd37d
- added a way to signal the cache is dirty for when resources are deleted.
2010-09-10 15:47:19 +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
Titus Tscharntke
8552f76798
renamed/fixed lua function enableHunger to enableConsume and disableAI now disables consume too ( to stay somehow compatible with the former behaviour )
2010-09-08 19:00:22 +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
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
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
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
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
c63283ffac
- another attempt to fix game end crash for ultifd
2010-08-04 16:56:24 +00:00
Mark Vejvoda
ff586afd0d
- some final updates to get the new pathfinder working after adding multi-pathing support
2010-07-21 22:05:50 +00:00
Mark Vejvoda
74b6fc8139
- some code cleanup related to supporting multiple path finders
2010-07-21 19:17:45 +00:00
Mark Vejvoda
bca03b0c0c
- initial changes to support multiple path finders
2010-07-21 18:21:40 +00:00
James McCulloch
8387ed29dc
* wired up RoutePlanner/Cartographer
...
* added DebugRenderer (mostly dysfunctional)
* add lots of OutputDebug calls for the path finder, as macro PF_TRACE
2010-07-13 05:33:43 +00:00
Mark Vejvoda
f86268b53d
- some small changes for new pathfinder code to compile in linux
2010-07-12 06:40:19 +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