Commit Graph

231 Commits

Author SHA1 Message Date
539b4d8372 Remove an old, useless and possibly broken call.
This was SVN commit r16133.
2015-01-09 16:59:01 +00:00
5cf2086a33 Fix the initial exploration of territories, which shouldn't be performed in Atlas.
Also clean up the code a bit.

Fixes #2969

This was SVN commit r16129.
2015-01-08 22:36:13 +00:00
4243433f94 Use a gaia specific player entity.
Fix some code that assumed components exist instead of testing for them.
EntityLimits and TechnologyManager are not needed for gaia and will be
removed in the future.

This was SVN commit r16119.
2015-01-07 20:33:19 +00:00
01fb25fdab Fix variable name.
This was SVN commit r16117.
2015-01-07 19:52:33 +00:00
045fea23aa Properly adjust Atlas for the init changes.
This was SVN commit r16112.
2015-01-03 17:42:42 +00:00
a472944689 Clean up LoadPlayerSettings.
Include gaia to make iteration easier.
Add TemplateExists() to the TemplateLoader. Refs #2877.

This was SVN commit r16099.
2015-01-01 23:10:24 +00:00
9329506e0d add support for civ specific player template, see #2877
This was SVN commit r16092.
2014-12-31 09:31:41 +00:00
354bd8b088 Only delete/create players until the needed number is reached. Patch by trompetin17. Fixes #1953.
Previously we removed all players and created them anew. This caused
issues in Atlas,
as some components were recreated, but did not get informed about
already existing
entities (eg cmpTechnologyManager). By only creating/deleting players
until we obtain
the new number of players we do not have this issue.

This was SVN commit r16080.
2014-12-29 17:33:39 +00:00
286112e0aa Fixes #2937. Thanks to Lion_Kanzen and Pureon for making icons.
This was SVN commit r16064.
2014-12-25 05:12:39 +00:00
1430efa9d6 Properly handle auto-research promotion techs at game start.
This was SVN commit r16009.
2014-11-25 22:47:02 +00:00
04343a8407 Fix a comment written too quickly
This was SVN commit r16005.
2014-11-23 21:47:15 +00:00
f90841cf78 add a very-easy level for AI, addresses #2899
This was SVN commit r15990.
2014-11-18 21:21:21 +00:00
f88ee2766e use by default a random seed for the AI to make it less repetitive
This was SVN commit r15973.
2014-11-16 19:53:29 +00:00
7dad37c78f Some cleanup. Fix a comment.
This was SVN commit r15928.
2014-11-05 00:22:14 +00:00
1f8cd485d4 fix translation of ai chat messages (allowing for parameters)
This was SVN commit r15865.
2014-10-14 18:58:41 +00:00
3df4799dea enable test on tech for AI
This was SVN commit r15853.
2014-10-12 19:55:15 +00:00
809189d953 Fixes "quit" command and GUI notification for AI debugging, fixes #2755
This was SVN commit r15758.
2014-09-16 02:50:49 +00:00
611d20016a fixes error with GetPosition2D called while out of world
This was SVN commit r15694.
2014-08-30 17:03:04 +00:00
6942edb788 Fix a misplaced block of code from ea78d97989 that caused Atlas to show errors at startup.
This was SVN commit r15685.
2014-08-27 12:30:29 +00:00
b2d07d5e5a complete 2f1d143dc2 for moveAttack in rallyPoint + some cleaning
This was SVN commit r15682.
2014-08-26 19:35:43 +00:00
ea78d97989 Explore the map inside a player's territory border at the beginning of a game.
Also handle properly the "Explore Map" option with the new fogging
system.

Fixes #2709

This was SVN commit r15681.
2014-08-26 10:01:04 +00:00
2f1d143dc2 give possibility to choose type of targets in moveAttack, fixes #2740
This was SVN commit r15671.
2014-08-24 11:51:03 +00:00
f7e591c9f2 Hide changes to buildings in the fog-of-war.
To achieve this, mirage entities are created per player, to replace the
real entities when these ones fall into the fog-of-war. These mirage
entities are created on-the-fly, and destroyed when they get back in
sight.
This depends heavily on the VisibilityChanged message added in
2174eaaeee.

As a temporary adjustment, territories do not explore the map anymore
when their borders change. See #2709.

