Commit Graph

17350 Commits

Author SHA1 Message Date
elexis 53c596ea41 Display chat correctly and allow opening the diplomacy manager, trade page and menu while waiting for other clients to finish the loading screen and after becoming disconnecting.
Remove unused useless related styles.

Differential Revision: https://code.wildfiregames.com/D556
Reviewed By: fatherbushido
This was SVN commit r19663.
2017-05-26 15:20:11 +00:00
elexis db0cf8d467 Arctic Summer random map script.
Differential Revision: https://code.wildfiregames.com/D465
Refs #4354
Patch By: Hannibal_Barca
This was SVN commit r19662.
2017-05-26 15:09:17 +00:00
fatherbushido 0fd12dbfe1 Update variants rnc and rng files. Reviewed by elexis.
Differential Revision: ​https://code.wildfiregames.com/D530
This was SVN commit r19661.
2017-05-26 13:20:39 +00:00
fatherbushido a789b5555d Update the xml validator tool to handle mods. Reviewed by leper.
Differential Revision: https://code.wildfiregames.com/D425
This was SVN commit r19660.
2017-05-26 12:43:58 +00:00
elexis d2c481912d Actually toggle the status bars when pressing the tab hotkey (instead of showing them for duration the key is pressed), so that less user input is required to use the feature.
Recalculate the entities on screen less often than each keyboard or GUI
tick event.

Differential Revision: https://code.wildfiregames.com/D537
Patch By: causative
This was SVN commit r19658.
2017-05-26 01:47:48 +00:00
elexis 19a635a5bc Show the number of seconds remaining instead of the percental progress in the tooltip of researched technologies and queued units.
Differential Revision: https://code.wildfiregames.com/D542
Patch By: temple
This was SVN commit r19657.
2017-05-26 01:04:55 +00:00
Imarok e40ee632a0 Intendation fix singleDetailsSelection
Reviewed by: elexis
Differential Revision: https://code.wildfiregames.com/D553
This was SVN commit r19656.
2017-05-25 22:24:38 +00:00
mimo d5dcb0c61e Petra: fix a case where the AI loose control of its units (they become only driven by UnitAI)
Reviewed By: Sandarac
Differential Revision: https://code.wildfiregames.com/D545
This was SVN commit r19655.
2017-05-25 20:26:22 +00:00
mimo a2d87af95d Petra: Send diplomacy requests to other players on occasion
On occasion Petra will request to become allies or neutral with other
players (regardless if they are an AI or not).

Patch by Sandarac

Reviewed By: mimo
Differential Revision: https://code.wildfiregames.com/D544
This was SVN commit r19654.
2017-05-25 19:22:50 +00:00
elexis 6b743e30b3 Fix typo that prevented the Disable Treasures label of the objectives dialog from showing the correct value.
Remove the double negation "Disable Treasure: Disabled".

Differential Revision: https://code.wildfiregames.com/D523
String accepted by: Sandarac
This was SVN commit r19652.
2017-05-24 16:53:36 +00:00
elexis 6606e89b99 Allow opening of the developer overlay in replay mode following 6e549bfed2.
This was SVN commit r19651.
2017-05-24 14:14:38 +00:00
elexis 8680f79d48 Display the filename of the selected replay in the replay menu to ease sharing of replays.
Differential Revision: https://code.wildfiregames.com/D495
Reviewed By: Sandarac
This was SVN commit r19650.
2017-05-24 13:53:00 +00:00
elexis b20c33221f Display the selection details tooltip immediately.
Differential Revision: https://code.wildfiregames.com/D547
Proposed and reviewed by: temple
This was SVN commit r19649.
2017-05-24 13:34:56 +00:00
elexis e32697e6a0 River Archipelago random map script.
Differential Revision: https://code.wildfiregames.com/D467
Refs #4354
Patch By: Hannibal_Barca
Description by: Phormio
This was SVN commit r19647.
2017-05-23 23:06:24 +00:00
elexis a2f167aec1 Fix tow spleling mistakes.
Differential Revision: https://code.wildfiregames.com/D498
Patch By: Phormio
This was SVN commit r19646.
2017-05-23 22:14:16 +00:00
leper a533fff883 Add a -autostart-nonvisual option. Patch by sacha_vrand. Fixes #4577.
This allows automated testing of AIs without any GUI or sound (similar
to non-visual replays).

Differential Revision: https://code.wildfiregames.com/D379
This was SVN commit r19645.
2017-05-23 19:26:33 +00:00
mimo 1bcad4698d Petra: Improve relic capturing
Patch by Sandarac

Summary: As suggested in D333, Petra should prioritize capturing gaia
relics that are within its territory.

