1
0
forked from 0ad/0ad
Commit Graph

17062 Commits

Author SHA1 Message Date
09e974e1cb Bump year number of files changed this year in the license headers.
This was SVN commit r19503.
2017-05-01 14:28:22 +00:00
bb81905245 Add text linting to Arcanist.
This introduces a .arclint file used by Arcanist to run a handful of
checks on patches submitted to Phabricator. To keep it portable and
avoid annoying contributors, most of the linting will happen through
Jenkins. This commit uses built-in text linting that checks trailing
whitespace and end of files.

Reviewed By: leper
Differential Revision: https://code.wildfiregames.com/D6
This was SVN commit r19502.
2017-05-01 14:26:50 +00:00
0a09bde961 JS lobby cleanup.
Hide chat input and disable buddy toggle button upon disconnect.
Imrpove user profile fetching code readability, move and merge code from
XML.

Differential Revision: https://code.wildfiregames.com/D396
Reviewed By: Vladislav
This was SVN commit r19501.
2017-05-01 13:36:10 +00:00
b22b58f13d Fix scenario .rnc/.rng validation errors.
Patch by vladislavbelov
Differential Revision: https://code.wildfiregames.com/D391
This was SVN commit r19500.
2017-05-01 10:26:36 +00:00
08c40e23db fix error when civData has no music (as gaia), fixes #4538
This was SVN commit r19499.
2017-05-01 10:03:15 +00:00
6ee830068a Print the name of OpenGL errors when they occur.
Patch by vladislavbelov
Differential Revision: https://code.wildfiregames.com/D313
This was SVN commit r19496.
2017-05-01 07:19:39 +00:00
ba5ab40c66 Fix lineendings, two missing semicolons and a string fix.
This was SVN commit r19494.
2017-05-01 05:08:00 +00:00
d7b5f28fad Don't save an empty string to the user config if the lobby buddy list is empty, since ConfigDB doesn't support empty strings.
Differential Revision: https://code.wildfiregames.com/D393
Reviewed By: causative, Vladislav
Refs #3990

This was SVN commit r19492.
2017-05-01 04:59:04 +00:00
37da3b008a Translate the Out-Of-Sync error message and send it to the JS GUI for convenience and future extension.
Add a hint that multiplayer games with AI are currently not supported.

Differential Revision: https://code.wildfiregames.com/D105
Reviewed By: leper
Refs #3858

This was SVN commit r19491.
2017-05-01 04:55:56 +00:00
7d6bfe27ab Clean up FromJSProperty a little. Patch by Vladislav.
Differential Revision: https://code.wildfiregames.com/D399
This was SVN commit r19489.
2017-05-01 00:58:35 +00:00
c14a7a0b0b Builder component tests and some cleanup. Patch by Stan.
Reviewed By: leper, bb
Differential Revision: https://code.wildfiregames.com/D99
This was SVN commit r19488.
2017-05-01 00:44:08 +00:00
2ad6dc478c JS l10n cleanup.
Remove unneeded variable creation and duplicate comments, simplify
isTranslatableString and capitalize globals.

Differential Revision: https://code.wildfiregames.com/D390
Reviewed By: leper
This was SVN commit r19487.
2017-05-01 00:09:13 +00:00
234aa36b25 Update the documentation on how to write simulation components.
Mention how to handle const methods (be1a205f91, D75).
Note that parameters are passed as const references (1a66f510d0).
Also remove mention of jsval (which is deprecated).

Reviewed By: wraitii
Differential Revision: https://code.wildfiregames.com/D374
This was SVN commit r19484.
2017-04-30 23:48:54 +00:00
ecaa8434b1 Cinematic path node moving tool for Atlas. Patch by Vladislav.
Differential Revision: https://code.wildfiregames.com/D369
This was SVN commit r19483.
2017-04-30 23:47:16 +00:00
bbf7321ec0 Use the slider for the number of shader graphics setting.
Thereby remove the only hardcoded reference of options.json from
options.js.
Rename Gain to Volume, refs #4039.

Differential Revision: https://code.wildfiregames.com/D398
Reviewed By: Vladislav
This was SVN commit r19482.
2017-04-30 21:51:00 +00:00
0ab4660e83 Fix Iberian Sandbox map that was flooded after some change after Alpha 19 before Alpha 20.
Reported by cc, patch accepted by wraitii.

This was SVN commit r19481.
2017-04-30 17:35:30 +00:00
c016a74309 Add sliders to the GUI. Use them for the sound/music volume controls.
Patch by vladislavbelov, based on a patch by dpiquet.

