Commit Graph

321 Commits

Author SHA1 Message Date
13281e230d Handle updates for foundation progress, resource carrying and resource supply amount for AIProxy. Fixes #1327
This was SVN commit r11547.
2012-04-18 11:30:28 +00:00
46bf2cac22 Fix remaining issue
This was SVN commit r11539.
2012-04-17 21:05:01 +00:00
c56f96040e Implement healing. Fixes #999.
This was SVN commit r11536.
2012-04-17 20:22:13 +00:00
2312d1379a Be more robust to invalid positions
This was SVN commit r11492.
2012-04-12 22:32:58 +00:00
71a57ed3a7 Allow gathering regardless of resource owner
This was SVN commit r11478.
2012-04-10 21:09:21 +00:00
577676810b Make domestic herd animals controllable by the player
This was SVN commit r11471.
2012-04-10 16:37:34 +00:00
2dc3c36ee6 Adds the classes "GarrisonTower" and "GarrisonFortress" to more easily demarcate the buildings the AI wants to garrison for defense.
This was SVN commit r11451.
2012-04-08 12:08:21 +00:00
7ff99cc218 Prevent trade with foundations, based on patch by Spahbod, fixes #1215.
This was SVN commit r11440.
2012-04-05 22:00:15 +00:00
a5076c1eb1 Added dummy PostMessage and BroadcastMessage functions for tests
This was SVN commit r11439.
2012-04-05 14:13:36 +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
21a39dedfb Add check to prevent error when ranged attack target is destroyed
This was SVN commit r11428.
2012-04-04 20:03:04 +00:00
0d385f4112 Make selected stances and formations more obvious. Patch from leper, fixes #1190.
This was SVN commit r11386.
2012-03-21 16:45:02 +00:00
vts
7934e3ab0b Fixed missing cmpIdentity null check in Barter.js:60 (causes failure on Isthmus when territory_pull entity is iterated over). Fixes #1199.
This was SVN commit r11309.
2012-03-10 16:34:59 +00:00
4b7a5ac814 Allows garrison heal rate of "0" (disables healing).
This was SVN commit r11296.
2012-03-10 04:08:15 +00:00
d1ed264c9b Fixes stance change during garrison causing instant garrison. Fixes #1184.
Adds range check to garrisoning, with <LoadingRange> element added to
GarrisonHolder. Adds maximum range values to templates (2 for land
units/structures, 10 for ships).
Adds retry to garrison failure due to unreachable target.
Cleans up a few templates.

This was SVN commit r11292.
2012-03-09 23:33:55 +00:00
9a30da9726 Fix the trade tooltips order
This was SVN commit r11281.
2012-03-08 21:28:55 +00:00
894dc30c69 Trade. Closes #30.
This was SVN commit r11279.
2012-03-08 20:42:28 +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
06672f0001 This was SVN commit r11229. 2012-03-03 20:47:49 +00:00
acf63afeaa Fix some whitespace, and spelling, and capitalisation, and unnecessary array wrapping.
This was SVN commit r11218.
2012-03-01 23:16:01 +00:00
409f03652e Fixes animal auto-hunting by removing 10HP limit on possible targets. Units will now look for the same type of animal to hunt (matching templates).
This was SVN commit r11055.
2012-02-12 21:18:50 +00:00
b2fd7a54f0 Removes hard-coded choices from Identity.js to allow easy modification of civs, classes and formations. Note: incorrect/misspelled choices will no longer be rejected by the parser.
This was SVN commit r11043.
2012-02-10 01:59:25 +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
5919a62564 Rounds applied damages to the nearest integer.
This was SVN commit r11000.
2012-02-01 04:11:47 +00:00
7ae3d7b092 This was SVN commit r10969. 2012-01-27 21:25:08 +00:00
bab593fc6b #New audio additions, notably resource selections and ship selection and death.
This was SVN commit r10962.
2012-01-25 02:51:48 +00:00
bc76b0568e Fix healing for garrisoned units. Fixes #1098.
This was SVN commit r10882.
2012-01-07 07:13:27 +00:00
7cefd9a94c Template work.
Converted Ekdromos to swordsman.