Reviewed By: mimo
Differential Revision: https://code.wildfiregames.com/D532
This was SVN commit r19644.
2017-05-23 17:22:29 +00:00
elexis b763bae0f4 Fix a typo in the Punjab (2) skirmish map in fe6d508a82.
Differential Revision: https://code.wildfiregames.com/D538
Patch By: phormio
This was SVN commit r19643.
2017-05-23 13:04:04 +00:00
elexis 7b0f6f530c Don't translate the yet unused victory condition field sent to the lobby bot (the case since the introduction of the lobby in bffe917914).
This was SVN commit r19642.
2017-05-23 12:51:16 +00:00
elexis 6c7b0fde3d Vastly reduce the number of gamelist lobby updates sent by the 0 A.D. client (by waiting 2 seconds for the gamesettings to not change before sending an update).
An empty lobby with single client scrolling with the mousewheel through
the skirmish maps for few seconds was sufficient to delay the server
updates globally for more than 15 seconds.

Based on patch by: sbirmi
Fixes #3847

This was SVN commit r19641.
2017-05-22 15:22:27 +00:00
fatherbushido 016fa1c679 Fix xml sound files which doesn't validate. Reviewed by phormio.
Differential Revision: https://code.wildfiregames.com/D535
This was SVN commit r19640.
2017-05-22 11:07:14 +00:00
fatherbushido f83897d4b2 Fix an issue with technology modifications. Modifications for the player entity were handle by auras but not by technologies. Reviewed by mimo.
Differential Revision: https://code.wildfiregames.com/D504
This was SVN commit r19637.
2017-05-22 05:21:40 +00:00
fatherbushido 9387bcc92d Add a test for the ValueModification helper. Catch a bug when the tech affects the player entity.
This was SVN commit r19636.
2017-05-22 05:19:26 +00:00
elexis bac0652ea0 Extinct Volcano random map script with rising water.
Minimap updated by Sandarac in D344.

Differential Revision: https://code.wildfiregames.com/D229
Refs #4354
Map generation based on patch by: Hannibal_Barca
Calling it Reviewed By: bb
This was SVN commit r19635.
2017-05-22 03:47:08 +00:00
elexis bd347cad0f Fix a warning when clicking on offline players in the leaderboard following D339 / 76bc9b579a.
Fix some whitespace and missing semicolons.

This was SVN commit r19634.
2017-05-22 02:42:15 +00:00
elexis 324cb72ec1 Delete variously broken lobby spamfilter, which did not filter spammers but filtered non-spammers, conceptually can't filter in a way that all clients see the same chat messages and should instead be implemented on a serverside or moderation level.
Differential Revision: https://code.wildfiregames.com/D512
Refs #3832
Accepted By: scythetwirler
This was SVN commit r19633.
2017-05-22 02:38:26 +00:00
elexis 20a090e14b Place the previously unused arctic fox model on polar sea following D524.
Replace dead tree actors with actual trees.
Replace shark actor with actual sharks on Necropolis (should have been
done in D511).
Remove actor fish that would still be misleading on Tuscan Acropolis (4)
(the river is too small for ships).

Differential Revision: https://code.wildfiregames.com/D525
Patch By: phormio
This was SVN commit r19632.
2017-05-22 01:47:45 +00:00
elexis 3957ebf51f Option to disable garrisoning of heroes in regicide gamemode.
Accomplish this by adding a Garrisonable component that can be removed
from individual units or templates.

Differential Revision: https://code.wildfiregames.com/D104
Refs #2160
Patch By: Sandarac
This was SVN commit r19631.
2017-05-22 01:18:51 +00:00
mimo c8c68387be Petra: Account for relics and wonder in last man standing mode
Patch by: Sandarac
Reviewed By: mimo
Differential Revision: https://code.wildfiregames.com/D528
This was SVN commit r19630.
2017-05-21 18:34:40 +00:00
mimo b1559dfb4a Rename the Introductory Tutorial map to Introductory_Tutorial to overcome phabricator problems
This was SVN commit r19629.
2017-05-21 18:14:01 +00:00
mimo 61b243fdc6 fixes to the economic tutorial (D194) following 15e2b42525
Reviewed By: Itms
Differential Revision: https://code.wildfiregames.com/D520
This was SVN commit r19628.
2017-05-21 16:41:39 +00:00
fatherbushido aa4c542926 Fix an oversight noticed by leper in 1558272fd2.
This was SVN commit r19627.
2017-05-21 14:57:41 +00:00
Itms f0a008c821 Refactor NONCOPYABLE to remove unneeded semicolons. Remove visibility keywords that were hidden in the macro. Patch by echotangoecho.
Reviewed By: Itms
Differential Revision: https://code.wildfiregames.com/D481
This was SVN commit r19626.
2017-05-21 13:11:07 +00:00
wraitii cde8d503df Fix the building construction rate for multiple units.
Because of a floor operation, tasking another unit to a building could
actually slow the construction down.

Patch by temple.

Differential Revision: https://code.wildfiregames.com/D521
This was SVN commit r19625.
2017-05-21 08:11:34 +00:00
wraitii 3d7784d2af Try to recognise unknown hotkey mappings using SDL2.
This improves our international keyboard until we completely rework the
hotkey system which seems to be quite legacy at this point.