Fixes #4039.
Differential Revision: https://code.wildfiregames.com/D325
This was SVN commit r19479.
2017-04-30 16:51:18 +00:00
ca90b3b22a Nerf briton hero Cunobelin.
Differential Revision: https://code.wildfiregames.com/D395
Reviewed By: fatherbushido
Discussed with: Grugnas, causative, Hannibal_Barca, borg-

This was SVN commit r19478.
2017-04-30 16:18:13 +00:00
b5afc040ef Catafalque aura finetuning and some string fixes reported on transifex.
Buff Athenian and Persian catafalque, fix Gaul and Spartan catafalque,
nerf Iberian catafalque.

Differential Revision: https://code.wildfiregames.com/D331
Patch By: Hannibal_Barca and translators
This was SVN commit r19477.
2017-04-30 16:08:26 +00:00
1235b0b8fe Nerf Iberian fireships as they are much cheaper than garrisoned WarShips, easier to spam and destroy docks 5 times faster.
Double decay rate, so that the lifespan becomes 1min 23sec instead of
the original 2min 46sec.
Increase train time form 20 to 30.
Increase cost from 200 wood to 300.

Differential Revision: https://code.wildfiregames.com/D388
Numbers By: Hannibal_Barca
Reviewed By: fatherbushido
Discussed with: causative, Grugnas and scythetwirler

This was SVN commit r19476.
2017-04-29 20:00:44 +00:00
7f573cb86d Move lobby chat commands in a global object and add /help command to explain the usage on these commands.
Differential Revision: https://code.wildfiregames.com/D323
Based on patch and reviewed by: Vladislav
This was SVN commit r19475.
2017-04-29 18:58:56 +00:00
5a4cbc9261 Move CinemaManager includes forgotton in 5d49e6c456 to the right place, thus fixing the build without precompiled headers.
Refs https://code.wildfiregames.com/D385
Reported by: leper
Fix proposed by: Vladislav
This was SVN commit r19473.
2017-04-29 18:08:06 +00:00
a8ac5ccede Add support for resource descriptions and display them in the tooltip of the resource counts shown in the top panel.
Differential Revision: https://code.wildfiregames.com/D199
Proposed and tested by: wowgetoffyourcellphone
This was SVN commit r19472.
2017-04-29 17:57:10 +00:00
185261275f Fixed lost selection in the load game page. Patch by Vladislavbelov
Summary: When delete a selected row, selection didn't appear after
10b49f9c18.

Reviewed By: mimo
Differential Revision: https://code.wildfiregames.com/D392
This was SVN commit r19471.
2017-04-29 16:42:12 +00:00
53eed3b50d Restore selected mod and fix reset button in the mod selection screen.
Differential Revision: https://code.wildfiregames.com/D312
Fixes #4397
Patch By: Vladislav
This was SVN commit r19470.
2017-04-29 01:54:44 +00:00
2d999a746e Actually stop connecting to the lobby if the user cancelled the login.
Fixes #4438
Patch By: sbirmi
This was SVN commit r19469.
2017-04-29 00:03:41 +00:00
41d4649c6d Remove unused, deprecated SendGetGameList from the lobby.
Differential Revision: https://code.wildfiregames.com/D389
Reviewed By: scythetwirler
Refs D207

This was SVN commit r19467.
2017-04-28 23:22:41 +00:00
a227a7f45b Remove optional arguments from randFloat, since the function can be called from the simulation and that should explicitly specify arguments if the defaults aren't entirely self-evident.
Make a lot of calls easier to read.

Differential Revision: https://code.wildfiregames.com/D372
Patch By: bb
Refs #4326 D121

This was SVN commit r19464.
2017-04-27 14:57:21 +00:00
e6a0c7ae77 Remove SendGetRatingList lobby function which is deprecated and ignored serverside since 1a15131d2d because it caused performance issues and therefore shouldn't be used anymore.
Fixes #4151
Patch by: sbirmi
This was SVN commit r19463.
2017-04-27 11:42:51 +00:00
b9583aefb7 Sort aura templates into a more clear directory structure.
Differential Revision: https://code.wildfiregames.com/D288
Reviewed By: bb
This was SVN commit r19462.
2017-04-26 21:14:16 +00:00
72d4f41467 Fix beach painting on the Corsica vs Sardinia map that broke everything on tiny sizes.
Differential Revision: https://code.wildfiregames.com/D384
Fixes #4531
Reviewed By: bb
This was SVN commit r19461.
2017-04-26 20:35:08 +00:00
8cb4551051 Add asian elephant infant template and use it for the India map.
Differential Revision: https://code.wildfiregames.com/D376
Reviewed By: Hannibal_Barca
This was SVN commit r19460.
2017-04-26 20:30:00 +00:00
42759d94a2 petra should be less demanding when low resources available if it already starts with a market
Summary: as the title say. In addition, with the patch, it can already
use the available market at phase 1 while before, it waited for phase 2.