This was SVN commit r10836.
2011-12-30 08:19:00 +00:00
dca6d41d45 Added civ support to the attack bonuses and removed unnecessary classes
This was SVN commit r10835.
2011-12-29 22:08:59 +00:00
8b511dd053 #New ATTACK BONUSES code.
This was SVN commit r10804.
2011-12-24 03:49:30 +00:00
eb5b3bba10 Fixes broken UnitAI test.
This was SVN commit r10775.
2011-12-19 23:09:38 +00:00
bfca6f0b58 Fixes UnitAI attack test for domestic animals. Fixes #1048.
This was SVN commit r10760.
2011-12-18 05:17:34 +00:00
42f0aec84a Allows setting rally points on resources and buildings. closes #745
This was SVN commit r10744.
2011-12-16 16:08:26 +00:00
vts
e62b9b6d8f Fixed rally point lines being displayed for entities with rally points no longer set. Closes #1043.
This was SVN commit r10743.
2011-12-16 15:14:59 +00:00
vts
db864f10c3 Rendering marker lines between buildings and rally points
Added command button to focus on rally point
(implements #524)

This was SVN commit r10704.
2011-12-10 07:07:04 +00:00
7f22118787 Testing some different barter values.
This was SVN commit r10681.
2011-12-06 18:25:40 +00:00
2a44e8202e Fixes tests after recent GuiInterface and UnitAI changes.
This was SVN commit r10603.
2011-11-26 01:58:39 +00:00
8cbab40137 Barter. Closes #23.
This was SVN commit r10588.
2011-11-24 15:43:32 +00:00
9489076c51 Fixes logic error in 8d977e4818.
This was SVN commit r10585.
2011-11-24 01:16:30 +00:00
8d977e4818 Allows building in fog of war. Fixes #958.
This was SVN commit r10584.
2011-11-24 00:58:34 +00:00
f8303b51c5 Fixes gathering after dropsite construction.
This was SVN commit r10579.
2011-11-23 04:59:02 +00:00
5cc856aedc Re-enables build restrictions for AIs since they have basic compliance now.
Moves target ownership checks from Commands.js to UnitAI.
Adds more robust target checking in UnitAI by calling CanFoo functions
more frequently.
Adds optional debugging mode to Commands.js (useful for AI developers).

This was SVN commit r10570.
2011-11-22 00:16:35 +00:00
27847fb078 Fixes BuildLimits init so its data serializes correctly (they should be objects not arrays).
This was SVN commit r10532.
2011-11-14 00:02:54 +00:00
5ae93ddae7 Makes AIProxy keep the garrisoned units array up to date. Fixes #1019
This was SVN commit r10531.
2011-11-13 23:23:58 +00:00
f3c21d070e Added some new classes, DropsiteFood/Wood/Stone/Metal, to help with building placement.
This was SVN commit r10523.
2011-11-13 12:12:33 +00:00
ff064aca95 Adds useful stats to training and construction tooltips, based on patch from pejuko. Fixes #872.
This was SVN commit r10518.
2011-11-12 22:23:08 +00:00
530d5216bf Fix OOS error after saving/loading
This was SVN commit r10438.
2011-10-27 17:38:44 +00:00
83955072b6 Fix typos
This was SVN commit r10420.
2011-10-23 12:26:47 +00:00
017e8d66eb Fixes GUIInterface tests.
This was SVN commit r10418.
2011-10-22 00:10:17 +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
3f3b5ee3e5 Adds player ID to PlayerDefeated message for AI usage.
This was SVN commit r10358.
2011-10-01 17:38:43 +00:00
55e9ffe294 Adds the ForestPlant class.
This was SVN commit r10353.
2011-09-30 21:12:11 +00:00
667d016c83 Changes IsSeaCreature to SeaCreature
This was SVN commit r10349.
2011-09-30 21:00:49 +00:00
d63947597c Adds new NaturalBehaviour "domestic" to UnitAI, useful for tame animals who should never flee an attacker. Fixes #971.
Renames herd_passive template to herd_domestic.

This was SVN commit r10333.
2011-09-27 18:03:58 +00:00
5fc514ab32 Adds a class called "IsSeaCreature" to identify fish for the AI.
This was SVN commit r10308.
2011-09-24 15:22:48 +00:00
c77fb0e841 In TrainingQueue changed place of PostMessage in case when all entities of current batch was spawned. Fixes #963.
This was SVN commit r10302.
2011-09-21 19:27:36 +00:00
eccf787ec8 Fix test for GuiInterface. Fixes #957.
This was SVN commit r10258.
2011-09-12 14:57:58 +00:00
0eeffd05bd Adds max player population to sim state, based on patch from quantumstate. Fixes #951.
This was SVN commit r10233.
2011-09-09 00:45:06 +00:00
81191a6ea7 Fixes garrisoned units disappearing when eject occurs too frequently. See #910.
This was SVN commit r10192.
2011-09-06 03:11:16 +00:00
1433bd9ad9 Fixes gaia animals without UnitAI (e.g. fish) blocking foundation construction, by destroying them. Fixes #936.
This was SVN commit r10153.
2011-08-31 23:41:55 +00:00
b48c35c512 After a lot of playtesting, I've adjusted the build limits on the Fortresses and Scout Towers. See if these are 'ok'.
This was SVN commit r10145.
2011-08-31 02:07:35 +00:00
07d48a5c9a Prevents gaia buildings from decaying in enemy territories.
This was SVN commit r10143.
2011-08-30 23:53:34 +00:00
1ff6d44f9e Fixes promoted entities dropping from control groups, based on patch from gruby. Fixes #859.
This was SVN commit r10140.
2011-08-30 22:29:03 +00:00
60985a3bc9 Fixes training queue behavior when spawning fails due to lack of space (the queue will be blocked). Fixes #893.
Changes training queue to support partial batch success and removal.

This was SVN commit r10081.
2011-08-23 22:43:34 +00:00
27e5581d27 Fixes Atlas player panel getting out of sync with simulation. Fixes #927.
Fixes object panel not being notified of map loading.
Fixes bug where opening a new map before using the player panel
prevented default player data being displayed for new players.
Fixes wxGTK 2.8 bug: wxChoicebook control doesn't update the choice
control when adding/removing pages.
Notifies player that deleting player in Atlas will delete all their
objects (and gives them the option).
Changes DeleteObject to DeleteObjects to support multiple selections.
Implements undo for map resize (experimental).
Removes annoying debug message from attempted undo of map settings.
Tweaks a few Atlas UI controls.

This was SVN commit r10064.
2011-08-22 21:45:39 +00:00
308cb26dd4 # Health decay for buildings not in a civ center's territory.
This was SVN commit r10034.
2011-08-18 20:28:53 +00:00
7679d1073b Fixes garrison behavior for ships - they no longer unload units underwater. See #893.
Fixes behavior when ships are destroyed (garrisoned units at the time
will also be killed).
Updates ship templates accordingly.

This was SVN commit r10020.
2011-08-17 01:43:23 +00:00
a13f38c9b4 Moves build limits counter to BuildLimits component, to avoid some weirdness with BuildRestrictions for preview entities (caused some warnings in Atlas).
This was SVN commit r10015.
2011-08-16 04:44:15 +00:00
ff85950cb7 Disables build restrictions and limits for AIs (until they can be fixed).
Simplifies player diplomacy/team setup.

This was SVN commit r10008.
2011-08-15 00:25:22 +00:00
1b8471da1f Changes shore definition to distance on land (all water included) for better dock placement.
Updates build passability classes.
Fixes tile expansion in CheckBuildingPlacement (don't use FromFloat).
Changes dock rotation snapping to search outward.

This was SVN commit r10007.
2011-08-14 23:36:13 +00:00
e51849b29f Fixes incorrect distance calculation.
Improves dock foundation snapping.

This was SVN commit r9991.
2011-08-10 23:57:54 +00:00
0adcad8662 Change promoted unit health to the same percent of hitpoints as unit had before promotion. Closes #922.
This was SVN commit r9984.
2011-08-09 18:42:21 +00:00
f378e2e651 Implements building restrictions (by terrain, territory, category, and distance). See #41. Fixes #804, #287.
Implements build limits. See #687.
Implements autorotation for dock placement.
Fixes unit spawning to consider terrain passability. See #893.
Adds new passability criteria based on distance from shore.
Updates build restrictions on some templates.
Changes unit spawning search to 4 tiles away from foundation.
Changes garrison/training spawn failure to nicer UI notification.

This was SVN commit r9970.
2011-08-06 08:11:05 +00:00
f9d7c1246d # Initial support for territories
This was SVN commit r9889.
2011-07-20 19:48:06 +00:00
68c978ea75 Additional Cretan Date Palms.
New and Updated UI Portraits.

This was SVN commit r9865.
2011-07-18 00:31:42 +00:00
bfef903c94 Adds hotkey for finding idle warriors (comma). See #792.
Updates finding idle units to be more flexible.
Resets finding idle units when unit is deselected.
Adds Warship class to relevant templates.

This was SVN commit r9791.
2011-07-10 02:11:51 +00:00
1771545a3b Stop BuildingAI picking up messages for other components' range queries
This was SVN commit r9782.
2011-07-07 23:07:36 +00:00
b6d04004b6 Avoid errors when using planes in formations, by not allowing them to join formations
This was SVN commit r9776.
2011-07-07 17:05:22 +00:00
4d188452f8 Adds ownership checks to UI selections.
Adds ownership and diplomacy checks to Commands.js (fixes #880).
Adds control all units setting to Player component (network synced).
Adds helpers for diplomacy checks - use these instead of directly
accessing diplomacy array.
Fixes tests according to these changes.

This was SVN commit r9726.
2011-07-02 00:06:39 +00:00
996a32125c Add per-player LOS-reveal flag.
Reveal LOS for Gaia and AI players (fixes #879).
Use player_id_t slightly more consistently in interfaces.

This was SVN commit r9720.
2011-06-28 23:24:42 +00:00
709260e339 Fix occasional script error with planes
This was SVN commit r9715.
2011-06-28 18:26:29 +00:00
151539a92b Fix #882 (test failure)
This was SVN commit r9714.
2011-06-28 18:25:38 +00:00
1f20444e4c Trigger 'constructed' sound when a building finishes construction
This was SVN commit r9669.
2011-06-26 18:27:10 +00:00
d89eafaf83 stances improvement and bugfixing. units now targets buildings last, after workers, and after every other units.
This was SVN commit r9663.
2011-06-26 02:03:36 +00:00
fed56af8a7 avoid trying to attack (before gathering) for ever an animal which is not visible anymore (bug not yet met because unlikely)
This was SVN commit r9661.
2011-06-25 20:56:46 +00:00
c8b0d7c11c fix a small bug related to units stances and gathering
This was SVN commit r9660.
2011-06-25 19:14:08 +00:00
8bdc1b0882 Enforces max population limit, cleans up population variables in Player component. See #862
Max population defaults to 200

This was SVN commit r9659.
2011-06-25 00:47:46 +00:00
92fcb737cd Attempt minor improvements to stances code (see #865).
Don't chase units that are no longer visible, beyond where they were
last seen (fixes #595).

This was SVN commit r9657.
2011-06-24 12:35:15 +00:00
e01917b961 Entities faces toward themself. fixed.
This was SVN commit r9632.
2011-06-17 23:08:46 +00:00
71a6775b92 Stances draft, refs #865
This was SVN commit r9631.
2011-06-17 22:13:39 +00:00
3be43ede41 Adds rotation to starting camera (currently unused)
This was SVN commit r9623.
2011-06-16 21:21:33 +00:00
3e4d74480d Adds AI control to Atlas player panel
Adds camera control to Atlas player panel
Changes map reader to handle per-player starting camera position. See
#55
Adds entity name filter to Atlas object panel
Fixes bug in Atlas map settings (caused crash when object panel was not
loaded)

This was SVN commit r9617.
2011-06-13 23:32:41 +00:00
2c58b07223 # Add experimental fighter planes.
This was SVN commit r9605.
2011-06-09 19:44:40 +00:00
7b8a33f374 Fix tests.
This was SVN commit r9603.
2011-06-09 17:15:01 +00:00
5132f814e3 Clean up some formatting and comments.
This was SVN commit r9602.
2011-06-09 17:01:01 +00:00
902b33a181 Remove redundant code for animal fleeing, and don't omit expected arguments.
This was SVN commit r9601.
2011-06-09 16:41:55 +00:00
28d952404e Improve selection details debug display.
This was SVN commit r9600.
2011-06-09 16:40:29 +00:00
24cca252e3 Ranged units always face their targets when attacking. fixes #831
This was SVN commit r9595.
2011-06-06 22:08:26 +00:00
069f567f7e check that enemy units don't leave foundations. based on patch from Stork. fixes #724
This was SVN commit r9532.
2011-05-17 20:30:21 +00:00
1fac936d68 fixes a bug related to foundations and animals corpses (previously, when an animal has already been ordered to leave a foundation once, it will not leave the construction site if you place an another building on top of it).
This was SVN commit r9531.
2011-05-17 16:26:47 +00:00