Reviewed by Itms.
Differential Revision: https://code.wildfiregames.com/D303
This was SVN commit r19624.
2017-05-21 08:05:52 +00:00
fatherbushido 5deaa5df53 Fix an oversight in dc17836fe5.
This was SVN commit r19623.
2017-05-21 06:00:13 +00:00
fatherbushido 1558272fd2 Fix some formal issues noticed by elexis in dc17836fe5.
This was SVN commit r19622.
2017-05-21 05:48:05 +00:00
elexis 2d8d082289 Fox templates and portraits for the existing models.
Differential Revision: https://code.wildfiregames.com/D524
Fixes #4580
Patch By: Phormio
This was SVN commit r19621.
2017-05-21 00:49:03 +00:00
elexis 85cfd7effb Remove all spaces from music tracks.
Differential Revision: https://code.wildfiregames.com/D508
Patch By: Phormio
Reviewed By: Vladislav
This was SVN commit r19620.
2017-05-20 22:58:22 +00:00
elexis 7c716918ff Replace the "full games" filter with an "open games" filter and exclude running games from the results (since the use-case is to help players finding a game they can join as a player).
Revert cbc49f43e6 because the reasons for hiding non-open games don't
apply or don't apply anymore:
* The filter doesn't actually prevent unwanted clients to join the
server.
* The host can kick or ban unwanted clients now.
* Many users are interested in joining games as observer (either for the
sake of observing or to meet up with buddies).
 So for many players the first action after entering the lobby was to
uncheck this checkbox.

Differential Revision: https://code.wildfiregames.com/D218
Reviewed By: mapkoc
This was SVN commit r19619.
2017-05-20 22:44:08 +00:00
elexis d6c028923e Increase size of the civ selection dropdowns so that the scrollbar disappears.
Increase vertical size of the player selection dropdown in the observer
menu.

Differential Revision: https://code.wildfiregames.com/D527
Proposed and reviewed by: temple
This was SVN commit r19618.
2017-05-20 22:19:04 +00:00
fatherbushido f264552359 Add Macedonian team bonus. Refs #4082. Reviewed by mimo.
Differential Revision: ​https://code.wildfiregames.com/D480
This was SVN commit r19616.
2017-05-20 18:31:19 +00:00
fatherbushido dc17836fe5 Add barter multiplier for barter prices. They can be altered by technologies or auras. Reviewed by mimo.
Differential Revision: https://code.wildfiregames.com/D478
This was SVN commit r19615.
2017-05-20 18:01:49 +00:00
mimo d8490b8c2e Petra: gameTypeManager cleanup
Summary:
In regicide, data.garrisonEmergency was not reset when retreating a hero
to a base when the hero couldn't find a place to garrison.
Transfer the stance info to the AI

Reviewed By: mimo
Differential Revision: https://code.wildfiregames.com/D515
This was SVN commit r19614.
2017-05-19 20:28:21 +00:00
leper aa025b514b Fix out of bounds access in Hotkey.cpp. Patch by echotangoecho.
Differential Revision: https://code.wildfiregames.com/D211
This was SVN commit r19613.
2017-05-19 18:01:22 +00:00
leper 7c88529b45 Call std::terminate() instead of throwing in a destructor.
We don't catch this specific exception, so no behavioural change, but we
do no longer violate the implicit noexcept for destructors in C++11.
(Fixes a GCC6 and VS2015 warning.)

Reviewed By: Itms
Differential Revision: https://code.wildfiregames.com/D416
This was SVN commit r19612.
2017-05-19 17:48:43 +00:00
elexis 3bebd1a21f Replace shark actors with actual sharks on the skirmish map Thessalian Plains (4).
Differential Revision: https://code.wildfiregames.com/D511
Patch By: Phormio
This was SVN commit r19611.
2017-05-19 08:23:37 +00:00
elexis 8cfd494b88 Add selection-dependent gamesetup tooltips for the chosen map, map filter, map size, civilization and population capacity.
The tooltips of the larger mapsizes and higher population capacities
(depending on the number of players) warn the controller of potential
performance issues.

Differential Revision: https://code.wildfiregames.com/D505
Reviewed By: Hannibal_Barca
This was SVN commit r19609.
2017-05-18 20:49:29 +00:00
mimo 1e5757a0ac Petra: cleanup of the 7dd3cf7543 cleanup (to avoid mixing attackManager and gametypeManager stuff)
This was SVN commit r19607.
2017-05-18 17:29:27 +00:00
elexis 4c693589d3 Rating column in the gamelist allowing players to sort by and filter games with players of approximately equal (to have a challenging opponent) or better skill (to learn or become entertained from when observing).
Differential Revision: https://code.wildfiregames.com/D125
Based on patch by: fpre
This was SVN commit r19606.
2017-05-18 11:50:33 +00:00