25293ce0cc
Many small bugfixes for AIs. Adds support for difficulty (and along with that, some behind-the-door architecture for a handicap system).
...
Adds -autostart-aidiff to set the difficulty from the command line from
testing.
This was SVN commit r13278.
2013-03-13 20:44:48 +00:00
8ac9f1d8ea
Limit the number of gatherer per resource, as described in #1387 . Based on work by crezax. Fixes #1387
...
This was SVN commit r13277.
2013-03-13 20:10:46 +00:00
e33d4a52e9
AI API V3 along with a new version of Aegis. Support for a JS shared component that can be used or not for each AI.
...
This was SVN commit r13225.
2013-03-05 22:52:48 +00:00
39910affd0
Changes various urls to point to the new website and fixes some broken forum urls.
...
This was SVN commit r12980.
2012-12-11 23:04:03 +00:00
7e21db08d5
Training limits. Limit heroes to one living per player. Allow heroes to be trained again. Closes #1432
...
This was SVN commit r12832.
2012-11-07 17:56:14 +00:00
af005b00b2
Added AI handling for 'resource|' pseudo-templates.
...
This was SVN commit r12495.
2012-08-20 18:02:56 +00:00
07ea313ad6
Major update for qBot-xp, with slight changes to unitAI (that broke qBot, and fix for that).
...
This was SVN commit r12343.
2012-08-10 16:33:58 +00:00
463e62a514
Added checks to see if a resource is in another players territory and to mark a resource as inaccessible if a unit has spent too long trying to reach it.
...
This was SVN commit r12074.
2012-07-05 21:14:48 +00:00
c2c0469472
Make qBot swap gatherers based on gathering speed and always deposit resources when switching resource.
...
Also added missing var's in for loops.
This was SVN commit r11879.
2012-05-18 22:27:08 +00:00
d7faa813f4
Update territory bitmask and add a returnResource command for entities.
...
This was SVN commit r11878.
2012-05-18 22:10:56 +00:00
09414078fd
Switched warning to a debug so that only AI devs see it. Fixes #1403 .
...
This was SVN commit r11856.
2012-05-13 15:04:25 +00:00
0b1d911675
Added check for existance of ent.resourceSupplyType(). Fixes #1402
...
This was SVN commit r11850.
2012-05-12 14:18:40 +00:00
4a73b85a4b
Increase maximum treasure priority distance and check that a dropsite has nearby resources
...
This was SVN commit r11840.
2012-05-11 22:44:37 +00:00
3b25e106b2
Fix bug in nearby resource caching so that a dropsite which had nearby resource depleted will be marked undepleted if new resources appear (farms) and add soem ecnomic upgrades strongly inspired by Marilyn (thanks Wraitii).
...
This was SVN commit r11828.
2012-05-10 22:17:21 +00:00
db1b4dcc4f
Added an existance check for metadata on unit destruction
...
This was SVN commit r11822.
2012-05-10 19:45:34 +00:00
c1c00d1617
Added resource gatherer counting for qBot and fixed nearby gathering locations code.
...
Also switched to SquareVectorDistance in filters as suggested by
wraitii.
This was SVN commit r11820.
2012-05-10 18:38:13 +00:00
7180cd9076
Added advanced buildings for new civs and hopefully stopped heroes from being trained.
...
This was SVN commit r11765.
2012-05-05 21:59:15 +00:00
f01806772f
Fixed changes from [11719] for case where ent is not set. Thanks to leper.
...
This was SVN commit r11723.
2012-05-02 19:50:48 +00:00
94eaa9d1d5
Bug fixing for common-api
...
Fixed entity collection length sometime being NaN
Added a "not" filter
Added create events to resource map updates, should help with farming.
This was SVN commit r11719.
2012-05-02 16:18:32 +00:00
62adf20f37
Check if we have a postition.
...
This was SVN commit r11716.
2012-05-01 23:06:16 +00:00
7c93499c7d
Fix qBot infinite loop due to NaN priorities
...
This was SVN commit r11684.
2012-04-27 21:57:38 +00:00
d9b8df65be
Some refactoring of the military qbot code.
...
This was SVN commit r11627.
2012-04-22 13:04:31 +00:00
06b342db46
Fix save/load with common-api-v2
...
This was SVN commit r11590.
2012-04-20 21:31:43 +00:00
7653043759
Changed some old class filters from Super to Champion
...
This was SVN commit r11559.
2012-04-18 21:05:36 +00:00
a9475c3854
Stops qBot training heroes and makes it build a market after abuot 10 minutes.
...
This was SVN commit r11557.
2012-04-18 20:54:14 +00:00
167cd7151e
Bug fixes and dead code removal
...
Fixed Filters.byOwners, before it was using indexOf() which caused
problems with number/string inequality.
Fixed the countUnassignedUnits and getAvailablenits functions to work
with the new filters.
Removed old updating entity collection code since it has been replaced
by the common-api-v2
This was SVN commit r11545.
2012-04-18 10:46:24 +00:00
af207e1c0a
Fixed the gameState.GetEntityById() function
...
This was SVN commit r11526.
2012-04-16 16:54:11 +00:00
4a12049df5
Put resource accessibility checks back for the new worker code
...
This was SVN commit r11445.
2012-04-06 19:53:50 +00:00
7eb5480494
AI common-api-v2 and a qbot which works with the new API but it not fully transitioned to make use of it properly
...
This was SVN commit r11429.
2012-04-04 20:23:41 +00:00
2c913b4a9f
Removed qbot entity extend functions since they are now in the common-api
...
This was SVN commit r11382.
2012-03-20 23:34:03 +00:00
b6ec143aee
Added Engine.ProfilerStop() to qBot so it doesn't cause memory leaks when it has no units to control
...
This was SVN commit r11348.
2012-03-16 17:36:07 +00:00
0cace671b7
Fixed bug with economy not finding food.
...
The problem was with the new caching and unhuntable animals. The cache
would have an unhuntable food source so would show as not being empty
but then when this was filtered out at a later stage. After this later
stage there would be no attempt to search a larger area.
This was SVN commit r11321.
2012-03-11 23:09:12 +00:00
cd906e074f
Added support for romans to qBot
...
This was SVN commit r11320.
2012-03-11 22:24:02 +00:00
f3a52dd440
Fixes incorrect and inconsistent tests for undefined.
...
Removes unused buggy GUI script.
Corrects some inconsistent formatting.
This was SVN commit r11241.
2012-03-04 22:59:14 +00:00
c169898a18
Made qBot not serialize the metadata which conatins too complicated a data structure and wasn't being used in any case. Fixes #1185 .
...
This was SVN commit r11198.
2012-02-28 20:40:17 +00:00
a3c04b62c0
Added some caching in the reassignIdleWorkers code for a large performance gain.
...
Also fixed a bug in entitycollection-extend.js when calculating length
for updating entity arrays
This was SVN commit r11165.
2012-02-25 23:32:01 +00:00
867df2e6c1
Fixed qbot for the scout tower to defense tower rename and updated the build restriction for the defense tower for consistent naming.
...
This was SVN commit r11024.
2012-02-04 23:42:55 +00:00
4ab9df2a31
Fix qBot's errors when it have no CC at the start of a game. Fixes 1084.
...
This was SVN commit r10987.
2012-01-29 22:11:47 +00:00
126be40e22
Fixed attack errors when there are no targets left
...
This was SVN commit r10918.
2012-01-16 19:42:48 +00:00
b63f8d264a
Fixed attackMoveToLocation apart from when it runs out of targets.
...
Thanks to iap for pointing out a stupid error I had made.
This was SVN commit r10917.
2012-01-16 19:33:28 +00:00
3335bdaf9f
Added treasure collection similar to Marilyn and a performance increase for reassignIdleWorkers.
...
This was SVN commit r10861.
2012-01-03 21:26:37 +00:00
dfc254af5b
Added new config file to qbot
...
This was SVN commit r10856.
2012-01-02 23:09:09 +00:00
a4e1f3c292
This was SVN commit r10853.
2012-01-02 21:46:09 +00:00
779278d376
Added check that a resource is not in enemy territory before trying to gather from it and increased field priority.
...
This was SVN commit r10800.
2011-12-23 10:22:07 +00:00
c270f2a375
Made qBot call the deserialize function from BaseAi and then delete the metadata so any future chanegs won't be overidden
...
This was SVN commit r10789.
2011-12-22 16:01:20 +00:00
c472c07e7a
Added override for Deserialize
...
This was SVN commit r10788.
2011-12-22 15:49:23 +00:00
a8423ac8e8
Adding more checks that the path found is valid to follow, also redisabled the debug messages
...
This was SVN commit r10783.
2011-12-21 15:39:18 +00:00
cb1e8c11a2
Fixed clearTimer() function, made coding style consistent with qBot and removed commented section of code since it would cause a bug if enabled.
...
The commented code would have put a new timer into the id of a limited
repeat timer after it had finished. Then two pieces of code would have
the same id for a timer causing problems.
This was SVN commit r10782.
2011-12-21 12:26:09 +00:00
90acc38ffc
Build-in Timer. now working.
...
This was SVN commit r10779.
2011-12-21 01:59:53 +00:00
12dc33ab5f
Build-in timer class. Not tested, might have bugs.
...
This was SVN commit r10778.
2011-12-21 00:34:17 +00:00