3d306702df
Petra: recover some cases where units are blocked because of pathfinder
...
This was SVN commit r15215.
2014-05-25 10:00:55 +00:00
84b53933ff
fix the AIs broken after b55b6a9cf1
...
This was SVN commit r15204.
2014-05-22 20:40:14 +00:00
15472f7797
fix Petra not gathering already dead animals and remove forgotten debug printout
...
This was SVN commit r15172.
2014-05-19 19:45:08 +00:00
3596f1c341
modify AI common-api to allow fishing and minor fixes
...
This was SVN commit r15152.
2014-05-18 10:50:44 +00:00
ac9aaaa369
supplement the ai common-api
...
This was SVN commit r14895.
2014-04-03 20:31:59 +00:00
8615f38803
Always define the entire entity state, but initialize it to null
...
This was SVN commit r14883.
2014-03-29 13:37:48 +00:00
b03e3644ac
add a few usefull functions in ai/common-api
...
This was SVN commit r14864.
2014-03-24 22:15:40 +00:00
94c02ec33c
Revert gather limits to be global instead of per-player. Refs #1387
...
This was SVN commit r14848.
2014-03-16 20:35:23 +00:00
c3cdf40f33
Somewhat experimental rewrite and simplification of the worker's logic to choose dropsites. Might behave unexpectedly now and then.
...
Error fixes here and there.
This was SVN commit r14715.
2014-02-01 00:44:12 +00:00
ad8fa37f17
Improve some building placement. May improve dropsite usage slightly.
...
Should fix #1964
This was SVN commit r14639.
2014-01-22 20:26:45 +00:00
de02ab2e53
Fix various bugs. Try to make the AI build its buildings closer together (WIP, and it's brute-force).
...
This was SVN commit r14632.
2014-01-22 03:11:19 +00:00
c1e86161b5
AIs now properly receive aura and technology updates. Fixes #2377 , Refs #1520 . Consequently reimplement repairing for AIs.
...
Fix a few style issues and a bug with the gatherer count.
Still need to fix the entity.js file to handle properly some things as
this uses raw templates values.
Cache the AIinterface in AIProxy.js, please report if this works
properly.
This was SVN commit r14588.
2014-01-16 20:32:44 +00:00
d23b7deb98
Various improvements to AI's early game. Simplify some code and improve on other. Add a few different strategies (Rush/normal/boom, quite basic for now, refs #2344 ).
...
Aegis should mostly respect tech limitations so I'll ref #1964 .
I'm going to go with #2364 is fixed, the AI should be more efficient in
early-game, and late-game is a known problem.
Fixes #2274 and fixes #2379 .
Refs #2372 as it should fix several of those warnings for AIs.
Fixes #2256 with a new bartering system, in parts taken from mimo's
patch.
This was SVN commit r14582.
2014-01-14 19:54:31 +00:00
bd22432fe8
Rename common-api-v3 to common-api.
...
Fix warnings with the new AI.
Fix an error with the per-player gatherer counts.
This was SVN commit r14559.
2014-01-10 17:46:48 +00:00
a6032ddd3f
Removes older AIs and APIs.
...
For the sake of it, we should have a minimal AI sometimes.
This was SVN commit r14553.
2014-01-10 01:48:09 +00:00
2ea7fb18ea
Backport c011875c5a
to the older APIs and allow for empty buildable entites token list.
...
This was SVN commit r13569.
2013-07-16 21:22:05 +00:00
70c317b1b0
Hunt all domestic animals, not just very weak animals (<= 10 health).
...
This was SVN commit r12500.
2012-08-20 23:37:19 +00:00
bb9af6da12
Requested update from quantumstate via IRC
...
This was SVN commit r11640.
2012-04-22 21:36:37 +00:00
b9695db52c
Don't add units to selection if the selected unit isn't owned by the player. Fixes #1256 , based on patch by mk12.
...
Update AI API to Health changes.
This was SVN commit r11608.
2012-04-21 20:50:07 +00:00
774809b0a9
Allow training in all selected buildings. Fixes #1210 .
...
This was SVN commit r11592.
2012-04-21 00:21:01 +00:00
755e407aeb
Technologies. Refs #3 . Full unlocking technology implementation. Only unit gathering rates can be modified currently because the patch was big enough already.
...
This was SVN commit r11584.
2012-04-20 17:21:04 +00:00
a957455647
Shift-click ungarrisons all units of a type. Patch from leper, fixes #1206 .
...
This was SVN commit r11385.
2012-03-21 15:18:31 +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
23f122988a
Added and fixed some functions in entity.js from RootBot. Fixes #1165 .
...
This was SVN commit r11121.
2012-02-23 00:11:39 +00:00
b9e623a6d5
Added some extra garrison related functions. Fixes #1164 .
...
This was SVN commit r11067.
2012-02-13 22:41:15 +00:00
8383f35eb8
Added queued as an optional parameter so that AI's can set waypoints
...
This was SVN commit r10653.
2011-12-02 00:25:20 +00:00
fc325991a0
Added visionRange function to read this value from the templates for the AI to use.
...
This was SVN commit r10553.
2011-11-18 21:11:15 +00:00
686ffa9758
Fixes error in AI entity. Fixes #991 .
...
This was SVN commit r10412.
2011-10-16 17:21:37 +00:00
c73c0870f1
Adds attackTimes to AI entity templates. Fixes #991 .
...
This was SVN commit r10407.
2011-10-15 23:38:58 +00:00
b28ae93dc8
Adds armour and attack strengths to AI entity template, based on patch by infyquest. Fixes #991 .
...
This was SVN commit r10393.
2011-10-11 20:02:21 +00:00
e0255741d8
Adds BuildRestrictions accessors to AI's EntityTemplate (important for proper territory support).
...
This was SVN commit r10340.
2011-09-28 19:51:40 +00:00
871d321050
Fix undefined property warning
...
This was SVN commit r9778.
2011-07-07 22:14:37 +00:00
8a0cbe009a
Stop the AI wasting time chasing after any animals except chickens.
...
Make the AI behave better when it can't find any viable food sources.
This was SVN commit r9046.
2011-03-08 01:40:44 +00:00
3e7731e8ca
Stop units wasting their lives chasing animals they'll never be able to catch.
...
Let AI players collect treasures.
This was SVN commit r9012.
2011-03-04 21:42:39 +00:00
b8925fbbc9
# Support AI construction of buildings.
...
Pass terrain passability data to AI scripts.
Expand pathfinder passability data to 16 bits per tile, to allow more
classes.
Support 16-bit ints in serializer.
Partially support JS typed arrays.
Allow foundations to be placed on top of units (fixes #499 ).
Stop farms and fishes blocking movement (fixes #534 ).
Add obstruction flags to allow finer control over what they block.
Associate entity IDs with obstruction shapes, to allow finding colliding
entities.
Support moving to the edge of a target entity with inactive obstruction.
Support foundation entities in AI.
Support playing as non-hele civs.
This was SVN commit r8899.
2011-02-10 16:06:28 +00:00
57e5bb878a
Initial terrible AI player scripts.
...
This was SVN commit r8891.
2011-02-05 20:35:34 +00:00
f39f279132
Add AI script code to provide a cleaner API around the engine interface.
...
Handle AIProxy entirely through scripts.
Support structured clones of script values.
Improve performance.
Support multiple script contexts sharing a runtime.
Use a separate context per AI player.
This was SVN commit r8866.
2011-01-15 23:35:20 +00:00