Commit Graph

398 Commits

Author SHA1 Message Date
1efd47c1ad Fix errors when loading a saved game with Aegis by making sure the AI re-inits properly. Still no real saved game support.
This was SVN commit r14329.
2013-12-11 17:10:14 +00:00
a44e88fa42 Check for "Destroy" messages beforehand in the base manager to avoid a rare error.
This was SVN commit r14320.
2013-12-09 16:35:06 +00:00
c3ef9b3685 Forgot I had renamed a file…
This was SVN commit r14318.
2013-12-09 14:23:56 +00:00
f9bee5d3ec Slight de-obfuscation of the AI code.
This was SVN commit r14317.
2013-12-09 14:20:11 +00:00
36334a6fa7 Fix the AI incorrectly trying to place Civil Centres too close to each other.
This was SVN commit r14310.
2013-12-08 16:24:09 +00:00
1f7019f8e6 Might fix an issue on Acropolis where Aegis tried to build a CC too close to his main one.
This was SVN commit r14305.
2013-12-08 09:07:33 +00:00
f0fe2acdcb Disables JIT compiling of a loop to work around OOS errors in multiplayer games with AI players.
Fixes #2000

This was SVN commit r14303.
2013-12-07 11:49:11 +00:00
2f3ce82dc3 Fix Aegis no longer building dropsites after the skirmish fix.
This was SVN commit r14295.
2013-12-05 17:34:24 +00:00
7b82fba8d0 remove distance sorting for formation place assignment, as it made the center of the formation run + remove debug warning in AI code
This was SVN commit r14292.
2013-12-05 12:31:04 +00:00
189ef85538 Fix AI errors on skirmish maps.
This was SVN commit r14285.
2013-12-04 16:52:44 +00:00
2418ae190d Fixes some erroneous documentation in EntityLimits.
Removes previously implemented LimitsPerCivCentre from AI states.
Removes hardcoded categories from TrainingRestrictions

This was SVN commit r13950.
2013-10-06 03:13:46 +00:00
d663dae2d8 New version of Aegis. Huge rewrite for WIP naval support (still very, very buggy at this point.) Features a few bugfixes and might be more efficient than the former version.
NEEDS TESTING.