Fixes #599

This was SVN commit r15612.
2014-08-04 22:49:19 +00:00
bfe1e9f182 fix #2603
This was SVN commit r15548.
2014-07-22 21:23:25 +00:00
404e808ed5 Add yes-no dialog and general dialog code to present choices to players. Can be used by triggers.
This was SVN commit r15480.
2014-07-02 14:48:22 +00:00
fd91398a95 Petra: fix the fix preventing the AI to be stuck trying to produce unavailable units
This was SVN commit r15465.
2014-06-29 19:16:18 +00:00
5509e8e51c This shouldn't have been comitted
This was SVN commit r15438.
2014-06-24 11:09:04 +00:00
006bf42809 Fix segmentation fault in the sound destructor. Happened when the sound file doesn't exist. Errors are shown by other code.
This was SVN commit r15437.
2014-06-24 11:07:39 +00:00
17c473f2f3 Add a trigger to the gallic fields map + fix a typo.
This was SVN commit r15429.
2014-06-23 18:12:51 +00:00
9f47ed536d Add engine support to triggers + a component to provide an easy interface and to be extended by triggers. Thanks to SpahBod for the biggest part of the code, and Yves for the review.
This was SVN commit r15421.
2014-06-23 13:42:59 +00:00
81d1f5f71f Clean up notifications. Merge the timed and untimed text notifications, allow passing a list of players to all notifications, make modification types moddable. Refs #52
This was SVN commit r15394.
2014-06-19 14:37:08 +00:00
1142fc55ca Clean up Commands.js a bit.
This was SVN commit r15344.
2014-06-13 16:16:25 +00:00
791eba9451 Fix Splash damage calculation. Patch by falsevision. Fixes #2623
This was SVN commit r15329.
2014-06-11 14:02:02 +00:00
57a7bbcb90 fix javascript warning
This was SVN commit r15324.
2014-06-10 13:34:49 +00:00
91a511560c remove code dupplication for dock angle computation
This was SVN commit r15312.
2014-06-08 16:00:00 +00:00
b6870bf415 Move the extraction of the classes from templates to the global scripts, and let the AI use it to reduce redundancy.
This was SVN commit r15280.
2014-06-04 08:42:48 +00:00
7105dabca7 fix failing unit training in Aegis and Petra
This was SVN commit r15243.
2014-05-29 20:18:29 +00:00
e0218fff8d New final fix?
This was SVN commit r15242.
2014-05-27 14:54:51 +00:00
7c39259ee5 Now I should get it right
This was SVN commit r15241.
2014-05-27 14:00:21 +00:00
5762721b09 Strange how I'm able to make that many mistakes
This was SVN commit r15240.
2014-05-27 13:42:04 +00:00
82db905b8e Fix previous commit
This was SVN commit r15239.
2014-05-27 12:32:57 +00:00
3413dc84a1 make it possible for mods to add new unit commands
This was SVN commit r15238.
2014-05-27 11:17:29 +00:00
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
ea334e3716 Fix class counting
This was SVN commit r15201.
2014-05-22 16:20:36 +00:00
ac1a9bf8d1 Clean up class parsing + add visible classes to be displayed in the GUI without adding them separatedly to our tooltips
This was SVN commit r15195.
2014-05-22 10:20:02 +00:00
f181a89c34 fixes wrong test
This was SVN commit r15115.
2014-05-05 19:22:54 +00:00
ace3269768 Fix problem with sprintf errors being thrown when the AI places structures on the wrong places, make the code more uniform. Fixes #2485
This was SVN commit r15090.
2014-05-02 10:09:53 +00:00
d4109916a3 Moved the translation of AI messages to a later point
This avoids attempts to translate messages prefixed with keywords,
such as “/team Message prefixed with a keyword”, and translates them
only after the keyword has been removed. Some keywords may hide the
message, removing the need for a translation altogether.

This was SVN commit r15027.
2014-04-27 13:33:15 +00:00
7afe0afbca Internationalized the messages of the tutorial AI
This was SVN commit r14991.
2014-04-25 03:41:01 +00:00
e1488fee56 Add an 'explore map' option to the game setup.
This was SVN commit r14931.
2014-04-14 19:52:49 +00:00