Checked by Sandarac and elexis

Differential Revision: https://code.wildfiregames.com/D349
This was SVN commit r19459.
2017-04-26 18:29:36 +00:00
d57e3cd743 Sort and update help list of category build and training restrictions. Reviewed by elexis.
Differential Revision: https://code.wildfiregames.com/D386
This was SVN commit r19458.
2017-04-26 13:54:41 +00:00
f399e68654 Fix the lobby bot following the entity class rename in ad17e320be
Differential Revision: https://code.wildfiregames.com/D383
Patch By: user1
Refs #4536 D244

This was SVN commit r19457.
2017-04-25 16:53:42 +00:00
40d219f342 Add Spartan team bonus. Patch by Grugnas.
Differential Revision: https://code.wildfiregames.com/D382
This was SVN commit r19456.
2017-04-25 14:30:40 +00:00
9f8e1eb59d Add UnitAI CanPatrol boolean property to selectively disable patroling for some units, in particular animals, traders, fishing ships and female citizens.
Differential Revision: https://code.wildfiregames.com/D192
Reviewed By: Vladislav
This was SVN commit r19455.
2017-04-25 11:22:41 +00:00
d1dae4fa12 Fix a rare map generation bug on India occuring if the map decided to place a stone mine one tile too far at the map border.
Refs https://code.wildfiregames.com/D363

This was SVN commit r19454.
2017-04-25 11:07:41 +00:00
24e51f96eb Remove useless terrain painting that is overwritten with the paintTerrainBasedOnHeight calls following that.
Prevent rare resource collision of the starting trees with the civic
centers.

Refs https://code.wildfiregames.com/D363

This was SVN commit r19453.
2017-04-25 10:46:50 +00:00
e3daa35075 force the eject when renaming a garrisoned entity, fixes #4532
This was SVN commit r19452.
2017-04-24 20:38:39 +00:00
03d4606416 Don't try to get capture points and add capture bar of a destroyed entity in StatusBar. Reviewed by Sanderd17.
Differential Revision: https://code.wildfiregames.com/D360
This was SVN commit r19451.
2017-04-24 19:31:17 +00:00
b4aaa63508 Add tests to Barter component. Replace constants by prototype attributes in Barter component. Patch by Stan.
Differential Revision: https://code.wildfiregames.com/D377
This was SVN commit r19450.
2017-04-24 10:18:57 +00:00
738a0651cf Reveal the map on the wall demo map (so that it isn't entirely nor partially invisible independent of the selected gamemode and ownership).
Fixes #4535
Reviewed By: sanderd17
This was SVN commit r19449.
2017-04-23 19:32:34 +00:00
46a5b0c83f Remove duplicated, unused, leftover wall templates and actors. Fix the related references. Patch by Grugnas. Reviewed by s0600204.
Differential Revision: https://code.wildfiregames.com/D342
This was SVN commit r19448.
2017-04-23 17:56:57 +00:00
a6fce141b0 Random map script India.
Differential Revision: https://code.wildfiregames.com/D363
Patch By: Hannibal Barca
Refs #4354

This was SVN commit r19447.
2017-04-23 02:02:44 +00:00
ec58e50a09 Remove a duplicate TechnologyManager getter introduced by e33d4a52e9.
Differential Revision: https://code.wildfiregames.com/D373
Patch By: Polakrity
This was SVN commit r19446.
2017-04-23 00:30:24 +00:00
51d189c767 Display a chat notification if an ally has reached a new phase, optionally also if started or aborted.
Remove the equivalent AI chat notifications.

Differential Revision: https://code.wildfiregames.com/D354
Patch By: Polakrity
Fixes #3512

This was SVN commit r19445.
2017-04-23 00:00:14 +00:00
8f36ca47a1 Replace input.js doubleclick hack and ease doubleclicking on moving units.
Differential Revision: https://code.wildfiregames.com/D326
Patch By: causative
Refs #4414

This was SVN commit r19444.
2017-04-22 01:24:03 +00:00
175cded64a Replace deprecated randInt calls (besides those in the Unknown maps).
Differential Revision: https://code.wildfiregames.com/D278
Patch By: bb
Refs #4326

This was SVN commit r19443.
2017-04-21 21:45:00 +00:00
9027a46112 Fix player assignments, few ungatherable trees on Corinthian Isthmus (4) and place another lighthouse on the other side of the river for fairness.
Differential Revision: https://code.wildfiregames.com/D350
Patch By: Stan
This was SVN commit r19442.
2017-04-21 12:56:04 +00:00