This was SVN commit r13907.
2013-09-29 13:32:52 +00:00
52f947fd77 Check that we still have build orders for our attack plan. Temporarily fixes #2082 for A14.
This was SVN commit r13761.
2013-08-25 08:20:40 +00:00
998dc21676 Removed old Aegis folder.
This was SVN commit r13687.
2013-08-17 14:12:25 +00:00
bcf7115b5c Fix Aegis to work properly for A14, also rename the folder from "qbot-wc" to "aegis" (thus apparent huge number of changes). Adds a "sandbox" difficulty setting that will never attack, collect resources 50% slower, and is pop-capped at 70 for beginners.
This was SVN commit r13683.
2013-08-17 13:59:53 +00:00
fd428cf45b Fix bug when randomly picking a unit to attack for AI's. Fix from bmwiedemann.
This was SVN commit r13599.
2013-07-27 15:08:45 +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
c011875c5a Fixes an issue with Aegis and the iberians
This was SVN commit r13563.
2013-07-15 19:47:59 +00:00
4fc15a9b08 Renames mill to storehouse
This was SVN commit r13496.
2013-06-22 02:28:54 +00:00
2c52099ddd Fix previous commit because of course there was test code in there. Make Aegis build more farms because of recent changes.
This was SVN commit r13426.
2013-05-25 16:24:05 +00:00
f372f9184c Fix Aegis breaking the profiler after some time (Fixes #1945. Fix typo (Fixes #1947). Patches by Markus.
Also one other fix for something attack related (probably, code is old
and I can't recall).

This was SVN commit r13425.
2013-05-25 15:56:11 +00:00
09108e6a97 Some more vars
This was SVN commit r13408.
2013-05-16 16:17:37 +00:00
de5d4491ab var-fare
This was SVN commit r13404.
2013-05-12 22:28:02 +00:00
d0a695f7fb Allow mutual allies to garrison in each others buildings. Patch by mimo. Fixes #1807.
This was SVN commit r13357.
2013-04-14 00:34:14 +00:00
329b3e3d28 Adds notice of saved game issues to Aegis' description
This was SVN commit r13332.
2013-04-01 15:03:31 +00:00
3b5ab7ab51 Fixes #1884 . Should Fix #1883 .
This was SVN commit r13328.
2013-03-30 07:30:54 +00:00
475c722327 Fix serialization issues with Aegis.
This was SVN commit r13326.
2013-03-24 09:10:32 +00:00
f8a7692d92 A few final fixes to some AI logic in attack and defense.
This was SVN commit r13307.
2013-03-17 08:55:46 +00:00
03c3b1daa3 Fixes a few changes in my previous commit. Makes "Medium" the default difficulty setting.
This was SVN commit r13303.
2013-03-16 12:55:03 +00:00
b0f1afa994 Change Punjab 1 water settings.
Fix a little mess-up on my last commit.

This was SVN commit r13299.
2013-03-16 10:16:41 +00:00
d709fe50ed Clean-up of Aegis scripts. Most deprecated functions have been removed, some comments updated. Also makes resource maps 8-bit to save a little memory.
Fix the placement of the "civ info" button to avoid overlapping on
1024*768.

This was SVN commit r13298.
2013-03-16 09:59:43 +00:00
5af7544918 Bug fixes and small improvements to Aegis. Change the "C" button into a "Settings" button. Fix to -autostart-aidiff.
This was SVN commit r13289.
2013-03-15 12:35:16 +00:00
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
2bcb03f049 Fix messages.js for "/team" messages when no teams were set.
Change to AI logic, makes Aegis more efficient with a better attack,
eco, and defense. Bugfixes.

This was SVN commit r13271.
2013-03-12 21:58:25 +00:00
9b1b8cc8fd A few bugfixes, slight change in logic for smoother play. Makes Aegis gather with cavalry. Allows it to send chat messages to warn about attacks.
This was SVN commit r13266.
2013-03-11 19:58:29 +00:00
1368aa4ae9 Fix bugs in the attack manager, fix reparations in enemy territory, change readme.txt to document the new -autostart-civ function.
This was SVN commit r13248.
2013-03-10 07:37:05 +00:00
2c17ab70ac Add support for -autostart-civ to set civilizations when quickstarting.
Put the AI memory heap back to 32 MB to avoid OOM errors with numerous
AIs in late game.
Fix a bug that made ProductionQueue not broadcast progress.
Fix many issues with Aegis in defense, pathfinding, foundation
construction, training building choice, strength calculations, building
placement and mostly attack. Aegis should be much more aggressive.

This was SVN commit r13247.
2013-03-09 14:09:06 +00:00
d76f570a69 Fix the defense system (it now works as expected, that doesn't mean well). Fix a bug in dropsite placement that caused AIs to go awry. Slight changes here and there to the strategy. Optimizations when running many workers at once. Fix some pathfinding not working. Units in attack plans should be slightly less dumb.
This was SVN commit r13242.
2013-03-07 21:33:57 +00:00
081721c679 Fix the build and stops the AI from creating tons of AI dump images for no good reason.
This was SVN commit r13231.
2013-03-06 14:33:15 +00:00
a45a926aeb Fix an issue that caused a crash on serialization. Prepare the AI manager a little more for serialization.
Fix bugs with tests. Fix some other issues in the AI (attack plans deal
with walls better, choose better paths, target selection is better. Dock
building won't be tried hundreds of times if it fails.)
Changes the Oasis random map to only put a path in the middle 50% of the
time.

This was SVN commit r13230.
2013-03-06 11:52:41 +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
9fa7273c2c Backport from API v3 to API v2 that should fix a bug happening with sheeps. fixes #1754
This was SVN commit r13012.
2012-12-23 10:31:39 +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
232dee5a9c Don't show slaughter attack in tooltips and hide the tutorial AI. Patch from zoot. Fixes #1732
This was SVN commit r12913.
2012-12-02 15:22:15 +00:00
4006a00012 Added Introductory Tutorial
Removed some buggy optimisation from common-api-v2

This was SVN commit r12853.
2012-11-12 19:55:11 +00:00
fa56c11820 Removes JuBot AI which is no longer maintained and has been superseded by qBot. The latest code will remain on Trac for reference.
This was SVN commit r12833.
2012-11-07 21:11:50 +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
6adccf3660 Hide unusable AIs from the default match setup drop-down list.
This was SVN commit r12626.
2012-09-04 07:09:36 +00:00
a972ba900d Renamed qBot-experimental to something nicer. Can easily be changed to something else.
This was SVN commit r12610.
2012-09-02 22:16:41 +00:00
0cd7da8d0d A C-style for loop is needed for this to iterate as expected.
This was SVN commit r12576.
2012-09-01 10:43:05 +00:00
2bdb8f75ff Check the length of the unit collection in started attack plans to avoid errors. Fixes #1620
This was SVN commit r12531.
2012-08-26 11:25:39 +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
af005b00b2 Added AI handling for 'resource|' pseudo-templates.
This was SVN commit r12495.
2012-08-20 18:02:56 +00:00
8256f691f4 Optimizations, and made qBot-xp destroy walls when Iberians (but not towers).
This was SVN commit r12436.
2012-08-15 09:06:45 +00:00
aa86664d8f Make sure to initialize the entity collection's cached length before modifying the actual object. Fixes #1535.
This was SVN commit r12432.
2012-08-15 01:31:53 +00:00
9e9e1e3b78 Optimize enemy watchers usage. This should avoid massive lag later in the game.
This was SVN commit r12401.
2012-08-13 08:06:20 +00:00
96534fc5ed Fix a problem with civilizations who didn't have advanced building defined.
This was SVN commit r12359.
2012-08-11 12:41:29 +00:00
226738d447 Last batch of fix for qBot-xp for the day if all goes well.
This was SVN commit r12358.
2012-08-11 10:36:39 +00:00
508994e4c8 Fix a typo.
This was SVN commit r12357.
2012-08-11 07:59:05 +00:00
dc916e7295 Fix bugs related to garrisoning, should fix the pathfinder sometimes choosing a path over water when unneeded.
This was SVN commit r12356.
2012-08-11 07:41:23 +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
36cc1766a4 General improvements to the attack plans and the defense manager. Slight econ improvements (better early game priorities, faster play, better farming, tentative to get qBot to crowd resources less, tweaking of dropsites variable). Many bugfixes, should be stable enough for alpha 11.
This was SVN commit r12283.
2012-08-05 11:19:31 +00:00
2ee61750b4 Forgot to fix a few things before committing.
This was SVN commit r12268.
2012-08-03 16:12:45 +00:00
45ee419171 Adding an experimental version of qBot. This is half a crossover with my former Marilyn bot (defense manager, attack plans) and some improvements here and there that I believe could help improve the bot.
This was SVN commit r12267.
2012-08-03 15:52:18 +00:00
c22476eee2 Check for builders that can't place foundations (e.g. Mauryan worker elephants)
This was SVN commit r12257.
2012-08-01 19:22:45 +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
vts
bb9af6da12 Requested update from quantumstate via IRC
This was SVN commit r11640.
2012-04-22 21:36:37 +00:00
d9b8df65be Some refactoring of the military qbot code.
This was SVN commit r11627.
2012-04-22 13:04:31 +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
06b342db46 Fix save/load with common-api-v2
This was SVN commit r11590.
2012-04-20 21:31:43 +00:00
b7cf51be34 Check properties exist in resourceSupplyAmount and resourceCarrying to avoid warnings. Code from wraitii
This was SVN commit r11587.
2012-04-20 19:48:25 +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
be0109331c New update. Tightens up some of the military side of things.
This was SVN commit r11583.
2012-04-20 16:53:31 +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
4b4411116f Actually committed the Filters.byOwners fix mentioned in 167cd7151e
This was SVN commit r11546.
2012-04-18 10:49:45 +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
52efb54673 Added serialize and deserialize functions to common-api-v2
This was SVN commit r11522.
2012-04-15 22:31:17 +00:00
5184edde14 New patch for JuBot
- Speeds up a lot of functionality by using persistent entity
collections, speed boost should be significant and noticeable.
- Adds defence towers covering all dropsites, with garrisons

This was SVN commit r11487.
2012-04-12 07:08:12 +00:00
25b3242ba4 Adds a "byNotOwner" filter for finding enemies, non-gaia objects, etc more easily.
This was SVN commit r11485.
2012-04-11 20:32:25 +00:00
566a4588b6 This update to JuBot transfers to the v2 SVN, and adds tower garrisoning.
This was SVN commit r11455.
2012-04-08 16:58:57 +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
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
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
e3bacd948f Adds defense tower and Romans support to JuBot, based on patch by gudo. Fixes #1152.
This was SVN commit r11191.
2012-02-28 04:26:08 +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
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
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
6399ec0cd2 # Partial support for saved games with AI.
Support cancelling loads while inside a loader callback.
Fix use of ArchiveReader/Writer since their API changed.
Improve error-detection in deserializer to avoid crashes.
Report deserializer errors to users.
Expand load-error message box to fit message about invalid saved games.

This was SVN commit r10787.
2011-12-22 14:04:32 +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
2a61188356 Stopped qBot from trying to gather floating treasures
This was SVN commit r10776.
2011-12-20 10:23:55 +00:00
436163a60f Made terrain analysis pick better starting points and increased the distance check in economy to match the changed distance measure using distance to dropsite.
Terrain analysis now only picks a start point if it is within a region
of size >10.
The economy code only does a distance check if there are >100 entities
of that resource on the map so rare resources are gathered.
Modified some debug output as well.

This was SVN commit r10773.
2011-12-19 19:41:36 +00:00
2079339a73 Added more checks in case pathfinding found no routes to a destination
This was SVN commit r10765.
2011-12-18 22:05:11 +00:00
40c1c0010f Added another check for whether a valid path is set in attackMoveToLocation
This was SVN commit r10764.
2011-12-18 13:15:15 +00:00
574c4135a3 Tweaked attack code and fixed building liimit checks
This was SVN commit r10763.
2011-12-18 13:05:53 +00:00
c8243a50dc Large qBot update.
Key changes are:
Support for Persians
Revamped defence system supoprting groups of attackers
Dynamic priorities based on enemy strength and number of workers
Better placement of towers and fortresses
Randomised raiding in early game

This was SVN commit r10755.
2011-12-17 21:59:27 +00:00
78d50b4149 Added check for the existence of a resource somewhere on the map
This was SVN commit r10742.
2011-12-16 10:46:20 +00:00
df7d3afd64 Fixed bug where only a tiny accessible region was being found so qBot didn't build or gather due to the rest of the map being inaccessible.
This was SVN commit r10721.
2011-12-12 21:28:14 +00:00
dd9ba1e10a Added check for if a position is defined in qBot. Fixes an unusual error.
This was SVN commit r10686.
2011-12-07 21:54:21 +00:00
b146f53d7b This was SVN commit r10654. 2011-12-02 12:44:31 +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
c311e8abba Improves Persian support.
This was SVN commit r10581.
2011-11-23 19:32:02 +00:00
514b22a89e Support for Persians, should all work properly. Also makes territory expansion proportionally lower priority.
This was SVN commit r10561.
2011-11-19 16:00:54 +00:00
f80f1fb86b This patch adds territory support for JuBot, which is the main thing to get it up to date for the next alpha. More advanced features are in development but some will probably have to wait until Christmas/Early 2012.
This was SVN commit r10560.
2011-11-19 13:44:56 +00:00
20df816fbc Resource building class
This was SVN commit r10559.
2011-11-19 13:42:43 +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
97d3f1cfc9 Added a squared vector function for A^2 + B^2 without the rooting, in case massively large nos of vector calculations are needed.
This was SVN commit r10528.
2011-11-13 15:56:37 +00:00
887b6633c2 Adds per-player BuildLimits data to GUIInterface.
Adds BuildLimits accessors to GameState for JuBot and Testbot.

This was SVN commit r10415.
2011-10-20 23:35:52 +00:00
a41b0e30fe Changes AI entity destroy events to maintain some data about the entity, based on patch by quantumstate. Fixes #983.
This was SVN commit r10413.
2011-10-18 22:51:04 +00:00
686ffa9758 Fixes error in AI entity. Fixes #991.
This was SVN commit r10412.
2011-10-16 17:21:37 +00:00
1c081135ad Adds territory map to AI GameState, based on patch from quantumstate. Fixes #969.
Updates testbot and Jubot to support basic build restrictions.

This was SVN commit r10408.
2011-10-16 02:55:58 +00:00
c73c0870f1 Adds attackTimes to AI entity templates. Fixes #991.
This was SVN commit r10407.
2011-10-15 23:38:58 +00:00
2a39ba2f91 Changes new AI GameState functions to accept Entity objects instead of raw entities.
This was SVN commit r10394.
2011-10-12 00:33:07 +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
47c9f6ca2d Changes IsSeaCreature to SeaCreature
This was SVN commit r10351.
2011-09-30 21:05:26 +00:00
6594a527db Another bugfix attempt
This was SVN commit r10347.
2011-09-30 17:54:04 +00:00
3a7fac7c4d Bugfix #2
This was SVN commit r10346.
2011-09-30 17:11:01 +00:00
b3d5075408 Bugfix
This was SVN commit r10345.
2011-09-30 17:03:21 +00:00
64a0a5e58a Now much more strictly restricts the game to 1 foundation at once.
This was SVN commit r10344.
2011-09-30 16:50:33 +00:00
a5a134fa87 CC building now emphasised over house building.
This was SVN commit r10343.
2011-09-30 16:43:12 +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
b40ba972c1 Adds diplomacy functions to Jubot and Testbot gamestate (eventually replace e.g. Entity.isEnemy() with these).
This was SVN commit r10339.
2011-09-28 19:40:50 +00:00
75c7028e24 Stops the builders regrouping to town centre, because this is no longer really needed.
This was SVN commit r10338.
2011-09-28 15:50:06 +00:00
3ead9f0b32 Fix to Jubot economy.js
This was SVN commit r10319.
2011-09-25 21:36:37 +00:00
a6eccb1290 Here we go...
- Gather weights change over time
- Workers are occasionally moved (about once in every 400 turns, at
random, needs to be improved)
- Workers don't go and try hunting fish and snarl up the engine.

This was SVN commit r10318.
2011-09-25 21:15:26 +00:00
bb3b52fb82 This finishes the militia recalling section - militiamen are now recalled every 30 seconds or so.
This was SVN commit r10311.
2011-09-24 16:37:31 +00:00
b9fc207437 Okay, lots of changes here. Houses are now built on demand, there's a lot of restructuring to workers, instead of a static defence force citizen soliders are drafted to a militia as needed (this needs some work still but is mostly done). Any citizen infantry given at the start of a game are used in the workforce properly now, too.
This was SVN commit r10310.
2011-09-24 15:26:11 +00:00
c3bb3ec57e Adds event data to BaseAI (so that AIs can handle being attacked, defeated, etc) based on patch from quantumstate. Fixes 972.
This was SVN commit r10306.
2011-09-23 22:02:04 +00:00
2ddd237509 This updates JuBot to use the Carthaginian faction and makes a couple of minor changes to give a fractional speed boost.
This was SVN commit r10301.
2011-09-21 18:53:36 +00:00
da94100582 Fixes Jubot mills facing the wrong direction.
This was SVN commit r10280.
2011-09-14 03:08:05 +00:00
c3075c8e5b Fixes AI building angles to face bottom right corner of the map.
Cleans up the same concept in random maps.

This was SVN commit r10275.
2011-09-13 22:51:43 +00:00
cdbd347466 Fix inconsistent function prototype (fixes #897)
This was SVN commit r9888.
2011-07-20 19:44:31 +00:00
58c33071d6 Disable unnecessary noisy AI greeting message
This was SVN commit r9779.
2011-07-07 22:18:55 +00:00
871d321050 Fix undefined property warning
This was SVN commit r9778.
2011-07-07 22:14:37 +00:00
df9270a892 Hopefullyfixeslag.
This was SVN commit r9765.
2011-07-06 18:04:30 +00:00
2763c7817d In theory, should make buildings point in the right direction.
This was SVN commit r9758.
2011-07-04 17:40:13 +00:00
4065cb1cd2 Few minor tweaks.
This was SVN commit r9750.
2011-07-03 09:43:31 +00:00
b4d0c09569 Building directions now 100% random. Can set it to a specific angle if we'd prefer, but someone needs to tell me what.
This was SVN commit r9749.
2011-07-03 08:46:30 +00:00
9a6f90b90d This was SVN commit r9739. 2011-07-02 16:57:51 +00:00
3756aaef48 This might help speed a fraction.
This was SVN commit r9738.
2011-07-02 16:49:26 +00:00
6267a61962 This was SVN commit r9737. 2011-07-02 15:32:16 +00:00
7bba760801 This was SVN commit r9736. 2011-07-02 15:29:20 +00:00
f1eb662cf6 This was SVN commit r9735. 2011-07-02 15:29:08 +00:00
8612600a13 This was SVN commit r9734. 2011-07-02 15:27:35 +00:00
65b75fbb7f Small fix, it now shuffles troops round the CC every minute or so to avoid issues with gatherers not being able to get in. Crappy way of doing it, but should solve the problem 90+% of the time.
This was SVN commit r9517.
2011-05-14 20:31:33 +00:00
03b87f9a8d Fix typo
This was SVN commit r9508.
2011-05-13 19:32:19 +00:00
126c2276cd This was SVN commit r9379. 2011-05-01 15:03:51 +00:00
02ed11ac54 Removes references to Testbot, replaces with JuBot.
This was SVN commit r9378.
2011-05-01 15:02:33 +00:00
9a125ac5a1 Fix typo
This was SVN commit r9367.
2011-04-30 15:27:27 +00:00
1dcbb02958 This fixes the error messages at game start, makes a few final weaks to training queues, and changes the first base strategy to a small raid rather than the huge 3-prong assault.
This was SVN commit r9359.
2011-04-30 11:26:32 +00:00
17eae9d92a This was SVN commit r9309. 2011-04-23 18:34:03 +00:00
daad510013 fix bug where AI would only train one unit type
This was SVN commit r9126.
2011-03-26 22:22:22 +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
08d5e7bf66 Sort AI list by name, and rename Test Bot so it's a bit clearer and is listed first
This was SVN commit r9031.
2011-03-05 16:55:58 +00:00
09cbe4f341 Disable debug messages when instantiating AIs
This was SVN commit r9014.
2011-03-04 21:50:30 +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
16a4eb36dd Various minor optimisations.
Enable SpiderMonkey method JIT in Release mode.
Add Engine.ProfileStart/Engine.ProfileStop functions for scripts.
Fix AI to clone initial entity data and shared metadata.

This was SVN commit r9003.
2011-03-03 00:16:14 +00:00
cb0e322a61 # Minor AI fixes.
Avoid script errors on Miletus.
Use pre-existing female citizens as workers.
Fix autostart.

This was SVN commit r8999.
2011-02-27 19:20:36 +00:00
0be515280b Memoize some common entity lists in AI scripts.
This was SVN commit r8963.
2011-02-21 02:14:45 +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
dd501b2a5a # Add initial basic player AI framework.
Support direct access to serializer streams, so serializers can be
nested.
Make component script "this.template" read-only.
Stop globally-subscribed component scripts receiving messages posted to
local components, to reduce out-of-sync risks.
Move pathfinder data out of entity template directory.
Fix GuiInterface deserialization.

This was SVN commit r8865.
2011-01-12 12:29:00 +00:00