8fd3fbc210
Fixes Attack.js error.
...
This was SVN commit r11892.
2012-05-20 22:51:51 +00:00
c4d6019599
Add garrison order sound and remove the old garrison sound.
...
Fix some map errors, tabs in templates and update docs.
This was SVN commit r11891.
2012-05-20 15:44:57 +00:00
f72d820cd4
Added randomized arrow positions with hit detection when the missile lands and splash damage. Fixes #18 .
...
This was SVN commit r11886.
2012-05-19 23:07:41 +00:00
68d1cf167e
Add repair order queueing to formations. Refs #592 .
...
This was SVN commit r11876.
2012-05-18 21:31:57 +00:00
e7689342f8
Implements TerritoryDecay/HealthDecayRate and Promotion/RequiredXp tech modifications.
...
This was SVN commit r11875.
2012-05-18 03:58:37 +00:00
8fba8097ce
Reverts bfb7526bcf
.
...
This was SVN commit r11874.
2012-05-17 23:24:12 +00:00
6f2b90ba70
Default starting resources decreased.
...
This was SVN commit r11853.
2012-05-12 21:31:00 +00:00
ad87febd25
Improve gathering behaviour if the target is exhausted.
...
This was SVN commit r11827.
2012-05-10 22:02:59 +00:00
bfb35a6484
Add SetNextStateAlwaysEnter() function to reload a state when switching to it from itself. Fixes #1395 .
...
This was SVN commit r11824.
2012-05-10 21:14:43 +00:00
89821855c7
Check that a nearby resource has >0 resources left. Fixes #1395 .
...
Also added a check to TechnologyManager to see if player is defined.
This was SVN commit r11806.
2012-05-09 21:32:21 +00:00
f2515bec84
Fix some whitespace in scripts
...
This was SVN commit r11803.
2012-05-09 12:14:22 +00:00
a0f122bfd4
Fix #1394 (UnitAI FSM serialization error).
...
Replace evil eval/uneval with deepcopy.
This was SVN commit r11802.
2012-05-09 12:10:01 +00:00
ddd3e702d5
Fixes units ignoring player orders in most stances by expanding the concept of "forced" orders.
...
Documents more functions of UnitAI.
This was SVN commit r11798.
2012-05-08 23:00:14 +00:00
a40a12e794
Typo
...
This was SVN commit r11777.
2012-05-06 21:21:04 +00:00
8f762b8248
Fix error caused by e8cb2a71da
. Refs #1220 .
...
This was SVN commit r11776.
2012-05-06 21:17:29 +00:00
e8cb2a71da
Fix floating units when a building they were tasked to construct finishes while they're still en-route, based on a patch by mattlott.
...
This was SVN commit r11775.
2012-05-06 14:38:03 +00:00
3be4eb44fa
fix global from commit c4efc223ed
...
This was SVN commit r11763.
2012-05-05 21:29:36 +00:00
c4efc223ed
Don't serialize the technology modifications cache. Fixes #1384 .
...
This was SVN commit r11761.
2012-05-05 21:21:36 +00:00
490182ddd0
Wall placement. Closes #786 .
...
This was SVN commit r11760.
2012-05-05 19:22:22 +00:00
0463068947
Adds more checks for tech manager before using it. Refs #1377 .
...
This was SVN commit r11751.
2012-05-04 22:51:14 +00:00
a5713c1264
Try to fix tech error. Refs #1377 .
...
This was SVN commit r11749.
2012-05-04 18:13:23 +00:00
58836c624a
Read formations from civ JSON files. Fixes #1234 , #601 .
...
This was SVN commit r11735.
2012-05-03 23:32:10 +00:00
825e1ec7a3
Allow replace with 0.
...
This was SVN commit r11726.
2012-05-03 18:03:57 +00:00
d68d8cdee1
Added "class": "Foo", "number": 5 technology requirement
...
This was SVN commit r11724.
2012-05-02 20:31:25 +00:00
89978332de
Fixes tests.
...
This was SVN commit r11718.
2012-05-01 23:58:03 +00:00
fc47098743
Implements TerritoryInfluence/Radius tech modification. Adds C++ interface for TechnologyManager. Renames its message to MT_TechnologyModification defined in TypeList.h. Refs #1357 .
...
This was SVN commit r11711.
2012-05-01 22:44:27 +00:00
d4347a8466
Add Preferred and RestrictedClasses, based on patch by Zsol. Fixes #1144 .
...
This was SVN commit r11710.
2012-05-01 22:20:08 +00:00
bfb7526bcf
Fixes bug in tech modifications ("affects" was ignored in some situations).
...
This was SVN commit r11705.
2012-05-01 05:56:53 +00:00
68638a92b8
Updates TakeDamage to apply tech modifications.
...
This was SVN commit r11703.
2012-04-30 20:39:27 +00:00
363ac861de
Stop dead sheep from walking
...
This was SVN commit r11702.
2012-04-29 22:20:25 +00:00
d03d36b1f3
Add attack ability to outposts.
...
Fix a issue with dying units with stance standground.
This was SVN commit r11697.
2012-04-29 18:43:10 +00:00
2f5b81a37e
Fix broken test.
...
This was SVN commit r11695.
2012-04-29 17:39:16 +00:00
b3ef24b12d
Change gathering behaviour to fix #1353 , based on patch by mattlott.
...
This was SVN commit r11689.
2012-04-28 19:25:44 +00:00
21caaa4573
Fixes some bugs in tech modifications relating to data types. Explicitly convert template data to numbers before calling ApplyModifications (using + operator).
...
This was SVN commit r11685.
2012-04-27 23:06:40 +00:00
eda4c082fd
Add tech support to BuildingAI, GarrisonHolder and Builder.
...
This was SVN commit r11682.
2012-04-26 21:58:05 +00:00
e6641ad14f
Make some healer modifiable by techs. Refs #1357 .
...
This was SVN commit r11679.
2012-04-26 20:11:18 +00:00
4f905584c9
Clarify tech pairs. Refs #1356 .
...
This was SVN commit r11669.
2012-04-25 17:02:41 +00:00
c6291403bd
Fixed some javascript things because the names of the phases were changed. Changed thickness of mine selections.
...
This was SVN commit r11647.
2012-04-23 00:36:06 +00:00
0d81325cc7
Fixed Attack and Armour bug by removing Armour/All and Attack/.../All technology modifications.
...
This was SVN commit r11625.
2012-04-22 10:53:38 +00:00
34fc883317
Pretty unit selection overlay rings. Fixes #824 .
...
This was SVN commit r11623.
2012-04-22 04:04:02 +00:00
5ceea39a59
Added technology pairs.
...
This was SVN commit r11609.
2012-04-21 21:40:07 +00:00
03f04e54fc
Fix garrisoning issue.
...
This was SVN commit r11607.
2012-04-21 20:12:52 +00:00
96549e0418
Modified caching behavior to work similarly to how k776 suggested. Also added modification level affects as also suggested by k776.
...
This was SVN commit r11604.
2012-04-21 16:37:35 +00:00
3e3a8d5414
Fix error when no items of a class exist and that class is used for techology requirements.
...
This was SVN commit r11598.
2012-04-21 10:55:02 +00:00
03d625dd2e
Added tech modification for carrying capacity and fixed warning for min range
...
This was SVN commit r11588.
2012-04-20 20:37:12 +00:00
ed6e5bdaf0
Fixed phase detection in GUIInterface and added Armour and Attack tech modification.
...
This was SVN commit r11586.
2012-04-20 19:47: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
ba17009767
Deposit resources when garrisoned in a dropsite. Patch by MattDoerksen. Fixes #1124 .
...
This was SVN commit r11571.
2012-04-19 20:34:59 +00:00
131d5eb88f
Tweak default healer behaviour, fix a small bug.
...
This was SVN commit r11552.
2012-04-18 18:26:49 +00:00
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
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
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
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
a6d519e70f
Fix #779 differently, to avoid problems with building on top of cheering units
...
This was SVN commit r9528.
2011-05-15 23:51:51 +00:00
d5d5fd3b7d
units are not stuck on construction sites anymore. fixes #779
...
This was SVN commit r9525.
2011-05-15 20:30:54 +00:00
edd8ef2bf2
Fix units in formation blocking construction and not moving out of the way (see #779 ).
...
Make non-movement-blocking buildings (e.g. farms) not require units to
move out of the way.
This was SVN commit r9510.
2011-05-13 20:32:41 +00:00
ff7cc75055
Fixes garrisoning bug (units don't have to approach buildings in order to garrison)
...
This was SVN commit r9505.
2011-05-12 21:48:59 +00:00
ba66de2143
Fix #835 more comprehensively (the same bug affects other actions performed on nearby targets while moving)
...
This was SVN commit r9504.
2011-05-12 21:27:15 +00:00
8a434aae1b
Ensure units don't move while gathering. fixes #835
...
This was SVN commit r9501.
2011-05-11 19:34:39 +00:00
afd8a79f9c
fix #842
...
This was SVN commit r9499.
2011-05-11 16:10:40 +00:00
025a00340e
Fixes garrisoned units being found as idle (even if they are, we can't select them, so skip them instead). Fixes #844 .
...
Garrisoned units now remain in the GARRISONED state until explicitly
ungarrisoned
This was SVN commit r9498.
2011-05-11 04:05:05 +00:00
1420a229ff
Fix various position-related errors with garrisoned units.
...
Fix some formatting consistency.
This was SVN commit r9494.
2011-05-09 02:02:00 +00:00
15e4500a01
Fix tests
...
This was SVN commit r9460.
2011-05-06 17:04:32 +00:00
26de01cdd1
Adjusts unit selection behavior to account for ranks. Triple-click now selects units regardless of their rank.
...
Adds modifier hotkey to select units offscreen.
Fixes #826 .
This was SVN commit r9443.
2011-05-05 01:27:49 +00:00
16a654ccae
Fix script tests.
...
Fixes #827 .
This was SVN commit r9416.
2011-05-03 23:16:16 +00:00
a523dc48ac
Add missing file for units promotion.
...
This was SVN commit r9395.
2011-05-02 17:42:48 +00:00
7499b23991
Units promotion. Closes #697 .
...
This was SVN commit r9391.
2011-05-02 15:03:01 +00:00
bfd6614b55
# Add support for many formation shapes, based on patch from Badmadblacksad.
...
See #13 .
This was SVN commit r9385.
2011-05-01 20:40:53 +00:00
7ed6a164ba
Idle worker button now cycles through Worker, Trade, and CitizenSoldier classes in that order (then by increasing entity ID). Fixes #209 .
...
This was SVN commit r9349.
2011-04-29 18:09:07 +00:00
d03559f2c9
Add dust particles on under-construction buildings, varying based on number of active builders.
...
This was SVN commit r9175.
2011-04-06 00:11:40 +00:00
6d3d93c355
# Add idle worker button, based on patch from veprbl.
...
Fixes #744 .
This was SVN commit r9140.
2011-04-01 18:00:04 +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
4261983c9d
Fix reveal map checkbox after winning
...
This was SVN commit r9040.
2011-03-06 02:29:07 +00:00
6f9da85d9f
Improve performance of full state hash computation, by skipping script components that are known to have no data.
...
Switch to much quicker (and less comprehensive) per-turn hashing in
multiplayer games.
This was SVN commit r9036.
2011-03-05 22:30:32 +00:00
20ebaa5b79
Fix units getting stuck inside foundations
...
This was SVN commit r9035.
2011-03-05 22:18:29 +00:00
22e16e4554
Make builders look for nearby foundations to help with, once they finish their own building
...
This was SVN commit r9032.
2011-03-05 17:38:15 +00:00
c0383ffc30
Fix units not auto-gathering after a group is given a construction order
...
This was SVN commit r9030.
2011-03-05 15:56:24 +00:00
e6ebfa2ab9
Fix tests
...
This was SVN commit r9016.
2011-03-04 23:22:09 +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
bec4c6437b
Make non-combat units flee when under melee attack, and not attack enemies automatically.
...
Fixes #703 .
This was SVN commit r9010.
2011-03-04 14:36:41 +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
18b317bc19
# Improve animal AI, based on patch from Badmadblacksad.
...
Fixes #563 .
This was SVN commit r8995.
2011-02-27 13:34:22 +00:00
f4f36af852
Block new buildings being placed on top of existing not-yet-started foundations. Fixes #740 .
...
This was SVN commit r8980.
2011-02-24 21:49:24 +00:00
a1ef809904
Fix error when returning resources before having ever collected any
...
This was SVN commit r8904.
2011-02-10 23:09:28 +00:00
78e174af7d
Fix auto-gathering after constructing fields.
...
Fix building on top of animal corpses.
Fix builders getting in the way of their own building.
This was SVN commit r8900.
2011-02-10 19:50:08 +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
aaef1b0d74
Add script for generating mostly-useless component interaction graphs.
...
Fix some components to use more standard syntax.
This was SVN commit r8857.
2011-01-07 20:31:48 +00:00
5e3049f6b2
BuildLimits. Needs some configuration changes to work
...
This was SVN commit r8836.
2010-12-11 23:19:17 +00:00
549a4fc51a
Garrisoning bug fixes
...
This was SVN commit r8821.
2010-12-08 20:12:24 +00:00
e853dd1079
Display "garrisoned" prop on buildings containing units
...
This was SVN commit r8817.
2010-12-08 19:03:57 +00:00
f04c2561b7
Various resource shuttling improvements. Fixes #672 .
...
This was SVN commit r8811.
2010-12-08 16:12:04 +00:00
238925f927
Minor garrisoning related tweaks
...
This was SVN commit r8778.
2010-12-03 20:25:21 +00:00
c09d6dcb83
Added garrison & repair button on the unit's command panel
...
This was SVN commit r8756.
2010-12-01 03:01:17 +00:00
a58e7cfb4c
Fix call to renamed function
...
This was SVN commit r8754.
2010-11-30 15:39:48 +00:00
ab186c2b16
Update UnitMotion logic, to partially simplify it.
...
Do all pathfinding asynchronously.
Recalculate paths when the target has moved.
Fix vertex pathfinder start point heuristic, to avoid finding
zero-length paths.
When units fail to reach a resource to gather, look for another resource
of the same type.
This was SVN commit r8751.
2010-11-30 12:31:54 +00:00
e509887341
Complain better about invalid player IDs.
...
This was SVN commit r8749.
2010-11-30 12:27:38 +00:00
f378a63d94
Add some tests for UnitAI.
...
Fix said tests for UnitAI.
Hopefully fix #647 too.
Document HFSM interface a bit.
Add Engine.DumpSimState() console command for debugging.
This was SVN commit r8681.
2010-11-22 20:12:04 +00:00
e4d356c3bf
Map exploration counter for summary screen
...
This was SVN commit r8679.
2010-11-21 19:42:26 +00:00
333492b4a9
Add SetInterval to Timer.
...
Add tests for Timer.
This was SVN commit r8678.
2010-11-21 19:27:53 +00:00
fe5c7cb978
Buildings now target units randomly. Firing interval also made random
...
This was SVN commit r8677.
2010-11-21 18:41:13 +00:00