1
0
forked from mirrors/0ad

Compare commits

..

2268 Commits

Author SHA1 Message Date
Itms 816aab94fb Use Sunrise for Gauls.
This was SVN commit r19921.
2017-07-16 08:42:00 +00:00
OmriLahav ad09018d0d This was SVN commit r19919. 2017-07-15 05:10:28 +00:00
elexis 9ec42a77a1 Play more music tracks.
Register the new track "Tale Of Warriors" from 11c6dec383 with the game.
Register "Calm Before the Storm" and "Tavern in the Mist",  which were
not heard in the previous releases.
Play some peace tracks for all civilizations, as intended by Omri (thus
play some music for observers too, refs #4298).
Add more background tracks to the menu as agreed with WhiteTreePaladin.
Keep "Honor Bound" the first one, as proposed by Itms and leper.
Add some tracks that are played only for one civ to other civs, to
reduce the repetition.
Remove duplicate, now unused music code.

Differential Revision: https://code.wildfiregames.com/D732
Fixes #4565.

This was SVN commit r19918.
2017-07-14 18:57:33 +00:00
Itms d56692d9e1 Rewrite the pathfinder dirtiness information system.
Remove all hacks while keeping most optimizations in memory management.
This fixes incomplete grid updates that could cause OOS on rejoin, fixes
#4596.

Tested by: elexis, ffffffff
Reviewers: leper, wraitii
Differential Revision: https://code.wildfiregames.com/D675
This was SVN commit r19916.
2017-07-14 10:09:32 +00:00
elexis 812750ddd7 Cathaginian and Ptolemian Brracks cost 300 resources, just like the other Barracks.
Differential Revision: https://code.wildfiregames.com/D725
Patch By: Grugnas
Reviewed By: borg-, temple
This was SVN commit r19914.
2017-07-13 12:32:15 +00:00
Itms 918a693f0f Update the list of bundled languages for A22.
This was SVN commit r19913.
2017-07-12 13:56:28 +00:00
elexis 930eff1f26 Remove unused function (from 0aaddf62aa) after the only call to it was removed in 78e9fecf92.
Refs #910, D736
Discussed with: Deiz, bb

This was SVN commit r19910.
2017-07-11 00:38:04 +00:00
elexis 81de8a2866 Fix JS error when pressing the unload key when not having selected a garrison holder.
Differential Revision: https://code.wildfiregames.com/D736
Fixes #4674
Patch By: bb
This was SVN commit r19909.
2017-07-10 23:56:31 +00:00
elexis cb268f4a8e The mercenary upgrade technology from D407 is not expected to affect Mercenary Champions since those can't take advantage of the tech.
String should be fixed after the release.

Differential Revision: https://code.wildfiregames.com/D734
Patch By: Grugnas
This was SVN commit r19908.
2017-07-10 22:12:44 +00:00
elexis 53eaef0746 Don't change the copyright headers of other software groups, as reported by leper.
Refs 43137fef3f / D716

This was SVN commit r19907.
2017-07-10 21:53:47 +00:00
elexis 9ba2ba7f5f Fix missing death animation of the rider of the celtic chariots.
Refs #4662, 83680b0dee
Patch By: Stan
This was SVN commit r19906.
2017-07-10 21:40:05 +00:00
elexis 64d1ea9817 Fix a typo in dd9a8706f9.
Differential Revision: https://code.wildfiregames.com/D735
Fixes #4673
Patch By: bb
This was SVN commit r19905.
2017-07-10 19:57:01 +00:00
elexis 37b1ddd2de Revert the Phalanx formation animation change from 83680b0dee that only causes the units to not have any animation while moving, for both Delenda Est and the public mod.
This was SVN commit r19904.
2017-07-10 18:33:45 +00:00
elexis dc12fe1869 Revert the production cost addition of peacocks in 83680b0dee since, contrary to Delenda Est, the mauryan corral (nor any other building) can currently train peacocks in the public mod.
This was SVN commit r19903.
2017-07-10 18:19:40 +00:00
mimo 5a7bf9daf4 Petra: Move land traders to safety when a trade route is destroyed instead of leaving them idle in the open
Patch by Sandarac

Reviewed By: mimo
Differential Revision: https://code.wildfiregames.com/D730
This was SVN commit r19902.
2017-07-10 16:22:29 +00:00
mimo 5db17931c8 fix comment in 1196ececed
This was SVN commit r19901.
2017-07-10 16:19:13 +00:00
mimo 1196ececed protect possible infinite loop when an order is issued on the same turn as garrisoning is effectively processed
Reviewed By: O2 JS Simulation, elexis, s0600204, bb
Differential Revision: https://code.wildfiregames.com/D686
This was SVN commit r19900.
2017-07-10 16:10:50 +00:00
elexis 43137fef3f Make all Wildfire Games copyright headers consistent by always ending with a period and using (C) instead of (c).
Differential Revision: https://code.wildfiregames.com/D716
Refs 09e974e1cb
Reviewed By: bb
Change in agreement with leper.

This was SVN commit r19899.
2017-07-10 14:26:24 +00:00
elexis d49bf8b1bf Ensure the camera position being above the water level (without smoothing the water level with the terrain).
Differential Revision: https://code.wildfiregames.com/D700
Fixes #3892, D229, D638

This was SVN commit r19896.
2017-07-10 02:16:57 +00:00
mimo 6b37f9bbdb Allow the AI to research techs in captured structures
Reviewed By: Sandarac
Differential Revision: https://code.wildfiregames.com/D708
This was SVN commit r19894.
2017-07-09 08:23:28 +00:00
elexis 319809ea9a Chat window size beautification.
Use the entire available screen height for easier chat history reading.
Use the golden ratio for the chat history frame size, so that the ratio
looks appealing with all screen size ratios.

Differential Revision: https://code.wildfiregames.com/D713
Refs #4069
Patch By: temple
This was SVN commit r19893.
2017-07-08 23:39:21 +00:00
elexis 43f1dcdc2a Add missing semicolons and remove unneeded template definition following D722 reported by temple.
This was SVN commit r19892.
2017-07-08 22:54:38 +00:00
OmriLahav 11c6dec383 This was SVN commit r19887. 2017-07-08 18:19:10 +00:00
elexis c6200201c8 Update Mesa software renderer detection.
Fixes #4670
Refs  #623, D86,
https://cgit.freedesktop.org/mesa/mesa/commit/?id=92b4ca45504e7ffc5f4fa385ada1be48e6123181
Patch By: fabio
This was SVN commit r19886.
2017-07-08 16:30:30 +00:00
elexis fbd1ba390d Women Attack balancing fixes.
Allow (not only spartan but) all women to attack (so that it's more
obvious that they can be used to destroy siege engines if no military
units are available).
(Proposed by scythetwirler in irc on 2017-03-13.)

Remove the celtic woman (3.5x!) attack bonus and their (+50%) health
bonus (they had since the introduction of the britons in 52af3369ba).
(Because woman health is most relevant in the beginning of the game and
at that stage celts already have the population bonus advantage.)

Set Spartan women to Passive instead of Standground, so that they flee.
Convert Spartan woman 2.5x siege bonus to a general +50% Attack bonus
and nerf their 80% HP bonus to +40% (i.e. 40HP instead of 25HP).
Keep Spartan woman ability to patrol and build towers for now.

Differential Revision: https://code.wildfiregames.com/D722
Patch By: borg-
Reviewed By: Grugnas
This was SVN commit r19885.
2017-07-08 16:22:54 +00:00
leper a5e253162b Fix undefined macro usage in cppformat.
This is quite noisy with -Wexpansion-to-defined in both clang 3.9 and
gcc 7.
(Refs #3190 and #4148. Upstream might have fixed this, but somewhat
clean build logs seem worth it.)

Reviewed By: echotangoecho
Differential Revision: https://code.wildfiregames.com/D680
This was SVN commit r19884.
2017-07-08 00:15:03 +00:00
elexis 7e3ff3af64 Don't display the friendly fire tooltip since it was entirely disabled in the public mod.
Allow us and modders to enable or disable the string without changing
the code.

Differential Revision: https://code.wildfiregames.com/D198
Refs: Tooltip added by 22b72a362b, friendly-fire removed in ba2bb82406,
patch discussed in D142
Reviewed By: Imarok
This was SVN commit r19883.
2017-07-07 18:52:41 +00:00
elexis 8a38229903 Buff Carthaginian Naval Shipyard capturing defense (4x more capture points, 2x more regeneration rate to compensate the 1/4th garrison capacity).
Buff by 5 pierce armor levels to be equal to the regular dock.

Differential Revision: https://code.wildfiregames.com/D714
Reviewed By: Grugnas, mimo
This was SVN commit r19882.
2017-07-07 16:25:24 +00:00
elexis 23d8bc11a5 Prohibit lobby nick registration with some previously not-filtered characters between 32 and 127, in particular parentheses.
Use whitelist instead of blacklist, remove dead options and noisy
unneeded gui/common/ function.
Still allow existing players with now prohibited characters to login.
This could be enforced in ejabberd too and then the now incomplete JS
string can be replaced with a more general one.

Differential Revision: https://code.wildfiregames.com/D715
Refs #4671
Reviewed By: Imarok
This was SVN commit r19881.
2017-07-07 16:04:38 +00:00
Imarok f876eb86fa Fix unload-all hotkey for allied buildings
Reviewed by: causative
Differential Revision: https://code.wildfiregames.com/D648
This was SVN commit r19878.
2017-07-06 20:51:22 +00:00
Itms 9aad0137ba Stop using WMI for detecting the sound card, and use OpenAL instead. Delete WMI code altogether now it is unused.
This fixes #4561 and makes sound card detection work on non-Windows
platforms.

Reviewed By: echotangoecho
Tested By: Imarok, elexis
Differential Revision: https://code.wildfiregames.com/D636
This was SVN commit r19877.
2017-07-06 17:29:49 +00:00
mimo 3cc2eed989 Petra: Fix bug in a case when an army captures its target and then tries to help another army
Patch by Sandarac

Reviewed By: mimo
Differential Revision: https://code.wildfiregames.com/D709
This was SVN commit r19876.
2017-07-06 17:13:28 +00:00
Imarok 5c6f3505e8 Fix replay cache performance (broken by ea250b3d25). Also remove a TODO fixed by fca844eef6.
Reviewed by elexis.

This was SVN commit r19875.
2017-07-06 16:20:18 +00:00
elexis d5a15384cc Ensure the starting trees on extinct volcano.
This was SVN commit r19874.
2017-07-06 12:32:46 +00:00
elexis 3ecc90cd2e Fix a reference error in 6141c5c4fa / D514 reported by causative.
This was SVN commit r19873.
2017-07-06 01:05:03 +00:00
mimo 4c954e2b13 Be less restrictive for building shipyards for mods support
Reviewed By: Sandarac
Differential Revision: https://code.wildfiregames.com/D705
This was SVN commit r19872.
2017-07-05 20:03:38 +00:00
elexis e16f5711f7 Reduce resource cost of the female health technology (Loom) because it was too expensive to be used reasonably.
Differential Revision: https://code.wildfiregames.com/D703
Patch By: borg-
Reviewed By: Grugnas, mimo, temple
This was SVN commit r19871.
2017-07-05 09:39:39 +00:00
mimo 4fadd75ace fix back-to-work button for garrisoned units
Reviewed By: fatherbushido
Differential Revision: https://code.wildfiregames.com/D685
This was SVN commit r19869.
2017-07-04 17:57:20 +00:00
Imarok 7a860cc48e Fix player color dropdown in gamesetup
Reviewed by: elexis
Differential Revision: https://code.wildfiregames.com/D702
This was SVN commit r19867.
2017-07-02 10:07:17 +00:00
mimo 4cc1257476 reduce the cost of home garden tech
Reviewed By: fatherbushido, elexis
Differential Revision: https://code.wildfiregames.com/D701
This was SVN commit r19865.
2017-07-01 18:04:40 +00:00
elexis 14e1b79a0f Insert cinematic path nodes after the currently selected node instead of before (so paths are not created in the opposite of the expected order).
Differential Revision: https://code.wildfiregames.com/D656
Refs #3871
Patch By: Vladislav
This was SVN commit r19864.
2017-07-01 15:49:59 +00:00
elexis c67d79d9f3 Recompute water graphics when changing the water level and upon deserialization to fix a graphical (non-simulation) OOS on rejoin.
Differential Revision: https://code.wildfiregames.com/D638
Refs #4596
Contains a fix mentioned by leper.

This was SVN commit r19862.
2017-07-01 04:15:49 +00:00
elexis 36b315ca32 Rebuild heal range visualization after deserialization.
Since the RangeVisualization component is deserialized before the
TechnologyManager, upgraded healers had shown a wrong range.

Differential Revision: https://code.wildfiregames.com/D698
Fixes #4632
Refs D432
Patch By: Sandarac
This was SVN commit r19861.
2017-07-01 01:07:34 +00:00
elexis 96df0ad875 Show the session page again after disconnecting while playing a cinematic path.
This was SVN commit r19860.
2017-06-30 21:15:35 +00:00
elexis f9f137eea9 Remove placeholder rubble templates from bf55acadaa which just contain a foundation and thus would (as readers of previous commit messages might have guessed already) just confuse players if they were used.
Differential Revision: https://code.wildfiregames.com/D693
Split from D643
Refs #1166
Patch By: temple
This was SVN commit r19859.
2017-06-30 20:09:47 +00:00
elexis 8ba0b90b4f Revert the use of foundations as rubble placeholders for palisade walls from bf55acadaa as it just confuses players.
Use the 2x2 stone rubble for now (which is definitely too big but
doesn't confuse anyone).
Use it for spikes and the celtic hut too, which had no rubble prior.

Differential Revision: https://code.wildfiregames.com/D691
Split from: D643
Refs #1166
Patch By: temple
This was SVN commit r19858.
2017-06-30 19:59:31 +00:00
elexis deee779039 Revert the use of foundations as rubble placeholders for some random buildings from bf55acadaa as it just confuses players.
Do not use the legit rubble_3x3 actor from 439f67b5d8 as it isn't as
appealing as rubble_stone_3x3.
Rename it to make it more obvious that the template stands out.

Split from: https://code.wildfiregames.com/D643
Refs #1166
Patch By: temple
This was SVN commit r19857.
2017-06-30 19:32:47 +00:00
fatherbushido 22726a1e68 Nerf a bit pierce damage of javelin units. Make those damages a bit more consistent with archers ones. Patch by borg-. Viewed by elexis. Reviewed by Grugnas.
Differential Revision: https://code.wildfiregames.com/D666
This was SVN commit r19856.
2017-06-30 19:16:04 +00:00
elexis 3538f06c0b Revert the use of foundation placeholders for (mauryan) docks from bf55acadaa as it only leads to confusion.
Use regular stone rubble instead for the time being.
Don't use the hellenic dock actors in the rubble of non-hellenic docks.

Split From: ​https://code.wildfiregames.com/D643
Refs #1166
Patch By: temple
This was SVN commit r19855.
2017-06-30 18:58:30 +00:00
elexis b3b27afc99 Revert the use foundations as rubble placeholders for corrals from bf55acadaa, as that just confuses players.
Use stone instead of wooden rubble for all corrals, as the models all
contain stone.

Differential Revision: https://code.wildfiregames.com/D643
Refs #1166
Patch By: temple
This was SVN commit r19854.
2017-06-30 18:30:05 +00:00
elexis e59ec473cf Use more fitting civic center rubble entities.
Split from: https://code.wildfiregames.com/D643
Patch By: temple
This was SVN commit r19853.
2017-06-30 18:17:30 +00:00
mimo dca572fbcd petra: fix number of defenders against champion elephant which can be used as siege unit
This was SVN commit r19852.
2017-06-30 16:41:29 +00:00
fatherbushido f6ca98450b Increase sentry tower attack range to prevent archers to fire at it whithout being shot at. Patch by Grugnas. Reviewed by elexis.
Differential Revision: https://code.wildfiregames.com/D652
This was SVN commit r19851.
2017-06-30 11:06:34 +00:00
elexis 8ceb7142fa Update OSX libraries to the most recently released versions.
Remove wxWidgets patch from 4ca156e2d8 that had been merged with the new
release.

Differential Revision: https://code.wildfiregames.com/D679
Refs #4362
Based On Patch By: fabio
Discussed With: leper
Tested By: Tobbi, Itms
This was SVN commit r19848.
2017-06-30 00:33:11 +00:00
elexis e96ba442ec Remove leftover following cfd08bbf28.
This was SVN commit r19847.
2017-06-30 00:16:34 +00:00
elexis 6f7a5fb773 Allow the JS GUI to subscribe to the window resized event and use it to conditionally update the observer panel (refs D689).
Differential Revision: https://code.wildfiregames.com/D694
Tested By: temple
Proofread By: Vladislav
This was SVN commit r19846.
2017-06-30 00:04:29 +00:00
elexis 5e6b502eab Fix dropdown list height after resizing the window (in case there is an item that used wordwrapping before but not after the resize or vice versa).
Differential Revision: https://code.wildfiregames.com/D692
Tested By: temple
Proofread by: Vladislav
Refs #3571

This was SVN commit r19845.
2017-06-29 23:39:12 +00:00
mimo 9317eb126e Petra: Fix possible inconsistent response when trying to become allies
Patch by Sandarac

Reviewed By: mimo
Differential Revision: https://code.wildfiregames.com/D695
This was SVN commit r19844.
2017-06-29 17:52:27 +00:00
elexis 2ee5eb0893 Fix observermode GUI for 1024x768.
Display the follow-player label only if it fits entirely (i.e. >=
1280x1024), otherwise display the checkbox only.
Increase the size of the player dropdown for resolutions >= 1280x1024.

Differential Revision: https://code.wildfiregames.com/D689
Patch By: temple
Refs:
  Issues introduced by #3743 and 20e7d2224a
  This is affected by D692 D694

This was SVN commit r19843.
2017-06-29 17:25:24 +00:00
elexis ca2390d70e JS lobby cleanup, fixes and lobby bot performance improvements:
Do not send a wasteful rating request if the same player is selected
again when someone joined the lobby, when changing the sorting order or
when clicking on the same user again
by moving the player-selection change test from updatePlayerList to
onPlayerListSelection.

That test should have been done here in 8f4daa9dd0 already and fixes
#3840 well enough.

This change also fixes an unintentional behavior of the code, where the
game the currently selected player is playing in would be selected if
someone else joined the lobby, even if a different game was selected
manually.
Furthermore it allows simplification of the code of 655ce95468 by
removing selectGameFromPlayername which did almost the same as
selectGameFromPlayername.

To still select the game the current player is playing in if the
selected player didn't change, subscribe to the (new) event that is
called when clicking on an item.

Differential Revision: https://code.wildfiregames.com/D688
Reviewed By: ffffffff (fpre)
This was SVN commit r19841.
2017-06-29 02:58:04 +00:00
elexis 00173a6e13 Group starting positions of players by team on the new random map sripts in Alpha 20 and 21, making them much more playable.
Use stronghold starting position style with 33% instead of 50%
probability.

Differential Revision: https://code.wildfiregames.com/D664
Reviewed but not accepted by: bb (everything) and fatherbushido (Heaps
permutations)
Catch: This must become more efficient if the playercount will be
greater than 8, refs #4004.

This was SVN commit r19840.
2017-06-28 17:09:21 +00:00
fatherbushido 7c50093470 Use PlacementType instead of Category in BuildRestriction for the hardcoded dock special constraint. AI patch by mimo. Reviewed by leper and s0600204. Final review by mimo.
Fix #4290.
Differential Revision: https://code.wildfiregames.com/D387
This was SVN commit r19839.
2017-06-28 07:30:22 +00:00
elexis 67ae3481ed Autocomplete playernames before everything else, as that is the most expected use case.
Differential Revision: https://code.wildfiregames.com/D678
Refs D322.
Reviewed By: Vladislav
This was SVN commit r19837.
2017-06-27 21:25:16 +00:00
elexis 6b80ca0c68 Prevent a tribute exploit (gaining infinite resources by sending a tribute of NaN resources to a player).
Differential Revision: https://code.wildfiregames.com/D677
Refs #4459

This was SVN commit r19836.
2017-06-27 21:17:33 +00:00
mimo 4241cf441d Petra: use moveToRange() instead of move() in some cases
Patch by Sandarac

Reviewed By: mimo
Differential Revision: https://code.wildfiregames.com/D676
This was SVN commit r19834.
2017-06-26 18:25:18 +00:00
fatherbushido be2b2faa77 Properly apply texture to the last quad of an overlay textured line. Reviewed by vladislavbelov.
Fix #4617.
Differential Revision: https://code.wildfiregames.com/D663
This was SVN commit r19833.
2017-06-26 13:04:21 +00:00
fatherbushido 26e6f901f1 Remove a useless value cap in Foundation code. Reviewed by wraitii.
Differential Revision: https://code.wildfiregames.com/D550
This was SVN commit r19832.
2017-06-26 12:48:00 +00:00
fatherbushido 8ba425d89f Limit the bartered amount in the simulation. Advices from mimo. Reviewed by elexis.
Refs #4655.
Differential Revision: https://code.wildfiregames.com/D381
This was SVN commit r19831.
2017-06-26 11:56:31 +00:00
elexis 1fe9532680 Allow lobby players to rejoin games, even if the rating changed meanwhile or if the lobby bot didn't provide the most recent rating.
Refs #3686
Differential Revision: https://code.wildfiregames.com/D670
Reviewed By: Imarok
This was SVN commit r19828.
2017-06-25 20:56:03 +00:00
elexis e948d5f37f JS Lobby cleanup.
Don't return 1200 in splitRatingFromNick if the player has no rating
yet, so that it can be reused for playername construction.

Refs https://code.wildfiregames.com/D670
Reviewed By: Imarok
This was SVN commit r19827.
2017-06-25 18:00:54 +00:00
elexis 2e3ac4cf20 Prevent players from gaining unlimited resources by setting the batch-train-modifier to a non numeric value.
Differential Revision: https://code.wildfiregames.com/D66
Refs #4459
Reviewed By: fatherbushido (wraitii, leper)
This was SVN commit r19826.
2017-06-25 16:05:06 +00:00
elexis d7c4c20aa8 Update OSX zlib version to the most recent and now only one hosted.
Fixes #4639
Refs #4362
Differential Revision: https://code.wildfiregames.com/D644
Tested By: Tobbi
This was SVN commit r19825.
2017-06-25 14:58:51 +00:00
elexis e7ab22286e Fix the replay menu for people with non-latin characters in their username.
Use OsPath instead of CStr and CStrW where possible,
wstring_from_utf8(OsPath.string8()) to pass printable strings to the
JSAPI,
OsString when opening a filestream and
off_t instead of int for filesizes.

Fixes #4320
Differential Revision: https://code.wildfiregames.com/D518
Reviewed By: Imarok
Tested By: Imarok on Windows, wraitii on OSX
Special thanks to Philip for advice and the lib/path.h fix in
47cc447322.

This was SVN commit r19824.
2017-06-25 14:54:00 +00:00
elexis 47cc447322 Fix OsPath string8 function on Unix to account for characters that aren't covered by ISO-8859-1,
thus allow proper printing of such paths.

Fixes #4647
Refs #4320 D518
Patch By: Philip
Tested By: Imarok on Windows, wraitii on OSX
This was SVN commit r19823.
2017-06-25 14:30:26 +00:00
Imarok e1b43137fe Fix incompatible value for WaterUgly warning on opening the options screen.
Reviewed by: vladislavbelov, Imarok. Patch by echotangoecho. Fixes:
#4230.
Differential Revision: https://code.wildfiregames.com/D89
This was SVN commit r19822.
2017-06-25 11:13:17 +00:00
mimo 3faf65c232 petra: fix a case when ptol or sele have their cc destroyed while they already had a colony, they would no more try to build a cc
Differential Revision: https://code.wildfiregames.com/D660
This was SVN commit r19820.
2017-06-22 22:13:13 +00:00
Imarok c67da6a93e Improve minimap colors
Patch by niektb and Grugnas. Reviewed by elexis. Fixes #763.

This was SVN commit r19819.
2017-06-22 21:18:09 +00:00
elexis 495d219d99 Don't always reset the Capture The Relic victory timer upon diplomacy change following 35377c51a7.
Only reset it if any of the original allies changes the diplomatic
relation to one of the other original allies.

Differential Revision: https://code.wildfiregames.com/D305
Fixes #4529
Patch By: Sandarac
This was SVN commit r19818.
2017-06-22 11:00:10 +00:00
elexis c4975452f0 Buff sentry tower damage.
Differential Revision: https://code.wildfiregames.com/D646
Patch By: Grugnas
Reviewed By: causative
This was SVN commit r19816.
2017-06-21 23:56:27 +00:00
mimo 26159c3f80 Tutorial still not translated. Hopefully done now!
Reviewed By: elexis
Differential Revision: https://code.wildfiregames.com/D669
This was SVN commit r19815.
2017-06-21 17:31:55 +00:00
Imarok abe5d9205a Remove useless file entry in replays list
Reviewed by: elexis
Differential Revision: https://code.wildfiregames.com/D668
This was SVN commit r19814.
2017-06-21 15:43:57 +00:00
elexis ea250b3d25 Don't crash if there is a replay subdirectory without commands.txt following 80635665f7 / D39.
Differential Revision: https://code.wildfiregames.com/D667
Reviewed By: Imarok
This was SVN commit r19813.
2017-06-21 14:44:26 +00:00
elexis 487078e07c Slightly buff pikeman walk speed (less than alpha 17 13b229d503, more than alpha 18 72ff88880c).
Differential Revision: https://code.wildfiregames.com/D633
Patch By: Grugnas
This was SVN commit r19811.
2017-06-20 18:53:38 +00:00
Itms 9ac13bf3d4 Download .po files for the Tutorials translation resource, and put them under version control.
Fix alphabetical order in the transifex client config.

Based on patch by elexis, fixes #4637.

This was SVN commit r19810.
2017-06-20 18:05:14 +00:00
mimo 8b8f6187ea Fix an oversight in structure min distances.
As civil centre and colony are civil centre, the current distance test
of colonies should be versus civil centre

Reviewed By: fatherbushido
Differential Revision: https://code.wildfiregames.com/D661
This was SVN commit r19809.
2017-06-20 17:17:42 +00:00
FeXoR eee5cbd845 Prevent height based forests to grow into player start locations.
Differential Revision: https://code.wildfiregames.com/D662
Reviewed By: elexis
This was SVN commit r19808.
2017-06-20 00:15:55 +00:00
elexis d597b5866a Move duplicate rmgen functions from caledonian meadows and wild lake to the rmgen libraries.
Differential Revision: https://code.wildfiregames.com/D659
Reviewed By: FeXoR
This was SVN commit r19807.
2017-06-19 21:43:27 +00:00
elexis 499b4a4b1d Remove unused player starting position angle from rmgen2 which is meaningless in every case but the radial placement.
This was SVN commit r19806.
2017-06-19 13:05:19 +00:00
elexis 47f7da6201 Fix caledonian meadows thumbnail scaling.
Differential Revision: https://code.wildfiregames.com/D658
Reviewed By: FeXoR
This was SVN commit r19805.
2017-06-19 12:06:56 +00:00
elexis fe4ffa3558 JS Date cleanup.
Use Date.now() to get the current timestamp instead of doing arithmetic
with Date objects and avoid needless object instantiation.

Differential Revision: https://code.wildfiregames.com/D554
Eyeballed By: causative
This was SVN commit r19802.
2017-06-18 19:11:24 +00:00
elexis 6141c5c4fa Correct lobby chat timestamps.
Only historic messages were timestamped in C++ prior.
Other messages showed the timestamp when they were displayed in JS,
which is wrong in case of returning to the lobby from a game.

Differential Revision: https://code.wildfiregames.com/D514
Fixes #3832.
Reverts the revert of 1f34a004e5 in 572847ddd4.
Patch By: Josh
Tested By: Itms
This was SVN commit r19801.
2017-06-18 18:48:18 +00:00
fatherbushido d5caf97185 Fix Valgrind complaints in CRenderer by properly intializing some members values introduced in ab30e0d4fb. Refs #3922, #4492. Patch by Sandarac. Reviewed by vladislavbelov.
Differential Revision: https://code.wildfiregames.com/D536
This was SVN commit r19800.
2017-06-18 14:52:54 +00:00
elexis cfd08bbf28 Cinema Path GUI hiding and silhouettes fixes.
Let the JS GUI take care of hiding the GUI and silhouettes and remove
the according hardcoding in the engine following 89aef0b6eb.
Thereby fix some bugs (like not having hid the GUI if there was a
message box or different page shown while playing a path) and
fix these two hotkeys broken by 5d49e6c456.

Differential Revision: https://code.wildfiregames.com/D631
Fixes #4633
Reviewed By: Vladislav
This was SVN commit r19797.
2017-06-17 14:17:30 +00:00
mimo 2cd7c62c0f 9d919f4369 was too fast
This was SVN commit r19796.
2017-06-17 10:36:55 +00:00
mimo 9d919f4369 cleanup of 0e887a686a following elexis comments
This was SVN commit r19795.
2017-06-17 10:34:15 +00:00
mimo 0e887a686a petra: revisit the serialization of functions, to fix 5403c19cf0
Differential Revision: https://code.wildfiregames.com/D617
This was SVN commit r19794.
2017-06-17 08:42:04 +00:00
mimo 00b60e2132 Petra: Fix behavior of guards when the guarded entity becomes garrisoned
Patch by Sandarac

Reviewed By: mimo
Differential Revision: https://code.wildfiregames.com/D640
This was SVN commit r19793.
2017-06-17 08:36:08 +00:00
fatherbushido 3004a7a134 Fix a Damage bug. Don't try to damage the main target when it doesn't have DamageReceiver, instead of doing an early return, continue and try to damage another hit target. For the mirage case, the actual entity will be hit. Reviewed by elexis.
Differential Revision: https://code.wildfiregames.com/D605
This was SVN commit r19791.
2017-06-16 20:06:03 +00:00
elexis e6dafe9efc Fix a map exploration OOS on rejoin when starting with territory at the map boundaries.
6aeb5c64de forgot to add a LosIsOffWorld check in ExploreTerritories
(aka UpdateTerritoriesLos) and thus marked tiles outside of the world as
explored.
f5e60157bf transformed the bug into a non-simulation desynchronization,
causing rejoined players to see a different score,
  as they excluded off-world tiles when filling the cache in
ResetDerivedData upon rejoin.
4a0673e44e transformed the bug into an actual simulation OOS by
serializing that map exploration percentage based on that cache.

Also tiles at the map border in square maps are not rendered as
expected, so this commit hides refs #4267.

Differential Revision: https://code.wildfiregames.com/D630
Fixes #4598
Proofread by: Itms
Tested By: Imarok
This was SVN commit r19790.
2017-06-16 19:39:30 +00:00
elexis d01f908ebf Apply previous commit to scenario maps.
Differential Revision: https://code.wildfiregames.com/D649
Patch By: Phormio
Refs D647

This was SVN commit r19789.
2017-06-16 18:50:56 +00:00
elexis 98532a1600 Fix starting units on random and skirmish maps.
Always spawn that cavalry that can be trained at the civic center, not
the other one from the barracks.
Spawn 2 melee and 2 ranged infantry units for Seleucids just as for any
other civ.

Differential Revision: https://code.wildfiregames.com/D647
Reviewed By: Grugnas, fatherbushido
Refs D649

This was SVN commit r19788.
2017-06-16 16:51:30 +00:00
Imarok 34f41dbe52 Style text alignment cleanup
Reviewed by: vladislavbelov
Differential Revision: https://code.wildfiregames.com/D174
This was SVN commit r19787.
2017-06-16 12:47:10 +00:00
elexis c237b1a1c5 Prevent unintentional selection of all units following 8f36ca47a1 / D326 when doubleclicking while not in selection input mode.
Differential Revision: https://code.wildfiregames.com/D634
Fixes #4631.
Refs #4414.
Patch By: causative
This was SVN commit r19786.
2017-06-16 11:06:06 +00:00
elexis be91dde045 Don't place muskox on mountains on arctic summer.
This was SVN commit r19783.
2017-06-16 00:34:09 +00:00
elexis ee6a3b0094 Hide rubble in the fog of war except to the owner, so that other players don't see deleted buildings, especially civic center foundations.
Should use a special filter once the AI supports it (#4611), so that
decorative rubble can be placed by maps too.

Differential Revision: https://code.wildfiregames.com/D635
Reviewed By: fatherbushido
Refs #3601 #3910 #3179

This was SVN commit r19782.
2017-06-16 00:13:49 +00:00
elexis bedb13ea28 Delete gui/common/functions_utility_error.js.
Move the one function in it that is globally called from the engine to
the other function that is called equally.

This was SVN commit r19781.
2017-06-15 22:44:24 +00:00
elexis ab67d1a6f3 Delete gui/common/init.xml.
It became almost unused throughout the years and just causes confusion
when reading include lists.

Refs D619.

This was SVN commit r19780.
2017-06-15 22:11:48 +00:00
elexis 18b876bd55 Delete common/l10n.js.
It held resource strings when introduced by 0f21151c4b, but those were
moved to json files in 52f311da2b. 9b041467a2 moved two trivial
functions of this file to tooltips.js.
Remove a wrong comma from the JSdoc comment.
Alwas return a string.

Differential Revision: https://code.wildfiregames.com/D618
Confirmed by Itms in a forum PM that this doesn't break string freeze.

This was SVN commit r19779.
2017-06-15 20:42:03 +00:00
mimo 4ca1379bd9 petra: additional tunings following d5dcb0c61e + fix a warning when army defense 0 is turned into an attack
Differential Revision: https://code.wildfiregames.com/D632
This was SVN commit r19778.
2017-06-15 19:50:17 +00:00
Itms 860b5bbfce Revert an unfortunate early break introduced in 2527aabd5d, patch by Sandarac.
Reviewed By: Itms
Differential Revision: https://code.wildfiregames.com/D641
This was SVN commit r19777.
2017-06-15 17:45:16 +00:00
mimo 0179915f21 remove an unused computation in petra
This was SVN commit r19775.
2017-06-14 17:40:58 +00:00
Imarok b94a54b18a Use direct gui.scale instead of reciprocal gui.scale
Patch by Dariost.

Differential Revision: https://code.wildfiregames.com/D328
This was SVN commit r19774.
2017-06-14 17:13:44 +00:00
Imarok 2729596624 Gamesetup - Hide mapfilter option if there are no maps matching the filter
Reviewed by: elexis. Fixes: #4423.
Differential Revision: https://code.wildfiregames.com/D365
This was SVN commit r19773.
2017-06-13 09:42:16 +00:00
elexis 9b041467a2 More comfortable and safe resource name translation without breaking translation freeze.
Throw a reference error instead of silently using an untranslated string
if someone would have passed a non-existing translation context.
Throw a property undefined warning if someone passed a non-existing
resource when trying to translate it.
Both warnings had been introduced in 0f21151c4b, were removed by
52f311da2b but now occur without adding code explicitly.

Differential Revision: https://code.wildfiregames.com/D625
Reviewed By: s0600204
This was SVN commit r19771.
2017-06-13 03:12:51 +00:00
elexis ca9b3799b4 Remove an unneeded complicated resource-not-found warning in the ResourceSupply component which is already covered by template validation.
It was a leftover from s0600204's proposal from 52f311da2b (refs #3934)
to disable resources with a boolean property.

Differential__Revision: https://code.wildfiregames.com/D625
Reviewed By: s0600204
This was SVN commit r19770.
2017-06-13 03:11:43 +00:00
elexis 74512ef01c Remove emptyinit.xml workaround file for atlas introduced in abaea508ac that silenced an engine warning stating that the GUI page doesn't provide a JS init function.
Still throw that error if the function exists but could not be called
with JS_CallFunction.

Differential Revision: https://code.wildfiregames.com/D620
This was SVN commit r19769.
2017-06-13 02:50:41 +00:00
elexis 28de0fc775 Fix undefined resource warnings in 33b331f9fa / D23 (that occur in filter functions but not if statements) reported by fabio.
Fixes #4629
Differential Revision: https://code.wildfiregames.com/D629
Reviewed By: s0600204
This was SVN commit r19768.
2017-06-12 15:15:43 +00:00
elexis f3a00b9e65 Train bireme at the briton crannog for consistency with the regular dock and allow researching the town phase at a captured one.
Differential Revision: https://code.wildfiregames.com/D627
Reviewed By: mimo
This was SVN commit r19766.
2017-06-11 16:46:08 +00:00
Imarok 707897e5af Correctly init the statistics sequences.
Fixes #4620. refs 4a0673e44e, 31a41ab735. Reviewed by: elexis.
Differential Revision: https://code.wildfiregames.com/D616
This was SVN commit r19765.
2017-06-11 16:06:07 +00:00
elexis 03550f7595 Fix whitespace and lineendings in few recent commits.
This was SVN commit r19763.
2017-06-11 00:51:11 +00:00
elexis 33b331f9fa Correct resource order in the GUI.
Differential Revision: https://code.wildfiregames.com/D23
Reviewed By: s0600204
This was SVN commit r19762.
2017-06-11 00:17:59 +00:00
mimo e8008aa4fa fix error in 57fbcab3bf spotted by Sandarac, fixes #4627
This was SVN commit r19761.
2017-06-10 08:16:16 +00:00
elexis 561f66600c Actually display the gamesetup autocomplete tooltip string from D322 / b4e5858f6d.
Reported by echotangoecho.

This was SVN commit r19760.
2017-06-10 01:21:50 +00:00
elexis f882bfd56a Remove lobby MapPlayerList style from bffe917914 which overshadows the duplicate theme from common/ (only difference was scroll_bottom which isn't helpful).
This was SVN commit r19759.
2017-06-09 22:04:30 +00:00
elexis 17e26fae99 Remove unused deprecated label styles following 0cd825e552 (that if ever used again, should be added to a directory for that specific theme).
This was SVN commit r19758.
2017-06-09 21:55:33 +00:00
Imarok 6de6ae66d3 Fix selected graphs in summary always reset, when switching tabs
Patch by: mmoanis, Fixes: #4555
Differential Revision: https://code.wildfiregames.com/D599
This was SVN commit r19757.
2017-06-09 17:08:49 +00:00
mimo 57fbcab3bf petra: fix a side effect of d5dcb0c61e
Differential Revision: https://code.wildfiregames.com/D607
This was SVN commit r19756.
2017-06-09 17:07:50 +00:00
mimo 395fe8a86d Petra: do not create trade route crossing enemy territory
Differential Revision: https://code.wildfiregames.com/D600
This was SVN commit r19755.
2017-06-09 17:04:50 +00:00
elexis 81088344cb Purge embarassing typo in 026dcf10eb / D204 that made gaia ships on Danubius ignore instead of focus players ships.
This was SVN commit r19752.
2017-06-09 00:06:45 +00:00
Imarok b2801979c8 Fix typo in a397f9bccb.
This was SVN commit r19751.
2017-06-08 21:12:55 +00:00
elexis 1af6203b9c Stop spawning gaia attackers from civic centers if these were captured (not only upon destruction).
Differential Revision: https://code.wildfiregames.com/D608
Refs D380 /d724347812
Reviewed By: fatherbushido
This was SVN commit r19750.
2017-06-08 15:10:30 +00:00
elexis bb3638a9b5 Always set the Seed property from autostarted games, because it is required and used to initialize the RNG of the simulation following 6eaf76d653.
Differential Revision: https://code.wildfiregames.com/D592
Refs #4127, #3965

This was SVN commit r19749.
2017-06-08 14:47:55 +00:00
elexis 1e1ba6e284 Alternative player placement on River Archipelago: left strip vs right strip.
Differential Revision: https://code.wildfiregames.com/D610
Reviewed By: FeXoR
This was SVN commit r19748.
2017-06-08 12:16:59 +00:00
elexis 5d4cff9ec4 Remove fake minimum attack distances.
These structures can always attack near enemies because the minimum
attack range is within the building obstruction.
Thus prevent the minimum attack distance tooltip from D267 to show
misleading numbers, refs D111.
Remove the effective minimum attack distance of the hero cavalry archer
too for consistency with all other units following 5f78bb7318.

Differential Revision: https://code.wildfiregames.com/D611
Reviewed By: fatherbushido
This was SVN commit r19747.
2017-06-08 11:39:45 +00:00
fatherbushido 6d9e9bc54c Fix a broken texture call in an atlas only actor. Follow up of 5f67763e97. Refs #3796.
This was SVN commit r19746.
2017-06-08 07:42:20 +00:00
mimo 9b7dfdaa23 remove some unused AI var and rename a function to better reflects its use
This was SVN commit r19745.
2017-06-07 18:26:15 +00:00
elexis 15408203b2 Reload gamesetup maplist each GUI update (as was the case before D322 / b4e5858f6d), fixes a bug reported by causative (the clients always showed Map: Unknown).
This was SVN commit r19742.
2017-06-05 20:57:43 +00:00
elexis b19612c31a Fix whitespace and three refs instead of copies in the glooxwrapper/StunClient code identified by leper in 61261d14fc.
This was SVN commit r19741.
2017-06-05 20:44:00 +00:00
mimo 766f3ee8f5 petra: fix 72f6e02747 when a unit is promoted the same turn the attack is launched
Differential Revision: https://code.wildfiregames.com/D601
This was SVN commit r19740.
2017-06-05 14:13:31 +00:00
mimo 3a75da6008 petra: following d5db047c9a, avoid to choose a decaying structure as target
Differential Revision: https://code.wildfiregames.com/D586
This was SVN commit r19739.
2017-06-05 13:50:20 +00:00
Imarok 57b6e6a2bd Change toggle buddy button caption dynamically
Reviewed by: elexis
Differential Revision: https://code.wildfiregames.com/D578
This was SVN commit r19736.
2017-06-04 22:25:54 +00:00
Itms b6beb07255 Improve the strings from 6b743e30b3.
Reviewed by: scythetwirler, elexis
Differential Revision: https://code.wildfiregames.com/D603
This was SVN commit r19735.
2017-06-04 21:47:36 +00:00
Itms e59a304358 Reveal the Alpha 22 name!
This was SVN commit r19734.
2017-06-04 21:30:40 +00:00
Itms 4d31ff14eb Spelling corrections for Gauls.
Rename Britomartus to Viridomarus.
Patch by Phormio.

Differential Revision: https://code.wildfiregames.com/D493
This was SVN commit r19733.
2017-06-04 20:59:55 +00:00
Itms 2527aabd5d Fix hero selection rings becoming unsaturated when moving. Patch by Sandarac, refs 0a53c5e06a, #2627.
Differential Revision: https://code.wildfiregames.com/D563
This was SVN commit r19732.
2017-06-04 13:04:04 +00:00
mimo a63d7cc430 fix tutorial not translated
Reviewed By: Itms
Differential Revision: https://code.wildfiregames.com/D602
This was SVN commit r19730.
2017-06-04 12:23:48 +00:00
mimo ba10046350 revert some unwanted changes in previous commit
This was SVN commit r19728.
2017-06-03 19:01:38 +00:00
mimo e9e7922b5d Don't send useless "Invalid command" debug warnings when regaining capture points
Patch by Sandarac

Reviewed By: mimo
Differential Revision: https://code.wildfiregames.com/D430
This was SVN commit r19727.
2017-06-03 18:59:21 +00:00
Itms db0570e71e String changes, based on feedback from translators.
Reviewed By: Phormio
Differential Revision: https://code.wildfiregames.com/D561
This was SVN commit r19726.
2017-06-03 16:30:18 +00:00
fatherbushido 67d0a6a2ad Cleanup of 8387195fd2: use relative templates and change prepare times. Noticed by elexis.
This was SVN commit r19725.
2017-06-03 16:14:26 +00:00
elexis 0a1d669a0b Reduce rabbit health from 100HP to 10HP to make them more realistically huntable and have them consistent with chicken (5HP).
Increase footprint slightly for both artistic and gameplay reasons.

Differential Revision: https://code.wildfiregames.com/D562
Patch By: borg-
Refs #3786, D540

This was SVN commit r19723.
2017-06-03 01:11:52 +00:00
elexis ac6ca9d50a Prevent animals and resources on lava on Pompeii.
Refs: https://code.wildfiregames.com/D588
Patch By: Phormio
This was SVN commit r19722.
2017-06-03 00:49:36 +00:00
elexis dd9a8706f9 Complete the move of random number helper functions from the random map library (0e0ed94926, refs #6) to globalscripts.
Differential Revision: https://code.wildfiregames.com/D596
Patch By: bb
3c56638e8b introduced pickRandom and its petra chat application,
08fbf223f6 used the randFloat function more often, introduced randBool
and randIntInclusive/Exclusive
        to replace randInt (whose behavior and argument meaning depended
on the number of arguments) calls in the GUI and simulation,
ddfc985586 changed randInt to pickRandom for random maps,
da2b89583a introduced randBool with a probability and replaced
deprecated randInt calls for random maps,
175cded64a replaced randInt calls with randIntInclusive/Exclusive for
random maps except the Unknown,
a227a7f45b removed optional arguments of randFloat,
this commit replaces the remaining occurances in the Unknown maps,
thus fixes #4326 (old patch from refs #3102).

This was SVN commit r19721.
2017-06-03 00:28:34 +00:00
elexis 467824e727 Fix JSdoc, a missing explicit return, a missing warning, a typo and a jshint redeclaration warning of one rmgen2 function.
Fixes #4608
Differential Revision: https://code.wildfiregames.com/D593
Reviewed By: mimo
This was SVN commit r19720.
2017-06-02 22:25:33 +00:00
elexis 01710cd0be Rename the late observer setting "no one" to "disabled".
Revert the unintentional revert of 9b28ce3463 in 31d1536e52.

Differential Revision: https://code.wildfiregames.com/D583
Reviewed By: causative
This was SVN commit r19719.
2017-06-02 22:11:05 +00:00
elexis 51f62818f7 Fix all broken checks for the absent (random-mapgen+simulation) Seed property in the engine, refs #3965.
Hence display the originally intended useful warnings (instead of the
characterless JS "Script value conversion check failed" warning and
skipping the intended warnings).

This was SVN commit r19718.
2017-06-02 15:07:58 +00:00
mimo a219f59108 fix 72f6e02747 with two missing lines
This was SVN commit r19715.
2017-06-01 19:34:42 +00:00
mimo 6dfa20c745 petra: fix an garrison/ungarrison loop due to d1108516af
Reviewed By: Sandarac
Differential Revision: https://code.wildfiregames.com/D579
This was SVN commit r19714.
2017-06-01 19:31:35 +00:00
s0600204 f38c0c3876 Fix df89091c48 not handling upgradeable units correctly.
Tested By: wowgetoffyourcellphone
Refs: #4079
Differential Revision: https://code.wildfiregames.com/D517
This was SVN commit r19711.
2017-06-01 18:28:49 +00:00
mimo 862f2e08b1 petra: remove an unused var
This was SVN commit r19710.
2017-06-01 18:04:40 +00:00
mimo dde0d9e3b1 Fix formation problems reported in #4599: fix units not removed from formation when switching to the null formation and fix the display of formation icon when only one entity selected
Reviewed By: fatherbushido
Differential Revision: https://code.wildfiregames.com/D582
This was SVN commit r19709.
2017-06-01 18:03:24 +00:00
Imarok e6d782c2e9 Plus symbol for heal range overlay
Reviewed by: Sandarac
Differential Revision: https://code.wildfiregames.com/D571
This was SVN commit r19708.
2017-06-01 17:53:41 +00:00
elexis d724347812 Spawn attackers at the gaia civic centers on Danubius, so as to make the more frightening and incentivize its destruction.
Differential Revision: https://code.wildfiregames.com/D380
Reviewed By: Sandarac
This was SVN commit r19707.
2017-06-01 17:33:07 +00:00
elexis f4ba646972 Technology to rank up mercenaries, making them a more reasonable choice.
Differential Revision: https://code.wildfiregames.com/D407
Patch By: Grugnas
Reviewed By: fatherbushido
Numbers confirmed by borg-

This was SVN commit r19706.
2017-06-01 15:55:42 +00:00
elexis 23b02c31ed Danubius bugfixes, refs D380, D371, D204.
Fix broken targetClass parsing as reported by bb on 2017-04-19.

More space between islands and the shoreline as proposed by causative.

Fix typo reported by Sandarac.

Revert the terrible decision to set attackers to violent,
which caused siege engines to change the target from the civic center to
the units that attacked it and
ships to become stuck at the shoreline more often trying to fight back
against unreachable towers.

This was SVN commit r19705.
2017-06-01 13:29:08 +00:00
FeXoR ca654e3f79 Add random map Wild Lake. Patch by FeXoR. Reviewed by elexis and Imarok.
Differential Revision: https://code.wildfiregames.com/D548
This was SVN commit r19704.
2017-06-01 08:46:00 +00:00
elexis 61261d14fc STUN + XMPP ICE implementation.
Allows lobby players to host games without having to configure their
router.

Differential Revision: https://code.wildfiregames.com/D364
Fixes #2305
Patch By: fcxSanya.
StunClient based on code by SuperTuxKart, relicensed with approval of
the according authors hilnius, hiker, Auria, deveee, Flakebi, leper,
konstin and KroArtem.
Added rfc5245 (ejabberd) support, a GUI option, refactoring and segfault
fixes by myself.

Tested By: user1, Sandarac, Sestroretsk1714, Vladislav, Grugnas,
javiergodas
Partially Reviewed By: leper, Philip, echotangoecho
This was SVN commit r19703.
2017-06-01 06:33:52 +00:00
mimo cc2440c00b Petra: diplomacyManager cleanup
Patch by Sandarac

Reviewed By: mimo
Differential Revision: https://code.wildfiregames.com/D581
This was SVN commit r19701.
2017-05-31 19:08:39 +00:00
elexis f011b7d18e Fix a typo in b052831529 that caused sprintf errors as reported by Sandarac.
This was SVN commit r19700.
2017-05-31 18:01:31 +00:00
elexis 77c4e649af Replace hardcoded copies of a C++ simulation constant in JS used to compute the mapsize with a call to a new getter in the C++ interface.
Differential Revision: https://code.wildfiregames.com/D577
Patch By: Sandarac
This was SVN commit r19699.
2017-05-31 16:43:57 +00:00
mimo 72f6e02747 petra: fight back when a cc is captured instead of retreating
Reviewed By: Sandarac
Differential Revision: https://code.wildfiregames.com/D575
This was SVN commit r19698.
2017-05-31 16:27:31 +00:00
fatherbushido 2e5138bad9 Reduce slightly armor of gaul fanatic unit and make the run speed more consistent. The purpose is to balance it a bit more but also keep and emphasize the specificity of that unit. Reviewed by elexis.
Differential Revision: https://code.wildfiregames.com/D569
This was SVN commit r19697.
2017-05-30 21:45:54 +00:00
mimo 80b5c2dae1 fix a ai error following d5dcb0c61e, fixes #4602
This was SVN commit r19696.
2017-05-30 19:45:09 +00:00
fatherbushido 5a30156bb3 Use multiplication instead of addition in the steel working technology. Patch by temple.
Differential Revision: https://code.wildfiregames.com/D552
This was SVN commit r19695.
2017-05-30 17:13:59 +00:00
fatherbushido d5db047c9a Allow walls and fields to be captured by territory but not by capture attack, by using restricted classes. Reviewed by mimo and Imarok.
Differential Revision: https://code.wildfiregames.com/D450
This was SVN commit r19694.
2017-05-29 20:27:09 +00:00
fatherbushido 5de66b24b1 Tweak many auras. Do some cleaning, increase or decrease some effects to induce more choices. Add an aura to Alexander. Change the effect of the effect of Marcellus and add an aura to Scipio based on a design doc. Fix some strings. Commented by elexis. Largelly discussed and reviewed by Grugnas and borg-.
Differential Revision: https://code.wildfiregames.com/D541
This was SVN commit r19693.
2017-05-29 20:18:08 +00:00
mimo b43f6e519a petra cleanup following 0f6cc9ee62: code cleanup + distant berries gatherer are reallowed in maps with disabled field and corrals.
Reviewed By: Sandarac
Differential Revision: https://code.wildfiregames.com/D566
This was SVN commit r19692.
2017-05-29 18:22:24 +00:00
fatherbushido 8387195fd2 Rework heros costs. Make their costs more consistent with champions costs and so make them more expensive. Use relative templates for costs and armor. Adjust attack repeat time with last champions changes. Patch by Grugnas.
Differential Revision: https://code.wildfiregames.com/D225
This was SVN commit r19691.
2017-05-29 17:22:40 +00:00
elexis a7c09a500d That what leper said. Refs 9ff7ec3465, 31d1536e52.
This was SVN commit r19688.
2017-05-29 02:56:34 +00:00
elexis 7b92b518f3 Rephrase a hero tooltip and update the roman army camp description following D405 as reported by Hannibal Barca.
Differential Revision: https://code.wildfiregames.com/D564
Reviewed By: fatherbushido
This was SVN commit r19687.
2017-05-29 02:25:01 +00:00
s0600204 10f8d019e5 Add a test for the Upgrade Component, focusing on tech modifications.
Also tests the appropriate function in `globalscripts/Templates.js`.

Reviewed By: fatherbushido
Differential Revision: https://code.wildfiregames.com/D519
This was SVN commit r19686.
2017-05-28 21:09:16 +00:00
elexis 31d1536e52 Optionally allow late observers for buddies only.
Differential Revision: https://code.wildfiregames.com/D549
Fixes #4528
Reviewed By: fpre
This was SVN commit r19685.
2017-05-28 18:05:08 +00:00
elexis d44a407fc4 That what mimo said.
This was SVN commit r19684.
2017-05-28 17:45:17 +00:00
mimo feedca18cd fix an absurd concern due to a crazy rule which push people to raise a concern for such thing, causing much more effort to raise and then accept the fix rather than simply fix it
This was SVN commit r19683.
2017-05-28 17:34:18 +00:00
elexis 87305cc727 Give the mauryan hero healer Chanakya a heal aura just like the briton hero Cunobelin has,
because that aura is an order of magnitude more useful, making that hero
a viable choice.
Nerf Cunobelin aura by 20%, since 100 units can fit easily into the aura
range and heal while fighting and moving too.

Differential Revision: https://code.wildfiregames.com/D565
Reviewed By: fatherbushido
Numbers contested by borg-, PhyZic (proposed 0.5) and Grugnas and
nigel87 (proposed 1.0)

This was SVN commit r19682.
2017-05-28 14:58:57 +00:00
mimo 0f6cc9ee62 petra: do not gather berries too far
Reviewed By: Sandarac
Differential Revision: https://code.wildfiregames.com/D560
This was SVN commit r19681.
2017-05-28 09:02:00 +00:00
elexis 097d76f319 Heal range visualization.
Differential Revision: https://code.wildfiregames.com/D432
Patch By: Sandarac
This was SVN commit r19679.
2017-05-28 05:07:10 +00:00
elexis f99adf65a2 Disable the diplomacy buttons of the current diplomatic stance to prevent useless diplo changes in the GUI.
Differential Revision: https://code.wildfiregames.com/D461
Patch By: Sandarac
This was SVN commit r19678.
2017-05-28 02:45:21 +00:00
elexis 247e4c6451 Add fish to the map Gear.
Fixes #4240
Patch By: odoaker
This was SVN commit r19677.
2017-05-28 02:32:29 +00:00
elexis 8b7438af5d Fix impassable berries on Ardennes Forest.
Fixes #4295
Patch By: odoaker
This was SVN commit r19676.
2017-05-28 01:20:37 +00:00
Imarok ed38491622 Allow to show capture, resource and health bar at the same time. (needed for D450)
Reviewed by: elexis
Differential Revision: https://code.wildfiregames.com/D516
This was SVN commit r19675.
2017-05-27 20:38:05 +00:00
Imarok 80635665f7 Fix replay menu loading time by using a cache file
Reviewed by: elexis
Fixes #3433
Differential Revision: https://code.wildfiregames.com/D39
This was SVN commit r19674.
2017-05-27 20:17:57 +00:00
Imarok d096c2f09c Update teamboni in civ.jsons
Reviewed by: fatherbushido
refs #4082
Differential Revision: https://code.wildfiregames.com/D460
This was SVN commit r19673.
2017-05-27 20:14:29 +00:00
elexis e63dc65594 Add raindrops to Extinct Volcano.
Differential Revision: https://code.wildfiregames.com/D539
Reviewed By: FeXoR
This was SVN commit r19672.
2017-05-27 20:00:23 +00:00
mimo 743609289a Adjust size of tutorial window by increasing its width and decrease height, to make it a bit less intrusive.
Reviewed By: elexis
Differential Revision: https://code.wildfiregames.com/D559
This was SVN commit r19671.
2017-05-27 14:09:29 +00:00
Itms 3d53614bce Add a script to lint the translations with Dennis.
Two of our printf calls are not compatible with python-format and will
be ignored until Dennis supports the corresponding formats. Also removed
meaningless enclosing characters that were wrongly considered HTML.

Reviewed By: leper
Differential Revision: https://code.wildfiregames.com/D214
This was SVN commit r19669.
2017-05-27 12:26:26 +00:00
FeXoR 4a78efe0e3 Fixes an error while placing Cartaginian walls ingame.
Differential Revision: https://code.wildfiregames.com/D343
Patch By: Grugnas
This was SVN commit r19668.
2017-05-27 10:59:29 +00:00
elexis 9ff7ec3465 Scale the cursor according to the GUI scale (HiDPI support).
Differential Revision: https://code.wildfiregames.com/D320
Fixes #3875
Patch By: Dariost
Reviewed By: domdomegg
This was SVN commit r19667.
2017-05-27 09:24:04 +00:00
elexis a3913080cc Option to prevent joining clients from becoming automatically assigned to unused playerslots.
Thus the controller doesn't have to unassign every unwanted client
immediately in order to minimize frustration for those clients.
Option to automatically assign joining buddies to playerslots as a
better approximation for frequent players.

Differential Revision: https://code.wildfiregames.com/D546
Reviewed By: fpre
This was SVN commit r19666.
2017-05-27 08:09:10 +00:00
elexis b366ae0829 Swap the colors too when swapping players in the gamesetup.
Differential Revision: https://code.wildfiregames.com/D287
Patch By: fpre
This was SVN commit r19665.
2017-05-27 07:31:15 +00:00
fatherbushido 3a0e1bc52a Use multiplication instead of addition in some Persian technology. Patch by temple. Reviewed by scythetwirler.
Differential Revision: https://code.wildfiregames.com/D551
This was SVN commit r19664.
2017-05-26 20:46:05 +00:00
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
s0600204 9da0db50ee Revert change to datatype of resource costs in Cost.js made in 52f311da2b
Refs: #3934
Change agreed by: fatherbushido, wraitii
This was SVN commit r19604.
2017-05-18 01:30:01 +00:00
elexis 7a91d330d3 Add GetMicroseconds function to allow microsecond precise timing in the JS GUI.
Differential Revision: https://code.wildfiregames.com/D190
Reviewed By: Vladislav, echotangoecho
This was SVN commit r19603.
2017-05-17 22:10:09 +00:00
elexis 5302e3e1f7 Prevent players and AIs being assigned to the same slot simultaneously in SP and MP if persist-match-settings were enabled
following the wrong move of this clearance from updatePlayerList to
handlePlayerAssignmentMessage.

Differential Revision: https://code.wildfiregames.com/D434
Reviewed By: Imarok
This was SVN commit r19602.
2017-05-17 22:01:23 +00:00
elexis 4bacd6f38e Buff elephant archer after f15abb066c made it slow, 38c7d7224a removed the capturing ability, 30c7a2ef18 removed the resource gathering ability and c279283d82 made it fat.
Double the damage output, HP and cost.
Add armor and metal cost for consistency with the War Elephant.

Differential Revision: https://code.wildfiregames.com/D436
Reviewed By: fatherbushido
Tested By: borg-
Values agreed with: Grugnas, nigel87

This was SVN commit r19601.
2017-05-17 21:55:35 +00:00
s0600204 df89091c48 Show entity upgrades in the Structure Tree
Reviewed By: bb
Trac Tickets: #4079
Differential Revision: https://code.wildfiregames.com/D92
This was SVN commit r19600.
2017-05-17 18:41:23 +00:00
mimo 15e2b42525 New economic tutorial based on triggers, accessible from the "learn to play" button
Reviewed By: elexis
Differential Revision: https://code.wildfiregames.com/D194
This was SVN commit r19599.
2017-05-17 17:33:36 +00:00
mimo 7dd3cf7543 petra captureRelics cleanup following 921c89d3a6
This was SVN commit r19598.
2017-05-17 17:21:05 +00:00
elexis 24de93e39a Sort lobby games by status, then by name when clicking on the name column.
Differential Revision: https://code.wildfiregames.com/D300
Patch By: fpre
This was SVN commit r19597.
2017-05-16 23:44:19 +00:00
mimo 921c89d3a6 Petra: Capture gaia relics
Summary:
Petra will capture gaia relics on occasion. Because the AI has access to
all of the map and all entities in the game, these gaia capture events
have to be spaced out quite a bit to make things fair.

Reviewed By: mimo
Differential Revision: https://code.wildfiregames.com/D333
This was SVN commit r19596.
2017-05-16 17:33:31 +00:00
elexis 8156d297ea Display the minimum, maximum and current value of sliders in the options page and round to at most 2 decimal places.
Differential Revision: https://code.wildfiregames.com/D459
Reviewed By: Vladislav
This was SVN commit r19595.
2017-05-16 16:38:41 +00:00
elexis 29dfcda35f Change the options page dropdown implementation to use a textual identifier instead of the numerical dropdown array index in the config file and code.
Differential Revision: https://code.wildfiregames.com/D402
Patch By: Polakrity
This was SVN commit r19594.
2017-05-16 15:52:01 +00:00
fatherbushido 7cfef7cf9f Tooltip mistake in a589b067a9. Noticed by elexis.
This was SVN commit r19593.
2017-05-16 12:15:08 +00:00
fatherbushido a589b067a9 Team bonuses for Britons, Gauls and Romans. Reviewed by elexis. Refs #4082.
Differential Revision: https://code.wildfiregames.com/D502
This was SVN commit r19591.
2017-05-16 05:16:41 +00:00
elexis 576754566d Revert the decision from 903460994d to let cavalry units prefer siege engines over human units, because they most often don't reach the siege engines before being massacred by the attackers.
Differential Revision: https://code.wildfiregames.com/D394
Fixes #4543
Refs #4194
Patch By: causative
Reviewed By: Grugnas
Reported By: borg-, ffm
This was SVN commit r19590.
2017-05-16 02:51:02 +00:00
elexis 90beda96f8 Fix atlas clicking following 8f36ca47a1 / D326 by adding the missing clicks property to the wxWidgets SDL event construction.
Differential Revision: https://code.wildfiregames.com/D452
Fixes #4557
Patch By: causative
This was SVN commit r19589.
2017-05-16 00:09:16 +00:00
elexis 2599d0374e Get the index of the hovered element in GUI lists and use it to display item-specific tooltips in the gamesetup for the victory condition, maptype and starting resources.
Differential Revision: https://code.wildfiregames.com/D316
Fixes #3699
Patch By: Vladislav
This was SVN commit r19588.
2017-05-15 21:49:10 +00:00
Imarok aa302dcb2d Fix whitespace in 202e567492
This was SVN commit r19587.
2017-05-15 19:30:00 +00:00
elexis d8c0492ddb Fix the readystate following D322 / b4e5858f6d.
Differential Revision: https://code.wildfiregames.com/D487
Reviewed By: Imarok
This was SVN commit r19586.
2017-05-15 19:14:51 +00:00
s0600204 f325452f2d Add missing check of phase techs' tech requirements in Structure Tree.
Reviewed By: elexis
Differential Revision: https://code.wildfiregames.com/D500
This was SVN commit r19585.
2017-05-15 18:56:10 +00:00
Imarok 202e567492 Fix economy and military score
Reviewed by: causative
Differential Revision: https://code.wildfiregames.com/D494
This was SVN commit r19584.
2017-05-15 18:43:38 +00:00
elexis 1eae8d0a95 Fix doubleclicking if the unit died between the clicks following 8f36ca47a1, refs #4414, https://code.wildfiregames.com/D326
Differential Revision: https://code.wildfiregames.com/D469
Patch By: causative
This was SVN commit r19583.
2017-05-15 11:51:01 +00:00
elexis a73d59720e Add hint to the manual that the batch train size can be changed in the options.
Differential Revision: https://code.wildfiregames.com/D501
Reviewed By: echotangoecho
This was SVN commit r19580.
2017-05-14 22:57:55 +00:00
Itms 62195c28f2 Fix out of range access in CInput, patch by vladislavbelov. Fixes #4570.
Some invalid cursor positions were not checked, resulting in a crash in
Debug mode. This was revealed by e1e4ef0370, refs #4401.

Reviewed By: echotangoecho, Itms
Differential Revision: https://code.wildfiregames.com/D484
This was SVN commit r19579.
2017-05-14 19:02:03 +00:00
fatherbushido 000e39629f Make initialization of phase techs for AI more robust. Refs ae3b66a778. Fix #4573. Reviewed by mimo.
Differential Revision: https://code.wildfiregames.com/D491
This was SVN commit r19578.
2017-05-14 18:01:27 +00:00
mimo 62259e34e4 Petra: Fix missing check for getEntityById, patch by Sandarac
Reviewed By: mimo
Differential Revision: https://code.wildfiregames.com/D496
This was SVN commit r19577.
2017-05-14 09:44:16 +00:00
elexis d5c9725dc3 Revert the wrong "insufficient permissions to remove an account" error message from 9281aaf25e to the previous "Registration forbidden" which is shown when lobby registrations are disabled or restricted to some IP range.
Differential Revision: https://code.wildfiregames.com/D319
Refs #3047
Reviewed By: scythetwirler, leper
This was SVN commit r19575.
2017-05-14 03:18:21 +00:00
elexis 08b23d0164 Sooner network timeout warnings.
Reviewed By: echotangoecho
This was SVN commit r19574.
2017-05-13 22:52:11 +00:00
elexis aa5f3e7d32 Fix the most annoying instance of the persist-matchsettings-bugs that prevented players to build the Ptolemian lighthouse in case of previously having selected a map where that template is disabled.
Most recently reported by nigel87.

Differential Revision: https://code.wildfiregames.com/D489
Reviewed By: Grugnas
Refs #3883

This was SVN commit r19573.
2017-05-13 17:15:16 +00:00
mimo 1f1b179202 petra: take restricted classes into account
This patch implements some changes needed to take restricted classes
into account for example for D450, but it does not claim to be complete.
This will have to be fully tested when these restrictions are really
used.
Tested by fatherbushido using D450

Differential Revision: https://code.wildfiregames.com/D473
This was SVN commit r19572.
2017-05-13 15:14:23 +00:00
mimo fe2e0fa02f follow-up and complement of D446 to adapt garrisoning to the structure attackers
Summary:
- take the healthLevel of the units into account
- take Sandarac comments on D446 into account

Differential Revision: https://code.wildfiregames.com/D468
This was SVN commit r19571.
2017-05-13 15:04:04 +00:00
mimo e8c6b09c4f Reset the alert of ProductionQueues when ownerShip changes, fixes #4571
This was SVN commit r19570.
2017-05-13 14:52:23 +00:00
fatherbushido ae3b66a778 Make phase technology researchable in all captured civic center. Reviewed by elexis. Fix #4572.
This was SVN commit r19569.
2017-05-13 13:58:27 +00:00
elexis 57e767ac08 Gamesetup cleanup: Merge two adjacent identical loops in sanitizePlayerData.
Reviewed By: Imarok
This was SVN commit r19567.
2017-05-12 18:08:14 +00:00
fatherbushido ac83155197 Remove reference to range in aura description. Patch by Grugnas.
Differential Revision: https://code.wildfiregames.com/D464
This was SVN commit r19566.
2017-05-12 17:09:07 +00:00
fatherbushido 5f4d5cdf76 Remove a leftover argument in GetSimulationState call. Refs 00ea7763f7. Reviewed by elexis and echotangoecho.
Differential Revision: https://code.wildfiregames.com/D479
This was SVN commit r19565.
2017-05-12 16:20:56 +00:00
Imarok 31a41ab735 Fix warning when quitting the game during loading. Patch by bb.
Also contains some `StatistcTracker` cleanup.

Differential Revision: https://code.wildfiregames.com/D475
This was SVN commit r19564.
2017-05-12 14:21:28 +00:00
Imarok 77246af17a Avoid NetClient FSM error when pausing while loading the game.
Patch by echotangoecho. Closes ec1696ded3. Fixes #4261.

Differential Revision: https://code.wildfiregames.com/D472
This was SVN commit r19563.
2017-05-12 13:22:29 +00:00
elexis 00c4adfae8 Add missing Hexify call to the OOS dialog in D105 that became required with the hash comparison in JS. Reported by causative.
Differential Revision: https://code.wildfiregames.com/D476
Reviewed By: leper
This was SVN commit r19562.
2017-05-12 08:50:20 +00:00
leper 51f7502bb1 Don't move temporaries, so possibly allowing for copy elision.
Pointed out by clang's -Wpessimizing-move.

Reviewed By: wraitii
Differential Revision: https://code.wildfiregames.com/D421
This was SVN commit r19559.
2017-05-11 23:24:54 +00:00
elexis 6e549bfed2 Prohibit cheats if cheats are disabled,
i.e. developer cheats to control enemy units, revealing the map and
promoting units too.

Open the developer overlay only if cheats are enabled (which is always
the case in singleplayer mode and only the case in multiplayer mode if
explicitly enabled).
(This doesn't make it harder for developers to "debug", since they
previously had to remember to disable the rated game setting too. Also
every bug had to be reproduced with the replay either way)

Reverts 3cbbf31173 which reverted 6e0e607b20 (since as of c288278229,
the autostart gamesetup enables cheats too).

Differential Revision: https://code.wildfiregames.com/D455
Fixes #3551
Reviewed By: echotangoecho
Agreed with Itms and Imarok in the last staff meeting.

This was SVN commit r19558.
2017-05-11 22:49:54 +00:00
elexis c288278229 Enable cheats in autostarted games because the JS gamesetup enables them in singleplayer and because the autostarted multiplayer mode relies on the change-perspective feature to control players.
Differential Revision: https://code.wildfiregames.com/D453
Refs #2676
Reviewed By: echotangoecho
This was SVN commit r19557.
2017-05-11 22:32:41 +00:00
elexis 3cd2055ca7 Use self-closing tags for empty elements everywhere (refs d21c0026ec and 06bbcd6b76).
This was SVN commit r19556.
2017-05-11 22:11:25 +00:00
elexis 9ef3447b2a Fix missing escaping in 06bbcd6b76. Reported by Vladislav, patch by Phormio.
This was SVN commit r19555.
2017-05-11 21:37:27 +00:00
elexis d074c4d809 Use GUISize constructor instead of string concatenation when only passing absolute values.
Differential Revision: https://code.wildfiregames.com/D471
Reviewed By: bb
This was SVN commit r19554.
2017-05-10 22:29:55 +00:00
elexis 3d8fd6e740 Fix the position of a treasure which couldn't be picked up on the skirmish map Mediterranean Cove.
Patch By: Phormio
Fixes #4566

This was SVN commit r19553.
2017-05-10 16:53:41 +00:00
elexis bbc7852df8 Use let keyword for cmpTrigger consistently, so that this reference to the component before deserialization can't be reused inside the Trigger component after deserialization which would cause an OOS on rejoin / savegame loading as experienced prior 53570da065.
Differential Revision: https://code.wildfiregames.com/D195
Refs #4310, 53570da065, d124b32f6a
Reviewed By: Sandarac
This was SVN commit r19552.
2017-05-10 14:03:51 +00:00
fatherbushido 11f90549c7 Add missing roundings for garrisoned arrows tooltips. Reviewed by elexis.
Differential Revision: https://code.wildfiregames.com/D470
This was SVN commit r19551.
2017-05-10 13:04:35 +00:00
fatherbushido bba42de375 Add Iberian heroes auras. Patch by Grugnas.
Differential Revision: https://code.wildfiregames.com/D397
This was SVN commit r19550.
2017-05-10 11:32:26 +00:00
elexis 51655081d8 Botswanan Haven random map.
Differential Revision: https://code.wildfiregames.com/D362
Patch By: Hannibal_Baraq
This was SVN commit r19548.
2017-05-09 20:09:18 +00:00
mimo d1108516af petra: adapt garrisoning to the attackers
Summary: When a structure with arrow was attacked, it was garrisoned
independently of the attacker, which was not the best answer when
atacked by a ram for example. This patch tries to adapt the garrisoning
to the attackers.

Reviewed By: Sandarac
Differential Revision: https://code.wildfiregames.com/D446
This was SVN commit r19547.
2017-05-09 17:53:59 +00:00
mimo 0517bbb83f cleanup of da4e03b7ad
This was SVN commit r19546.
2017-05-09 16:58:53 +00:00
elexis 8bf732453e Ignore color and font tags when typing something in a Dropdown gui element to select an item.
Differential Revision: https://code.wildfiregames.com/D462
Refs D435
Reviewed By: Vladislav
This was SVN commit r19545.
2017-05-09 13:29:19 +00:00
fatherbushido 228ba51d5c Aura Range tooltip. Reviewed by elexis.
Differential Revision: https://code.wildfiregames.com/D458
This was SVN commit r19544.
2017-05-09 12:55:56 +00:00
elexis 9cfe30c92a Add missing pair of braces as reported by mimo in b4e5858f6d.
This was SVN commit r19542.
2017-05-08 23:40:44 +00:00
elexis 2423e85a88 Add an optional color field to the gamesetup dropdown values, so that autocompleted text of the setting values (especially observernames) doesn't contain the color tag.
Differential Revision: https://code.wildfiregames.com/D435
Reviewed By: Imarok
This was SVN commit r19541.
2017-05-08 23:34:25 +00:00
elexis 36a16a4576 Remove debug breakpoint that is triggered whenever an unsupported UTF32 character is encountered,
for example when someone would send a lobby chat message containing such
a character, it effectively ended the game of the recipients.

Differential Revision: https://code.wildfiregames.com/D456
Fixes #4433
Reviewed By: leper
Reported and tested by: Hannibal_Barca
This was SVN commit r19540.
2017-05-08 22:29:00 +00:00
Imarok af2f8a95fb Improve training tooltip with multiple selection
Reviewed by: bb. Fixes #4264.
Differential Revision: https://code.wildfiregames.com/D43
This was SVN commit r19538.
2017-05-08 18:13:26 +00:00
Imarok 30823d8988 Make g_EntityCommands use all entities but not only the first
Reviewed by: bb. Fixes #4273.
Differential Revision: https://code.wildfiregames.com/D45
This was SVN commit r19537.
2017-05-08 18:04:43 +00:00
elexis 6826a1355e Display aura tooltips for the entities in the top panel (currently heroes and relics).
Differential Revision: https://code.wildfiregames.com/D340
Reviewed By: fatherbushido (and leper and sanderd17 too basically)
This was SVN commit r19536.
2017-05-08 07:16:43 +00:00
leper 25b1837603 Pass CVector3D as const reference in a few places.
Reviewed By: Sandarac
Differential Revision: https://code.wildfiregames.com/D424
This was SVN commit r19534.
2017-05-08 04:04:45 +00:00
leper bdfe500f98 Draw paths only when cinematics isn't playing. Patch by Vladislav.
Also show the GUI after the cinematics stopped playing in Atlas.

Differential Revision: https://code.wildfiregames.com/D411
This was SVN commit r19533.
2017-05-08 04:02:33 +00:00
leper c5ab9925d4 Fix possible null dereferences.
Reviewed By: vladislavbelov
Differential Revision: https://code.wildfiregames.com/D420
This was SVN commit r19532.
2017-05-08 02:41:23 +00:00
leper 631fa4b376 Remove unused old code for triggers in atlas.
Actually implementing atlas support for triggers will most likely
require a different interface, so no use keeping it.

Reviewed By: vladislavbelov
Differential Revision: https://code.wildfiregames.com/D418
This was SVN commit r19531.
2017-05-08 02:40:22 +00:00
Imarok a397f9bccb Sanitize playername in sanitizePlayerData in gamesetup and remove some hardcodings.
Fixes #4501

Reviewed by: elexis
Differential Revision: https://code.wildfiregames.com/D426
This was SVN commit r19530.
2017-05-07 22:28:56 +00:00
Itms 06bbcd6b76 Revamp of the quotes in the game loading screen, research and patch by Phormio.
Remove the "Quote of the Day" titling which did not make a lot of sense.

Undocumented or misleading quotes removed, new quotes, more historical
context, and literary source for all of them.

Reviewed By: Gallaecio, Itms
Differential Revision: https://code.wildfiregames.com/D296
This was SVN commit r19529.
2017-05-07 22:05:11 +00:00
fatherbushido 1c64742edc Add a type argument for CanAttack method of Attack component. Patch by bb. Fixes #4220.
Differential Revision: https://code.wildfiregames.com/D122
This was SVN commit r19528.
2017-05-07 19:32:59 +00:00
fatherbushido ca89fa35b9 Edit many aura names. Remove "aura" from the name, use more flavouring name, replace placeholder or generic names. Patch by Hannibal_Barca. Reviewed by elexis.
Differential Revision: https://code.wildfiregames.com/D447
This was SVN commit r19527.
2017-05-07 18:56:14 +00:00
fatherbushido 17aa212c93 Clean a bit auras gui info parsing
Summary: (Title is clumsy)

Test Plan:
Check for example auras tooltip:
structree
entity tooltip
construction panel
wall tooltip too

Reviewers: elexis

Reviewed By: elexis
Subscribers: Vulcan

Differential Revision: https://code.wildfiregames.com/D447
This was SVN commit r19526.
2017-05-07 18:38:41 +00:00
Itms 7d00501a90 Make 81c57e8a28 compatible with wxWidgets 2.8, patch by vladislavbelov.
Reviewed By: Itms
Differential Revision: https://code.wildfiregames.com/D427
This was SVN commit r19525.
2017-05-07 15:49:55 +00:00
Itms a857ee441e Enable other languages than English in the Windows installer, patch by vladislavbelov.
Reviewed By: Itms
Differential Revision: https://code.wildfiregames.com/D314
This was SVN commit r19524.
2017-05-07 14:38:29 +00:00
mimo da4e03b7ad petra: hunters/gatherers improvments
Summary:
- better detection (hopefully less false positive due to pathfinder
problems) of inaccessible targets
- prevent hunters from drifting too much when chasing their target

Differential Revision: https://code.wildfiregames.com/D400
This was SVN commit r19523.
2017-05-07 09:25:03 +00:00
fatherbushido ed72056fb5 Actually delete files in 07233d8cd6.
This was SVN commit r19522.
2017-05-06 14:39:10 +00:00
fatherbushido 07233d8cd6 Remove a not validating unused sound marker template. While at it remove another unused template in the same folder. Patch by Stan.
Differential Revision: https://code.wildfiregames.com/D412
This was SVN commit r19521.
2017-05-06 14:36:06 +00:00
elexis e6b909bb51 Rename the map Rouen to Ratumacos and make it circular.
Description by Hannibal_Barca.

Differential Revision: https://code.wildfiregames.com/D177
Reviewed By: Grugnas
This was SVN commit r19520.
2017-05-06 01:20:49 +00:00
elexis ee5bb1fd61 RangeVisualization component and use it to visualize Aura ranges.
Differential Revision: https://code.wildfiregames.com/D238
Fixes #4349
Patch By: Sandarac
This was SVN commit r19519.
2017-05-06 00:47:21 +00:00
elexis f4ff462449 Select the number of relics to spawn in the gamesetup.
Differential Revision: https://code.wildfiregames.com/D410
Reviewed By: Sandarac
This was SVN commit r19518.
2017-05-05 20:41:37 +00:00
Imarok 4a0673e44e Show all summary values as a graph
Reviewed by: bb
Differential Revision: https://code.wildfiregames.com/D144
This was SVN commit r19517.
2017-05-05 18:52:20 +00:00
Imarok 2f67b2da61 Correctly center ally command buttons
Reviewed by: bb
Differential Revision: https://code.wildfiregames.com/D428
This was SVN commit r19516.
2017-05-05 15:10:12 +00:00
elexis 76bc9b579a Clientside Lobby support for muted players (visitor role).
Displays a chat message and a notification in the player details to
everyone if someone was muted and
hides the chat input to visitors.

Differential Revision: https://code.wildfiregames.com/D339
Reviewed By: user1
This was SVN commit r19514.
2017-05-05 01:13:12 +00:00
mimo ba37ff9907 petra: remove some unneeded parentheses
This was SVN commit r19513.
2017-05-04 18:48:13 +00:00
Imarok dad3e3d1bd Add the select all idle workers/fighters hotkey to the manual
Acked by elexis

This was SVN commit r19512.
2017-05-04 12:14:43 +00:00
leper 329f9e0957 Remove broken atlas error reporting code.
This has been disabled for nearly 10 years (44f5288a1d), so remove it.

Reviewed By: fatherbushido, vladislavbelov
Differential Revision: https://code.wildfiregames.com/D423
This was SVN commit r19511.
2017-05-04 09:29:24 +00:00
fatherbushido bd73588935 Add the missing file in c707999bec. Refs #2524.
This was SVN commit r19510.
2017-05-04 09:17:29 +00:00
fatherbushido c707999bec Fix Missing props for the old athen fortress. Patch by Stan.
Refs #2524.
Differential Revision: https://code.wildfiregames.com/D352
This was SVN commit r19509.
2017-05-04 09:13:54 +00:00
leper f794a14610 Declare variable when actually initialized.
Reviewed By: wraitii
Differential Revision: https://code.wildfiregames.com/D417
This was SVN commit r19508.
2017-05-04 06:53:21 +00:00
elexis 4a5f302ce1 Optional FPS Limiter for running games too, use the Slider GUI object in the config to specify custom limits.
Make it way more accurate by excluding the SDL_Wait time and microsecond
precision.

Differential Revision: https://code.wildfiregames.com/D109
Refs #2882
Reviewed By: Vladislav
This was SVN commit r19507.
2017-05-03 23:44:13 +00:00
elexis dd9b83626e Roman Entrenched Army Camp balancing.
Prevent building it in player owned territory, so as to
  highlight its usage as a building to dominate the enemy in his own
territory and
  prevent the player from building it as a defensive structure right
besides a fortress and civic center.

Increase CapturePoints from 500 to 1500, and RegenRate to 10, so that it
doesn't convert to gaia in 14 seconds but 50.
Reduce GarrisonRegenRate from 5 to 3.
Add minimum distance between two camps.
Increase cost to 500 wood and buff crush armor from 10% to 19%.
Reduce maximum range from 80 meters to 50 meters.

Differential Revision: https://code.wildfiregames.com/D405
Reviewed By: fatherbushido
Reported by PhyZic, discussed with Grugnas.

This was SVN commit r19505.
2017-05-03 12:32:48 +00:00
elexis b4e5858f6d Unify gamesetup option handling, fixes #3994, refs #3049.
Removes a lot of duplication and ugly GUI handling code with very
similar, yet different code paths.
Move the setting specific logic to the functions of that setting and
keep the universal logic in global atomic functions.
Make gamesetup.xml agnostic of all gamesetup settings.

Adding a new gamesetup option now only requires adding one hunk with the
titles and values and one line in g_OptionOrderGUI.
Opens up the possibility to iterate over all settings, refs #3806,
#3883.

Allow starting singleplayer games in observermode with only AIs
assigned, fixes #4078.
Autocomplete translations of all setting titles and selected title
values like playernames and victory conditions.

Transfer the AI difficulty when swapping with a player.
Move logic from onTick to the GUI handling functions.
Change some global consts to var, so that contributors become invited to
change them from a different place.
Add missing startGameButton tooltip translation.

Differential Revision: https://code.wildfiregames.com/D322
Reviewed By: wraitii
Some strings reviewed By: leper
This was SVN commit r19504.
2017-05-02 20:57:14 +00:00
elexis 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
Itms 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
elexis 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
FeXoR 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
mimo 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
wraitii 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
elexis ba5ab40c66 Fix lineendings, two missing semicolons and a string fix.
This was SVN commit r19494.
2017-05-01 05:08:00 +00:00
elexis 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
elexis 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
leper 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
leper 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
elexis 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
leper 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
leper 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
elexis 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
elexis 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
wraitii 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
elexis 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
elexis 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
elexis 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
elexis 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
elexis 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
elexis 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
mimo 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
elexis 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
elexis 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
elexis 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
elexis 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
elexis 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
elexis 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
elexis 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
elexis 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
mimo 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
fatherbushido 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
elexis 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
fatherbushido 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
elexis 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
elexis 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
elexis 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
mimo e3daa35075 force the eject when renaming a garrisoned entity, fixes #4532
This was SVN commit r19452.
2017-04-24 20:38:39 +00:00
fatherbushido 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
fatherbushido 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
elexis 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
fatherbushido 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
elexis 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
elexis 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
elexis 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
elexis 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
elexis 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
elexis 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
elexis a3ccbba4a2 Update credits entries, refs ed5d8f749e
This was SVN commit r19441.
2017-04-21 12:16:06 +00:00
fatherbushido 1d7b9a434f Fix 234513ae51, one template did not validate. Noticed by phormio.
This was SVN commit r19440.
2017-04-21 08:35:17 +00:00
fatherbushido e960b0ef61 Add Identity component unit tests. Some code cleanup. Patch by Stan. Commented and reviewed by bb.
Differential Revision: https://code.wildfiregames.com/D98
This was SVN commit r19439.
2017-04-20 19:51:10 +00:00
fatherbushido 234513ae51 Use per 100 meters spread values. Fix a bit the related help. Change and use simpler template values. Units will be a bit more accurate. Reviewed by wraitii.
Differential Revision: https://code.wildfiregames.com/D361
This was SVN commit r19438.
2017-04-20 17:01:47 +00:00
fatherbushido 6401203116 Clean identation and sorting in xml templates.
This was SVN commit r19437.
2017-04-20 06:36:38 +00:00
fatherbushido b942e4d406 Make some wooden structures give a wood loot instead of a stone one. Patch by Grugnas.
Differential Revision: https://code.wildfiregames.com/D265
This was SVN commit r19436.
2017-04-20 06:13:11 +00:00
Pureon 922ece9302 Icon updates
This was SVN commit r19435.
2017-04-19 20:42:43 +00:00
elexis 026dcf10eb Danubius random map script with reoccuring gaia ships that take control of the river and ungarrison units to attack the players.
Places a fortified gaia village, some gaia units performing a ritual and
some towers garrisoned on islands.
The attacker and ship count increases over time.
The attacker composition is randomized per ship and switches from
citizen soldiers to champions, heroes and siege engines.
One in three matches takes place at night.

Differential Revision: https://code.wildfiregames.com/D204
Map generation based on patch by Hannibal Barca
Reviewed By: bb, FeXoR
Refs #4354

This was SVN commit r19434.
2017-04-19 14:50:48 +00:00
elexis dcf12abe8c Mark players as buddies in the lobby and add a symbol to identify them in the lobby playerlist, gamelist and in the game description panel of the lobby, replay and load/save screen.
Differential Revision: https://code.wildfiregames.com/D209
Patch By: fpre aka. ffffffff
Reviewed By: causative
This was SVN commit r19433.
2017-04-19 11:51:29 +00:00
fatherbushido 89c413031f Fix the aiming code when performing an attack. Reviewed by wraitii.
Differential Revision: https://code.wildfiregames.com/D20
This was SVN commit r19432.
2017-04-19 07:39:19 +00:00
FeXoR d5e254014a Make random map Caledonian Meadows circular and some style changes. Reviewed by elexis.
Differential Revision: https://code.wildfiregames.com/D180
This was SVN commit r19431.
2017-04-18 21:51:25 +00:00
fatherbushido 7e77e3789d Make projectile speed templates values more consistent. Reviewed by wraitii.
Differential Revision: https://code.wildfiregames.com/D356
This was SVN commit r19430.
2017-04-18 20:12:08 +00:00
fatherbushido 79a9b05b0c Don't tag an entity as packing when the packing is completed. Reviewed by leper.
Differential Revision: https://code.wildfiregames.com/D357
This was SVN commit r19429.
2017-04-18 19:44:43 +00:00
wraitii 4d2508ecf4 Fix prepare times.
Several ranged units had prepare times as high as their repeat time,
making them feel sluggish and animating weirdly. Melee units had none,
resulting in an odd discrepancy betwee n animation and time of damage,
and also weird animations.

Reviewed by fatherbushido.
Differential Revision: https://code.wildfiregames.com/D258
This was SVN commit r19428.
2017-04-18 14:50:29 +00:00
elexis 81c57e8a28 List, add and delete cinematic paths in Atlas.
Doesn't provide a way to add/delete nodes of paths yet.

Differential Revision: https://code.wildfiregames.com/D348
Patch By: Vladislav
This was SVN commit r19427.
2017-04-18 03:30:16 +00:00
elexis 80626db3dc Make that StatisticsTracker code from 045dcd4823 a bit more readable and consistent.
Differential Revision: https://code.wildfiregames.com/D355
Reviewed By: leper
This was SVN commit r19426.
2017-04-18 00:10:25 +00:00
wraitii 1db8562d05 Revert and fix 4523c50850: fix water disappearing in Atlas when clicking on the object tab.
Reviewed by wraitii.
Differential Revision: https://code.wildfiregames.com/D329
This was SVN commit r19425.
2017-04-17 08:59:12 +00:00
wraitii 1ec41f6dd0 Fix crash in dynamic subscriptions when components unsubscribe during deletion.
Discussed with Philip.
Reviewed by fatherbushido
Differential Revision: https://code.wildfiregames.com/D264
This was SVN commit r19424.
2017-04-17 08:00:41 +00:00
fatherbushido de9e76cbf1 Add a test to the component manager to show a crash in dynamic subscriptions when components unsubscribe during deletion. Reviewed by wraitii.
Differential Revision: https://code.wildfiregames.com/D346
This was SVN commit r19423.
2017-04-17 07:55:44 +00:00
elexis adf60c7c49 Support cinematic path creation from trigger scripts.
Differential Revision: https://code.wildfiregames.com/D317
Patch By: Vladislav
Refs #3814

This was SVN commit r19422.
2017-04-17 01:42:11 +00:00
elexis ce5c10c7bb Add FromJSProperty helper function that gets the property of a JS object, thus reducing duplicate checks when getting many properties.
Differential Revision: https://code.wildfiregames.com/D338
Patch By: Vladislav
Refs: https://code.wildfiregames.com/D317

This was SVN commit r19421.
2017-04-16 23:59:20 +00:00
elexis b856ec5ea4 Update the Minimap texture if the waterheight has changed.
Differential Revision: https://code.wildfiregames.com/D344
Patch By: Sandarac
Reviewed By: Vladislav
Refs https://code.wildfiregames.com/D229

This was SVN commit r19420.
2017-04-16 22:13:32 +00:00
elexis 045dcd4823 Allow units without Cost component and use it for the Catafalque template.
Differential Revision: https://code.wildfiregames.com/D334
Reviewed By: Sandarac
This was SVN commit r19419.
2017-04-16 20:46:03 +00:00
fatherbushido 3731490e5a Use armor instead of armour in some strings reported by translators. Reviewed by wraitii and domdomegg.
Differential Revision: https://code.wildfiregames.com/D335
This was SVN commit r19418.
2017-04-16 11:42:15 +00:00
mimo 1639a88627 petra: fix typo from 3c56638e8b
This was SVN commit r19417.
2017-04-15 16:16:58 +00:00
wraitii e7c9559c21 Fix a small mistake in GarrisonHolder.JS that prevented healing-while-garrisoned in rare cases.
Reviewed by fatherbushido.

Differential Revision: https://code.wildfiregames.com/D336
This was SVN commit r19416.
2017-04-15 09:19:36 +00:00
elexis 5462f26aba Move CinemaPath class to the simulation helper directory, because it contains predominantly simulation data that is already serialized.
The remaining graphics code should be moved or removed.

Differential Revision: https://code.wildfiregames.com/D324
Patch By: Vladislav
This was SVN commit r19414.
2017-04-14 23:20:49 +00:00
mimo 78121ff82c fix request-attack broken by d9d1f1bbeb
This was SVN commit r19413.
2017-04-14 19:00:14 +00:00
mimo ed5d8f749e Fix in-game bandbox when gui.scale is not 1
Patch by Dariost
Differential Revision: https://code.wildfiregames.com/D321
This was SVN commit r19411.
2017-04-13 08:11:29 +00:00
wraitii d15b35357e Show effects of game-start tech modifications in Structure Tree.
This also refactors code so that external callers will have an easier
time getting a template value as modified by technologies.

Patch by s0600204.

Reviewed by bb and wraitii.
Differential Revision: https://code.wildfiregames.com/D154
This was SVN commit r19410.
2017-04-11 14:36:30 +00:00
Imarok 16afbf32c8 Fix CChart scaling edgecases (constant value and infinity)
Reviewed by: vladislavbelov
Differential Revision: https://code.wildfiregames.com/D167
This was SVN commit r19408.
2017-04-11 12:27:21 +00:00
elexis 2e37e6a8d9 Remove redundant path name argument from the CinemaManager AddPath function.
Differential Revision: https://code.wildfiregames.com/D310
Patch By: Vladislav
This was SVN commit r19406.
2017-04-11 01:37:00 +00:00
elexis 65cbf12b7e Don't throw NetServer FSM errors if a client presses not-ready just before the host launches the game.
Differential Revision: https://code.wildfiregames.com/D290
Reviewed By: Imarok
Refs #3199

This was SVN commit r19404.
2017-04-10 16:52:52 +00:00
Imarok ee987d3b0d Add some consts to ShaderProgram functions
Reviewed by: vladislavbelov
Differential Revision: https://code.wildfiregames.com/D315
This was SVN commit r19403.
2017-04-10 15:44:33 +00:00
elexis 023e6ca072 Allow the host to pause the game, even if in observer mode.
Patch By: andy5995
Fixes #4520

This was SVN commit r19401.
2017-04-10 00:09:33 +00:00
elexis e4b4126293 Fix Units demo map following the addition of the special filter templates in D215 / d093f714d7.
Expose the FindAllPlaceableTemplates function to the simulation to
remove the hardcoded directory checks as suggested by fatherbushido.
Add the new special template directory from D176 / cd6c31e76e.
Move the code from XML to JS.

Differential Revision: https://code.wildfiregames.com/D277
Reviewed By: Vladislav
This was SVN commit r19399.
2017-04-09 23:46:31 +00:00
elexis 1b3f92d6e4 Display relics in the hero panel.
Rename the buttonset to panelEntities and unify related health tooltips.

Differential Revision: https://code.wildfiregames.com/D289
Reviewed By: Sandarac
Refs #3000

This was SVN commit r19398.
2017-04-09 23:10:50 +00:00
elexis af4466bc99 Update ready state immediately when receiving the message.
Differential Revision: https://code.wildfiregames.com/D304
Reviewed By: Vladislav
Refs #2447

This was SVN commit r19396.
2017-04-09 22:59:04 +00:00
elexis 2f02fb4535 Move OpenGL CinemaPath rendering code to the CinemaManager, so that the remaining simulation data can be moved to the simulation directory.
Add height indicator so that we can actually estimate the location of
the paths in atlas.

Differential Revision: https://code.wildfiregames.com/D306
Patch By: Vladislav
This was SVN commit r19394.
2017-04-09 17:21:01 +00:00
elexis 290e67dc32 Add cinematic page to the atlas editor with one option to enable rendering of existing paths.
Differential Revision: https://code.wildfiregames.com/D301
Patch By: Vladislav
This was SVN commit r19391.
2017-04-09 02:12:20 +00:00
elexis ab2aa4b91b Nerf champion infantry spearmen slightly, so that they lose in direct combat versus champion infantry swordsmen but win against the same if equally backed up by citizen soldiers.
Differential Revision: https://code.wildfiregames.com/D186
Patch By: Grugnas
Reviewed By: borg-
This was SVN commit r19390.
2017-04-08 23:24:44 +00:00
Itms 32c0dc773e Fix memory leak in CCmpPathfinder, patch by Sandarac.
The terrain grid can be renewed without proper deallocation, which
happens at least at the start of a game when MT_TerrainChanged is sent.

Reviewers: wraitii, Itms

Differential Revision: https://code.wildfiregames.com/D247
This was SVN commit r19388.
2017-04-08 15:58:10 +00:00
elexis 2aae9eaaf1 Resource Trickle tooltip.
Add early return to hide loot tooltip if there is no loot (for mods).

Differential Revision: https://code.wildfiregames.com/D292
Reviewed By: fatherbushido
Fixes #4118

This was SVN commit r19387.
2017-04-08 06:45:22 +00:00
elexis d88775017c ...and keep the naming consistent.
This was SVN commit r19386.
2017-04-08 06:11:24 +00:00
elexis 81e267c5f4 Add selection group for catafalque relics as proposed by fatherbushido.
This way they are bundled when selecting them and doubleclicking on them
will select all of them.

This was SVN commit r19385.
2017-04-08 05:28:52 +00:00
elexis 43d627a723 Fix three catafalque auras.
The looter one didn't work at all, the armor one wasn't working as
intended and the max pop one worked but didn't use the proper type.
Order resources in the usual way.
Remove second newline at the end of XML files.

Differential Revision: https://code.wildfiregames.com/D291
Patch By: Hannibal Baraq
This was SVN commit r19384.
2017-04-08 03:39:53 +00:00
elexis 7f07237bba Serialize the queue of cinematic paths playing and resume upon deserialization. Thereby fix an OOS on rejoin when a cinematic path is playing.
Move path de/serialization to private helper functions.

Differential Revision: https://code.wildfiregames.com/D299
Patch By: Vladislav
Refs #3814

This was SVN commit r19382.
2017-04-08 00:10:02 +00:00
elexis 35f7dddbf8 Fix copy & past error in the initial petra AI relic support of 5dcc52f46a. Reported by bb, patch by Sandarac.
This was SVN commit r19381.
2017-04-07 17:23:08 +00:00
elexis ee41e3fd16 Move multiplayer host and join page to a new directory, as it is not related nor doesn't share anything with the gamesetup.
Differential Revision: https://code.wildfiregames.com/D298
Reviewed By: wraitii
This was SVN commit r19380.
2017-04-07 16:44:09 +00:00
fatherbushido 874ee51337 Fix application of tech modifications within the Upgrade component. Patch by s0600204.
Differential Revision: https://code.wildfiregames.com/D146
This was SVN commit r19379.
2017-04-05 15:27:59 +00:00
elexis 2ce840bab3 Handle relics that are destroyed for any reason and maps that have no gaia entities at all.
Differential Revision: https://code.wildfiregames.com/D283
Reviewed By: Sandarac
This was SVN commit r19378.
2017-04-05 04:14:19 +00:00
elexis ffea346abb Atlas camera controls should be disabled too if a cinematic path is paused.
Reviewed By: Vladislav
This was SVN commit r19376.
2017-04-05 04:00:19 +00:00
elexis 5d49e6c456 Move most cinematic path simulation data and control from the graphics class to the simulation component and solve the hash mimatch in non-visual replay.
Move graphics code to smaller helper functions UpdateSessionVisibility,
UpdateSilhouettesVisibility and DrawPaths.
Remove the hotkey TODO code which should be implemented differently.
Mark voids as const.

Differential Revision: https://code.wildfiregames.com/D271
Patch By: Vladislav
This was SVN commit r19375.
2017-04-05 03:59:20 +00:00
Itms c0708da215 Fix the Mustang template. Add tests for the UnitMotionFlying component.
Patch by bb.
Reviewers: Itms

Differential Revision: https://code.wildfiregames.com/D139
This was SVN commit r19373.
2017-04-03 09:58:01 +00:00
Pureon 9c7188ea02 Icon updates
This was SVN commit r19371.
2017-04-02 21:05:10 +00:00
elexis 7f8d57a1f0 Catafalque templates and auras for each civilization.
Patch By: Hanibal Barca aka Hannibal_Baraq
Differential Revision: https://code.wildfiregames.com/D269
Strings Reviewed By: Gallaecio
Balancing Reviewed By: borg-, Grugnas
Addresses few issues found by fatherbushido

This was SVN commit r19370.
2017-04-02 20:50:30 +00:00
fatherbushido 369943426f Make Builder list of some units more consistent. Patch by Grugnas. Reviewed by elexis and wraitii.
Differential Revision: https://code.wildfiregames.com/D262
This was SVN commit r19369.
2017-04-02 09:16:25 +00:00
elexis 6289cd9e99 Fix an error on Survival of the Fittest in 18e7d8a518 in case a player has won and lost the civic center.
Patch By: bb
Differential Revision: https://code.wildfiregames.com/D275
This was SVN commit r19368.
2017-04-01 21:16:59 +00:00
elexis 1e07787e76 Revert 64bit number conversions added in c0ca70efd2, don't add the previous long and unsigned long conversions back and use double in the Replay menu.
64bit conversions (including the long ones) are not safe, because not
every number can be converted to the 2^53 JS numbers and pretending to
do so is asking for bugs.
Explicitly use the double type in the Replay menu, because std::time_t
is unspecified and some platforms like Ubuntu yakkety:i386 fail to
build, looking for long.
Double should work for the next 285 million years, becomes consistent
with SavedGame.cpp, is tested by test_ScriptConversions.cpp and doesn't
pretend to cover all 64bit numbers.

Patch By: echotangoecho
Differential Revision: https://code.wildfiregames.com/D205
Refs #3848 D84 D112

This was SVN commit r19367.
2017-04-01 21:06:55 +00:00
fatherbushido c664fb7b6d Split the automatic aiming function of PerfomAttack for ranged attacks.
Summary:
PerformAttack uses an automatic aiming logic for ranged attacks.
Splitting it would allow to fix some issues with that function, to test
it individually, make it usable as a globalscript for other logic (or
even to disable the automatic aiming based on template).
That patch is just about the splitting, I didn't change it.
Also use only the max range and not the elevation adapted one to scale
the spread (which makes more sense and also avoid computation).

Test Plan: send a javelin?

Reviewers: O2 JS Simulation, wraitii, elexis

Reviewed By: O2 JS Simulation, wraitii, elexis
Subscribers: Vulcan, elexis, leper

Differential Revision: https://code.wildfiregames.com/D272
This was SVN commit r19366.
2017-04-01 07:16:46 +00:00
wraitii 173a7dc214 Change clearance of large land units from 4 to 3, clearance of large ships from 12 to 10. This makes these units far more usable.
Reviewed by Elexis and Fatherbushido.
Differential Revision: https://code.wildfiregames.com/D253
This was SVN commit r19365.
2017-03-31 14:50:04 +00:00
fatherbushido 38a30ea563 Remove useless TemplateManager existence check and extend the related test
Summary: cf c9b0db7f5f

Test Plan: -

Reviewers: vladislavbelov, elexis

Reviewed By: vladislavbelov, elexis
Subscribers: Vulcan

Differential Revision: https://code.wildfiregames.com/D279
This was SVN commit r19363.
2017-03-30 19:53:25 +00:00
fatherbushido dcecda399f Remove some cost leftover in civ specific templates. Patch by Grugnas.
Differential Revision: https://code.wildfiregames.com/D197
This was SVN commit r19362.
2017-03-30 17:05:23 +00:00
elexis 4f3891fa3a Merge the wolf with the snow wolf template.
Rename the special wolf template that reacts to UnitAI attack orders to
fauna_wolf_snow_attack, so that the name becomes agnostic of the way how
it achieves that.

Differential Revision: https://code.wildfiregames.com/D257
Reviewed By: fatherbushido
This was SVN commit r19361.
2017-03-30 11:59:46 +00:00
elexis 96f5edf32d Minimum attack range tooltip.
Differential Revision: https://code.wildfiregames.com/D267
Reviewed By: Gallaecio
Refs #4421 D111

This was SVN commit r19360.
2017-03-29 21:40:56 +00:00
elexis 18e7d8a518 Survival Of The Fittest Overhaul
Exponential attacker increase to prevent boring endless games.
Add a gaia hero per player at later stages of the game (if the previous
one isn't alive anymore).
Remove hardcoded template array and include gimmick templates (gaia),
most notably the fireraiser which we never saw before and the siege
tower.
Remove treasure picker female after defeat to prevent confusion with
treasure on the minimap.
Add flag to the spawnpoints, so that new players know where the enemies
actually come from, as proposed by bbleft and Hannibal Barca.
Move all balancing constants to the top of the file.
Actively chose attacker composition instead of having it relate to the
number of templates that exist.
Add debug output option, so that we can replay games and see which enemy
wave composition attacked at which time.
Add dry run, so that we can test the balancing effects from a non-visual
replay instead of having to play some game.
Remove many unused variables and some pointless tile classes from the
mapgen.
Whitespace and various code style cleanup, moving code to shorter, more
readable functions.

Reviewed By: bb
Differential Revision: https://code.wildfiregames.com/D145
This was SVN commit r19359.
2017-03-29 16:06:11 +00:00
elexis f7a2c3d02c Fix a934dfad5f, add an early return when pressing the massbarter hotkey in observermode.
Differential Revision: https://code.wildfiregames.com/D273
Reviewed By: user1
This was SVN commit r19358.
2017-03-28 23:36:55 +00:00
mimo d0f6489526 counter espionage
New tech to increase the cost for other players to bribe your units (by
50%).
Move the spy tech and this new one to the cicil center.
Decrease the spy cost to 500 metal.
Include the patch from D173 because of conflicts.

Reviewed By: elexis, Gallaecio
Differential Revision: https://code.wildfiregames.com/D179
This was SVN commit r19357.
2017-03-28 21:37:53 +00:00
mimo 5dcc52f46a Petra: Initial Capture The Relic support
Patch by Sandarac
Differential Revision: https://code.wildfiregames.com/D236
This was SVN commit r19356.
2017-03-28 18:51:10 +00:00
elexis da2b89583a Replace many deprecated randInt calls with randBool.
Add optional probability to randBool to receive true and use where
applicable.

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

This was SVN commit r19355.
2017-03-28 04:28:55 +00:00
elexis a934dfad5f Add barter buttons to the trade window for quicker access and to support mods with more than four resource types.
The dialog is resized automatically and can be opened with a new hotkey.

Patch By: s0600204
Differential Revision: https://code.wildfiregames.com/D88
Fixes #4366
Refs #3934

This was SVN commit r19354.
2017-03-28 02:34:32 +00:00
elexis dbd56403b9 Allow hiding of list columns via XML or JS.
Differential Revision: https://code.wildfiregames.com/D228
Reviewed By: Vladislav
This was SVN commit r19353.
2017-03-28 00:25:17 +00:00
elexis bc3ed4f474 Keep RELAX NG compact syntax file describing the GUI properties in sync with the RELAX NG XML schema counterpart following b8fce56821.
Difference reproducible with trang.

Reviewed By: Vladislav
Refs #2405

This was SVN commit r19352.
2017-03-28 00:12:05 +00:00
elexis 10b49f9c18 Add sortable columns to the loading screen and a compatibility filter for saved games.
Replace the unexplained orange and red colorization and replace it with
the greyout equal to the replay menu,
as the difference between compatibility types is explained when trying
to load the game.
Rename the ambiguous generateLabel to generateSavegameLabel.

Patch By: Vladislav
Differential Revision: https://code.wildfiregames.com/D246
This was SVN commit r19351.
2017-03-27 12:55:43 +00:00
fatherbushido cedf7a33aa Unit tests for JS Pack component
Summary: Unit tests.

Test Plan: Irrelevant.

Reviewers: O2 JS Simulation, Itms, wraitii

Reviewed By: O2 JS Simulation, wraitii
Subscribers: O8 JS GUI, O14 Maps, O6 AI, Sandarac, Vulcan

Differential Revision: https://code.wildfiregames.com/D240
This was SVN commit r19350.
2017-03-27 12:40:49 +00:00
elexis 32655c0e38 Pillar / Monument cleanup.
Prevent Iberian players from covering their entire territory with the
attack bonus giving monument as proposed by mimo.
Indirect aura range indication with the build restrictions for the trade
bonus yielding mauryan pillar.
Disable capturing of mauryan pillar equally to the iberian one following
60a2af2988 (so that the entire territory doesn't switch ownership
quickly).
Add the missing name for the mauryan pillar, so that the aura bonus
tooltip shows up, as reported by Grugnas.

Differential Revision: https://code.wildfiregames.com/D196
Reviewed By: Grugnas
Fixes #4412

This was SVN commit r19348.
2017-03-26 01:09:21 +00:00
wraitii 4523c50850 Fix a vertex shader data pielup in the actor editor. It was reloading the shaders far too often.
Patch by Echotangoecho.
Differential Revision: https://code.wildfiregames.com/D93
This was SVN commit r19346.
2017-03-25 07:44:31 +00:00
elexis 35377c51a7 Capture The Relic gamemode.
Patch By: Sandarac
Differential Revision: https://code.wildfiregames.com/D152
This was SVN commit r19345.
2017-03-25 07:01:07 +00:00
elexis 27f37ccd21 Cleanup the rest of the mess introduced with the NonGaiaEntities functions in 8c7b6dceaa.
Add a test for the GetNonGaiaEntities function of the RangeManager
broken by that commit that was fixed by f3e4e619bc.
Don't call one script function from another, but directly call into the
Selection helper like the others.
Don't make a loop around that RangeManager function for all players but
call the function once for all players.
The pointless virtual keywords were removed by 8827db201a.

Differential Revision: https://code.wildfiregames.com/D166
Reviewed By: leper
This was SVN commit r19344.
2017-03-25 02:42:51 +00:00
leper b9441a6a8d Ensure m_Territory in cmpTerriotryManager.IsTerritoryBlinking. Fixes #4466.
Patch By: Sandarac
Differential Revision: https://code.wildfiregames.com/D261
This was SVN commit r19343.
2017-03-25 01:43:14 +00:00
leper e69e10ef5f Small RangeManager cleanup.
Use std::set's logarithmic find instead of a linear loop.
Early return and some whitespace for getParabolicRangeForm.

Reviewed By: elexis
Differential Revision: https://code.wildfiregames.com/D260
This was SVN commit r19342.
2017-03-25 00:11:08 +00:00
leper 9e6571c461 Some cinema path cleanup.
Could possibly fix a compilation failure with some compilers in
36330732fa.

Patch By: Vladislav
Differential Revision: https://code.wildfiregames.com/D250
This was SVN commit r19341.
2017-03-24 22:49:06 +00:00
leper 9f50bf3f1e Only dereference cmpWaterManager if it is non-null.
Reviewed By: elexis
Differential Revision: https://code.wildfiregames.com/D259
This was SVN commit r19340.
2017-03-24 21:32:49 +00:00
leper 3648ba448d Some const for scriptinterface.
Reviewed By: Itms
Differential Revision: https://code.wildfiregames.com/D155
This was SVN commit r19339.
2017-03-24 18:47:03 +00:00
fatherbushido 9cf84c6800 Fix documentation of non system component.
Summary: -

Test Plan: -

Reviewers: Itms, leper

Reviewed By: leper
Subscribers: Vulcan, O1 C++ Simulation

Differential Revision: https://code.wildfiregames.com/D221
This was SVN commit r19337.
2017-03-24 07:09:28 +00:00
Pureon d7b32a5c25 Farming tech icon update
This was SVN commit r19336.
2017-03-23 23:11:01 +00:00
elexis 71f3fdd859 Whale should not break naval gameplay by blocking ships in the middle of an improtant battle.
Differential Revision: https://code.wildfiregames.com/D188
Reviewed By: wraitii, Enrique
Also valuable input from Sandarac and bb

This was SVN commit r19334.
2017-03-23 22:44:43 +00:00
elexis c279283d82 Large passability class for hero elephants.
Elephant now a VisibleClass so that players know which of the heroes the
elephant one is.

Differential Revision: https://code.wildfiregames.com/D251
Reviewed By: fatherbushido
This was SVN commit r19333.
2017-03-23 22:14:38 +00:00
Pureon e8ae384eb6 Updates + cleanup tech icons
This was SVN commit r19332.
2017-03-23 21:56:01 +00:00
elexis ba86a79c44 Buff war dogs slightly and make them slower to train.
Limit them to 50 because they have no pop cost attached.
Their use was nerfed a bit too much in 13b229d503.

Patch By: Grugnas
Differential Revision: https://code.wildfiregames.com/D234
Reviewed By: fatherbushido, borg-
This was SVN commit r19331.
2017-03-23 21:43:52 +00:00
elexis 46320a5447 Only britons should be able to train war dogs from captured kennels.
This was the last building with this capturing bug.

Differential Revision: https://code.wildfiregames.com/D255
Reviewed By: fatherbushido, Grugnas
This was SVN commit r19330.
2017-03-23 21:37:34 +00:00
elexis ad17e320be Rename the Female identity class to FemaleCitizen, because it is intended for female support units only.
Thus prevent template editors from adding that tag to female military
units and
allow modders to add a Female class for wider purposes.
Remove the FemaleCitizen training restriction category that was added
for debug purposes but forgotton to be removed in 7e21db08d5.

Differential Revision: https://code.wildfiregames.com/D244
Reviewed By: fatherbushido
Refs: #1432 #4490

This was SVN commit r19329.
2017-03-23 17:54:36 +00:00
elexis 9f018c48e0 Revert the addition of the Female identity class to the Boudica heroine from 83680b0dee, because that tag is only intended for female support citizens.
Differential Revision: https://code.wildfiregames.com/D242
Reviewed By: fatherbushido
This was SVN commit r19328.
2017-03-23 17:44:27 +00:00
elexis 676a9ccb40 Move catafalque actor to global (as it is not civ specific).
As recommended by Enrique and Pureon.

This was SVN commit r19327.
2017-03-23 03:50:02 +00:00
Pureon 159ae93beb A few icon updates
This was SVN commit r19326.
2017-03-22 23:24:17 +00:00
elexis ff452de1f7 Mark GetAnimationName as const
Differential Revision: https://code.wildfiregames.com/D248
Reviewed By: leper
This was SVN commit r19325.
2017-03-22 23:07:01 +00:00
elexis 0c68147e1a Fix a broken string in the User Report panel of the main menu.
Differential Revision: https://code.wildfiregames.com/D239
Reviewed By: Gallaecio
This was SVN commit r19324.
2017-03-22 22:51:42 +00:00
elexis cd6c31e76e Revert UnitAI changes of 79fb493da3 (besides the patrol comment) and use an exotic template instead.
The originally intended approach to support move-orders independent of
the Identity classes can be discussed in an independent proposal.

Reviewed By: fatherbushido
Differential Revision: https://code.wildfiregames.com/D176
This was SVN commit r19323.
2017-03-22 22:38:22 +00:00
elexis 19f9fa17fa Resource trickle for wonders, highlighting their trait of being the most magnificent building.
Differential Revision: https://code.wildfiregames.com/D243
Reviewed By: fatherbushido
Idea by borg-, numbers confirmed by Hannibal Barca, floating point
number format confirmed by wraitii.

This was SVN commit r19322.
2017-03-22 15:01:26 +00:00
Imarok fdda57565b Display which clients are still in the loading screen
Reviewed by: elexis
Differential Revision: https://code.wildfiregames.com/D120
Fixes #4375

This was SVN commit r19320.
2017-03-21 18:50:29 +00:00
elexis a3ea45509b Cinematic path demo map
Patch By: Vladislav
Refs #3301 #3814

This was SVN commit r19319.
2017-03-21 00:33:44 +00:00
elexis b675a0154a Fix a warning in 655ce95468 when opening the leaderboard in the lobby and returning without having a player selected.
Reported by: Vladislav
Patch By: fpre
This was SVN commit r19318.
2017-03-20 23:55:02 +00:00
elexis 36330732fa Allow Cinematic Path nodes that only specify a camera position or direction and group them by deltatime.
Remove the support of saving the rotation of camera position nodes,
because that should be rewritten to use a custom spline.

Patch By: Vladislav
Differential Revision: https://code.wildfiregames.com/D124
Refs #3814

This was SVN commit r19317.
2017-03-20 15:26:34 +00:00
Enrique 76c7731076 Catafalque wagon unit
This was SVN commit r19316.
2017-03-20 13:16:15 +00:00
elexis 9b28ce3463 Enable late observers by default.
Differential Revision: https://code.wildfiregames.com/D217
Reviewed By: scythetwirler, Imarok, bb, echotangoecho, Hannibal_Barca,
fpre

This was SVN commit r19314.
2017-03-19 22:56:13 +00:00
mimo a4c9fd193a Petra: Let getBestBase optionally check for fully-constructed bases
Patch by Sandarac
Reviewed By: mimo
Differential Revision: https://code.wildfiregames.com/D237
This was SVN commit r19313.
2017-03-19 10:35:22 +00:00
Pureon 19c828f050 New victory + defeat icons. Fertilizer tech icon
This was SVN commit r19312.
2017-03-19 00:08:46 +00:00
elexis 33a0af2e57 Display the formations panel if and only if the selected units can enter a formation (instead of hiding it if any domestic animal is part of the selection).
Differential Revision: https://code.wildfiregames.com/D191
Reviewed By: mimo
This was SVN commit r19311.
2017-03-17 22:46:42 +00:00
elexis 4bcae3190b Fix a reference error in ddfc985586 noticed by Sandarac.
Reviewed By: bb
This was SVN commit r19309.
2017-03-17 13:07:23 +00:00
elexis da5463d135 Prevent lobby players from hosting games with empty servernames.
Display a notification instead of using the default port if an invalid
one was specified.

Patch By: Vladislav
Refs #4402

This was SVN commit r19307.
2017-03-17 01:51:54 +00:00
elexis 208b5b6dd8 Use a minimum height of at least one space character of the current font size when drawing list rows.
Use the maximum height of all cells of the current row.
Lobby games with empty servernames are not rendered weirdly anymore.

Patch By: Vladislav
Fixes #4402

This was SVN commit r19306.
2017-03-17 01:10:49 +00:00
elexis ddfc985586 Use pickRandom in random map scripts.
Avoids helper index variables, replacing deprecated randInt calls,
making the code shorter and nicer to read.

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

This was SVN commit r19305.
2017-03-16 21:30:10 +00:00
elexis f1e31cb823 Fix an oversight in 3d61854fc3: Spartan females should remain able to attack heroes.
Differential Revision: D226
Patch By: Grugnas
Refs #1487

This was SVN commit r19303.
2017-03-16 20:06:48 +00:00
elexis d093f714d7 Use XML files instead of hardcoded C++ code in the template manager to universally change template properties at load time.
Patch By: leper
Differential Revision: https://code.wildfiregames.com/D215
Fixes #2951

This was SVN commit r19302.
2017-03-16 19:56:12 +00:00
elexis 59efb76966 Don't show Boudica as an idle worker.
Patch By: Boudica
Differential Revision: https://code.wildfiregames.com/D223
This was SVN commit r19301.
2017-03-16 19:16:36 +00:00
elexis 8c2a5f7bc8 Ensure that the quote of the day isn't empty by filtering blank lines.
Patch By: Sandarac
Differential Revision: https://code.wildfiregames.com/D224
This was SVN commit r19300.
2017-03-16 19:11:27 +00:00
elexis c288a91c6d Add a GetAnimationName getter function for the VisualActor component, so that the simulation can not only set an animation but also find out which one is currently being played.
Differential Revision: https://code.wildfiregames.com/D219
Reviewed By: bb
This was SVN commit r19299.
2017-03-15 14:27:51 +00:00
mimo fd22da55ce few tunings on houses
Summary:
- currently a fully garrisoned small house (as gaul) decays when outside
territory while a big house (as athen) doesn't because of the
garrisoning capacity. I propose to prevent both from decaying by
decreasing by half their TerritoryDecay.DecayRate (as we may understand
that an invading influence will quickly spread through official
buildings, but not inside houses where people will follow their
traditions).
- futhermore, as all garrisoned structures, the garrisoned units inside
houses have a GarrisonRegenRate of 5, which imo is too big for houses
(specially that currently only support units can be garrisoned inside)
and could be decreased a bit, although keeping
maxGarrison*GarrisonRegenRate > TerritoryDecay.DecayRate to prevent the
decay. Going from 5 to 4 works (could also be further decreased  if we
also further decrease the DecayRate).
- popBonus tech: there is currently a tech to increase the popBonus of
houses by 20% already available in village phase. But for village phase,
its price is quite high and it's better to build houses. So i propose to
switch it to town phase and to add another one at city phase so that
each phase upgrade will allow to improve this house popBonus
- finally, as we have a loom icon, better use it for the loom technology
from the houses

Reviewed By: elexis and fatherbushido
Differential Revision: https://code.wildfiregames.com/D220
This was SVN commit r19298.
2017-03-14 18:53:32 +00:00
mimo 34cbbfa371 increase size of victory/defeat icon from 26x27 to 32x32
This was SVN commit r19297.
2017-03-13 22:35:26 +00:00
elexis 3d61854fc3 Prevent animals from attacking siege engines and ships, prevent females from attacking ships and heroes.
Overviewed by fatherbushido, refs #1487.

This was SVN commit r19296.
2017-03-13 17:51:37 +00:00
elexis 6e4e396cb5 Merge duplicate elephant templates to a new inherited template. Patch by fatherbushido, refs #1487.
Prevent these elephants from attacking structures, which can happen
incidentally if the animal is attacked by garrisoned arrows that were
meant to hit attacking players and because that is unexpected to players
and had been reported as a bug and cheating players.
Prevent them from attacking ships, because they can't reach them in most
cases.

Unifty their Attack stats that had neglible differences, besides the
missing Crush damage of the North African Elephant variant, forgotton to
make consistent in 4ca43e453e with 71108ff458.
Add the large passability class to the North African and Asian elephant,
which was forgotton by 1e79b3a8af.

This was SVN commit r19295.
2017-03-13 17:02:50 +00:00
Pureon 4673b6a371 Tech icon updates
This was SVN commit r19293.
2017-03-12 23:46:16 +00:00
Pureon ee41b83b7a Tech icon updates
This was SVN commit r19292.
2017-03-12 21:09:34 +00:00
elexis c09b0e863a Fix 39fcd1d031 and move handleKick below init, because the last should remain the first.
Reviewed By: Imarok
Differential-Revision: https://code.wildfiregames.com/D216

This was SVN commit r19291.
2017-03-12 16:14:09 +00:00
elexis d2948646f3 Skirmish map Corinthian Isthmus (4) by Stan, fixes #2881.
This was SVN commit r19290.
2017-03-12 05:00:21 +00:00
Pureon 9b88a1d389 Tech icon updates
This was SVN commit r19289.
2017-03-11 23:59:29 +00:00
FeXoR b220d174c5 Fixes a bug that caused an error when distributeEntitiesByHeight() in hightmap.js was called with arguments that didn't result in any return value.
Differential Revision: https://code.wildfiregames.com/D114
Revieved by: elexis
Fixed #4152.

This was SVN commit r19288.
2017-03-11 14:54:24 +00:00
elexis 655ce95468 Upon selecting a player in the lobby, select the game where he/she is currently playing, observing or offline.
Select in that order to account for players that occur in multiple
games.

Patch By: fpre (a.k.a. ffffffff)
Feature design reviewed by: scythetwirler
Differential Revision: https://code.wildfiregames.com/D208
This was SVN commit r19287.
2017-03-11 06:37:00 +00:00
elexis b843da7384 Use pickRandom for setSkySet calls.
Patch By: bb
D1fferental-Revision: https://code.wildfiregames.com/D121

This was SVN commit r19286.
2017-03-11 04:36:41 +00:00
scythetwirler f430406e7f Remove extra SendGameList call
Reviewed By: elexis
Differential Revision: https://code.wildfiregames.com/D207
This was SVN commit r19285.
2017-03-11 02:42:55 +00:00
scythetwirler a6bdce8341 Remove Macedonian Fortress cost bonus
Patch by Grugnas
Reviewed By: elexis, scythetwirler, fatherbushido
Differential Revision: https://code.wildfiregames.com/D203
This was SVN commit r19284.
2017-03-11 02:12:48 +00:00
elexis f98100bdaf Replace more than 30 duplicate grass tuft placement calls with a single function call.
Remove few obsolete hillSize variables.
Remove one duplicate undesired grass tuft placement call from flood.

Differential Revision: https://code.wildfiregames.com/D201
Reviewed By: bb
This was SVN commit r19282.
2017-03-09 12:18:14 +00:00
mimo 5b699e29ea Petra: do not uselessly assign citizen-soldier guards
Summary: This further improves Petra's handling of citizen-soldier
guards, so that it does not repeatedly add guards when there are few
available workers.
Patch by Sandarac, follow up of aadf9d70f6 (D165)
Differential Revision: https://code.wildfiregames.com/D202
This was SVN commit r19281.
2017-03-08 18:16:32 +00:00
Enrique 265bdd192d Fixed a problem with the hellenic faction fortresses, where old version of the props was used on the fortress death variation reported by elexis.
This was SVN commit r19280.
2017-03-08 08:39:41 +00:00
mimo 00aa8b3c02 switch to the new bribe icon
This was SVN commit r19279.
2017-03-06 22:42:03 +00:00
Pureon 8f01868cce Bribes icon
This was SVN commit r19278.
2017-03-06 22:13:07 +00:00
Pureon a6bd32c0c0 Updated Wonder structure icon
This was SVN commit r19277.
2017-03-06 21:52:03 +00:00
mimo caabffd70a create maps/tutorials folder and move the starting_economy_walkthrough map there for the tutorial patch (D179) as these maps are currently useless (tutorialAI broken) and phabricator does not deal correctly with such changes
This was SVN commit r19276.
2017-03-06 21:29:45 +00:00
mimo 21798caa45 petra support of disabled technologies, fixes #4500
Reviewed By: Sandarac
Differential Revision: https://code.wildfiregames.com/D178
This was SVN commit r19275.
2017-03-06 19:23:18 +00:00
elexis 46eb20c5ea Ships should not heal units. Patch Stan, fixes #4398.
This was SVN commit r19274.
2017-03-06 14:18:21 +00:00
elexis 0b20e8c5f0 Private chat hotkey.
Patch by: OptimusShepard
Differential Revision: https://code.wildfiregames.com/D163
Fixes #4422.

This was SVN commit r19272.
2017-03-04 21:24:14 +00:00
elexis 08fbf223f6 Unify random integer and float helper functions of GUI, Simulation and AI.
Patch By: bb
Differential Revision: D121
Refs: #4326

Removes the Random.js simulation helper and randomFloat function of the
random map scripts library.
Adds randomIntInclusive and randomIntExclusive to make the calls more
readable and fix and prevent off-by-one mistakes.
Adds randBool and use it in an AI occurance. It will be used in many
places by the random map scripts.
Use the pickRandom function introduced in 3c56638e8b in more applicable
occurances.
Replace remaining occurances of Math.random() with the new functions to
easily test completeness.

Cleanup of the random map script functions will come in a separate
commit.

This was SVN commit r19270.
2017-03-03 21:13:10 +00:00
mimo 487737b407 petra: fix an undefined variable, and remove some unneeded array conversion
This was SVN commit r19269.
2017-03-03 17:35:35 +00:00
elexis 380a429fc9 Move ingame time and ceasefire timer code from gui/common/ to gui/session/.
Use an array instead of string concatenation to avoid duplication and to
enforce newlines on the syntax layer.
Move closeDiplomacy and toggleDiplomacy to openDiplomacy.

Differential Revision: https://code.wildfiregames.com/D183
Reviewed By: bb
This was SVN commit r19268.
2017-03-03 15:12:50 +00:00
elexis 399ba92058 Update the Offline hint in the selection panel immediately when a player rejoins or disconnects instead of waiting for the next turn.
Differential Revision: https://code.wildfiregames.com/D182
Reviewed By: Imarok
This was SVN commit r19266.
2017-03-03 00:10:40 +00:00
elexis e75fc5080d Display a phase name tooltip in the structure tree.
Remove duplication and use ES6 startsWith instead of substr.

Differential Revision: https://code.wildfiregames.com/D110
Reviewed By: s0600204
This was SVN commit r19265.
2017-03-03 00:04:38 +00:00
scythetwirler 17068bbf82 Update Lobby Bot README.
Reviewers: Itms

Reviewed By: Itms
Differential Revision: https://code.wildfiregames.com/D79
This was SVN commit r19264.
2017-03-02 19:19:45 +00:00
elexis 38aefa96d4 Remove Iberian walls from Polar Sea, make debug messages optional and make wolves ignore sheep in their initial attack.
Start the first wave minute 5 instead of 3 so that players have more
time to invest their initial wood.
Add two missing semicolons.

Differential Revision: https://code.wildfiregames.com/D184
Reviewed By: Hannibal_Barca
This was SVN commit r19263.
2017-03-02 18:50:19 +00:00
mimo aadf9d70f6 Petra: improve dynamic management of guard units
Summary:
Petra will not add guards when it has a low population, and will remove
any citizen-soldier guards so they can be used for other tasks.
Petra will also use a healer queue for training healer guards, and this
is done mainly so that Petra doesn't clog the villager queue with
healers, as villages should always have a higher priority. Also this
queue could be used in the future for training healer units for other
purposes.

Patch by Sandarac

Differential Revision: https://code.wildfiregames.com/D165
This was SVN commit r19262.
2017-03-02 18:37:40 +00:00
mimo c5d515721d add some missing semicolon
This was SVN commit r19261.
2017-03-02 18:12:22 +00:00
elexis 716af19f1c Add a GUI notification when the ceasefire ended so that devs and modders can do fancy things with that event and
use it to fix an oversight in 1022619d98 (the diplomacy dialog wasn't
updated).

Differential Revision: https://code.wildfiregames.com/D181
Reviewed By: mimo
This was SVN commit r19260.
2017-03-02 18:02:59 +00:00
fatherbushido 89e9c90ebc Unit test for VisionSharing component.
Summary: Following D117

Test Plan: -

Reviewers: mimo, Itms

Reviewed By: Itms
Subscribers: elexis, Vulcan

Differential Revision: https://code.wildfiregames.com/D170
This was SVN commit r19258.
2017-03-02 09:13:03 +00:00
mimo 1022619d98 cleanup of the updateDiplomacy functions
Summary: Following d9d1f1bbeb the diplomacy window is updated on each
tick, so we can remove the old updateDiplomacy function which now only
updates the player data, and rename updateDiplomacyPanel to
updateDiplomacy for consistency with other windows.

Reviewed By: elexis
Differential Revision: https://code.wildfiregames.com/D172
This was SVN commit r19257.
2017-03-01 20:15:12 +00:00
elexis 3be6460e88 Remove a TODO which was fixed by f3e4e619bc / D164.
This was SVN commit r19256.
2017-03-01 11:21:24 +00:00
mimo b80ea8bf07 Fix ambiguous tooltip in the trade window help
Reviewed By: Gallaecio
Differential Revision: https://code.wildfiregames.com/D168
This was SVN commit r19255.
2017-02-28 22:27:31 +00:00
elexis 79fb493da3 Polar Sea random map script.
Based on map by Hannibal Baraq.
Differential Revision: https://code.wildfiregames.com/D156
Map generation reviewed by FeXoR
Trigger Script and UnitAI change reviewed by Sandarac
Environment settings reviewed by niektb and wowgetoffyourcellphone

This was SVN commit r19254.
2017-02-28 20:53:51 +00:00
mimo 0c058d7d05 AddSpy should always return something
Reviewed By: fatherbushido
Differential Revision: https://code.wildfiregames.com/D175
This was SVN commit r19253.
2017-02-28 19:53:24 +00:00
Imarok e07b02980b Merge player caption and label in replay menu
Reviewed by elexis

https://code.wildfiregames.com/P29

This was SVN commit r19252.
2017-02-28 12:25:48 +00:00
Imarok cd1b190938 Some small replaymenu gui fixes
Reviewed by: elexis
Differential Revision: https://code.wildfiregames.com/D85
This was SVN commit r19251.
2017-02-28 12:06:37 +00:00
elexis 39fcd1d031 Implement clientside kick/ban support for the lobby.
Displays a chat notification for all lobby clients if a client is kicked
or banned, pop up a message box for the affected one, including the kick
reason.
Clean the player- and gamelist upon disconnect and disable the control
elements.

Reviewed By: Imarok
Differential Revision: https://code.wildfiregames.com/D116
This was SVN commit r19250.
2017-02-28 11:16:46 +00:00
elexis e14ad3c771 Focus camera on the spy after bribing it.
Reviewed By: mimo, Imarok
Differential Revision: https://code.wildfiregames.com/D169
This was SVN commit r19249.
2017-02-27 21:14:47 +00:00
Imarok 52d5c62f61 Fix oversight in 5f8f7bae20
Spotted and reviewed by elexis

This was SVN commit r19248.
2017-02-27 20:36:04 +00:00
mimo d9d1f1bbeb Add spying to the game
Summary:
With c2d0327af9 we can now add spying into the game: you have first to
research a tech (available in phase 3, espionage), and then you can
bribe a random unit (defined as Bribable in its template) from a chosen
player and share its vision during 15s.
There is also an option in the gamesetup to disable this feature,
analoguous to the treasure disabling option.
In the current version, only traders (land and naval ones) are
bribables.
Reviewed By: Itms, elexis
Differential Revision: https://code.wildfiregames.com/D117
This was SVN commit r19247.
2017-02-27 18:17:40 +00:00
mimo f3e4e619bc RangeManager returns Gaia entities in GetNonGaiaEntities
refs #4495
Reviewed By: leper, elexis
Differential Revision: https://code.wildfiregames.com/D164
This was SVN commit r19245.
2017-02-26 10:26:35 +00:00
elexis b6e9514029 Remove the (only) inconsistent UnitMotion walk speed entry in the civ specific unit templates (cavalry) and an unneeded one (ship).
Patch by: Grugnas
Differential Revision: https://code.wildfiregames.com/D162
This was SVN commit r19244.
2017-02-26 07:27:16 +00:00
leper b062fbef17 Stop relying on the internal structure of the current Trader component.
Get the required information by returning it in the proper places.
Also clean up some pointless modulo operations.
This code is pulled out of the Silk Road code (refs #4314).

Reviewed By: mimo
Differential Revision: https://code.wildfiregames.com/D161
This was SVN commit r19243.
2017-02-24 21:59:23 +00:00
mimo 360ba27865 Cleanup of CCmprangeManager
Summary: Following discussions in https://code.wildfiregames.com/D60 the
use of u8 to store each boolean has been cleanup up. Now only one u8 is
used, thus reducing the size of the struct.

Reviewed By: leper
Differential Revision: https://code.wildfiregames.com/D101
refs #3834

This was SVN commit r19242.
2017-02-24 19:15:54 +00:00
mimo b6d2fad596 Petra: assign guards to the hero in regicide games
Summary:
Petra will assign military units as guards to the hero in the regicide
victory condition, preferring any available Champion units.

Also this diff fixes a broken loop through a Map in D140/a443bcfa65 that
was introduced when switching `criticalEnts.guards` from a Set to a Map.

Patch by Sandarac

Differential Revision: https://code.wildfiregames.com/D157
This was SVN commit r19241.
2017-02-24 18:26:53 +00:00
leper a0a0895a12 Pass some strings and a vector as const refs.
Reviewed By: Imarok
Differential Revision: https://code.wildfiregames.com/D160
This was SVN commit r19240.
2017-02-24 17:02:10 +00:00
leper 1aa5ecb8a7 Remove entity if spawning fails.
Reviewed By: fatherbushido
Differential Revision: https://code.wildfiregames.com/D159
This was SVN commit r19239.
2017-02-24 15:41:19 +00:00
elexis b2c3fc83da Nuke session/utility_functions.js since the file is much shorter than the others and since the functions are not logically related.
Slight cleanup while moving the affected code.

Differential Revision: https://code.wildfiregames.com/D108
Reviewed By: shookes
This was SVN commit r19238.
2017-02-23 23:34:35 +00:00
elexis fb6e694fdd Show the tribute chat notification if a team member sends to another and if teams are locked. Fixes #4308.
Add a new options panel for the chat notifications (attack, barter,
tribute), so that players and observers can disable them if they appear
too noisy.

Patch By: Sandarac
Differential Revision: https://code.wildfiregames.com/D106
This was SVN commit r19237.
2017-02-23 19:35:55 +00:00
elexis 2c86b54838 Remove non-functional shallow generation code from the Unknown random maps.
The code paints far below the waterheight and the potential shallow
generation on that central river variation is done by the passageMaker
call some lines above.

Reviewed By: bb
(on #0ad-dev today)

Also add a declaration forgotton in 6036b48c1d.

This was SVN commit r19236.
2017-02-22 22:49:21 +00:00
leper 5e5b5be656 Improve component cache lookup performance slightly.
We do not need iteration order, and this makes this explicit.

Reviewed By: echotangoecho
Differential Revision: https://code.wildfiregames.com/D82
This was SVN commit r19235.
2017-02-22 19:27:58 +00:00
elexis e1e4ef0370 Add UpdateAutoScroll calls to some events where they were missing. For example when deleting, cutting, pasting, autocompleting or doubleclicking text. Patch by Vladislav, fixes #4401.
This was SVN commit r19234.
2017-02-22 15:28:09 +00:00
elexis baea68def2 Copy the victory and defeat icons, so that they can be replaced easily by artists without changing the code or even looking at it.
Differential Revision: https://code.wildfiregames.com/D131
Reviewed By: leper
This was SVN commit r19233.
2017-02-22 03:50:05 +00:00
mimo 3894902bec Check the capturePoint state when diplomacyChanged, fixes #4491
Reviewed by elexis

This was SVN commit r19232.
2017-02-21 20:42:28 +00:00
elexis 7536afe2ee Fix lineendings of new files added in recent months.
This was SVN commit r19231.
2017-02-21 01:26:12 +00:00
mimo fa257c285b Petra: cleanup of the gameTypeManager (follow up of a443bcfa65)
Patch by Sandarac
Differential Revision: https://code.wildfiregames.com/D149
This was SVN commit r19230.
2017-02-20 18:13:04 +00:00
Imarok ef46059796 Splash Damage shape tooltip
Reviewed by: elexis
Differential Revision: https://code.wildfiregames.com/D142
Fixes #4328

This was SVN commit r19229.
2017-02-20 15:39:36 +00:00
mimo d0224c913e petra: finetuning of builder number
This was SVN commit r19228.
2017-02-19 16:06:07 +00:00
mimo 997d0fb6ee petra: fix a bug preventing petra to build additionnal markets if its second market was destroyed while still a foundation
This was SVN commit r19227.
2017-02-14 17:36:58 +00:00
mimo a443bcfa65 Petra: assign guards to wonders in wonder games
Patch by Sandarac
Differential Revision: https://code.wildfiregames.com/D140
This was SVN commit r19226.
2017-02-14 17:21:54 +00:00
elexis e0f7578fbe Ensure unique client GUIDs. Patch by sbirmi, fixes #3949.
Two clients chosing the same GUID is highly unlikely, yet possible.
A malicious client chosing an existing GUID would have resulted in
unassigning the player with that GUID.

This was SVN commit r19225.
2017-02-14 16:54:34 +00:00
elexis e436af56ce Different description for African Plains by Hannibal Baraq.
This was SVN commit r19224.
2017-02-14 10:51:16 +00:00
mimo 0baf6d350a petra: be more incline to help an ally when getAlliedVictory
and deposit resources (if any) before starting to build

This was SVN commit r19223.
2017-02-13 16:19:12 +00:00
mimo 9dea08d179 petra: improve the use of garrisoning
Reviewed By: Sandarac
Differential Revision: https://code.wildfiregames.com/D141
This was SVN commit r19222.
2017-02-13 16:03:50 +00:00
elexis 1179b6298c African Plains random map script by Hannibal Baraq (a.k.a. Hannibal Barca).
Differential Revision: https://code.wildfiregames.com/D134
Reviewed By: FeXoR
Accepted By: niektb
This was SVN commit r19221.
2017-02-13 02:24:54 +00:00
elexis 4d00643ee3 Allow Romans to build the sentry tower, revealing the new model from 5d4604e767.
The faction couldn't build it before as the wooden tower added to all
factions except Romans in f56102967f was logically a part of the
palisade which Romans couldn't build either following 3bb1c01ccc.

Differential Revision: https://code.wildfiregames.com/D129
Patch By: fatherbushido
Accepted by: LordGood, scythetwirler, wowgetoffyourcellphone
This was SVN commit r19220.
2017-02-12 19:04:20 +00:00
mimo 50b5e4317f petra: fix a rare deserialization bug, when a dropsite change ownership between the last AI turn and the turn where serialization occurs (each AI is currently run only every 8 turns)
This was SVN commit r19219.
2017-02-11 16:06:00 +00:00
mimo 92164c8622 petra: remove a left over, used only for debug
This was SVN commit r19218.
2017-02-11 16:00:08 +00:00
elexis cc8f991e2a Reset the RallyPoint in case the building changes Ownership to Gaia, so as to prevent the execution of commands like gathering resources or attacking someone if the garrisoned building becomes destroyed.
Add RallyPoint tests.

Reviewed By: mimo, Sandarac
Differential Revision: https://code.wildfiregames.com/D132
This was SVN commit r19217.
2017-02-10 18:47:25 +00:00
Imarok 5f8f7bae20 Stay ready button
Reviewed by: elexis
Differential Revision: https://code.wildfiregames.com/D49
Fixes #4369.

This was SVN commit r19216.
2017-02-10 16:09:10 +00:00
Imarok 94b0e5c0f3 Reset ready state when non-observers join in gamesetup
Reviewed by: elexis
Differential Revision: https://code.wildfiregames.com/D50
Fixes #4452. Refs #2529. Refs dfc7567561, a939b49de7, 903803ceec.

This was SVN commit r19215.
2017-02-10 15:52:04 +00:00
Imarok 821657eff6 Correct siege wall icon
Reviewed by: elexis, Stan
Differential Revision: https://code.wildfiregames.com/D137
Refs #4487

This was SVN commit r19214.
2017-02-10 14:29:15 +00:00
elexis b20b8250a5 Fix three tech tree bugs, relevant for mods like Delenda Est.
Parse paired techs correctly that appear as a tech requirement.
Don't list units with an empty production queue in the trainer panel.
Display a nice warning if a tech requires a technology that can't be
researched anywhere.

Patch By: s0600204
Differential Revision: https://code.wildfiregames.com/D113
This was SVN commit r19213.
2017-02-10 14:04:55 +00:00
elexis c53c2edbed Remove the second, confusing and non-promotable skirmisher cavalry template from the Seleucid faction (which was a duplicate from the persian template).
Based on patch by: fatherbushido
Idea accepted by: scythetwirler
Differential Revision: https://code.wildfiregames.com/D128
This was SVN commit r19212.
2017-02-10 07:55:53 +00:00
elexis 8a99e0d639 Rename wooden tower template to sentry tower.
Patch By: fatherbushido
Differential Revision: https://code.wildfiregames.com/D130
This was SVN commit r19211.
2017-02-10 07:02:45 +00:00
mimo ecde67c19a Cleanup of GetBonusAttack function and use it inside petra
simulation part reviewed by fatherbushido
Differential Revision: https://code.wildfiregames.com/D138
This was SVN commit r19210.
2017-02-09 20:20:59 +00:00
mimo 689d5ed562 petra: improve the switch between attack and capture
Differential Revision: https://code.wildfiregames.com/D133
This was SVN commit r19209.
2017-02-09 18:41:03 +00:00
mimo a82fe62747 Fix an ambiguity in the ai info text.
Reviewed By: elexis
Differential Revision: https://code.wildfiregames.com/D136
This was SVN commit r19208.
2017-02-08 18:10:50 +00:00
LordGood f185817a1c This was SVN commit r19207. 2017-02-08 03:55:26 +00:00
Pureon d1e6205b70 Spy tech icon
This was SVN commit r19206.
2017-02-07 21:44:18 +00:00
Imarok 0e2d2610c9 Display a nice error message when trying to register too many lobby accounts
(This is a workaround that will be removed when gloox has fixed the
issue.)

Reviewed by: elexis
Refs #3771
Differential Revision: https://code.wildfiregames.com/D87
This was SVN commit r19205.
2017-02-07 15:05:26 +00:00
elexis 2fabe80b20 Increase catapult and bolt shooter health by factor 2.5 and 2 (as rams have 4 times that health and still vanish quickly enough when encountering sword units).
Make catapults more affordable by reducing their stone cost from 350 to
250 per unit.

Differential Revision: https://code.wildfiregames.com/D102
Reviewed By: scythetwirler, fatherbushido
This was SVN commit r19204.
2017-02-07 13:18:04 +00:00
elexis 7487d27467 Fix infinite loop detection when placing players randomly on the newer random map scripts (and prevent them surely, not only almost surely).
Reviewed By: FeXoR
Differential Revision: https://code.wildfiregames.com/D118
This was SVN commit r19203.
2017-02-06 23:21:39 +00:00
Imarok 20d34d4a97 Properly sort selected entities by owner
Fixes #4425. Refs #1807, #4167. Fixes a8b9416725

Reviewed by: mimo
Differential Revision: https://code.wildfiregames.com/D123
This was SVN commit r19202.
2017-02-06 22:17:21 +00:00
elexis 5130bb69d3 Use std::time_t in the replay menu (as 64bit integer conversion are implemented now) and remove the unused filemoddate fallback.
Differential Revision: https://code.wildfiregames.com/D112
Reviewed By: echotangoecho
This was SVN commit r19200.
2017-02-05 02:18:33 +00:00
Imarok 39bb057ec5 Show the defeat/active state of players in the diplomacy window
Patch by javiergodas, rebased and negative review by elexis. Fixes
#4237.

This was SVN commit r19199.
2017-02-03 15:08:32 +00:00
fatherbushido 863b8da240 Fix GarrisonHolder wich doesn't start to heal garrisoned units when the related technology is researched.
Summary:
When the heal technology is researched in a barrack, a wounded unit
garrisoned in it is not healed.
Indeed the component doesn't listen to value modification.
The patch fixes that.

Test Plan: Reproduce what is above and see that the patch fix it.

Reviewers: O2 JS Simulation, wraitii

Reviewed By: wraitii
Subscribers: wraitii, mimo, Vulcan

Differential Revision: https://code.wildfiregames.com/D63
This was SVN commit r19197.
2017-02-02 09:15:05 +00:00
fatherbushido 17b8e60cc7 Fix ProjectileSpeed entry in Attack schema
Summary:
The documentation is imo misleading.
Projectile speed 0 is not supported anywhere in the code and doesn't
lead to a melee attack.

Test Plan: -

Reviewers: O2 JS Simulation, leper

Reviewed By: O2 JS Simulation, leper
Subscribers: leper, Vulcan

Differential Revision: https://code.wildfiregames.com/D115
This was SVN commit r19196.
2017-02-02 08:32:57 +00:00
fatherbushido 223da5216b Don't increase entity limit counter when we upgrade to an entity with the same restriction category.
Summary:
In some mods (for hero) or in the current game (for sentry tower), when
we have reach the entity limit related to a restriction category, we
can't upgrade any entity wich have that restriction category to one with
the same restriction category (for example, upgrading an hero to an hero
as the 1 max limit is yet reached).
That diff should allow that in the gui and the sim.
Code could be concatenated. So comments are welcome.

Test Plan:
For in game testing, you can for example in the Player template reduce
the DefenseTower limit to 2. Then build 2 sentry towers.
Without the patch you can't upgrade any of them. With you can upgrade
them to defense tower.

Reviewers: wraitii, O8 JS GUI, O2 JS Simulation

Reviewed By: wraitii, O8 JS GUI, O2 JS Simulation
Subscribers: leper, mimo, wraitii, Vulcan, O8 JS GUI

Differential Revision: https://code.wildfiregames.com/D81
This was SVN commit r19195.
2017-02-01 16:35:08 +00:00
Gallaecio b052831529 Improve AI chat messages
Differential Revision: https://code.wildfiregames.com/D59
This was SVN commit r19194.
2017-01-31 18:03:36 +00:00
fatherbushido 67b00a7232 Add a linear splash damage for boltshooters. Reviewed by elexis.
Differential Revision: https://code.wildfiregames.com/D107
This was SVN commit r19193.
2017-01-31 14:46:57 +00:00
Imarok 79da98aa75 Remove all out-of-scope usages in binaries/data/mods/public/gui/common/functions_utility.js
Reviewed by elexis

This was SVN commit r19192.
2017-01-30 16:30:59 +00:00
Itms 83a2e810da Remove all occurrences of for each in JS scripts.
This will allow us to use some linters that would otherwise crash on
this non-standard SpiderMonkey feature. Refs #4419.

Special thanks to elexis for thoroughly checking and testing all the
changes!
Reviewed By: leper, elexis
Differential Revision: https://code.wildfiregames.com/D40
This was SVN commit r19191.
2017-01-30 12:47:08 +00:00
Itms c0ca70efd2 Fix 64-bit integer script conversions by removing the discrepancy between Windows and Linux.
Patch by echotangoecho, fixes #3848.
Reviewed By: Itms
Differential Revision: https://code.wildfiregames.com/D84
This was SVN commit r19189.
2017-01-30 10:21:08 +00:00
Itms 73bda917bb Cleanup of NASM. It has been unused for ages (153357f640) and we still have legacy code lines in our premake scripts. We also carry an unused binary for Windows.
By removing this we don't need to add NASM support to premake5, refs
#3729.

Reviewed By: leper
Differential Revision: https://code.wildfiregames.com/D97
This was SVN commit r19188.
2017-01-30 09:19:59 +00:00
elexis d183d1913d Nerf slingers, since infantry should not be able to destroy buildings easily, in particular in village phase.
Differential Revision: https://code.wildfiregames.com/D103
Reviewed By: fatherbushido
This was SVN commit r19186.
2017-01-29 19:01:01 +00:00
Imarok d2b9236388 Colorize the playername with rating in the lobby user profile
Reviewed by: elexis
Differential Revision: https://code.wildfiregames.com/D48
This was SVN commit r19185.
2017-01-29 17:31:18 +00:00
leper 584ccd690e Remove lib/pointer_typedefs.h. Patch by echotangoecho.
Reviewed By: Itms, leper
Differential Revision: https://code.wildfiregames.com/D83
This was SVN commit r19184.
2017-01-29 00:06:28 +00:00
leper 6ae2db53db Employ some variadic macros to make some of the C++ -> JS function calling code nicer.
Template-ize CallFunctionVoid.
Changes CallFunction parameter order to make template parameter
deduction with
variadic parameters work nicely.

Reviewed By: Itms, wraitii, Yves
Differential Revision: https://code.wildfiregames.com/D77
This was SVN commit r19183.
2017-01-28 23:37:15 +00:00
elexis fd5bd8e301 Fix 9964bee5bb.
Differential Revision: https://code.wildfiregames.com/D100
Reviewed By: Imarok
This was SVN commit r19182.
2017-01-28 20:47:26 +00:00
elexis 9a6c5eac60 Colorize playernames in the wonder victory time notification.
Differential Revision: https://code.wildfiregames.com
Reviewed By: Imarok
This was SVN commit r19181.
2017-01-28 20:30:30 +00:00
Imarok a74fcdcb35 Durations over 1 hour aren't displayed correctly
Reviewed by: elexis
Differential Revision: https://code.wildfiregames.com/D44
refs #4418, #3350

This was SVN commit r19180.
2017-01-28 10:59:53 +00:00
mimo 9b819645f5 fix typo in 82faae8637
This was SVN commit r19179.
2017-01-28 10:22:03 +00:00
mimo c2d0327af9 Implement shared vision at the entity level
Summary:
To fix tickets like #3335, having a shared vision at the entity level is
needed. This patch implements that in CCmpRangeManager, interfaced with
a new JS component VisionSharing to manage the shared entities visions.
As an example of use case (in addition to garrisoning in allied
structure without the sharedLos tech), we can think of bribing enemy
units: there is a part about it in the patch, but this one is very wip
and not intended to be committed but rather for test purposes of the
feature.
So when garrisoning a unit in another player's building, the vision of
the garrisonHolder is shared (part intended for review). In addition,
for tests of the feature, when clicking on the new bribe icon in the
diplomacy window, a random unit of the chosen player is bribed and share
its vision during 15 s.

Test Plan: Garrison a unit in an allied structure without the sharedLos
tech, or test the wip bribe feature from the diplomacy window.

Reviewers: Itms

Reviewed By: Itms
Subscribers: Stan, leper, O11 Templates, wraitii, elexis, fatherbushido,
Itms, Vulcan, O1 C++ Simulation

Differential Revision: https://code.wildfiregames.com/D60
This was SVN commit r19175.
2017-01-26 21:10:46 +00:00
mimo ff743bc928 Reshuffling of AI management of territory maps
Reviewed By: Sandarac
Differential Revision: https://code.wildfiregames.com/D96
This was SVN commit r19174.
2017-01-26 18:17:31 +00:00
elexis 7b04c74043 Fix inconsistent disabled resign and pause button
Summary:
The pause button displays an additional GUI element on top of the button
containing the text.
This apparently unneeded element uses a style forcing the button text to
be white, even if the element is disabled.

Test Plan:
Start a multiplayergame with all players in the same team, winning it
instantly.
The resign and pause button become disabled, but have different text
colors.
Apply the patch and notice the issue is gone and that the XML is more
consistent.
Try pausing to see that the pause button caption still updates.
Convince yourself that there are no other occurances of
`pauseButtonText`.


Reviewers: fatherbushido

Reviewed By: fatherbushido
Subscribers: Vulcan

Differential Revision: https://code.wildfiregames.com/D91
This was SVN commit r19173.
2017-01-26 00:22:38 +00:00
elexis 9964bee5bb Change the NetServer Broadcast function to send the given message to clients that are in one of the states specified by the caller.
Thus remove the peculiarity to broadcast to clients that are in the
gamesetup, loading screen or ingame, but not rejoining ones.

Fix "unknown player" errors in the GUI by broadcasting player
assignments to rejoining players too. Fixes #4036.

Differential Revision: D17
Reviewed By: Imarok
This was SVN commit r19171.
2017-01-25 19:04:17 +00:00
Enrique f958c6a168 The rest of the structure icons upgrade by wowgetoffyourcellphone. Thanks!
This was SVN commit r19170.
2017-01-25 16:31:32 +00:00
fatherbushido 49d86dcd9f Fix a portrait icon reference. Accepted by Enrique.
This was SVN commit r19169.
2017-01-25 15:24:53 +00:00
Enrique d10f84a157 Improved structure icons by wowgetoffyourcellphone. Thanks!
This was SVN commit r19168.
2017-01-24 22:47:52 +00:00
Enrique 528f38f4dd Fixed ptolemaic skirmisher portrait as mercenary
Fixed mauritarian archer portrait as citizen soldier
Fixed judean slingers portrait as citizen soldier
Thanks wowgetoffyourcellphone for the portraits!

This was SVN commit r19167.
2017-01-24 22:03:49 +00:00
fatherbushido 90e876f328 Some changes for Ptolemies. Allow training their new champion pikeman in the fortress. Train their heros in civic center instead of fortress. Replace the Nubian archer with the more historically accurate Cretan one. Train mercenary skirmisher at the civic center and the archer at the barrack. Accepted by scythetwirler and elexis.
Differential Revision: https://code.wildfiregames.com/D56
This was SVN commit r19166.
2017-01-24 15:51:00 +00:00
elexis 4f01db4831 Split TurnManager classes into individual files per class. Patch by echotangoecho, fixes #4095.
Remove the "Net" prefix from the non-networked classes.
Use variadic macros and mark the client turnmanager as NONCOPYABLE.

Differential Revision: D16
Reviewed By: leper
This was SVN commit r19165.
2017-01-24 02:04:50 +00:00
mimo 43c7551202 fix a typo in 8adc6b0a04, noticed by Sandarac
This was SVN commit r19164.
2017-01-23 22:33:21 +00:00
mimo 8adc6b0a04 petra: cleanup and improve regicide support, patch by Sandarac, refs #4142
This was SVN commit r19163.
2017-01-23 20:36:12 +00:00
mimo 5725542fc4 petra: respond to neutral requests from enemies, patch by Sandarac, refs #4431
This was SVN commit r19161.
2017-01-21 10:59:18 +00:00
wraitii 8fec942e8a Fix Atlas under macOS Sierra.
We were polling SDL messages from two different threads (by mistake),
and Sierra now refuses to do that.
Tested by Stan, Itms, Fatherbushido, and discussed with Philip for the
code change itself.
Fixes #4408.
Differential Revision: https://code.wildfiregames.com/D42
This was SVN commit r19160.
2017-01-21 09:54:08 +00:00
Imarok 8813888fe0 Color the garrison panel buttons more nicely
Reviewed by: elexis
Differential Revision: https://code.wildfiregames.com/D52
This was SVN commit r19159.
2017-01-20 11:16:20 +00:00
fatherbushido 0901167349 Remove an unused duplicated unit. Accepted by Itms.
Differential Revision: ​https://code.wildfiregames.com/D58
This was SVN commit r19158.
2017-01-20 10:16:12 +00:00
leper be1a205f91 Add support for const methods in components and make those that can be const const.
Reviewed By: Itms
Differential Revision: https://code.wildfiregames.com/D75
This was SVN commit r19156.
2017-01-20 02:25:19 +00:00
elexis 678e082230 Remove the "quit" simulation command and restrict the "set-shading-color" simulation command to AIs,
since they are only useful for AI debugging and counterproductive in
multiplayer mode, refs #3551.

Instead, enable AI developers to exit the game from a new AI API
command,
allowing to batch simulate matches. Refs #2755.

Differential Revision: D65
Reviewed By: leper
Consulted: mimo

This was SVN commit r19155.
2017-01-19 14:45:32 +00:00
fatherbushido 13529b04a3 Fix 03ecf8508f. Bug noticed by mimo. Some objects are not instance of Vector3D after deserialization.
This was SVN commit r19154.
2017-01-18 13:25:38 +00:00
Enrique 5c2495db52 Small improvement in Carthaginian normal map.
Fixed carthaginian market actors.
Fixed gate structure template. Patch by Stanislas69
fixes #2524

This was SVN commit r19153.
2017-01-18 00:51:07 +00:00
elexis 3448a98d1f Remove three unused AI helper functions, likely remains of the AEGIS bot removed in 3f1db1ef01.
Reviewed By: mimo
Differential Revision: D74
This was SVN commit r19152.
2017-01-17 20:45:16 +00:00
Imarok c791b9ade3 Add the confirm hotkey to the prelobby window
This was SVN commit r19151.
2017-01-17 14:33:26 +00:00
Imarok 42204dce46 Cleanup of Batch training
This was SVN commit r19150.
2017-01-17 10:41:32 +00:00
wraitii b3b47c1718 Avoid recreating the dirtiness grid every turn by swapping. Significantly reduces the number of allocations, and slight speedup (particularly on larger maps). Reviewed by Leper.
Differential Revision: https://code.wildfiregames.com/D70
This was SVN commit r19149.
2017-01-17 07:24:41 +00:00
fatherbushido 5f859c5784 Don't send MT_Attacked message when an ally help capturing back.
Differential Revision: https://code.wildfiregames.com/D69
This was SVN commit r19148.
2017-01-16 14:17:38 +00:00
fatherbushido 03ecf8508f Remove a useless function in AttackDetection. Accepted by wraitii.
Differential Revision: https://code.wildfiregames.com/D68
This was SVN commit r19147.
2017-01-16 12:19:38 +00:00
wraitii 0a6a42321d Improve cache efficiency of CcmpPathfinder::UpdateGrid substantially. On very large maps, this can be a very substantial improvement (I have measured up to 30ms)
This was SVN commit r19146.
2017-01-16 10:41:35 +00:00
wraitii ad76352cef Prevent the AI manager from copying the pathfindinder dirtiness grid every turn.
Review by Itms

Differential Revision: https://code.wildfiregames.com/D25
This was SVN commit r19145.
2017-01-16 08:38:31 +00:00
Imarok df1b542c5a CLeanup the nickNotify in gamesetup
This was SVN commit r19143.
2017-01-15 22:40:59 +00:00
leper 3a85d0b3fa Remove unused parameter from template loading code
Templates should be the same for all players, techs can be used to
provide
different lists of templates if that is needed.

Reviewed By: Itms
Differential Revision: https://code.wildfiregames.com/D25
This was SVN commit r19142.
2017-01-15 18:41:53 +00:00
fatherbushido ba76f60c53 Fix portraits icon leftovers in templates. Accepted by enrique.
Differential Revision: https://code.wildfiregames.com/D67
This was SVN commit r19141.
2017-01-15 11:56:32 +00:00
fatherbushido 6b9725892e Remove remaining colour occurence in art files as done in b1c4e29ac8. Patch by stanislas69. Refs #4458.
This was SVN commit r19140.
2017-01-14 16:14:00 +00:00
fatherbushido 103a59ec1e Fix a space tab inconsistency detected by python3.
This was SVN commit r19139.
2017-01-13 08:40:54 +00:00
fatherbushido 19e1be6e7b Remove a target moving spread factor for ranged attack. That one was a bit redundant as a moving target has yet a big advantage. Accepted by wraitii.
Differential Revision: https://code.wildfiregames.com/D61
This was SVN commit r19136.
2017-01-12 11:33:25 +00:00
fatherbushido 0706fe8410 Add history tag to Carthaginians units from design docs. Replace a generic one by the specific one. Remove a TBD tooltip.
This was SVN commit r19135.
2017-01-12 10:58:35 +00:00
Enrique b84be743fa Adds garrisoned variant to carthage super dock. Patch by Stanislas69
Improves carthage market obstruction and rubble actor. Patch by
Stanislas69

This was SVN commit r19134.
2017-01-10 23:08:31 +00:00
fatherbushido dc1835bb1d Add missing history entries to Macedonian units and set their slinger as mercenary in agreement of design doc.
This was SVN commit r19133.
2017-01-10 20:41:07 +00:00
Enrique 4f7b4e97d8 Improved slinger attack animation.
fixed build animation mallet placement.
fixed iberian helmet to fit new head meshes.
fixed mauryan turbans to fit new head meshes.
fixed persian camel trader prop placement
fixed female carry meat prop placement
fixed tool prop gather grain placement

This was SVN commit r19132.
2017-01-10 19:26:02 +00:00
Enrique ef7fcd4674 Batch of patches from Stanislas69
Fixes #3813
Refs #2524 and #4440

-Fixes stoyas foundations
-Fixes walls foundations
-Fixes carth superdock foundation
-Fixes cape_chariot variant
-Fixes missing referenced files in #2524

This was SVN commit r19131.
2017-01-10 19:22:54 +00:00
Enrique 0a68ace52d Upgraded Carthaginian market from Stanislas69. Thanks!
This was SVN commit r19130.
2017-01-10 19:17:17 +00:00
Enrique 004c8679d4 Updated unit portraits from wowgetoffyourcellphone. Thanks!
This was SVN commit r19129.
2017-01-10 19:13:47 +00:00
fatherbushido d51ad4fbdf Remove useless empty specific name and history entries in templates. Refs fd4e899f11. Fix #4445.
This was SVN commit r19128.
2017-01-10 15:39:19 +00:00
fatherbushido 8229ca499c Handle case where diminishing returns equal to 1. Accepted by mimo.
Differential Revision: https://code.wildfiregames.com/D57
This was SVN commit r19127.
2017-01-10 14:05:43 +00:00
mimo 2e636af9bc fix missing semicolons
This was SVN commit r19126.
2017-01-09 19:03:24 +00:00
Gallaecio b096728618 “an huge army” → “a huge army”
Differential Revision: https://code.wildfiregames.com/D55
This was SVN commit r19124.
2017-01-08 22:22:31 +00:00
Gallaecio 449ea2b6ed “setting a game” → “setting up a game”
Differential Revision: https://code.wildfiregames.com/D54
This was SVN commit r19123.
2017-01-08 22:19:24 +00:00
fatherbushido 0e77bdd911 Add some missing auras and remove some tooltip. Accepted by elexis.
Differential Revision: https://code.wildfiregames.com/D37
This was SVN commit r19122.
2017-01-08 16:06:20 +00:00
fatherbushido 4ad6890cad Add a simulation test to the previous commit of s0600204's patch. Refs #4263.
This was SVN commit r19121.
2017-01-08 14:04:23 +00:00
fatherbushido 6c97d8118b Merge different logics of technology requirements and fix the related bugs. Create a global script which derive the technology requirements objects in a form usable for structure tree, gui, simulation and AI. Reviewed by mimo (for AI) and fatherbushido. Fixes #3993, #1646, #4263, #4217. Refs #4108.
This was SVN commit r19120.
2017-01-08 14:00:20 +00:00
leper b5991e188b TemplateLoader cleanup.
Reviewed By: elexis
Differential Revision: https://code.wildfiregames.com/D26
This was SVN commit r19119.
2017-01-07 17:52:32 +00:00
mimo a859f3cd91 Fix double-click on hero button when the hero is garrisoned in a ram garrisoned somewhere, refs #4291
Reviewed By: Imarok
Differential Revision: https://code.wildfiregames.com/D46
This was SVN commit r19118.
2017-01-07 10:33:30 +00:00
fatherbushido d73d656cc5 Adress a Todo in auras code. Add player type aura. Improve tests. Accepted by mimo.
Differential Revision: https://code.wildfiregames.com/D41
This was SVN commit r19117.
2017-01-06 20:14:39 +00:00
mimo 32d2375e55 petra: start implementing responses to alliance requests, patch by sandarac, refs #4431
This was SVN commit r19116.
2017-01-06 19:24:15 +00:00
wraitii 2bae30c454 Fix [19027] by using generic code for conversions and fixing a few other issues. Refs #3403. Reviewed by leper.
Also fix some of the warnings that jenkins showed.

Differential Revision: https://code.wildfiregames.com/D24
This was SVN commit r19115.
2017-01-06 11:14:03 +00:00
mimo 1a038b1735 fixes a typo in 3c56638e8b, spotted by sandarac
This was SVN commit r19113.
2017-01-05 18:00:53 +00:00
elexis 3c8fc4f263 Return "local" from GetPlayerGUID to avoid duplicate checks and allow AIs to send private messages to the single player. Refs #4431.
Reviewed By: mimo
Differential Revision: https://code.wildfiregames.com/D38
This was SVN commit r19112.
2017-01-05 10:22:39 +00:00
Itms 4068f2e14a Fix warning with GCC in our lowlevel PNG texture code.
Ensure a variable is not clobbered by libpng's use of longjmp. Make code
more consistent.

Differential Revision: https://code.wildfiregames.com/D35
This was SVN commit r19111.
2017-01-04 21:05:08 +00:00
Itms 81eb74163e Happy New Year *cough*(Years)*cough*!
Also fix some whitespace.

This was SVN commit r19110.
2017-01-04 21:00:16 +00:00
mimo 3c56638e8b petra: cleanup of chat messages based on patch by bb, refs #4326
This was SVN commit r19109.
2017-01-04 20:02:56 +00:00
mimo 92ea4af49e Trade with neutral should be allowed in the gui
Reviewed By: leper
Differential Revision: https://code.wildfiregames.com/D34
This was SVN commit r19108.
2017-01-04 18:28:50 +00:00
fatherbushido 0664c5f868 Fix a typo in a comment. Accepted by leper.
Differential Revision: https://code.wildfiregames.com/D28
This was SVN commit r19107.
2017-01-04 13:22:17 +00:00
fatherbushido d68cfb508a Fix alphabetical order in simulation templates. Accepted by elexis.
Differential Revision: https://code.wildfiregames.com/D33
This was SVN commit r19106.
2017-01-04 13:19:18 +00:00
leper dedbdc384c Stop marking the player as won on endless games. Patch by Vladislav. Fixes #4323.
This was SVN commit r19105.
2017-01-03 23:12:52 +00:00
mimo 947e087820 petra cleanup, taken from sandarac, refs #4431
This was SVN commit r19104.
2017-01-03 20:30:03 +00:00
fatherbushido aa6ba459d8 Fix identation issues, line endings and remove a not working entry in templates. Refs 83680b0dee. Refs #4440.
This was SVN commit r19103.
2017-01-03 16:24:52 +00:00
fatherbushido f8aec9214a Add Persian and Carthaginian team bonus. Reviewed by mimo.
Differential Revision: https://code.wildfiregames.com/D32
This was SVN commit r19102.
2017-01-03 14:03:15 +00:00
mimo faa2090146 cleanup
This was SVN commit r19101.
2017-01-02 19:18:06 +00:00
wraitii ffb157dae7 Fixes an issue with miraging. Fixes #4297. Reviewed by leper and Itms.
Differential Revision: https://code.wildfiregames.com/D10
-This line, and those below, will be ignored--

M    binaries/data/mods/public/simulation/components/Fogging.js

This was SVN commit r19100.
2017-01-02 12:32:16 +00:00
mimo ccf4972bc5 petra cleanup (remove some capitalization)
This was SVN commit r19099.
2017-01-02 10:28:41 +00:00
fatherbushido 3a92b322b5 Replace tab with spaces. Refs 9a4fcd55a8.
This was SVN commit r19098.
2017-01-02 09:08:08 +00:00
Enrique 7c295704be Fix an error message when units with capes used props.
This was SVN commit r19096.
2017-01-01 21:08:50 +00:00
Enrique 83680b0dee Let's start the year with the right foot.
Implemented new unit meshes with animations. (thanks
wowgetoffyourcellphone for helping out with actors)
Added Tobi95's capitoline jupiter building as roman wonder
Added Stanislas69's Stupa upgrade, terrain textures, and kausia cap
helmet.
Several updated textures from wowgetoffyourcellphone Delenda Est mod,
improved smoke and rain particles, and tech icons & portraits (some not
used yet)
Added new death screams from opengameart.org

This was SVN commit r19095.
2017-01-01 18:10:09 +00:00
fatherbushido 553ab4f961 Fix messy identation in my previous commit. Noticed by leper. Refs 6d318d0869.
This was SVN commit r19094.
2017-01-01 17:39:18 +00:00
fatherbushido 6d318d0869 Remove team bonus when the source player is defeated. Reviewed by wraitii.
Differential Revision: https://code.wildfiregames.com/D12
This was SVN commit r19093.
2017-01-01 17:23:29 +00:00
fatherbushido feb22d7626 Don't use range queries for global auras. Fix related team bonus. Add Mauryan team bonus. Based on a sanderd17 patch. Reviewed by wraitti.
Differential Revision: https://code.wildfiregames.com/D19
This was SVN commit r19092.
2017-01-01 16:52:24 +00:00
leper 852221f595 Commands.js cleanup.
Reviewed By: fatherbushido
Differential Revision: https://code.wildfiregames.com/D29
This was SVN commit r19091.
2016-12-31 21:28:28 +00:00
Enrique d8f87e1ec1 female healer animations, syntagma mid row animation and celt chariot rider animations
staff props for new female healers and new trader.

This was SVN commit r19090.
2016-12-31 20:27:18 +00:00
mimo 3c3e2b4c65 petra: add healer guards in regicide mode, patch by Sandarac, refs #4142
This was SVN commit r19089.
2016-12-31 12:18:01 +00:00
mimo 86cf621def petra: prevent UnitAI to give a useless capture attack
This was SVN commit r19088.
2016-12-31 11:22:48 +00:00
leper 11ce52f8c5 Fix a few mistakes in the lobby readme.
Differential Revision: https://code.wildfiregames.com/D27
This was SVN commit r19087.
2016-12-31 00:11:30 +00:00
mimo 78a3734716 Petra: improve regicide support, patch by Sandarac, refs #4142
add a gametypeManager and improve garrisoning of hurt hero

This was SVN commit r19085.
2016-12-29 15:08:50 +00:00
Imarok 29367a9d98 Fix translation comment typo. refs #4410
This was SVN commit r19084.
2016-12-29 12:59:18 +00:00
fatherbushido 9e3dcb6f89 Add tooltip and icon to some autoresearched techs to allow displaying them in the structure tree. Patch by sanderd17. Refs #3801.
This was SVN commit r19083.
2016-12-29 11:27:17 +00:00
Imarok d4b893c15c Don't say late observers are rejoining. fixes #4410
Reviewed by: elexis
Differential Revision: https://code.wildfiregames.com/D5
This was SVN commit r19082.
2016-12-28 16:31:21 +00:00
mimo 93105bf933 This was SVN commit r19081. 2016-12-28 09:25:40 +00:00
mimo 75dc300c78 petra: fixes typos introduced in 1dd7f6d32a
This was SVN commit r19080.
2016-12-28 09:18:42 +00:00
Enrique 70d3a754e0 prop-point error fix from previous commit
This was SVN commit r19079.
2016-12-28 02:32:12 +00:00
Enrique fd9babfdc9 lightly increase size of pikemens aspis
This was SVN commit r19078.
2016-12-28 02:24:46 +00:00
Enrique ee148e6bb9 Sling weapon for attack mesh and animation
This was SVN commit r19077.
2016-12-28 01:26:53 +00:00
fatherbushido 0a82149e62 Add missing file in previous commit.
This was SVN commit r19076.
2016-12-27 10:12:05 +00:00
fatherbushido b622457b2e Use another boxmuller transform for getting normal distribution in Attack.js and move that function to globalscripts. Differential Revision: https://code.wildfiregames.com/D3
This was SVN commit r19075.
2016-12-27 10:10:05 +00:00
Itms 6680dd14ef Small updates to build scripts, refs #4419.
Tweak the coverage script.
Update the clean-workspaces script to be able to avoid rebuilding
libraries.

Differential Revision: https://code.wildfiregames.com/D2
This was SVN commit r19074.
2016-12-27 09:49:41 +00:00
fatherbushido fd8df9143b Remove some semicolons at end of line in a python script.
This was SVN commit r19073.
2016-12-27 09:42:02 +00:00
Enrique b4357e9a19 renaming last commit file
This was SVN commit r19072.
2016-12-27 02:22:09 +00:00
Enrique 222d39630d capturing animation
This was SVN commit r19071.
2016-12-27 02:21:08 +00:00
Enrique 7b73b31b33 Samnite shield tilt fix in preparation for new meshes.
This was SVN commit r19070.
2016-12-27 00:42:19 +00:00
Enrique 22ffbfb7e9 Praying animation
This was SVN commit r19069.
2016-12-27 00:22:12 +00:00
Enrique 6e652a6e0f Fixed Carthage civic center interior reported by av93. Improved AO map with more samples.
This was SVN commit r19068.
2016-12-26 23:00:53 +00:00
fatherbushido 55e9fee616 Add ptol civ and hero class to template analyzer tool.
This was SVN commit r19067.
2016-12-26 20:31:01 +00:00
Enrique 6133168fe0 Added some missing lines in the actors referencing to AO textures.
fixes #2524 , #4394 and #4415

This was SVN commit r19066.
2016-12-26 19:06:03 +00:00
Enrique b77259b638 Improved UV mapping for athen_cc, kart_fortress, roman farmstead
Added remaining animations of spear_shieldsmall variations
Updated seleucid champion texture adding pink painted ears
Minor tweaks to hoplite and pikemen spears

This was SVN commit r19065.
2016-12-26 18:17:10 +00:00
mimo 8e768f5cef Petra: fix ungarrisoning of ranged siege units
Differential Revision: https://code.wildfiregames.com/D4
This was SVN commit r19064.
2016-12-26 09:13:08 +00:00
Itms 490a3a27f6 Fix the cache directory appearing during tests.
Summary: Refs #4419.

Test Plan: When running tests, make sure nothing is created.

Reviewers: leper

Reviewed By: leper
Subscribers: leper, Vulcan

Differential Revision: https://code.wildfiregames.com/D1
This was SVN commit r19062.
2016-12-25 22:03:30 +00:00
Enrique e39d86769a New unit meshes and animations files. Animated capes files. Not set in actors yet. Merry Christmas!
This was SVN commit r19061.
2016-12-24 15:21:25 +00:00
fatherbushido b5633fd4d4 Fix some mistakes I did in templates.
This was SVN commit r19059.
2016-12-24 09:48:52 +00:00
mimo c4123b7155 add some optional info on ai level in the gamesetup panel, fixes #4406
redefine the splashscreen options
reviewed by elexis

This was SVN commit r19057.
2016-12-22 09:50:03 +00:00
Itms 0540be72dc Add an Arcanist configuration file to interact with Phabricator.
This was SVN commit r19056.
2016-12-22 08:26:18 +00:00
fatherbushido e7c3580393 Fix previous commit. Try to be consistent with case in aura description by using low case. If someone finds something better, do it. At last, +5 attack bonus was replaced by +25% attack bonus for some auras heros, tweak it to +20% wich is more moderate.
This was SVN commit r19055.
2016-12-22 08:07:29 +00:00
wraitii 40fd373c83 Revert [19043]
This was SVN commit r19054.
2016-12-21 12:36:41 +00:00
fatherbushido b581c9771f Use relative template for non champion mercenaries costs. It prevents some inconsistencies like for cart slingers noticed by Vercingetorix. Apply that policy to all non champion mercenaries.
This was SVN commit r19053.
2016-12-21 11:45:52 +00:00
fatherbushido 539f132237 Use multiplications instead of addition in auras files for most of the attack modifications to avoid inconsistencies. Try to use consistent case and tweak some details like modifying run speed when walk speed is. Agreed by scythetwirler.
This was SVN commit r19052.
2016-12-21 10:02:26 +00:00
mimo c9139704cd petra: improve treasure gathering
This was SVN commit r19051.
2016-12-20 16:41:53 +00:00
mimo 1dd7f6d32a petra cleanup
This was SVN commit r19050.
2016-12-19 20:39:48 +00:00
Itms a4c68b664b Add the executable flag to the translation maintenance script
This was SVN commit r19047.
2016-12-18 17:36:40 +00:00
Itms 58e5642c48 Do not print things outside of the standard TS_FAIL output, or garbage will be added to the XML output when running the tests under Jenkins.
This patch has the extra benefit that the stack trace actually appears
on Windows now, instead of going into the void.

Tested by Vladislav, refs #4419

This was SVN commit r19045.
2016-12-18 11:16:19 +00:00
Itms f622ab0905 Fix tests following the changes to aiInfluenceGroups in the GuiInterface.
Patch by elexis, fixes #4385.

This was SVN commit r19044.
2016-12-18 11:03:03 +00:00
wraitii 8e8da9aee4 Fix a bug introduced by a fix of a bug introduced by a fix of a bug (x100) in the vertex pathfinder. Revealed by automated tests on another branch of mine. Revert back to pre-new pathfinder behavior of not returning paths in some cases, since that is most likely less broken than now - but probably still a little broken.
This was SVN commit r19043.
2016-12-18 10:02:36 +00:00
wraitii 9288837472 Fix misleading indentation warning on gcc, introduced by [19024]. Reported by elexis. Fixes #3785
This was SVN commit r19041.
2016-12-13 13:34:31 +00:00
Imarok e7eeb6927d Remove deprecated water parameters. Patch by paulobezerr. Partial review by FeXoR. Fixes #4292.
This was SVN commit r19040.
2016-12-12 23:46:46 +00:00
Imarok ef30cedb5d Improve lobby's user profile lookup. Patch from vladislavbelov. Also reviewed by elexis. Fixes #4396.
This was SVN commit r19039.
2016-12-12 18:20:13 +00:00
Enrique 846d1af3b5 Garrison flag smoothing fix from Stan
This was SVN commit r19038.
2016-12-12 16:22:23 +00:00
wraitii 507ecff2ed Scroll to the top when switching between tabs in the credits. Patch by vladislavbelov
This was SVN commit r19036.
2016-12-11 21:15:50 +00:00
mimo 818bd07bc7 fix initialization of survivalofthefittest trigger map, refs #3102
This was SVN commit r19035.
2016-12-11 15:17:17 +00:00
mimo 9f6da1cc74 fix splashscreen management, fixes #4391
This was SVN commit r19033.
2016-12-09 18:49:38 +00:00
wraitii 06333708f8 Fix animation syncronisation between actor props. Fixes #2324 one more time. Refs [18568] and [18265]. Reported by
wowgetoffyourcellphone

This was SVN commit r19031.
2016-12-08 23:16:54 +00:00
mimo d6d45fc53d fix a wrong copy/paste in 82faae8637
This was SVN commit r19030.
2016-12-08 18:05:44 +00:00
LordGood b733bd113a stan's drop prop foundations
This was SVN commit r19029.
2016-12-07 23:10:38 +00:00
wraitii 78bc56f33e Display the updated batch size immediately when using the batch-train/barter hotkey, instead of waiting for the next turn. Patch by elexis. Fixes #3194
This was SVN commit r19028.
2016-12-07 19:18:57 +00:00
wraitii 977a5c7ca2 Add C++ GUI code for drawing charts. Patch by vladislavbelov. JS will come later. Refs #3403
This was SVN commit r19027.
2016-12-07 19:03:54 +00:00
mimo 82faae8637 Speed up the guard component by removing OnGlobal calls, based on a patch from wraitii, fixes #4333
This was SVN commit r19026.
2016-12-07 18:08:26 +00:00
mimo f01e932ce3 fixes a few missing semicolon
This was SVN commit r19025.
2016-12-07 18:06:12 +00:00
wraitii e7e5631135 Better fix to #3785. Fixes #3785
This was SVN commit r19024.
2016-12-06 23:25:26 +00:00
mimo de6de69c08 modify color text of disabled buttons, refs #4350, patch by vladislavbelov
This was SVN commit r19023.
2016-12-06 20:34:58 +00:00
LordGood f1bf3ef35e broke a thing, fixing it
This was SVN commit r19022.
2016-12-06 12:30:00 +00:00
LordGood 9929d9c684 Stan's Gaul storehouse, metropolitan Seleucid cc actor, Cart wall foundation and scaffold actors
This was SVN commit r19021.
2016-12-06 11:48:19 +00:00
mimo fe77783145 Change color of disabled labels and dropdowns, patch by vladislavbelov, fixes #4350
This was SVN commit r19020.
2016-12-05 17:21:51 +00:00
LordGood da2a021b64 Sling skeleton
This was SVN commit r19018.
2016-12-04 22:47:16 +00:00
LordGood 697c8c6b03 3D stairs on the seleucid civic center
This was SVN commit r19017.
2016-12-04 18:59:50 +00:00
elexis ac836c860c Fix errors when using the developer overlay to change the perspective while in building placement preview. Patch by Vladislav.
This was SVN commit r19015.
2016-12-01 02:17:28 +00:00
elexis b60f26983c Finish previous commit (selected wrong search scope modifier in eclipse yesterday).
This was SVN commit r19014.
2016-11-30 15:35:06 +00:00
elexis 5e92a139f5 Rename costIcon to resourceIcon.
This was SVN commit r19013.
2016-11-29 16:45:26 +00:00
elexis d67ada09c9 Use strings instead of integers for the values of aiAnalysisInfluenceGroup (used by petra to position dropsites). Reviewed by mimo, fixes #4377.
This was SVN commit r19012.
2016-11-28 20:50:42 +00:00
elexis 7702908a52 Remove an unused variable following 1b20ac7671 and fix some missing and some redundant semicolons found with jshint.
This was SVN commit r19011.
2016-11-28 14:47:13 +00:00
elexis 041c456999 Don't ask the host to exit the game upon defeat if other humans are still playing.
Remove the now unneeded disconnect warning (which is still present for
the menu exit button).

This was SVN commit r19010.
2016-11-28 14:19:17 +00:00
elexis d296cbab7c Fix some string issues reported on transifex, a typo reported by silk and end loading screen tip files with a newline.
This was SVN commit r19008.
2016-11-28 00:52:45 +00:00
elexis 9970b433a2 Add chat command to kick or ban all observers, refs #3241.
This is in particular useful as many observers can join in the gamesetup
phase
(since the server doesn't restrict connects then due to not knowing in
advance which client will become an assigned player.)

This was SVN commit r19007.
2016-11-27 23:31:14 +00:00
elexis b87fe17ac6 Fix undefined guid error when trying to kick as a nonhosting client in the gamesetup following 9c4344a940.
This was SVN commit r19006.
2016-11-27 23:16:59 +00:00
mimo 57efd31a19 petra: increase priority of some cheap techs useful for initial economy boost
This was SVN commit r19005.
2016-11-27 17:26:56 +00:00
mimo 7464bb9ec7 fixes some leftover from 52f311da2b, refs #3934
This was SVN commit r19004.
2016-11-27 16:35:50 +00:00
Enrique 3d9c6f19ab Added seleucid champion elephant mesh and texture.
This was SVN commit r19001.
2016-11-26 12:48:57 +00:00
elexis 86a79e14da Load- and save dialog cleanup.
Disable savegame selection list when there is no selectable item besides
the "No saved games found" item.

This was SVN commit r18999.
2016-11-25 03:36:10 +00:00
elexis e3b30aa2ac Load and save dialog cleanup.
Unfiy delete and load button disabling (to remove a duplicate line and
support a hypothetical reload button).
Remove an unneeded selectionChanged call (which is automatically done
when changing the selection index).

This was SVN commit r18998.
2016-11-25 03:35:08 +00:00
elexis 86ea5a5122 Save and load dialog bugfix. Reported by frapstar, refs #4361.
Change a wrong check in the save and load screen that didn't handle the
"No saved games found" case.

This was SVN commit r18997.
2016-11-25 03:32:33 +00:00
elexis f15e900086 Implement noconfirmation hotkey for deleting savegames in the save dialog. Refs #3962.
Remove the deleteGame duplicate.

This was SVN commit r18996.
2016-11-25 03:30:16 +00:00
elexis 30598bd451 Remove an unused function that is redundant with GetGameType from the EndGameManager.
This was SVN commit r18995.
2016-11-24 19:37:38 +00:00
Itms 6ae374dbee Fix the update of shared dirty visibility masks when changing diplomacy.
The previous code worked in case new mutual allies were added, but, when
some were removed, it was suboptimal in terms of performance and it made
some units visible in the FoW.

Fixes #4266

This was SVN commit r18994.
2016-11-24 14:57:09 +00:00
Itms a27dc31b0e Remove some obsolete backref logic from the deserializer. It was introduced in earlier versions of the SpiderMonkey API.
Name some variables more logically in one test.

Fixes #4244

This was SVN commit r18993.
2016-11-24 14:47:49 +00:00
elexis 808dd347b6 Play cinematic paths on arbitrary cameras to prepare previews of the camera frustum in atlas. Patch by Vladislav, refs #3814.
This was SVN commit r18992.
2016-11-23 14:50:47 +00:00
elexis 417c84870c Actually remove trailing tabs from source/.
This was SVN commit r18991.
2016-11-23 14:09:58 +00:00
elexis c49c665edb Disable SDL text input events before actually focusing a text input element. Patch by echotangoecho, refs #3870.
Thus don't add a "t" to the chat input after opening it with the hotkey
on unix.
The bug still occurs on Windows due to an SDL bug reported upstream by
echotangoecho.

This was SVN commit r18990.
2016-11-23 13:29:47 +00:00
elexis 6149dd3841 Actually remove trailing whitespace for non-header files as well.
This was SVN commit r18989.
2016-11-23 13:02:58 +00:00
elexis 944ba16eb4 End source files with a newline.
This was SVN commit r18988.
2016-11-23 11:27:54 +00:00
elexis b18f74da44 Remove trailing whitespace and whitespace in empty lines of source/ except source/third_party/.
This was SVN commit r18987.
2016-11-23 11:18:37 +00:00
mimo b4b4404c64 petra: a few adjustement when switching from town to city phase
This was SVN commit r18986.
2016-11-22 19:16:23 +00:00
mimo af85c1bfdc change the diminishingReturns (used for farms) to make it more intuitive and mod-friendly, reviewed by fatherbushido, fixes #4356
This was SVN commit r18985.
2016-11-22 18:34:37 +00:00
elexis aa7e2fce49 Don't subtract the scrollbar size from GUI dropdowns when there is no scrollbar. Patch by Imarok, reviewed by mimo, refs #3571.
Remove unused button_width.

This was SVN commit r18984.
2016-11-22 13:05:56 +00:00
elexis 0b03713b3b Unify duplicate patrol target types hardcodings. Reviewed by fatherbushido long ago, refs #4253.
This was SVN commit r18983.
2016-11-22 12:46:46 +00:00
elexis c390dee14c Hide the resources of defeated allies in the top panel tooltips, refs #3841.
This was SVN commit r18982.
2016-11-22 12:36:13 +00:00
elexis fd5ba1e882 Timer component cleanup. Patch by Stan, fixes #4158.
Use objects instead of arrays to achieve more readable code.
Use two for-of loops, a continue instead of an if-else pattern and
remove an unneeded variable dt.

This was SVN commit r18981.
2016-11-22 12:28:22 +00:00
elexis f391f113f9 Fix wall-placement cost tooltip, refs #3934.
This was SVN commit r18980.
2016-11-22 11:55:28 +00:00
Imarok a8b9416725 Colorize selected units in observermode, reviewed by elexis, fixes #4167
This was SVN commit r18979.
2016-11-21 21:35:26 +00:00
mimo 91c7805dec move the diminishing returns computation from the ResourceGatherer to the ResourceSupply component, reviewed by fatherbushido, refs #4356
This was SVN commit r18978.
2016-11-21 18:29:40 +00:00
elexis 1b20ac7671 Remove silencing of resource-not-found errors (that were introduced with an enabled property in the JSON resource files that got removed later). Refs #3934.
This was SVN commit r18977.
2016-11-21 17:32:17 +00:00
elexis 552f7043b0 Disable all unusable structures on survival of the fittest, refs #3102.
Prohibit gathering of wood by removing storehouses and the worker
elephant.
Keep the roman army camp allowed for now because it isn't a dropsite.
Always spawn at least one attacker in the first wave.

This was SVN commit r18976.
2016-11-21 17:28:21 +00:00
LordGood 7cb3fe8eff hidden texture loader actor in the carthaginian CC to prevent loading on damage
This was SVN commit r18972.
2016-11-20 22:02:18 +00:00
LordGood 0fa69f9983 Seleucid main menu background
This was SVN commit r18968.
2016-11-20 20:02:41 +00:00
LordGood 78e31116f7 Carthage themed background variant commit
This was SVN commit r18967.
2016-11-20 01:19:43 +00:00
elexis 3653925a00 Gatherrate tooltip rework.
Display the gatherrate tooltip in the selection details.
Remove structure tree specific gatherrate parsing code.
Receive the data directly from Templates.js and GUIInterface.js like the
other tooltips do.
Add TODO about the tooltip lying (averaging over the subtypes).

This was SVN commit r18966.
2016-11-19 14:34:02 +00:00
elexis f66a202cb0 Remove unused milk food subtype.
This was SVN commit r18965.
2016-11-19 14:30:32 +00:00
elexis 52f311da2b Merge resource agnostic branch by s0600204, fixes #3934.
Remove all occurances of hardcoded resources in the simulation, GUI and
AI code by
specifying resources as JSON files in a new simulation subdirectory and
accessing them through a globally defined prototype.

This was SVN commit r18964.
2016-11-19 14:29:45 +00:00
elexis 7ff7fcd240 Support hardcoded translation comments when extracting strings from JSON files.
Correct the function description of extractFromFile introduced in
ae10d34d99.

This was SVN commit r18963.
2016-11-19 14:16:50 +00:00
fatherbushido 79f3cae70d Add missing Mercenary visible classes to thracian mercenaries templates.
This was SVN commit r18962.
2016-11-19 08:25:56 +00:00
fatherbushido 85e68d4c0e Remove useless Rollover element from Identity schema. Fix a related unit template.
This was SVN commit r18961.
2016-11-18 20:05:38 +00:00
mimo a3c3ca79cf Save the config file even it does not exist, patch by Vladislav Belov, fixes #4146
This was SVN commit r18960.
2016-11-18 18:06:01 +00:00
elexis b83d5eb63c Fix a test failure on SM45. Patch by leper, fixes #4353.
This was SVN commit r18959.
2016-11-18 09:43:54 +00:00
fatherbushido 527a7bc9b6 Clean some templates with useless Identity entries.
This was SVN commit r18956.
2016-11-17 09:23:58 +00:00
mimo 6efd5ea505 petra: some more adjustements for lastManStanding games
This was SVN commit r18955.
2016-11-16 19:35:12 +00:00
elexis 65fae7f965 Rename clStone to clRock, to be consistent with all other maps. Reviewed by FeXoR on 2016-10-29.
This was SVN commit r18954.
2016-11-16 14:05:54 +00:00
elexis d999fc4be5 Prevent collisions of straggler trees with mines. Reviewed by FeXoR on 2016-10-29.
This was SVN commit r18953.
2016-11-16 13:57:04 +00:00
elexis 827ee03cc0 Random map fortress generation code cleanup.
Create target objects in a single statement where possible, to highlight
the absence of self-reference.
Separate arrays of hardcoded templates from the logic.
Use loops to remove duplicate statements.
Add scopes to the new code to show and enforce that some variables are
indeed local.

This was SVN commit r18952.
2016-11-16 13:40:40 +00:00
elexis 5f97892814 Don't overwrite skipFirstWall of placePolygonalWall with true if false were given.
This was SVN commit r18951.
2016-11-16 12:48:24 +00:00
elexis 8efe5baf64 Further increase metal cost and train time of Spartan Skiritai swordsmen (0b2f0ea042), in agreement with borg, Vercingetorix and Hannibal Barca.
This was SVN commit r18950.
2016-11-16 10:31:30 +00:00
elexis d623a73f9f Remove structure tree helper function that was never used since 932dbc7221.
This was SVN commit r18949.
2016-11-16 10:07:08 +00:00
LordGood 95fa246b82 Aura icon for farm penalty around CC
This was SVN commit r18948.
2016-11-15 23:18:36 +00:00
elexis 64878bb416 Order the lobby gamelist by the number of playerslots instead of the ratio of online and total players. Reviewed by scythetwirler.
This was SVN commit r18947.
2016-11-15 21:59:16 +00:00
mimo 8243803f14 AI: clean some deprecated functions following f352e2c725
This was SVN commit r18946.
2016-11-15 19:50:36 +00:00
mimo f352e2c725 AI diplomacy support for lastManStanding, patch by Sandarac, tests reviewed by elexis, fixes #4143
This was SVN commit r18945.
2016-11-15 18:48:20 +00:00
elexis a96335fad1 Regression tests for all aura types. Patch by fatherbushido, fixes #4124.
This was SVN commit r18944.
2016-11-15 16:30:10 +00:00
elexis d6fa0c4255 Partial EndGameManager test by Sandarac, refs #4143.
This was SVN commit r18943.
2016-11-15 15:10:14 +00:00
elexis aa26863d5c Fix an OOS on rejoin caused by ParamNode.cpp using an invalid node cache. Patch by leper, fixes #4316.
Reuse the temple of vesta inheritance from 06bf79b7e8 which was affected
by this bug.

This was SVN commit r18942.
2016-11-15 14:01:15 +00:00
elexis 3008533c8e Add a template manager test that reveals an inheritance error in ParamNode.cpp which can trigger an OOS on rejoin. Patch by leper, refs #4316.
This was SVN commit r18941.
2016-11-15 13:51:29 +00:00
elexis 2bf1dbfd13 An awesome Rejoin-test tool by wraitii and Itms, fixes #4242, refs #3460.
Contrary to the serializationtest, initializes the secondary simstate
only once
before progressively applying updates.
Thus reproducing actual multiplayer rejoining, enabling developers to
analyze OOS reports solely from the replay file of the rejoined and a
non-rejoined client.

This was SVN commit r18940.
2016-11-15 13:26:58 +00:00
LordGood 9a4fcd55a8 Very large art commit, hopefully I don't break anything
foundations and construction sites, not-yet-implemented animations,
briton walls, fortress, and textures
Carthaginian buildings, destruction variants

This was SVN commit r18939.
2016-11-15 00:09:04 +00:00
wraitii cc4d68c68d micro optimisation of water shader
This was SVN commit r18938.
2016-11-14 23:41:48 +00:00
elexis f3ab043c91 Rename isReplay to isNonVisualReplay becuase it is false for visual replays.
This was SVN commit r18937.
2016-11-14 17:19:53 +00:00
elexis 948d2a4635 Clear particle emitters when ending a game so they don't leak into new games. Patch by Vladislav, fixes #4111.
This was SVN commit r18936.
2016-11-14 17:16:59 +00:00
elexis 3f5648767d Scroll to the selected element after the selection changes. Fixes #4254, refs #3742.
This was SVN commit r18935.
2016-11-14 15:28:49 +00:00
elexis a89f521e08 GUI cleanup.
Remove sprintf from untranslated error messages, unneeded braces and
comments, add missing quotes.

This was SVN commit r18934.
2016-11-14 13:43:27 +00:00
elexis 34ce0f865d Reset the cursor when opening new GUI pages. Patch by danger89, refs #539.
Remove duplicate cursor image and duplicate hardcoded default paths.

This was SVN commit r18933.
2016-11-14 13:23:07 +00:00
elexis 29e809f3e9 Remove the URL entry of the desktop file, because that can only be used to create a desktop link to that URL (as of Desktop Entry Specification 1.1), refs #3734.
This was SVN commit r18932.
2016-11-14 09:50:36 +00:00
elexis ceecd948e2 Move that string to another transifex resource while not in string freeze, 58a8380dd9, f37faa57e3.
This was SVN commit r18931.
2016-11-14 09:22:38 +00:00
elexis 9dca10e32f Remove two pointless references and fix a typo. Patch by fatherbushido, refs #4276.
This was SVN commit r18929.
2016-11-14 01:44:17 +00:00
elexis 59edc42042 String extension for the will to fight upgrade following 5e88ae118a / 1f8c75db08.
This was SVN commit r18928.
2016-11-14 00:28:10 +00:00
Imarok 448bf31b15 Disable upgrade buttons to observers. Reviewed by elexis. Fixes #4302 Refs #2706
This was SVN commit r18927.
2016-11-13 22:31:04 +00:00
Imarok e256d85305 Disable right-click playercommands to observers. Patch by elexis. Refs #4302.
This was SVN commit r18926.
2016-11-13 18:03:23 +00:00
FeXoR 93aefe0787 Split the 1D and 2D interpolation into 2 Functions. Renamed BicubicInterpolation.js to interpolation.js. Original patch by Vladislav. Reviewed by fatherbushido. Fixes #4218
This was SVN commit r18925.
2016-11-13 17:34:08 +00:00
elexis 2ec3f3ebaa Add parenthesis suggested by gcc 5.4 following 3e59ac76ee, refs #4278.
This was SVN commit r18924.
2016-11-12 16:07:23 +00:00
mimo 1a05eba451 petra: do not steal ally's cattle when inside its territory, fixes #4331
This was SVN commit r18923.
2016-11-12 13:12:20 +00:00
mimo 3e59ac76ee fix UnitMotion when inside the obstruction, refs #4278
This was SVN commit r18921.
2016-11-11 13:14:30 +00:00
mimo fe01a710a5 implement ptol civ bonus and optimization of ResourceTrickle component, refs #4082
This was SVN commit r18920.
2016-11-11 12:46:25 +00:00
elexis e55ee5048e Bump version number to Alpha 22.
Remove "new" keyword from Alpha 21 maps.
Remove "new pathfinder" hint from Alpha 19, as reported by fcxSanya.
Show chat timestmaps by default.

This was SVN commit r18919.
2016-11-11 01:46:12 +00:00
elexis 41a338ca3e Translate the reveal map cheat notification following the lift of the string freeze.
This was SVN commit r18918.
2016-11-11 01:16:55 +00:00
wraitii fc0e2a2f72 Fixes [18916]. Obviously I left over some code from my bundling of OSX. Update copyright to 2016.
This was SVN commit r18917.
2016-11-10 22:56:16 +00:00
wraitii 12ad190a51 Allow .Deleted to work on directories. Fixes #2641. Patch by leper.
This was SVN commit r18916.
2016-11-10 22:52:39 +00:00
elexis 01b667ab86 Invincible women on survival of the fittest to prevent women fights and cheap tower kills. Based on patch by bb, refs #3102.
This was SVN commit r18915.
2016-11-06 03:11:04 +00:00
elexis 9468cfdc8c Don't use black for gaia on survival of the fittest, refs #3102.
Some GUI elements use white until the first diplomacy change.
The choice black is confusing, problematic as there is a dark gray
player color and
problematic as black words in the chat have no contrast to the black
background.
Changing playercolors in running games is a questionable feature, thus
don't attempt to inform the GUI via a GUIInterface notification now.

This was SVN commit r18914.
2016-11-06 02:16:40 +00:00
elexis 0555ace16e Don't spawn units for defeated players and players who won on survival of the fittest. Refs #3102.
The previous code errored as the trigger point became gaia, consequently
trying to access the undefined playerCivicCenter of gaia.
Remove two useless loops by sending the command for all entities instead
of one command for each entity.
Rename attackerEntities to attackerTemplates and attackerCount to
attackersPerTemplate.

This was SVN commit r18913.
2016-11-06 01:46:56 +00:00
elexis d124b32f6a Prevent out of scope usage of cmpTrigger, which would result in an OOS on rejoin, refs #4310.
This was SVN commit r18912.
2016-11-05 21:46:32 +00:00
elexis 554032e507 Revert 06bf79b7e8 as it revealed an OOS on rejoin in the engine code, refs #4232 #4316.
This was SVN commit r18911.
2016-11-05 20:44:58 +00:00
elexis 5a25f7817f Slightly nerf gallic naked fanatic rush.
15% less HP, walk speed from 17.3 to 16.5 (as cavalry has 17.5).
Discussed with borg, Hannibal_Barca and nigel87.

This was SVN commit r18910.
2016-11-05 20:23:36 +00:00
elexis 53570da065 Fix an OOS on rejoin on survival of the fittest. Patch by Itms, fixes #4310.
The code kept the reference to the trigger component before
deserialization,
thus accessed the empty civic center array instead of the deserialized
one.

 refering to the actual Trigger component instead of

This was SVN commit r18909.
2016-11-05 16:40:20 +00:00
LordGood 3c9100b4e2 Trimming off the inactive Gaul roof variations that call missing texture files
This was SVN commit r18908.
2016-11-05 14:21:20 +00:00
elexis f569e5ce04 Don't throw errors attempting to spawn templates that don't exist on survival of the fittest. Patch by bb, refs #3102.
This was SVN commit r18907.
2016-11-04 14:56:32 +00:00
elexis 31c7713e9b Remove a hunk with commented out code and a hunk of broken duplicate code from survival of the fittest, refs #3102.
The removed code is redundant with the AlliedVictoryCheck of the
EndGameManager which is called for all victory conditions.
The code is broken because it suggests last man standing mode while
actually not implementing it.
As of #4143, players can chose between allied victory or last man
standing mode. They should be able to chose on this map too.

This was SVN commit r18906.
2016-11-04 14:53:57 +00:00
elexis b83168cfbf Revert 9846f374a0 as it doesn't work with the packaged version, refs #4313, because that comes with DDS files instead of PNGs and FileExists does not translate that like the sprite attribute does.
This was SVN commit r18905.
2016-11-04 12:18:11 +00:00
elexis 661cb8c932 Add URLs and keywords for the software search in the gnome software center and it's derivates used by many linux flavors, fixes #3734.
Add a menu entry for atlas.
Add some translations for the product description provided by native
speaking players and contributors.

This was SVN commit r18904.
2016-11-01 18:07:21 +00:00
elexis 6d81ba0476 Tag persian skirmishers as mercenaries and make their cost consistent with the other mercenary champions. Patch by fatherbushido.
This was SVN commit r18901.
2016-11-01 16:35:56 +00:00
Itms aba2e53714 Update the list of bundled languages for A21.
This was SVN commit r18900.
2016-11-01 16:33:33 +00:00
elexis b08113b0bb Fix some weird water colors on some maps (like green on latium) that were revealed by the new water shader in ead8436b3d. Patch by Imarok, reviewed by Stan, fixes #4288.
This was SVN commit r18897.
2016-11-01 09:57:53 +00:00
elexis aad0ef4673 Nerf population bonus of all celtic civs, not only britons, refs 48e5101239, reviewed by fatherbushido.
This was SVN commit r18896.
2016-11-01 09:37:33 +00:00
fatherbushido 27e2a33573 Change order of preferred classes for ships attack. Refs #4194.
This was SVN commit r18895.
2016-10-31 19:10:54 +00:00
elexis 4c0dbcf51b Nerf mauryan chariot spam by allowing them to be trained only at the fortress. Suggestion by nigel87.
This was SVN commit r18894.
2016-10-31 17:24:10 +00:00
elexis bc9bdc151f Sentry tower icon by Lion.Kanzen, refs #3959.
This was SVN commit r18893.
2016-10-31 16:00:08 +00:00
elexis 569424d9f7 Add missing preferred classes to ships. Reviewed by fatherbushido, refs #4194.
This was SVN commit r18892.
2016-10-31 13:59:55 +00:00
elexis 48e5101239 Nerf british population bonus for town phase buildings, in agreement with borg and fatherbushido.
This was SVN commit r18891.
2016-10-31 13:56:40 +00:00
elexis 0db69d55fb Don't use multilayered textures on Ngorongoro as the blending is broken. Patch by Vladislav, refs #4219.
This was SVN commit r18890.
2016-10-31 13:43:02 +00:00
elexis 7dbd225783 Fix mistake in c1774bc4f2.
This was SVN commit r18889.
2016-10-31 13:32:18 +00:00
mimo 06d6410ac3 complete 0c8c879ed1 in case the stats of the original and upgraded structures are different
This was SVN commit r18888.
2016-10-30 12:29:26 +00:00
fatherbushido 42b42e8d64 Slightly nerf champion cavalry archers by reducing a bit accuracy and pierce damage. Reduce a bit accuracy of basic cavalry archer to keep consistency. Agreed by scythetwirler.
This was SVN commit r18887.
2016-10-29 18:11:06 +00:00
FeXoR af40768b14 Fixes an oversight in 37e5d6a5af that made random map Latium throw an error. Fixes #4296
This was SVN commit r18886.
2016-10-29 12:53:35 +00:00
elexis f15f49c93b Add Open Age Ratings Service metadata to the appdata file, allowing the Gnome Software Center to show an accurate age rating depending on the country of the user. Patch by Jeru, reviewed by feneur, refs #3734.
This was SVN commit r18885.
2016-10-28 18:10:57 +00:00
mimo 02bf76bbdc petra: check that the foundation still exist when builders approach it
This was SVN commit r18884.
2016-10-28 18:08:48 +00:00
mimo 0c8c879ed1 petra: take into account possible upgrade in garrison manager
This was SVN commit r18883.
2016-10-28 18:04:52 +00:00
elexis 4898e94c81 Remove unneeded braces and whitespace in empty lines.
This was SVN commit r18882.
2016-10-28 16:11:59 +00:00
elexis d8665adf42 Random map script cleanup.
Remove many unneeded parenthesis when assigning variables.
Use min and max to avoid ternaries.
Simplify ternaries that return booleans.
Remove == true from checks.

This was SVN commit r18881.
2016-10-28 16:01:02 +00:00
elexis 5a384f4eaf Fix an OOS on rejoin when a ptolemian lighthouse revealing the shoreline was built prior. Patch by Itms and wraitii, fixes #4277.
Serialize the mapsize in the pathfinder and the reveal shoreline flag in
the range manager.
Reload the rangemanager data after other components have been
deserialized.
Use the SerializeCommon pattern in the pathfinder to avoid code
duplication.
Move the shoreline logic from the Vision component to the range manager.
Remove unused interface mocks from the rangemanager test following
b05879e151.

This was SVN commit r18879.
2016-10-28 15:34:24 +00:00
fatherbushido b70af394df Take account of control group when checking if we can upgrade an entity. Fix a call to an unknown function. Style reviewed by elexis, logic overviewed by wraitii. Fix #4285.
This was SVN commit r18878.
2016-10-28 12:17:16 +00:00
wraitii a64f3c7597 Fix an oversight in the water shader that made water buggy with disabled reflections. Fixes #4287
This was SVN commit r18877.
2016-10-27 20:19:13 +00:00
elexis 37e5d6a5af Array simplifications for random map scripts.
Use for...of loop and remove unneeded array and length variables.
Use fill and concat to remove unneeded loops.
Utilize map to create new arrays instead of reusing the same inside
fill.
Remove an unneeded non-recursive copy in the RandomGroup placer.

This was SVN commit r18876.
2016-10-27 16:32:24 +00:00
elexis 1234227f98 Simple random map script cleanups.
Merge else and if.
Remove else after continue/return.
Use ternaries and remove duplicate terms.

This was SVN commit r18875.
2016-10-27 12:47:17 +00:00
elexis 720183b127 Fix broken whitespace in cycladic archipelago.
Merge two if-statements in latium.

This was SVN commit r18874.
2016-10-27 12:39:42 +00:00
elexis c1774bc4f2 Trivial random map script cleanup.
Remove duplicate comments and add more progress updates.
Few whitespace fixes and ternaries.

This was SVN commit r18873.
2016-10-27 12:27:47 +00:00
elexis f92279bbef Remove unused clWater and clRiver tile class from maps that don't have water nor rivers.
Remove pointless restraint checks on clWater on oasis before the water
is painted.

This was SVN commit r18872.
2016-10-27 12:20:54 +00:00
elexis 7523355699 Fix fish placement on cantabrian highlands and fortress, as these maps failed to pass the restrictions as an array.
Remove duplicate fish placement from english channel.
Allow placing docks on neareastern badlands to gather the placed fish by
increasing the waterheight from the default 19.9 to 20.

This was SVN commit r18871.
2016-10-27 12:13:05 +00:00
elexis 700ec18723 Don't place fish on land on the random map archipelago, fixes #3746.
This was SVN commit r18870.
2016-10-27 12:05:55 +00:00
elexis 143b0a7bd1 Prevent resource collisions on the random map latium and spread mines a bit.
This was SVN commit r18869.
2016-10-27 12:04:57 +00:00
elexis 7854c7cc36 Allow non-forest resources to be placed in the middle strip of the latium random map (by only marking the actual cliffs as such instead of everything on that strip).
This was SVN commit r18868.
2016-10-27 11:59:04 +00:00
elexis 58a8380dd9 Don't move that string to another transifex resource while in string freeze.
This was SVN commit r18866.
2016-10-26 23:23:37 +00:00
elexis f37faa57e3 Add missing translate call to the upgrade tooltip and fix a newline removed by b5340a19ad which was only needed by the resource tooltip. Reported by fatherbushido.
Merge duplicate technology requirement tooltips.

This was SVN commit r18865.
2016-10-26 23:19:19 +00:00
mimo f74639e7d9 add some missing semicolon
This was SVN commit r18864.
2016-10-24 18:00:14 +00:00
mimo 3bbadc33ab petra: do not try to defend an ally cc if attacked before its construction began
This was SVN commit r18863.
2016-10-24 17:58:59 +00:00
elexis d90e5af9c5 Random map script cleanup.
Annotate and move the envrionment defaults to the file that contains the
methods to change them.
Remove redundant watercolor entry and add default water tint to a map
that didn't specify it.
Add a comment about the default waterheight pitfall (4391498cf4).
Add missing quotes and spaces, remove unneeded comments.

This was SVN commit r18862.
2016-10-24 12:53:23 +00:00
elexis 85d357e182 Notify players of who used the reveal map developer cheat.
This was SVN commit r18861.
2016-10-23 21:36:07 +00:00
elexis 6b983bbf06 Change the perspective to "observer" to reveal the map to observers who watched a player resign, while keeping the choice to see the old territory from d5b85c7ffc.
This was SVN commit r18860.
2016-10-23 16:21:33 +00:00
elexis 44f0929ea6 Don't throw FSM update errors (type=16 state=6) when kicking clients while others haven't finished the authentication, loading screen or synchronization yet, refs #3241.
This was SVN commit r18859.
2016-10-23 15:44:02 +00:00
elexis 20399b72f1 Fix a bug where the networked game would never start if a client would disconnect while synchronizing, fixes #4289.
This was SVN commit r18858.
2016-10-23 15:13:16 +00:00
elexis 072cbbe26b Delay the exit message box in multiplayer games until after the synchronization is finished, to avoid stacking message boxes.
This was SVN commit r18857.
2016-10-23 14:49:32 +00:00
niektb 6056ebb64f Fix png encoding
This was SVN commit r18856.
2016-10-23 13:58:30 +00:00
niektb 8d1ece4060 New icon for the Persian Ishtar Gate, made by Lion.Kanzen. Refs #3959
This was SVN commit r18855.
2016-10-23 13:48:28 +00:00
elexis d6eabc9f0a Remove the number of players recommendation per mapsize as it's plain wrong, refs #4141.
This was SVN commit r18854.
2016-10-23 12:57:57 +00:00
fatherbushido e0ac50778e Tweak elevation bonus of sentry tower to match his height. Add elevation bonus to attack tooltip (it was missing in structure tree and selection panel). Reviewed by elexis.
This was SVN commit r18853.
2016-10-23 12:25:55 +00:00
elexis 37f8441703 Add missing mime types to the templates added after d883fc332d and remove the UTF-8 byte order mark from the seleucid military colony introduced in edc1b2c066.
This was SVN commit r18852.
2016-10-21 13:53:21 +00:00
elexis dc8c359847 Rename pers_palace.xml since that template contains the currently unused palace while the Apadana is the palace found in the game.
This was SVN commit r18851.
2016-10-21 13:42:58 +00:00
fatherbushido f42a6d391a Tweak elephant hero stats. There were some inconsistencies with champion elephant template. Remove some hard bonuses forgotten in previous balancing commits. Reviewed by elexis.
This was SVN commit r18850.
2016-10-21 13:07:17 +00:00
elexis 57c546d1c1 Increase the number of units to garrison for some special buildings, reviewed by fatherbushido:
from 5 to 10 for champion buildings and persian palaces,
from 0 to 6 for embassies,
from 0 to 5 dogs for the kennel
while keeping the garrison limit of the seven other special buildings at
5.

This was SVN commit r18849.
2016-10-21 12:06:26 +00:00
elexis 20ea96e784 Reset the rallypoint when capturing that building or unit, since the rallypoint command is only meaningful to the player that issued it. Reviewed by fatherbushido.
This was SVN commit r18848.
2016-10-21 11:34:20 +00:00
elexis 7d3639a0f6 Add the least amount of code to fix the disappearance of the phase requirements tooltip after f4bfe7c3ad and mark the incomplete implementation from b8245da606 as TODO, to be solved by refs #3993. Patch by fatherbushido.
This was SVN commit r18847.
2016-10-21 11:30:25 +00:00
elexis f4a5a665dd Reduce the maximum crush damage of siege towers (25 / second) by half and increase pierce damage. Reviewed by fatherbushido.
This was SVN commit r18846.
2016-10-21 10:12:20 +00:00
elexis d5b85c7ffc See the explored territory of defeated players in observermode.
This was SVN commit r18845.
2016-10-20 16:31:52 +00:00
fatherbushido 7b37ed8c05 Adds melee visible classes to war dog, so it's affected by military selection filter and some upgrades. Noticed by elexis.
This was SVN commit r18844.
2016-10-20 10:12:22 +00:00
elexis fcc99da9e6 Slightly increase the size of the locale configuration dialog and its GUI elements to fit the longest translations. Patch by Imarok, fixes #2925.
This was SVN commit r18843.
2016-10-19 13:32:10 +00:00
elexis 11dc6df143 Fix a gamesetup bug where the clients would see two players with the same color, while the host already sees the corrected version after increasing the number of players.
This was SVN commit r18842.
2016-10-18 18:53:28 +00:00
elexis d1f4a6ab40 Give the Sentry Tower some territory influence. Reviewed by fatherbushido.
This was SVN commit r18841.
2016-10-18 16:42:27 +00:00
elexis 15dd804112 Remove trailing whitespace of all map scripts (as in all whitespace that doesn't come before any non-whitespace character on the same line).
This was SVN commit r18840.
2016-10-18 13:08:01 +00:00
elexis f24fd75577 Add missing semicolons found with jshint to all map scripts.
This was SVN commit r18839.
2016-10-18 12:52:00 +00:00
fatherbushido 31b9481c08 Tweak obstruction size of the stonehenge wonder. It seems it was not updated when the model changed. Reviewed by elexis. Fixes #3861.
This was SVN commit r18837.
2016-10-17 09:59:05 +00:00
elexis f7ddad6455 Use native lineendings.
This was SVN commit r18836.
2016-10-16 21:21:45 +00:00
wraitii 7f8f820e35 Fix an oversight in d8c11434a8/18823, fixes #4270 .
This was SVN commit r18835.
2016-10-16 20:17:31 +00:00
elexis 0991c22026 Take vision range techs into account on ownership change (capturing or defeat). Solves an OOS, reviewed by wraitii, fixes #4279, refs #3989.
This was SVN commit r18833.
2016-10-15 18:22:10 +00:00
mimo c24831387a Initialize UnitAI component of initial garrisoned units, fixes #4281
This was SVN commit r18832.
2016-10-13 17:38:13 +00:00
elexis c5e87628fb Remove the unneeded hardcoding of the Alt+F4 hotkey which causes 0AD on linux to exit unintentionally after receiving the window focus from another window which was closed with that hotkey (with multiple tiling window managers). Reviewed by Philip, tested by Imarok and Itms, fixes #4272.
The hotkey introduced in 5135bcb899 was likely a workaround for the
custom windows SDL (wsdl) implementation which is no longer in use.

This was SVN commit r18830.
2016-10-11 15:48:02 +00:00
fatherbushido f80ffc20fd Fix 4edff555a3: damage only one unit when the main target is missed by a projectile and others units are reached, to be coherent when the main target is hit. Commented by leper. Refs #4276.
This was SVN commit r18829.
2016-10-11 06:03:10 +00:00
fatherbushido 4edff555a3 Fix an issue with ranged attack: wrong units were damaged. Refs #4276. Commented by leper and Itms.
This was SVN commit r18828.
2016-10-10 18:59:59 +00:00
fatherbushido fbadd0995d Fix an issue with splash damage. The ranged attack strengths were parsed instead of the splash strengths. Refs #4276.
This was SVN commit r18827.
2016-10-10 18:49:57 +00:00
mimo 106e4bddbf petra: check that we are dealing with a foundation before trying to provide it with builders, fixes #4271
This was SVN commit r18826.
2016-10-10 16:41:31 +00:00
Itms 9c2404e40e Some tweaks in order to fix the non-graphical test modes (serialization test, etc.), and possible future non-visual players like headless game servers.
The internal data of the component, which is serialized, should not
depend on the presence of a visual Unit.

Also remove a misleading comment about a simple initialization code.

Refs #4270

This was SVN commit r18824.
2016-10-10 10:56:13 +00:00
Itms ef7486c5d3 Fix a number of things in cmpVisualActor:
* Rewrite the Update function, add more details and information in
comments, and properly serialize everything that function needs.
* Fix the broken deserialization code by using a sane helper function.
* Fix the `SelectMovementAnimation` function.

Fixes #4270.

This was SVN commit r18823.
2016-10-10 10:49:49 +00:00
Itms d8c11434a8 Save the animation sync offset, for consistency's sake.
Refs #4270

This was SVN commit r18822.
2016-10-10 10:41:36 +00:00
Itms 79b37bd4dc Improve style and whitespace in CCmpVisualActor.
Refs #4270

This was SVN commit r18821.
2016-10-10 10:37:58 +00:00
FeXoR 9512eb7cd2 Optimizes random map Caledonian Meadows: Broadened paths, much faster generation, added progress indicators, larger bases. Reviewed by Itms. Fixes #4275
This was SVN commit r18819.
2016-10-09 21:03:14 +00:00
fatherbushido ba2bb82406 Remove friendly fire for splash damage of quinquremes to make it coherent with catapults. Decided in dev meeting.
This was SVN commit r18818.
2016-10-09 19:50:34 +00:00
elexis 2029a3f763 Fix missing maxArrowCount in the GUIInterface causing a wrong projectile tooltip in the session. Reviewed by fatherbushido, refs #3816.
Also unify the garrison limit property names in GUIInterface and
Template parsing (thereby also distinguishing a garrison limit of 0 and
undefined in that equation).

This was SVN commit r18817.
2016-10-09 15:53:23 +00:00
elexis 5f1736cbd4 Don't place chicken inside civic centers and unify chicken placement code. Reviewed by FeXoR, fixes #3836.
This was SVN commit r18816.
2016-10-09 15:07:48 +00:00
elexis 1f8c75db08 Don't break string freeze.
This was SVN commit r18815.
2016-10-08 18:05:37 +00:00
elexis 5e88ae118a Let the "will to fight" upgrade also boost siege engine and ship attack damage. Patch by fatherbushido.
This was SVN commit r18814.
2016-10-08 16:26:13 +00:00
Itms 0030f6ad2b In CCmpVisualActor, m_Unit is not initialized when running without graphics, so we must check that pointer everytime. Also make one call consistent with the rest of the file.
Fixes #4238, refs #3952

This was SVN commit r18812.
2016-10-08 08:49:35 +00:00
fatherbushido bb0924bb6c Fix computational errors in Damage.js for testing collision of a point with the square or the cirle footprint of an entity. Logic reviewed by Itms, style reviewed by elexis.
This was SVN commit r18811.
2016-10-07 20:36:24 +00:00
fatherbushido a5b399de29 Fix two issues related to splash damage: fix a mismatch between the string false and the false boolean, fix an issue with an omitted array of players. Noticed by Mate-86. Patch by leper. Refs #3610, #1910, c4c315f6a0.
This was SVN commit r18810.
2016-10-07 20:29:56 +00:00
elexis 3c72c16d6c Add a missing check for undefined resource costs when picking the unit portrait in observermode. Patch by Imarok, fixes #4269.
This was SVN commit r18809.
2016-10-07 17:57:03 +00:00
fatherbushido bb438eca09 Removes useless divsions in Damage. Read by elexis.
This was SVN commit r18808.
2016-10-07 10:05:38 +00:00
elexis 35945eff53 Revert the persistance of playersettings for skirmish maps in b642f0d876, because it overwrites potential team numbers suggested by the map. Tested by mimo, fixes #4248, refs #3120.
Keep the code simplification and removal of duplicate code.

This was SVN commit r18806.
2016-10-06 15:13:30 +00:00
elexis f450ba1398 Use the default AI instead of not assigning one when the map doesn't specify it (c1b5e8c8b7 broke that). Tested by mimo, refs #4248.
This was SVN commit r18805.
2016-10-06 15:03:40 +00:00
elexis d7e51f2a4f Fix an OOS without rejoin after selecting the first unit.
Introduced by 46ead523b8, caused by serializing the aura cache which is
initialized by the tooltip calls from the GUI.
Reviewed by Itms, in combination with 09e775446e fixes #4239.

This was SVN commit r18804.
2016-10-06 14:11:56 +00:00
elexis 46bfa4dbe3 Fix a warning when pressing the delete hotkey when nothing is selected introduced by a754b1bad4, refs #3823.
This was SVN commit r18803.
2016-10-05 21:34:22 +00:00
elexis c99281be39 Nerf iberian tower by reducing garrison limit from 10 to 8. Reviewed by fatherbushido.
This was SVN commit r18802.
2016-10-05 17:15:58 +00:00
FeXoR c139b24a6b Fixes the peak and final map control to be swapped that where added in 4e4f0dbbd8. Patch by pilino1234 - added to the credits. Reviewed by Imarok. Fixes #4262
This was SVN commit r18798.
2016-10-01 16:16:18 +00:00
Itms 636da605bb Following e757fb84d5: also regenerate the JS values for AI maps upon deserialization.
Fixes #4247, refs #4191

This was SVN commit r18797.
2016-10-01 12:29:44 +00:00
fatherbushido b74b807444 Fixes a counter mistake when an upgrade is complete. Reviewed by elexis. Refs #4255, #2706.
This was SVN commit r18796.
2016-10-01 11:27:08 +00:00
niektb 902a0f5914 New icon for the Persian Hall made by Lion.Kanzen
This was SVN commit r18795.
2016-09-30 19:53:56 +00:00
Itms c1b28ba1e0 Fix some strings reported by translators.
This was SVN commit r18793.
2016-09-29 20:54:13 +00:00
Itms fd8d918764 Reveal the name of the new Alpha.
This was SVN commit r18792.
2016-09-29 19:54:51 +00:00
elexis e81b557d9b Don't refund the upgrade costs when the upgrade completes. Patch by fatherbushido, fixes #4255, refs #2706.
This was SVN commit r18791.
2016-09-29 12:01:34 +00:00
elexis 9cea2bb8fe Fix paired techs following a754b1bad4. Patch by Imarok, fixes #4251, refs #3823.
This was SVN commit r18790.
2016-09-29 10:25:48 +00:00
fatherbushido 5bbed34aaf Disable upgrade for the gaia palisades rock fort template. The bugs was noticed by elexis in gauls sandbox map. Refs #4125, 5d4604e767.
This was SVN commit r18789.
2016-09-28 15:38:05 +00:00
elexis a29407bb89 Don't overwrite cached template data by by cloning the referenced object, thus fix a GUI bug revealed by refs #3823. Patch by Imarok, refs #4251.
This was SVN commit r18788.
2016-09-28 11:52:25 +00:00
elexis 46ece38e29 Display the correct cost when selecting multiple entities that can perform the same upgrade. Patch by Imarok, refs #2706, #3823.
This was SVN commit r18787.
2016-09-28 11:34:05 +00:00
elexis 7c3c5f6173 Fix some string issues reported on transifex.
This was SVN commit r18786.
2016-09-27 18:29:32 +00:00
elexis e4ceff3e54 Add 2px of black border to the patrol icon. Icon by Stan, refs #1720.
This was SVN commit r18785.
2016-09-26 14:57:50 +00:00
elexis a29f18968a Fix broken string as noticed by fatherbushido, refs #1720.
This was SVN commit r18784.
2016-09-26 12:13:08 +00:00
elexis 2e488571de Fix some whitespace and remove unneeded parenthesis and brackets in the RallyPointCommands simulation helper.
This was SVN commit r18783.
2016-09-26 10:25:47 +00:00
FeXoR 8d4af29faf Adding random map Caledonian Meadows. Fixes #4245
This was SVN commit r18781.
2016-09-25 21:53:39 +00:00
elexis bd9240a3ef Siege statistics for the summary screen. Patch by Mate-86, fixes #4033.
This was SVN commit r18780.
2016-09-25 21:45:21 +00:00
elexis a85c6c6967 Patrol units. Patch by Imarok, based on patch by svott, reviewed by fatherbushido and bb.
This was SVN commit r18779.
2016-09-25 21:33:05 +00:00
fatherbushido 51b7b80de2 Removes old depreciated technologies from production queue of atlas only (or skirmish map) structures. Refs #4170.
This was SVN commit r18778.
2016-09-25 21:27:08 +00:00
fatherbushido 4ea54e10e7 Slightly increases armour of mauryans macemen champions wich had been signifantly nerfed in previous alphas. Agreed by scythetwirler.
This was SVN commit r18777.
2016-09-25 21:12:16 +00:00
elexis 24f149237f Show bartered resources to observers, fixes #3839.
This was SVN commit r18776.
2016-09-25 20:26:25 +00:00
elexis 92a1ba9426 Filterable ingame chat history. Based on patch by Imarok, reviewed by bb, fixes #4069.
Rename session chatPanel style to chatPanelOverlay and merge other
chatPanel styles in common/.
Fix a singleplayer bug where messages send by the player wouldn't be
shown in the chat overlay due to a missing guid != "local" check.
Save the user preference whether to show the history to the user config
file.
Remove /enemy /ally and /observer aliases for simplicity.

This was SVN commit r18775.
2016-09-25 20:10:38 +00:00
elexis 6e3cdb2f5d Use a custom style for the text in the Diplomacy manager instead of abusing the ChatPanel style, refs #4069.
This was SVN commit r18774.
2016-09-25 19:56:35 +00:00
elexis a754b1bad4 Correctly handle commands and production for multiple units and mixed selections. Patch by Imarok, reviewed by Itms, fixes #3823. Fixes #3492, #3288, #3668.
This was SVN commit r18773.
2016-09-25 19:38:10 +00:00
elexis a867fca514 Petra AI: Use ally instead of team chat, since it should eventually be able to use diplomacy. Based on patch by bb, refs #4143, #3102, #4069.
This was SVN commit r18772.
2016-09-25 14:00:26 +00:00
elexis 905dffe89c Show an icon with tooltip in the summary screen indicating which player was defeated, has won or is still playing. Patch by javiergodas, reviewed by niektb, fixes #4187.
This was SVN commit r18771.
2016-09-25 13:48:59 +00:00
fatherbushido 83ac228a9c Reduces attack of garrisoned arrows in buildings by 20%, since champions were nerfed in b5bf0c7e86 and while buildings became much harder to capture in 27c46a0a68 and 8b14bfe78b. Removes a duplicate entry. Reviewed by elexis and FeXoR.
This was SVN commit r18770.
2016-09-25 13:47:50 +00:00
elexis 58f7e9d5fb Patrol icon by Stan, refs #1720.
This was SVN commit r18769.
2016-09-25 13:33:47 +00:00
elexis 19de6a4204 Add minimum distance to outposts since players made walls of them and since they shoot an arrow each when garrisoned.
Since vision range is 80m (120m upgraded), a minimum distance of 50m
should be more than fine enough for the intended purpose.

This was SVN commit r18768.
2016-09-25 11:20:26 +00:00
fatherbushido 4f50f9251f Reverts 591771a0be as capture doesn't work for units with BuildingAI. Refs #3356, #4189, #4000.
This was SVN commit r18766.
2016-09-25 10:07:12 +00:00
fatherbushido 903460994d Adds missing preferred classes in some templates. Fixes #4194.
This was SVN commit r18765.
2016-09-25 06:54:56 +00:00
elexis af40d51068 Add gamesetup filter for new maps, fixes #4246.
Don't complain if there are no maps of the selected maptype for the
current mapfilter.

This was SVN commit r18764.
2016-09-24 21:30:20 +00:00
elexis 9bce5324b1 Order the carried resources as usual. Patch by Imarok, refs #3113.
This was SVN commit r18763.
2016-09-24 21:12:47 +00:00
Itms 58704fa140 Remove a function relying on systems that are not optimized at all. This function is not actually used by Petra.
If it is needed at some point, this map should be handled and updated
the same way as the passability map and territory map are.

Refs #4191

This was SVN commit r18760.
2016-09-24 15:21:20 +00:00
Itms e757fb84d5 More clever map updates for the AI.
This patch fixes frequent memory issues by removing several dummy
allocations and a lot of memory footwork.

Fixes #4191

This was SVN commit r18759.
2016-09-24 15:16:55 +00:00
LordGood edc1b2c066 its a biggie, finishing up the seleucids, new wood towers and some gaul roof and fortress stuff. I dont care much for mass late uploads like this, everything works on my end
This was SVN commit r18758.
2016-09-24 14:52:55 +00:00
Itms 172c222e9b Fix a possible source of segmentation fault in our custom version of ObjectIdCache.
Patch by echotangoecho, refs #4053

This was SVN commit r18757.
2016-09-24 13:48:11 +00:00
Itms fd8f689f35 Whitespace and indentation fix for readme.txt
This was SVN commit r18756.
2016-09-24 10:37:21 +00:00
elexis b8f1ad155b Delete two orphaned templates.
This was SVN commit r18755.
2016-09-24 00:47:25 +00:00
elexis 5d4604e767 Make wooden tower upgradable to the defense tower. Reviewed by fatherbushido, siole and Hannibal Barca, fixes #4125.
Let towers cost 50 wood and reduce the stone cost by 50.
The upgrade costs so much that it's cheaper to build a stone tower than
building and upgrading a wooden tower, but still cheaper than building a
wooden and stone tower.
Increase the minimum distance between wooden tower to 60, so that the
upgrade won't circumstance the minDistance of the stone tower.
Add missing newline to the entity limit tooltip of the upgrade component
(refs #2706) that was never visible before.

This was SVN commit r18754.
2016-09-24 00:16:59 +00:00
elexis 06bf79b7e8 Offer the same techs and production queue at the Temple of Vesta as are available to the general roman temple (in particular Sibylline Books tech).
Reviewed by fatherbushido, fixes #4232.

This was SVN commit r18753.
2016-09-23 22:36:45 +00:00
Itms 09e775446e Fix a frequent rejoining OOS. We actually need to serialize the data loaded from the disk, because JS objects in the memory or newly loaded from the disk will not behave the same way.
Fixes #4239, refs #3834.

This was SVN commit r18752.
2016-09-23 21:24:14 +00:00
elexis ad1a4d6121 Autocomplete hotkey tooltips for the gamesetup-, session- and lobby chat and replay playerlist filter.
Delete hotkey tooltips for replay menu and save and load dialogs.
Reviewed by bb, fixes #4145.

This was SVN commit r18751.
2016-09-23 21:16:12 +00:00
elexis 22efe2fa8a Add missing new file in ca90df29c0 as reported by bb, refs #4222.
This was SVN commit r18750.
2016-09-23 20:36:29 +00:00
elexis 43ecbbc09e Fix a trade cart UnitAI error occuring rarely on defeat, by clearing the traderoute if the trader changed ownership. Patch by mimo, fixes #4131.
Also simplify MoveToMarket.

This was SVN commit r18749.
2016-09-23 16:11:26 +00:00
elexis 127ca4e177 More immersive descriptions for _kalis new maps. Patch by Hannibal Barca, reviewed by Itms, fixes #4226.
This was SVN commit r18748.
2016-09-23 15:44:14 +00:00
elexis 19002a1396 Back to work hotkey. Patch by Imarok, refs #4008.
This was SVN commit r18747.
2016-09-23 15:16:33 +00:00
elexis 6f1e46a641 Resize the gray phase bar background in the structure tree to end after the last template of that phase. Patch by usey11, fixes #3939.
This was SVN commit r18746.
2016-09-23 09:38:45 +00:00
elexis ca90df29c0 Add click button sound to the gamesetup icon buttons and credits page. Patch by Vladislav, fixes #4222, refs #3805, #3744.
This was SVN commit r18745.
2016-09-23 09:07:38 +00:00
elexis 8ce1929966 Sort the country dropdown choices alphabetically in the localization settings. Patch by Vladislav, fixes #4221.
This was SVN commit r18744.
2016-09-23 08:58:08 +00:00
fatherbushido 8f82a97c23 Adds the missing hero garrison aura to Chanakya hero. It was missing as the template doesn't inherit of an hero template. Adds back entries of this template mistakenly removed in 94791c53c6. Noticed by elexis. Fixes #4233.
This was SVN commit r18742.
2016-09-21 14:32:54 +00:00
fatherbushido e894c78fd3 Uses MatchesClassList for restricted classes tests in order to allow more flexibility as whitelisting. Uses it for fishing boat template and fixes a cursor inconsistency. Patch by erraunt and elexis. Fixes #4092
This was SVN commit r18741.
2016-09-21 12:51:14 +00:00
elexis 65752e7b29 Revert the usage of the "disable" tag in the Loot component, since these should become mandatory instead of optional.
Fix a typo "disabled".

This was SVN commit r18740.
2016-09-21 11:00:01 +00:00
elexis 49127cf68a Gamesetup player assignment column header position adjustment for the smallest supported resolution 1024x768.
Increase the size of the color label by stealing some space from
neighboring fields,
so it works for all translations with the minimum resolution, fixes
#3761, refs #1580.

Right-align civ-info and reset buttons with the dropdowns for consistent
appearance, refs #3805.
Ensure column headers/buttons can't overlap by giving neighboring fields
identical left/right values.

This was SVN commit r18739.
2016-09-20 11:22:15 +00:00
elexis 94791c53c6 Loot balancing overhaul and cleanup. Based on patch by fatherbushido, refs #4193.
Add missing loot entry to many new buildings that were added after
d7b31da2dc and ships.
Give civic centers and wonders a significant amount.
Food related structures contain some food.
Temples somehow yielded 500 metal loot previously.
Remove experience point loot from non-defensive buildings.
Merge loot for cavalry and hero templates.
Swordsmen and sword cavalry loot 5 metal, slingers 5 stone, other units
5 wood.
Remove some duplicate Looter, MiniMap, Selectable and
TrainingRestriction entries.
Remove pointless sentence "Special Building." from persian hall tooltip.

This was SVN commit r18738.
2016-09-20 01:58:44 +00:00
elexis b5340a19ad Remove two unneeded newlines in the needed resources tooltip.
Don't display the projectile tooltip in the construction panel, since
that also doesn't show the attack tooltip.

(Since there is not much choice between attacking structures, the attack
information doesn't help deciding which
structure to build. Displaying the tooltips would require 3 lines.)

This was SVN commit r18737.
2016-09-20 00:38:36 +00:00
elexis 4391498cf4 Reduce the waterheight from the default 19.9 to 18 after the heightmap interpolation in refs #4174 made water visible in wrong locations. Fixes #4231.
This was SVN commit r18736.
2016-09-19 22:00:03 +00:00
elexis 0c6cc228c0 Unify siege armor. Buff bolt shooters and siege towers slightly. Reviewed by fatherbushido.
Increase crush armor of most siege from 1 to 5,
decrease crush armor of rams from 10 to 5.

Bolt shooters were not affected by d38adc7cd0, but nerfed too much in
8a2638a8f5.
Thus make them stronger as in that commit, but weaker than before it by
increasing their repeat rate by 25%.

Remove minimum attack distance of the macedonian siege tower and
shoot one arrow per unit garrisoned but at most 10 arrows,
rather than shooting only one arrow for 2 units garrisoned.

This was SVN commit r18735.
2016-09-19 14:08:48 +00:00
elexis 3b816e82ab Loot tooltips. Patch by Mate-86, fixes #4193.
This was SVN commit r18733.
2016-09-19 01:21:09 +00:00
elexis 85efeaac5a Crannog icon by LionKanzen, refs #3959.
This was SVN commit r18732.
2016-09-19 01:13:01 +00:00
elexis 02848dcd17 Simple petra AI regicide support. Patch by Sandarac, refs #4142.
The AI will retreat the hero in regicide games once it reaches less than
70% health.
It will garrison it in healing structures. Elephant heroes will retreat
to the home base.
Once the hero has healed, it will be used for attacks again.

This was SVN commit r18731.
2016-09-18 14:27:03 +00:00
Itms caef42084d Add missing JSAutoRequest calls. (hopefully all of them have been spotted now)
Patch by echotangoecho, refs #4053

This was SVN commit r18730.
2016-09-18 09:34:45 +00:00
Itms 184d64cdc8 Fix building on Fedora, by adding the Position Independant Code flag when building with gcc. This flag is not supposed to break anything and did not cause troubles when testing it on some other platforms than Fedora.
Based on patch by bb, fixes #3869

This was SVN commit r18729.
2016-09-18 08:54:27 +00:00
elexis eb09c2a8c5 Show the portrait of the most common (or most costly) unit type in the selection group buttons on the left hand side. Patch by Imarok, fixes #2163.
This was SVN commit r18728.
2016-09-16 10:47:00 +00:00
Itms 72a26857e9 Use the current OS X version instead of a hardcoded value in the path to the OSX development tools, when building the OSX bundle.
Patch by jurgemaister, plus some little fixes, fixes #3884.
Tested on OSX 10.11.

This was SVN commit r18726.
2016-09-15 13:41:16 +00:00
elexis c92e74138a Use the local timezone when localizing UTC timestamps. Patch by Imarok, fixes #3350, refs #2938.
Thus show the correct time in the lobby, savegame and replay menu.

This was SVN commit r18725.
2016-09-15 13:16:48 +00:00
elexis 5d3f1ce348 Extend the shared ally vision tech tooltip to mention the allied summary screen entries and the resource / population tooltips. Patch by Imarok, reviewed by fatherbushido.
This was SVN commit r18724.
2016-09-13 16:54:39 +00:00
elexis 1ca4c7c988 List Bahrain as a naval map, since ships are required to cross the persian gulf to Bahrain and Qatar.
This was SVN commit r18723.
2016-09-12 22:15:07 +00:00
fatherbushido 85a187b89f Tweaks hp modification of the phase city tech to keep the current balance as tech modifications calculations changed in 9368ffe345.
This was SVN commit r18722.
2016-09-12 15:38:13 +00:00
elexis c43654c120 Display the number of clients too when typing the /list chat command.
This was SVN commit r18720.
2016-09-12 02:23:19 +00:00
elexis 24a488bacc Increase the maximum observer limit to 32 for the upcoming release, refs #4210.
This was SVN commit r18719.
2016-09-11 22:46:00 +00:00
Itms 5f67763e97 Remove or fix some broken art files. Bring wrld_med_plant.png back from the dead.
Based on patch by stanislas69, refs #2524
Fixes #3796

This was SVN commit r18718.
2016-09-11 16:28:45 +00:00
elexis ca51672225 Fix typo in a68881dd0f.
This was SVN commit r18717.
2016-09-11 15:30:06 +00:00
fatherbushido fb9da87264 Restores armour entry in economic structure template wich was mistakenly removed in 27c46a0a68. Slighty reduces stats compares to a20. Fixes #4195. Reported by Warbeast. Agreed by scythetwirler. Reviewed by elexis.
This was SVN commit r18716.
2016-09-10 11:24:22 +00:00
elexis a68881dd0f Five new random map scripts by _kali: Bahrain, Harbor, Howe Sound, Ngorongo and Rouen.
Besides harbor, they are portraying actual geographic regions.
Some environmental improvements by niektb.

This was SVN commit r18714.
2016-09-07 20:06:01 +00:00
elexis f63cef5ad0 Fix few typos in comments.
This was SVN commit r18713.
2016-09-07 17:02:25 +00:00
Itms a8403bd7e5 Add a linker flag on Windows allowing the game to be large address aware. This allows the game to use more than 2GB of RAM. https://msdn.microsoft.com/en-us/library/wz223b1z.aspx
However, this can mask memory issues, so this flag will not be enabled
by default. The autobuilder will use it, so SVN playtesters and release
users can benefit from it. Windows users compiling the game themselves
will have the 2GB limitation.

Fixes #4190, refs #1619, #4191
Flag tested by Stan

This was SVN commit r18711.
2016-09-07 09:03:47 +00:00
FeXoR 64b1da0ddf Adds globalscripts/BicubicInterpolation.js, the corresponding license_mit.txt and points to it for other files with the same license in LICENSE.txt - reviewed by Philip and Itms. Uses that to fix an interpolation issue in gaia.js and also fixes a "fail by one" there - reviewed by elexis. Fixes #4174
This was SVN commit r18710.
2016-09-06 21:49:57 +00:00
fatherbushido a673a330a5 Fixes a typo in 8c6944f58f.
This was SVN commit r18709.
2016-09-06 13:14:51 +00:00
fatherbushido baed376b06 Removes Town class from wallset template. It was misleading because palisades and walls are not Town structure and they didn't even count as such buildings because the built walls don't inherit class from wallset.
This was SVN commit r18708.
2016-09-06 12:47:09 +00:00
fatherbushido 8c6944f58f Adds Capturable component tests. Fixes a message. Thanks elexis and sanderd17 for the remarks. Fixes #4149.
This was SVN commit r18707.
2016-09-05 20:02:33 +00:00
fatherbushido 58c8812cc7 Removes duplicated entries in crannog template. Noticed by Imarok.
This was SVN commit r18706.
2016-09-05 14:08:55 +00:00
fatherbushido 417aec9495 Fixes village, town, city classes inconsistencies in templates. Reported by WarBeast. Refs #4147.
This was SVN commit r18705.
2016-09-05 12:45:07 +00:00
Itms b60cf4663d Whitespace fixes, patch by echotangoecho, refs #1619
This was SVN commit r18704.
2016-09-05 08:34:19 +00:00
elexis c056b9bfb9 Fix critical gamesetup bug again where the game can't be started after a previously assigned disconnected client rejoins a full game. Same as #3602, reintroduced by b642f0d876, refs #3120. Fixes #4120.
This was SVN commit r18702.
2016-09-05 02:15:04 +00:00
elexis 565709701e Hide the "I'm ready" button to observers. Patch by echotangoecho, fixes #4112.
Right-align the affected buttons and neighboring GUI objects.

This was SVN commit r18701.
2016-09-05 01:53:08 +00:00
elexis f61f051d74 New random map script Marmara by _kali, reviewed by niektb.
This was SVN commit r18700.
2016-09-04 22:30:03 +00:00
elexis c118467c33 Fix broken transparency of the mediterranean mappreview image.
This was SVN commit r18699.
2016-09-04 22:25:57 +00:00
fatherbushido ff2fe5d04a Fixes immortals technology as it affected also the persian mercenary champion spearman. Reported by WarBeast.
This was SVN commit r18698.
2016-09-04 21:36:45 +00:00
elexis 488b4482d9 Skirmish map Two Seas overhaul by Stan, refs #2881.
Adds starting resources and units, forests, mines, animals, treasures
and some decoratives.

This was SVN commit r18697.
2016-09-04 21:19:14 +00:00
elexis e0c30745f9 Template manager cleanup. Patch by leper, refs #2951.
Move an early return to the top of the function.
Add an early return in case an error was determined.
Remove unneeded variables ok and templatePath.
Replace includeSubdirectories boolean with a flags int to merge
duplicate vfs::ForEachFile calls.

This was SVN commit r18696.
2016-09-04 15:28:36 +00:00
fatherbushido 2e1441d2ba Fixes a copy paste error introduced in 46ead523b8 for a roman hero aura, noticed by WarBeast. Reviewed by elexis.
This was SVN commit r18695.
2016-09-04 10:34:57 +00:00
elexis c2078bd0c6 Supress an error warning that isn't valid for unsortable ordered lists and hide sorting sprites if sorting is disabled. Based on patch by Imarok, refs #3905.
This was SVN commit r18694.
2016-09-03 22:22:11 +00:00
fatherbushido 53d5f9f573 Adds melee cavalry to garrison arrow classes for some buildings and ships that can garrison cavalry. Previously all ranged units and all infantry were allowed wich was misleading. Discussed with Yves and reviewed by elexis.
This was SVN commit r18693.
2016-09-03 13:09:08 +00:00
elexis 317502d915 Objectives dialog. Icon by Lionkanzen. Reviewed by bb, fixes #3263 #4141.
Explain the new victory conditions and last man standing option in the
gamesetup.
Add an ingame dialog showing these explanations and all other chosen
gamesetup options,
so that players don't have to recall them and late observers don't have
to ask.

This was SVN commit r18692.
2016-09-03 09:11:02 +00:00
elexis 9b52dfb554 Allow queuing orders if an action is preselected. Patch by Imarok, refs #1720.
This was SVN commit r18691.
2016-09-03 07:42:08 +00:00
Itms 8284cc4302 SpiderMonkey 38 upgrade: 35/35
Some comments for the next SpiderMonkey upgrade. That's all folks, fixes
#3708

This was SVN commit r18689.
2016-09-02 16:55:13 +00:00
Itms 2a33c4476f SpiderMonkey 38 upgrade: 34/35
Use the C++ API for Maps. Patch by leper.
Addresses https://bugzilla.mozilla.org/show_bug.cgi?id=1121332

This was SVN commit r18688.
2016-09-02 16:54:00 +00:00
Itms 0cc23c1964 SpiderMonkey 38 upgrade: 33/35
Remove a workaround. Note that this removal is incomplete. Based on
patch by leper.

This was SVN commit r18687.
2016-09-02 16:53:22 +00:00
Itms 9b794593db SpiderMonkey 38 upgrade: 32/35
JS_GetStringCharsAndLength was removed, use
JS_Get{Latin1,TwoByte}StringCharsAndLength instead.

Actually handle strings in both the Latin1 and TwoByte cases since we
need to.
This saves some space when serializing and also when running as they are
stored that way in the vm.
Also handle the error case.

Patch by leper.
For more information:
https://blog.mozilla.org/javascript/2014/07/21/slimmer-and-faster-javascript-strings-in-firefox/
Addresses https://bugzilla.mozilla.org/show_bug.cgi?id=1037869

This was SVN commit r18686.
2016-09-02 16:51:09 +00:00
Itms 72ec5d9767 SpiderMonkey 38 upgrade: 31/35
Remove workaround for crash when using multiple ctxts per runtime, this
was fixed upstream. Patch by leper.
Addresses https://bugzilla.mozilla.org/show_bug.cgi?id=890243 and
https://bugzilla.mozilla.org/show_bug.cgi?id=905926

This was SVN commit r18685.
2016-09-02 16:50:07 +00:00
Itms f06eb5536b SpiderMonkey 38 upgrade: 30/35
Upstream added a compartment option to preserve JIT code during
non-shrinking GCs, so use it. Patch by leper.
Addresses https://bugzilla.mozilla.org/show_bug.cgi?id=1068697

This was SVN commit r18684.
2016-09-02 16:48:41 +00:00
Itms 27c434e2bd SpiderMonkey 38 upgrade: 29/35
We now have better error messages, so fix the tests to account for that.
Patch by leper.

This was SVN commit r18683.
2016-09-02 16:47:33 +00:00
Itms fe52bf0457 SpiderMonkey 38 upgrade: 28/35
The GC API changed to have explicit start and step methods, and the
start/shrink cases now take the gc kind as a parameter. Patch by leper.
Addresses https://bugzilla.mozilla.org/show_bug.cgi?id=1099152

This was SVN commit r18682.
2016-09-02 16:46:39 +00:00
Itms 80c8c2c3d6 SpiderMonkey 38 upgrade: 27/35
JS_NewRuntime had the useHelperThreads param removed and a
maxNurseryBytes param added. Patch by leper.
Addresses https://bugzilla.mozilla.org/show_bug.cgi?id=941805 and
https://bugzilla.mozilla.org/show_bug.cgi?id=1034621

This was SVN commit r18681.
2016-09-02 16:45:45 +00:00
Itms 58cace1156 SpiderMonkey 38 upgrade: 26/35
JS_Define{,UC}Property{,ById} has the attrs parameter moved in front of
the getter and setter params. Patch by leper.
Addresses https://bugzilla.mozilla.org/show_bug.cgi?id=959787
https://bugzilla.mozilla.org/show_bug.cgi?id=1088002 and
https://bugzilla.mozilla.org/show_bug.cgi?id=1211607

This was SVN commit r18680.
2016-09-02 16:44:33 +00:00
Itms 99534a15f1 SpiderMonkey 38 upgrade: 25/35
Remove the proto parameter from JS_DefineObject. Patch by leper.
Addresses https://bugzilla.mozilla.org/show_bug.cgi?id=1127494

This was SVN commit r18679.
2016-09-02 16:41:36 +00:00
Itms ffd4207c30 SpiderMonkey 38 upgrade: 24/35
Work around upstream API breakage by moving from a define to a const
member and not using the namespace explicitly.

This is caused by https://bugzilla.mozilla.org/show_bug.cgi?id=896116
and this patch by leper was submitted at
https://bugzilla.mozilla.org/show_bug.cgi?id=1236373

This was SVN commit r18678.
2016-09-02 16:40:01 +00:00
Itms ef6d1c77c8 SpiderMonkey 38 upgrade: 23/35
JS_GetArrayBufferData now takes an AutoCheckCannotGC parameter. Patch by
leper.
Addresses https://bugzilla.mozilla.org/show_bug.cgi?id=1061288

This was SVN commit r18677.
2016-09-02 16:38:31 +00:00
Itms c396155ad8 SpiderMonkey 38 upgrade: 22/35
Parallel compilation was renamed to Offthread compilation. Patch by
leper.
Addresses https://bugzilla.mozilla.org/show_bug.cgi?id=1020364

This was SVN commit r18676.
2016-09-02 16:37:35 +00:00
Itms 2db0fb27ae SpiderMonkey 38 upgrade: 21/35
The naming conventions for typed array types changed. Patch by leper.
Addresses https://bugzilla.mozilla.org/show_bug.cgi?id=1021790

This was SVN commit r18675.
2016-09-02 16:36:40 +00:00
Itms f77441fb10 SpiderMonkey 38 upgrade: 20/35
Some options have been moved from ctxt to runtime. Patch by leper.

This was SVN commit r18674.
2016-09-02 16:35:58 +00:00
Itms 8f7ba9acf8 SpiderMonkey 38 upgrade: 18/35
JS_SetErrorReporter now takes a JSRuntime instead of a JSContext. Patch
by leper.
Addresses https://bugzilla.mozilla.org/show_bug.cgi?id=981198

This was SVN commit r18673.
2016-09-02 16:35:03 +00:00
Itms 2aa75a05d4 SpiderMonkey 38 upgrade: 18/35
Renamed JS_Compile{,UC}Function to JS::CompileFunction. Patch by leper.
Addresses https://bugzilla.mozilla.org/show_bug.cgi?id=1089026

This was SVN commit r18672.
2016-09-02 16:34:02 +00:00
Itms 8747b1c098 SpiderMonkey 38 upgrade: 17/35
JS_GetUint*Array now takes an AutoCheckCannotGC parameter. Based on
patch by leper.
Addresses https://bugzilla.mozilla.org/show_bug.cgi?id=1061288

This was SVN commit r18671.
2016-09-02 16:33:10 +00:00
Itms c06eda0209 SpiderMonkey 38 upgrade: 16/35
JS_GetTypeName was removed from the API, but we asked upstream to add it
back (https://bugzilla.mozilla.org/show_bug.cgi?id=1037718).

This was SVN commit r18670.
2016-09-02 16:32:26 +00:00
Itms ef764d5d64 SpiderMonkey 38 upgrade: 15/35
Temporary workaround dropping of parent parameter from JS_NewObject* by
switching to JS_NewObjectWithGivenProto.

We should just drop support for serializing the parent since upstream is
dropping the parent parameter from all those functions.

Patch by leper.
Addresses https://bugzilla.mozilla.org/show_bug.cgi?id=1136906 and
https://bugzilla.mozilla.org/show_bug.cgi?id=1136345

This was SVN commit r18669.
2016-09-02 16:30:35 +00:00
Itms c3710c9632 SpiderMonkey 38 upgrade: 14/35
JS_NewObject has no parent or proto arg anymore, use
JS_NewObjectWithGivenProto instead. Patch by leper.
Addresses https://bugzilla.mozilla.org/show_bug.cgi?id=1136906
https://bugzilla.mozilla.org/show_bug.cgi?id=1127443 and
https://bugzilla.mozilla.org/show_bug.cgi?id=1136345

This was SVN commit r18668.
2016-09-02 16:29:21 +00:00
Itms 8d15411abf SpiderMonkey 38 upgrade: 13/35
Update JS_NewObject to JS_NewPlainObject, with new parameters. Patch by
leper.
Addresses https://bugzilla.mozilla.org/show_bug.cgi?id=1136906 and
https://bugzilla.mozilla.org/show_bug.cgi?id=1125356

This was SVN commit r18667.
2016-09-02 16:28:17 +00:00
Itms c99ae7ca1c SpiderMonkey 38 upgrade: 12/35
Major update to the JSClass stubs. Based on patch by leper.
https://bugzilla.mozilla.org/show_bug.cgi?id=1103152

This was SVN commit r18666.
2016-09-02 16:26:54 +00:00
Itms b01300c222 SpiderMonkey 38 upgrade: 11/35
Renamed JS_CallHeapFooTracer to JS_CallFooTracer. Patch by leper.
Addresses https://bugzilla.mozilla.org/show_bug.cgi?id=1052388

This was SVN commit r18665.
2016-09-02 16:25:42 +00:00
Itms 761abd587e SpiderMonkey 38 upgrade: 10/35
Use operator= instead of .set(). Patch by leper.
Addresses https://bugzilla.mozilla.org/show_bug.cgi?id=1128110

This was SVN commit r18664.
2016-09-02 16:24:46 +00:00
Itms c7c3ef9f92 SpiderMonkey 38 upgrade: 09/35
Use .toFoo() instead of JSVAL_TO_FOO. Patch by leper.
Addresses https://bugzilla.mozilla.org/show_bug.cgi?id=952650

This was SVN commit r18663.
2016-09-02 16:23:44 +00:00
Itms 1223efcef8 SpiderMonkey 38 upgrade: 08/35
Update ObjectToIDMap to the ESR38 version and use the unbarriered
tracers. Patch by leper.
Addresses https://bugzilla.mozilla.org/show_bug.cgi?id=1052388

This was SVN commit r18662.
2016-09-02 16:22:42 +00:00
Itms 548601b2d8 SpiderMonkey 38 upgrade: 07/35
Use operator[] instead of handleAt. Patch by leper.
Addresses https://bugzilla.mozilla.org/show_bug.cgi?id=972385

This was SVN commit r18661.
2016-09-02 16:21:03 +00:00
Itms 4b028508ae SpiderMonkey 38 upgrade: 06/35
Check for the new SpiderMonkey version.

This was SVN commit r18660.
2016-09-02 16:19:31 +00:00
Itms ca80797dcc SpiderMonkey 38 upgrade: 05/35
Update premake scripts.

This was SVN commit r18659.
2016-09-02 16:18:57 +00:00
Itms 7e6a960e83 SpiderMonkey 38 upgrade: 02/35
Update files for building SpiderMonkey.
Add a script for starting the tracelogger, as well as some instructions,
to be detailed in the wiki.

This was SVN commit r18656.
2016-09-02 16:14:11 +00:00
fatherbushido add6b0206c Adds a missing civ requirement for a pair technology.
This was SVN commit r18653.
2016-09-01 07:35:13 +00:00
elexis 8f1b37b216 Major ordered list GUI cleanup. Patch by Imarok, fixes #3905.
Remove m_SelectedDef, m_SelectedColumnOrder and m_HeadingHeight. Use
GetSetting and SetSetting instead. Thus
implement selecting a column / column order sprite from JS correctly.
Since the actual list sorting is done in JS, only the column header
sprites were inaccurate.

Remove "selected_def" since that is redundant with "selected_column".
Merge "selected_column" with "default_column" (and
"selected_column_order" with "default_column_order") since
all properties provided in XML pages are defaults and to remove the
copying on init.

Rename "def" to "column" and "ObjectDef" to "COListColumn".
Replace 30px header height hardcoded in the C++ with an option set by
the style.
Remove the unneeded requirement to specify a "list_name".
Thus rename "list_name" to "list_month" in the replay menu.
Remove unneeded "list_" prefix and substr(5) in column checks.
Use ranged loops.
Fix typo "Avalible".
Add an error message if the GUI style doesn't specify the selected
column order.

This was SVN commit r18652.
2016-08-31 19:29:48 +00:00
elexis a4a99bc129 Fix a lot of whitespace in gui/.
This was SVN commit r18650.
2016-08-27 15:33:22 +00:00
leper fe8d096364 Add GetPlayersByDiplomacy to cmpPlayer.
This is in turn used by GetEnemies and the new GetAllies and
GetMutualAllies.
Use these in a few places as those are common queries.

Fixes #4161.
Reviewed by: fatherbushido
This was SVN commit r18649.
2016-08-27 15:28:02 +00:00
leper 38c9d48708 Prevent leaking internal data in cmpPlayer.
Refs #4161.
Reviewed by: fatherbushido
This was SVN commit r18648.
2016-08-27 15:27:44 +00:00
leper 2366d36f54 Remove unneeded includes.
Refs #4161.
Reviewed by: fatherbushido
This was SVN commit r18647.
2016-08-27 15:27:13 +00:00
leper 2c5cddd684 Move message registrations to the right file.
Refs #4161.
Reviewed by: fatherbushido
This was SVN commit r18646.
2016-08-27 15:26:54 +00:00
leper c4c315f6a0 Remove cmpPlayerManager.GetAllPlayerEntities() which leaked internal data.
And all uses thereof could easily be replaced.
This changes the data structure of cmpTrigger.conquestEntitiesByPlayer
to
not store the player entity at all, and since that is now gone replaces
the
object by the array that was its sole property.

Refs #4161.
Reviewed by: fatherbushido
This was SVN commit r18645.
2016-08-27 15:26:23 +00:00
fatherbushido 737ede0f89 Improves military-only-selection modifier, now filters fishing boat and merchant ship. Uses the same classes filter for find-idle-warrior. Reviewed by elexis. Fixes #4129.
This was SVN commit r18644.
2016-08-27 10:34:21 +00:00
leper 35f8061ef2 Remove Armour from fish templates. Fixes #4169.
Given that Armour needs Health disabling one but not the other is an
error.

This was SVN commit r18643.
2016-08-26 19:37:12 +00:00
elexis eb20661e34 Fix an oversight in 84bde41394, as reported by gameboy.
This was SVN commit r18642.
2016-08-26 14:19:01 +00:00
elexis dfea781d71 Session GUI cleanup.
Remove a wrong space in a tooltip if the delete hotkey isn't set.

This was SVN commit r18641.
2016-08-26 10:05:23 +00:00
elexis 859dffd949 Add disabled effect for Stone themed buttons and Modern themed checkboxes. Patch by Imarok, fixes #4165.
This was SVN commit r18639.
2016-08-25 22:35:01 +00:00
elexis b50ffac36b GUI sprite cleanup.
Move training panel portrait sprite from common/ to session/.

This was SVN commit r18638.
2016-08-25 22:14:56 +00:00
elexis 29c95f3a49 GUI sprite / style cleanup.
Merge common/styles.xml (which contains only the special default style)
with common/common_styles.xml.
Rename common/common_sprites.xml to common/sprites.xml.

This was SVN commit r18637.
2016-08-25 20:23:17 +00:00
elexis 84bde41394 GUI style / sprite cleanup.
Move remains of common/sprite1.xml to common/common_sprites.xml.

Remove duplicates bkFillBlack and bkTranslucent.
Rename bkWhiteBorderBlack to BackgroundWhiteBorderBlack.

Move BackgroundSessionTooltip and BackgroundInformationTooltip to
session/.
Remove unused BackgroundErrorTooltip.

This was SVN commit r18636.
2016-08-25 18:36:05 +00:00
elexis eab5436d55 Fix oversight in 42cef1d29f.
This was SVN commit r18635.
2016-08-25 18:12:24 +00:00
elexis 52504bbfa8 GUI style / sprite cleanup.
Move civ icon overlay entries from common/ to session/.
Move main menu entries from common/ to pregame/.
Remove unused pgButton.

This was SVN commit r18634.
2016-08-25 13:59:25 +00:00
elexis a8837fed41 Major GUI stlye and sprite cleanup.
Remove many unused and orphaned entries from common/,
including the entire Wheat theme from more than a decade ago and
most parts of the Stone theme.

Besides being unused, nearly all of the styles were ugly and don't fit
to the existing theme.
No entry should be reintroduced without being actually used somewhere
and if so, use a new subdirectory with the name of the theme.

This was SVN commit r18633.
2016-08-25 13:24:03 +00:00
fatherbushido f5eabf8ec8 Reverts e38665d7a6 (excepting the buildtime part of iberian and macedonian fortress templates) as #3818 must be fixed in a cleaner way. Fixes a typo. Refs #3818.
This was SVN commit r18632.
2016-08-25 10:44:19 +00:00
elexis 9fb4e9ef90 GUI style cleanup.
Remove commented out, unused scrollbars and a style.

This was SVN commit r18631.
2016-08-25 09:45:41 +00:00
elexis 4935c4384e GUI sprite cleanup.
Remove the commented out StonePanel theme which is superseded by thin
and large border variations.

This was SVN commit r18630.
2016-08-25 09:36:36 +00:00
elexis 6df480260e Main menu cleanup.
Remove code that was commented out.
Remove unneeded comments.
Use JSdoc comments.
Move globals to the top of the file.
Quotes for object keys.

This was SVN commit r18629.
2016-08-24 11:18:26 +00:00
elexis 42cef1d29f Hero / group icon color fade cleanup.
Move globals to the top of the file.
Proper case for globals.
Rename restartAble to restartable.
Use proper JSdoc comments.
Whitespace fixes.
Abbreviate with rgbToGuiColor.

This was SVN commit r18628.
2016-08-24 10:10:30 +00:00
elexis 11d10baf26 Delete old main menu background whose reference was removed in 6bcb3f5695 (2779512c6e). Delete commented out sprites.
This was SVN commit r18627.
2016-08-23 15:57:37 +00:00
leper 2f12bae102 Deal ranged damage even if the attacker dies. Patch by LeanderH. Fixes #3610.
Create a Damage system component from the Damage helper object and parts
of
the Attack component. This fixes the issue by making ranged damage
independent
of the attacking entity.

While there fix the issue of damaging all nearby entities in case the
actual
target was not hit, instead of only a single one.

This was SVN commit r18625.
2016-08-22 01:00:57 +00:00
leper 7947351a08 Add regression test for damage being dealt if the attacker dies. Based on patch by LeanderH. Refs #3610.
This was SVN commit r18624.
2016-08-22 01:00:30 +00:00
leper 014a6d621b Keep mounting the cache directory in tests. Fixes oversight in 493990f472.
This was SVN commit r18623.
2016-08-22 01:00:23 +00:00
leper e4c527d5c5 Fix indentation.
This was SVN commit r18622.
2016-08-21 20:35:13 +00:00
leper 4ed7d6c202 Fix compilation failure.
This was SVN commit r18621.
2016-08-21 20:35:10 +00:00
leper 9998592542 Remove unused variable.
This was SVN commit r18620.
2016-08-21 20:35:08 +00:00
leper e7df8edc7d Mark method const.
This was SVN commit r18619.
2016-08-21 20:35:06 +00:00
fatherbushido f79a9bd4c4 Removes 3 redundant numerical informations in tooltips. Reviewed by elexis.
This was SVN commit r18618.
2016-08-21 16:22:42 +00:00
fatherbushido ea48757635 Cleans simulation templates xml files: sorts components by alphabetical order, fixes identation and removes tabs. Reviewed by elexis. Fixes #4160.
This was SVN commit r18617.
2016-08-21 16:19:03 +00:00
fatherbushido 289916b4d2 Updates Identity classes and visible classes documentation. Cleans inconsistencies (identation, some classes were sometimes in Classes and other times in VisibleClasses, adds missing class for javelinist cavalry hero, removes Camel classes from traders and seleucid cavalry, removes unused and misleading Light, Medium, Heavy classes). Comments by Sanderd17, elexis and s0600204. Refs #4147
This was SVN commit r18616.
2016-08-21 09:03:00 +00:00
elexis 9846f374a0 Suppress a file not found error and show the placeholder image instead of plain magenta if the mappreview wasn't found.
This was SVN commit r18614.
2016-08-17 23:11:11 +00:00
elexis 7470e88624 Always save the replay metadata (summary screen info) when ending the application. Patch by Imarok, fixes #4020.
This was SVN commit r18613.
2016-08-17 15:17:43 +00:00
scythetwirler 3a2b418c0e Fixes off-by-one error.
This was SVN commit r18612.
2016-08-17 00:30:57 +00:00
elexis d789a09be5 Add missing component check to fix regicide on survival of the fittest. Patch by bb, refs #2160.
This was SVN commit r18611.
2016-08-16 10:51:54 +00:00
scythetwirler 27f2b2e04d Guess who hasn't used SVN in a while...actually svn add the new file.
This was SVN commit r18610.
2016-08-16 03:38:56 +00:00
scythetwirler 5e643ba6be Splits lobby bot into a ratings bot and a main bot. Fixes #3022.
This was SVN commit r18609.
2016-08-16 03:35:53 +00:00
Itms b9a6d2af16 Use the debugger output on Windows for invalid parameter tests (see bd9bc6db78).
This way, the test output is not polluted by the error messages when
running in debug mode.

This was SVN commit r18608.
2016-08-15 12:15:19 +00:00
fatherbushido 9a7dbc55ae Removes duplicated unused unit templates. Greek references by Itms. Reviewed by elexis.
This was SVN commit r18607.
2016-08-15 11:51:57 +00:00
elexis 6eaf76d653 Actually seed the random number generator used in the simulation. Reviewed by sanderd17, fixes #4127.
This was SVN commit r18604.
2016-08-14 16:28:54 +00:00
elexis 00a469be1b Show the last-man-standing option regardless of whether it is possible to set it. Reviewed by fatherbushido, refs #3970.
This was SVN commit r18603.
2016-08-14 15:35:58 +00:00
elexis 0c21c24754 Replay menu init performance improvement, reviewed by Imarok.
displayReplayList was called once per filter initialization i.e. 8 times
too often on init.
This can save multiple seconds when opening the menu.

This was SVN commit r18602.
2016-08-14 10:34:23 +00:00
elexis e4000d11cf Display the gamestart time in the lobby. Patch by Imarok, combined with d7d0a7f869 fixes #3476.
XPartaMupp patch reviewed by scythetwirler.

This was SVN commit r18601.
2016-08-14 09:03:30 +00:00
elexis 416049e4b4 Remove charge attack from the templates which isn't implemented nor designed yet. Patch by fatherbushido, fixes #4139.
Remove the unused "recharge" attack timer which was introduced in
b21e798243 but should have been removed with 4e5c5e2d8f.

This was SVN commit r18599.
2016-08-11 14:35:50 +00:00
elexis fb46ce578f Give the Carthaginian hero Maharbal a melee attack bonus instead of the not implemented charge bonus. Based on patch by fatherbushido, refs #4139.
This was SVN commit r18598.
2016-08-11 14:20:00 +00:00
elexis 7a0703872f Remove a wrong argument from e3b3261a62.
This was SVN commit r18597.
2016-08-11 13:20:31 +00:00
fatherbushido f941744c7b Removes a useless newline in training limit tooltip. Patch by elexis.
This was SVN commit r18596.
2016-08-11 12:34:11 +00:00
fatherbushido 66bd4e9da7 Deletes unused technology file forgotten in 94a240737c, removes 2 tooltips duplicated with aura tooltips. Reviewed by elexis.
This was SVN commit r18595.
2016-08-11 12:27:22 +00:00
fatherbushido 657070aea6 Moves misplaced desciptions from requirementsTooltips to tooltips in technology json files.
This was SVN commit r18594.
2016-08-11 08:49:53 +00:00
niektb 849b79fcec New icon for the Temple of Vesta by Stanislas69 with help from Lion.Kanzen en a little retouching from wowgetoffyourcellphone.
This was SVN commit r18593.
2016-08-10 17:50:41 +00:00
niektb 3102424439 Add Open animation to Ptolemian Gate. Made by Stanislas69.
Fix the Ptolemian Gate obstructions on the fly.

This was SVN commit r18592.
2016-08-08 18:32:28 +00:00
Itms bb1f86f515 Remove duplication of the Hexify function.
Remove the useless extern keyword from function declarations in
ps/Util.h.

Patch by echotangoecho, refs #4095

This was SVN commit r18591.
2016-08-08 12:50:39 +00:00
Itms e3cdb2253d Fix calls to CXeromyces::Terminate in the main loop to fix several possible memory leaks.
Make init/shutdown order consistent in some places.

This was SVN commit r18589.
2016-08-08 08:32:57 +00:00
Itms 162535c7b7 Tiny whitespace cleanup.
This was SVN commit r18587.
2016-08-07 17:44:27 +00:00
fatherbushido 04a81620f9 Update translation messages after the removal of the gate conversion tooltip in b2f4b0f494. Reviewed by elexis. Refs #2706.
This was SVN commit r18586.
2016-08-06 16:31:19 +00:00
Yves 9e4f0cc543 Properly shut down SpiderMonkey using JS_ShutDown.
This also adds some validation to ensure the correct order of JS_Init,
JS_NewRuntime, JS_DestroyRuntime and JS_ShutDown calls.

Refs #3708

This was SVN commit r18584.
2016-08-06 15:41:59 +00:00
elexis e3b3261a62 Attack component tests, reviewed by sanderd17.
This was SVN commit r18583.
2016-08-05 18:44:00 +00:00
fatherbushido 7ce9e7675f Adds and updates documentation in /components/interfaces/ files. Reviewed by elexis. Fixes #4128
This was SVN commit r18581.
2016-08-03 12:04:49 +00:00
Itms 4e87fef3da The old debug API has been removed in SpiderMonkey 38, so remove profiler1 script profiling.
Patch by leper, refs #3708

See also https://bugzilla.mozilla.org/show_bug.cgi?id=1069694

This was SVN commit r18580.
2016-08-02 16:58:30 +00:00
Itms 72ca6c5f80 Style cleanup by leper, preparing the SpiderMonkey update. Refs #3708
This was SVN commit r18579.
2016-08-02 16:12:11 +00:00
elexis f7ff71e8d5 Hotkeys to repair, ungarrison and focus on the rallypoint. Patch by Imarok, refs #4008.
This was SVN commit r18578.
2016-08-02 15:42:35 +00:00
Itms 493990f472 Fix engine tests when no mods are present, by making the pathfinder tests consistent with the rest of the tests.
This was SVN commit r18577.
2016-08-02 15:38:39 +00:00
fatherbushido 335b55d49b Add tests to AuraManager component. Fixes #4123
This was SVN commit r18576.
2016-08-02 12:19:40 +00:00
sanderd17 8af205fd71 Fix building of fields + update tests to make sure this doesn't happen again. Refs #4121
This was SVN commit r18575.
2016-08-02 11:54:18 +00:00
elexis 69b3c5871b Print warnings when no or the wrong list of mods is passed when starting non-visual replays. Patch by ArnH, fixes #2807.
This was SVN commit r18574.
2016-08-02 11:11:10 +00:00
elexis fba9346947 Fix regicide spawn point preference bug, refs #2160.
On maps with multiple buildings it didn't prioritize the civic center.
This part would require a findLastIndexOf array function to avoid the
loop.

This was SVN commit r18572.
2016-07-31 00:40:26 +00:00
elexis 105e1484fb The repair button is expected to work with construction sites.
This was SVN commit r18571.
2016-07-30 23:52:09 +00:00
elexis edd5d20733 Hide unassigned hotkeys. Patch by Imarok, refs #3051.
This was SVN commit r18570.
2016-07-30 16:30:07 +00:00
sanderd17 51eb4b255c Don't let the props inherit the 'idle' animation if the parent doesn't have the needed animation. Fixes #4071
This was SVN commit r18568.
2016-07-29 11:57:27 +00:00
sanderd17 09ab4fe9d3 Add tests to the Foundation component + fix some minor issues found by implementing the tests. Fixes #4121
This was SVN commit r18567.
2016-07-29 11:48:07 +00:00
sanderd17 ab2c73e93a Allow to set 'unused' as a hotkey to disable that action. Patch by Imarok. Fixes #3051
This was SVN commit r18565.
2016-07-27 12:29:31 +00:00
elexis c70975b116 Pompeii random map script by _kali.
This was SVN commit r18564.
2016-07-27 11:35:19 +00:00
fatherbushido 0fcc1fbce6 Fixes scenario map missing units introduced in previous commit, refs f3d35d8a8a.
This was SVN commit r18563.
2016-07-25 20:31:23 +00:00
fatherbushido f3d35d8a8a Prevents training of unexpected units in buildings introduced in 60a2af2988, lets mace trains 2 mercs in captured stoa or in their own stoa for scenario map, fixes #4011.
This was SVN commit r18562.
2016-07-25 18:54:28 +00:00
elexis 20b4e039be Fix fileendings of files with mixed fileendings in the public mod (except art, l10n) and in source/ (except for source/third_party/).
Thus fix lineendings in files that were missed in bcbf25bfbd, as
reported by Imarok.

(SVN throws an error when trying to set the native filending property on
a file with mixed fileendings. However when recursing it hides this
error).

This was SVN commit r18561.
2016-07-25 12:58:47 +00:00
elexis a0058c533b Don't throw errors and hide the summary screen button when encountering an empty replay metadata file.
That kind of file can be written in case the partition has no more space
left when ending the game.

This was SVN commit r18560.
2016-07-25 11:26:56 +00:00
elexis e262e021b0 Fix an off by one error. Reported by fatherbushido, refs #2160.
This was SVN commit r18559.
2016-07-25 11:20:34 +00:00
elexis bcbf25bfbd Fix line endings of all files in source/ except source/third_party/.
This was SVN commit r18558.
2016-07-25 09:07:45 +00:00
elexis ba25ffef74 rmlib2 simplifications.
This was SVN commit r18556.
2016-07-24 04:25:45 +00:00
elexis 8e1dcbe2fa Mediterranean tree balancing.
Increase minimum distance between forests so as to carve more space for
player buildings. Reported by sentado, based on patch by _kali.
Adapt metal and stone mine numbers to keep the same probability.

This was SVN commit r18555.
2016-07-24 04:24:44 +00:00
elexis c8d7992820 Mediterranean shoreline heightdata fix for easier dock placement (especially in caucasus). Reported by sentado, patch by _kali.
This was SVN commit r18554.
2016-07-24 04:19:56 +00:00
elexis e80f0f9930 Mediterranean bugfix for a rare case where birch trees were placed in north africa
(since the localbiome wasn't set for stronghold bases).
Remove non-existing roads which were not accessed before.

This was SVN commit r18553.
2016-07-24 04:18:10 +00:00
elexis a3da37ffd3 Gaia control improvements.
Don't throw errors when finishing a gaia foundation.
Allow cheats for gaia.

This was SVN commit r18552.
2016-07-24 02:19:34 +00:00
elexis c652e0942a Session cleanup.
Move some code from selectViewPlayer to updateTopPanel.
Inline variable civName.
Move one check out of an if-statement in selectViewPlayer.
Merge duplicate call Engine.GetGUIObjectByName("civIcon") for
consistency with other code.

This was SVN commit r18551.
2016-07-24 02:17:43 +00:00
elexis 64624d121c Tree balancing of the red sea map.
Sometimes players didn't have any wood close by while usually all
players have practically limitless wood around. Reported by sentado.
Thus enforce greater distance between big forests and add some tiny
forests in between them.
Keep a big distance between all forests as it is supposed to be a
desert.

This was SVN commit r18550.
2016-07-23 17:30:32 +00:00
LordGood 6543e78cce Seleucid dock
This was SVN commit r18549.
2016-07-23 10:15:46 +00:00
elexis eaf0f88420 Add missing vertical heightmap scaling to _kali's new random map scripts.
This was SVN commit r18548.
2016-07-22 18:26:53 +00:00
elexis 9da74739d4 Gah, refs fb8f360ef0.
This was SVN commit r18547.
2016-07-22 15:12:11 +00:00
elexis 9c4344a940 Acoustic notification when someone mentions the name of the player in the lobby or game chat. Patch and soundfile by andy5995.
This was SVN commit r18545.
2016-07-21 15:31:39 +00:00
elexis 8dddd369ef Basic regicide gamemode. Based on patch by Sandarac, refs #2160.
Spawn a random hero at gamestart and defeat the player if the hero dies.
Consider nomad maps where units spawn without buildings or start on a
ship.
Correct a comment for TriggerHelper.SpawnUnits.
Make shuffleArray available to GUI and simulation and use it to
randomize heroes.

This was SVN commit r18544.
2016-07-21 15:12:49 +00:00
elexis 34c26767ca Add reddish dust to red sea. Actor by Stan, reviewed by _kali.
This was SVN commit r18543.
2016-07-21 11:20:33 +00:00
elexis 41474760e2 Remove healers from the idle worker queue as that is typically used to get units back to work or delete the workers if they can't work anymore. Thanks sanderd17 for a quick opinion.
Idle healers still show up when pressing the idle worker selection lasso
filter hotkey (I by default).

This was SVN commit r18542.
2016-07-21 10:46:32 +00:00
mimo 26b29e1de7 fix fa7e0c10ba
This was SVN commit r18541.
2016-07-21 07:44:28 +00:00
elexis 8e98de87ec Reset Last Man Standing flag when enabling rated games, to avoid the warn, refs #3970.
This was SVN commit r18540.
2016-07-21 01:12:02 +00:00
elexis fb8f360ef0 Fix missing observermode for players who won (and that's why a ternary was used there before 9f796068f8).
Don't start the defeat music when clicking on resign and then restarting
it right on the next turn.

This was SVN commit r18539.
2016-07-21 01:06:35 +00:00
elexis c84d41dc41 Hide walk speed tooltip for unpacked siege engines.
This was SVN commit r18538.
2016-07-21 00:04:42 +00:00
elexis 1bb3438450 Add missing round to cf04bad4bc, refs #3841.
This was SVN commit r18537.
2016-07-20 23:55:25 +00:00
elexis ec3200dfee Session and lobby cleanup.
Remove unused variable label and rating.
Remove hardcoded group limit of 10.
Inline pointless constant guiName.

This was SVN commit r18535.
2016-07-20 16:21:42 +00:00
elexis d7d0a7f869 Submit and display more information about matches in the lobby. Patch by Imarok, refs #3476.
Includes team numbers, online/offline- and won/defeated state, AI type
and difficulty for running games and
only the playernames with observer-player distinction in the gamesetup.
Use JSON format inside the XML stanza and minimize traffic by packing
teams.

Use the observer distinction to correctly apply the "full games" trigger
in the lobby, fixes #3143.

XPartaMupp patch applied by scythetwirler.
unescapeText function by sanderd17, refs #3409.

This was SVN commit r18534.
2016-07-20 16:04:23 +00:00
elexis cf04bad4bc Ingame summary screen and allied resource / population tooltips for active players. Patch by Imarok, also reviewed by fatherbushido and discussed with mimo, fixes #3841.
Shows (only) the stats of the current player in the summary screen while
playing.
Also shows those of mutual allies too if the shared vision tech is
researched.
Display the resources and population counts of allies in the tooltips of
the top panel.
Use a sprintf for the pop / limit ratio and remove hardcoded resource
strings in the XML, refs #3934.

This was SVN commit r18533.
2016-07-20 01:22:07 +00:00
mimo fa7e0c10ba fix a call to DeleteEntityAndReturn with undefined arguments, + some cleanup, refs #2706
This was SVN commit r18532.
2016-07-19 18:25:31 +00:00
mimo 01ff2fb0e0 petra: reset some collections only if needed
This was SVN commit r18531.
2016-07-19 17:26:03 +00:00
elexis a498d18738 Fix a stronghold placement bug. Patch by _kali, fixes #4088.
Furthermore add two TODOs about other known placement bugs and
don't enforce close player placement if the team consists of only two
players,
since controlling much territory is more important than having a
neighboring allied CC close by.

This was SVN commit r18530.
2016-07-19 15:33:05 +00:00
elexis 2feeda802d Show the garrisoned healrate in tooltips, revealing not necessarily intuitive rates for special buildings and ships.
This was SVN commit r18529.
2016-07-19 13:19:37 +00:00
elexis d0639c4df6 Ram garrison balancing.
Garrison up to 10 men in rams and 12 in persian ones, in order to
have a greater chance of attacking enemies with many melee champs
defending,
since the new balancing in alpha 21 requires siege engines to destroy
buildings, see d38adc7cd0 and 27c46a0a68.

Remove undocumented garrisoned healrate of rams introduced in
d1ed264c9b.
That commit introduced it in many places, which were removed in later
commits.

Leave the positive garrisoned healrate of ships and special buildings
for now,
assuming that there are supplies on ships (but not in rams).

Add garrisoned healrate tooltips in the following commit.

This was SVN commit r18528.
2016-07-19 13:17:02 +00:00
mimo 9132fd4406 petra: try to improve detection of inaccessible targets
This was SVN commit r18526.
2016-07-17 18:28:20 +00:00
mimo df55f73894 ai: remove a useless argument
This was SVN commit r18525.
2016-07-17 17:10:01 +00:00
elexis ea3492a9a5 Fix averaging of heightmaps which broke on giant mapsizes. Thanks Sandarac for reporting.
This was SVN commit r18524.
2016-07-17 12:59:10 +00:00
elexis 33e3e6c2ab Three new random map scripts by _kali showing actual geographical regions: Amazon, Mediterranean and Red Sea.
Includes a water and skyset fix by niektb. Partially reviewed by FeXoR.
Like last time, commits can be found at
https://github.com/0ADMods/maps_random_by_kali

This was SVN commit r18523.
2016-07-15 19:39:42 +00:00
elexis a83f2a376b Update the idle-worker hotkeys as they were changed in ff6b80305c. Patch by andy5995, reviewed by Itms, fixes #4089, see also 4eea798d79.
This was SVN commit r18521.
2016-07-14 02:09:35 +00:00
elexis 82f1987114 Clean an out-of-scope variable usage. Patch by Stan.
This was SVN commit r18520.
2016-07-14 01:58:05 +00:00
elexis 1459fe0f8e Nuke a confusing warning that is thrown everytime the host selects a map that the clients done have.
This was SVN commit r18519.
2016-07-13 23:09:29 +00:00
elexis 6ade29d0da Rename DeleteMessages to DeleteWonderVictoryMessages to help distinguish it from possible other trigger script methods (ced8ceed47).
This was SVN commit r18518.
2016-07-13 18:42:35 +00:00
elexis df18564038 Merge duplicate big house templates. Patch by Sandarac, reviewed by mimo, fixes #4100.
While at it, remove the revert of the
civbonus_hellenic_architecture.json in the hellenic house templates
(1091 Health * 1,1 = 1200 Health),
since the templates should be independent from the number of the json
file (thus restore the missing 10% bonus for hellenic houses).
Construct big houses in 50 (respectively 55) seconds instead of 60
seconds for the same reason (and using a number that is more round than
53 without increasing the buildtime).

This was SVN commit r18517.
2016-07-13 18:09:08 +00:00
mimo 224fec3954 petra: techCostMultiplier applies only to techs and not to trained units
This was SVN commit r18516.
2016-07-13 13:28:53 +00:00
Itms ec1de0eac1 Small fix to the previous commit. The variable was unused and overwritten, thus hiding the issue.
This was SVN commit r18515.
2016-07-13 07:03:47 +00:00
Itms ced8ceed47 Properly handle wonder victory messages after a player has won.
Patch by Sandarac, reviewed by elexis, fixes #4010

This was SVN commit r18514.
2016-07-13 06:51:59 +00:00
elexis d29806ff2d Structure tree cleanup.
Use Math.max/min and quote object keys for the wallpiece parsing.

This was SVN commit r18513.
2016-07-13 02:02:47 +00:00
elexis 92bf34d68d Fix duplicate lobby rating transfer due to the report being sent for every player instead of only the local player, refs 9f796068f8, #4013.
This is still a bug in XPartaMupp as that should in theory avoid
obviously invalid reports
(defeating players twice in the 'simulation' of the lobby bot).

This was SVN commit r18512.
2016-07-12 11:24:46 +00:00
elexis 4c0f12bce3 Fix autostart replays following a23884d79a by grabbing g_GameAttributes from the simulation instead of the GUI. Patch by Imarok, refs #3143.
Don't remove attribs from the init attributes as that is still used by
the loading screen to show the mapname.

This was SVN commit r18510.
2016-07-12 01:49:48 +00:00
elexis cab6a8c633 Prevent fishing ships from trying to attack entities besides fauna, refs #4092.
This was SVN commit r18509.
2016-07-11 23:55:07 +00:00
elexis c1eff53eab Complete the previous commit to account for both rmlib2 files.
This was SVN commit r18508.
2016-07-11 18:01:01 +00:00
Itms 2d3a9b1a55 Use var instead of const in rmgen2 and fix a typo. Reported by FeXoR, patch by elexis
This was SVN commit r18507.
2016-07-11 17:40:05 +00:00
Itms 3d7c6981ca Fix a too early return and a wrong negation in the attack component "cleanup" of a09c59e044 that broke RestrictedClasses, thus stopped violent animals from attacking. Remove an unneeded space. Slaughter two if-statements whose condition is never satisfied (due to GetAttackTypes never returning that item) introduced in 092206b12e and ef4a1e261c.
Patch by elexis

This was SVN commit r18506.
2016-07-11 17:25:19 +00:00
sanderd17 4eea798d79 Add descriptions for the Shift modifier. Patch by andy5995
This was SVN commit r18504.
2016-07-10 18:02:16 +00:00
mimo 73d62fb903 make the ai use allied dropsites when shared, fixes #4085
This was SVN commit r18503.
2016-07-10 17:44:48 +00:00
fatherbushido 800662ec63 Walls templates cleanup. Use relative templates for Health. Let gates inherit the long wall template instead of the defensive structure template to reduce redundancy / duplicate entries. Remove unused costs as gate is a wall upgrade. Let a non zero cost build time to gate to fix infinite repair rate, ref #3707, #3811.
This was SVN commit r18502.
2016-07-09 21:50:25 +00:00
mimo ca76fb5053 finetune the load savedgame layout of f7ff2f2e99
This was SVN commit r18501.
2016-07-09 18:24:00 +00:00
fatherbushido e38665d7a6 Use decimals instead of integers to allow relative templates for resource costs, as proposed by sanderd17, fixes #3818. Use relative templates following 68f87cb556.
This was SVN commit r18500.
2016-07-08 15:33:50 +00:00
mimo ff4e751dce petra cleanup
This was SVN commit r18499.
2016-07-08 15:13:04 +00:00
elexis 84fae4baeb Fix lineendings for all map files.
This was SVN commit r18498.
2016-07-08 08:42:49 +00:00
fatherbushido c8c7dbc6a4 Fix missing actor.
This was SVN commit r18497.
2016-07-08 08:28:16 +00:00
fatherbushido 90f0e32f84 Mauryan wall to gate conversion costs wood instead of stone as they are made of wood.
This was SVN commit r18495.
2016-07-07 10:28:31 +00:00
elexis 8f0439b016 Remove one array with hardcoded resources used for icons in tooltips. Patch by s0600204, refs #3934.
This was SVN commit r18494.
2016-07-07 01:32:41 +00:00
elexis 888a281552 Complete rename of 9d20881ef4.
This was SVN commit r18493.
2016-07-07 01:22:03 +00:00
elexis 275be69883 Fix missing this-reference in 9d20881ef4 and update gamesetup following a874b3c1c3.
This was SVN commit r18492.
2016-07-07 00:10:26 +00:00
mimo 20866bd9d8 petra cleanup
This was SVN commit r18491.
2016-07-06 18:51:43 +00:00
LordGood db3f332aa4 Stan's Ptolemaic military colony and a few updates I forgot to commit with the seleucid blacksmith
This was SVN commit r18490.
2016-07-06 14:49:07 +00:00
Itms ec2e2a84a4 Fix and improve 001c411cc2.
This was SVN commit r18489.
2016-07-05 20:23:12 +00:00
mimo 05195d0692 apply leaveFoundation to enemies when under ceaseFire, fixes #3667, patch by Sandarac
This was SVN commit r18488.
2016-07-05 17:13:35 +00:00
elexis 4fc8dc517f Delete command improvements and bugfixes.
Allow deleting of miraged foundations.
Add component method to set units undeletable. Based on patch by bb,
refs #3102.
If the control-all-units cheat is active, delete sheep, mostly captured
buildings and undeletable units.
Merge duplicate delete checks in the GUI. Thereby take into account the
control-all-units cheat and undeletability in all places.
Disable the delete button if the entity can't be deleted.
Add a tooltip for undeletability.
Don't colorize whitespace.
Remove unneeded comments.

This was SVN commit r18487.
2016-07-05 01:17:07 +00:00
elexis 5769321038 Show selection panels of other players in case the control-all-units cheat is active.
This was SVN commit r18486.
2016-07-05 00:51:15 +00:00
elexis d9fa069ee7 Fix session implementation of the splash tooltip of 22b72a362b and related cleanup.
Add comments to document that GetEntityState and GetTemplateDataHelper
need to use the same object structure.
Remove four unneeded conditionals that are always true from
GetTemplateDataHelper.
Inline 3 splash damage variables in the attack component.

This was SVN commit r18485.
2016-07-04 22:16:35 +00:00
elexis de8bb7fe28 Skirmish map "Dueling Cliffs" by scythetwirler, reworked by niektb.
This was SVN commit r18483.
2016-07-04 02:45:27 +00:00
elexis afa4b0cba1 Fix autocomplete in gamesetup, see 09fdf716e9. Thanks echotangoecho for reporting.
This was SVN commit r18482.
2016-07-03 20:53:43 +00:00
elexis 437cc13b95 Make charge attack unavailable from the simulation.
The order change to GetAttackTypes in a09c59e044 revealed that it was
only the GUI not triggering the buggy code.
Eliminate for-each of UnitAI calling that function.

This was SVN commit r18481.
2016-07-03 20:41:03 +00:00
elexis 0f38095dfd Remove the outdated tooltip following 0624045e6c.
This was SVN commit r18480.
2016-07-03 20:40:19 +00:00
elexis d99c5ce064 Fix typo.
This was SVN commit r18479.
2016-07-03 11:25:59 +00:00
mimo bbe75c14f8 Implements the ai changes from s0600204 resource-agnostic patch, refs #3934
This was SVN commit r18478.
2016-07-03 10:26:34 +00:00
elexis 22b72a362b Splash damage tooltip.
This was SVN commit r18477.
2016-07-03 04:08:52 +00:00
elexis 0624045e6c Train women from houses in village phase, as that's typically the only time when they are trained.
This was SVN commit r18476.
2016-07-03 03:13:50 +00:00
elexis fe8b65b708 Show the actual walk speed in the ingame tooltip. Patch by fatherbushido.
This was SVN commit r18475.
2016-07-03 02:25:57 +00:00
elexis 0fd2c517f5 Lobby cleanup.
Cache the viewed profile directly.
Remove the rating check since it is always true ("-2" used if the rating
doesn't exist).

This was SVN commit r18474.
2016-07-03 02:14:03 +00:00
elexis 02f89aad41 Fix wrong variable declaration in 8d9255eaee and merge duplicate, as reported by mimo.
This was SVN commit r18473.
2016-07-03 02:01:00 +00:00
elexis 2a3d380e75 Upgrade component cleanup, refs #2706.
Use the cheat multiplier for upgrading and un/packing.
Remove if-statements that are always true.
Remove unused undefined "time" item from array in the selection panel.
Pass that object directly instead of copying each property explicitly.
Various indentation fixes in the selection panel code.

This was SVN commit r18472.
2016-07-03 01:50:55 +00:00
elexis c24b6b582d Fix tests. Patch by fatherbushido, refs #2706.
Some simplifications and array functions.
Fix indentation, thanks pastebin.

This was SVN commit r18471.
2016-07-02 21:32:09 +00:00
wraitii f468ac936b Fix to the upgrade commit, including one by fatherbushido. Refs #2706
This was SVN commit r18470.
2016-07-02 16:05:56 +00:00
niektb 967a500d37 Fix Roman Siege Wall after b2f4b0f494. Patch by fatherbushido.
This was SVN commit r18469.
2016-07-02 08:35:31 +00:00
wraitii b2f4b0f494 Allow entities to upgrade into other entities.
This new components allows giving the upgrade a cost, required
technologies, and a required time.
Implement gates using this generic component.
Fixes #2706

This was SVN commit r18467.
2016-07-01 19:43:26 +00:00
elexis 1276b98965 Argh.
This was SVN commit r18466.
2016-07-01 15:18:09 +00:00
elexis a09c59e044 Attack component cleanup.
Use .filter(), .every() and .some() to simplify, Math.max/min instead of
if-statements, inline functions, add newlines and allow attack orders
while flying.

This was SVN commit r18465.
2016-07-01 15:05:09 +00:00
elexis 9d20881ef4 Update healer tooltips to also show up in the selection details with actual values from the simulation. Based on patch by fatherbushido, fixes #4026.
Also clean up the Health component.
Rename healer to heal (as that is the actual component name).
Remove the structure tree code to replace a proper Templates.js
implementation.

This was SVN commit r18464.
2016-07-01 13:32:34 +00:00
elexis bb69a6fb86 Tooltip cleanup.
Use toFixed instead of round hacks, refs #3395.
Show one more digit in the speed tooltip.

This was SVN commit r18463.
2016-07-01 10:37:01 +00:00
elexis e611dd6993 Remove unneeded population bonus tooltip strings. Patch by fatherbushido, refs dde2cd38be.
This was SVN commit r18462.
2016-07-01 10:03:14 +00:00
elexis 1e5d67b6bb Fix missing replacement in 4d9565297d. Thanks Imarok for reporting.
This was SVN commit r18460.
2016-06-30 12:30:36 +00:00
elexis b134047abe Also add a reset-teams button for consistency, refs #3805.
This was SVN commit r18459.
2016-06-30 12:03:37 +00:00
elexis b642f0d876 Persist the the valid subset of chosen player settings when changing the skirmish map. Patch by Offensive ePeen, refs #3120.
This was SVN commit r18458.
2016-06-30 10:02:32 +00:00
elexis e6e8efec1c Tooltip cleanup.
Remove duplicate arguments from the helper function to get the
template/entity data.

This was SVN commit r18457.
2016-06-30 02:12:26 +00:00
elexis ef9eb787be Remove wrong space from 4d9565297d.
This was SVN commit r18456.
2016-06-30 02:11:30 +00:00
elexis 1114afa939 Garrison tooltips by fatherbushido.
Show how many units can be garrisoned, the number of arrows shot by
default, per unit and limit, fixes #3816.
Thus remove a lot of hardcoded numbers in the translated strings and
correct a wrong number for the mauryan ship, fixes #3904.

This was SVN commit r18455.
2016-06-30 01:31:40 +00:00
elexis 4d9565297d Tooltip overhaul.
Also contains a patch by fatherbushido for attackRateDetails and
getAttackTooltip to
not show something broken for buildingAI units that can capture, fixes
#4061 (see #4000).

Make tooltip functions uniform.
  Pass template everywhere
    instead of template.armour in getArmorTooltip
    rate in getRepairRateTooltip and getBuildRateTooltip and
    entState in attackRateDetails.
  Add an early return for every tooltip function.
    Use empty string instead of "Armor: (None)" for trees etc..
  Don't prefix tooltip return values with "\n", but let the user of that
function add them.
  Thus make tooltip concatenation much nicer (f.e. draw.js).

Use a loop instead of duplicating per damage type in damageTypesToText.
Add font functions to avoid duplicating tag code.
Merge sprintf's and inline variables.
Add few TODOs.

Fix some strings:
  Use "%(specificName)s %(fontStart)s(%(genericName)s)%(fontEnd)s")
instead of "(" + foo + ")" ...
  Use existing "%(percentage)s%%" instead of foo + "%" in
armorLevelToPercentageString.

Remove
 duplication by calling/introducing shared functions (getEntityTooltip,
getHealthTooltip, getGatherTooltip, getVisibleEntityClassesFormatted),
 unused function damageTypeDetails which was also a duplicate of
damageTypesToText,
 unused function damageValues,
 some warns that are equivalent to errors they attempt to cover up
(getAttackTypeLabel, getCostComponentDisplayIcon, getEntityNames,
getEntityNamesFormatted),
 some unused variables,
 "???" and translate("???").

Don't fix translate("Foo:") strings to avoid a lot of translation work.

This was SVN commit r18454.
2016-06-30 01:16:09 +00:00
elexis 30c7a2ef18 Remove gathering capacity from elephant archers as they are way too clumsy for that (as they would use the melee/slaughter attack too).
It might be unexpected in the first place to let them gather.
(However that is not really weirder than having cavalry hunt sheep.)

This was SVN commit r18453.
2016-06-29 13:35:20 +00:00
elexis a23884d79a Cache gameAttributes in the session. Patch by Imarok, refs #3143, #3263.
This was SVN commit r18452.
2016-06-29 01:45:20 +00:00
elexis 46cabf0fde Add missing JSAutoRequest calls. Based on patch by echotangoecho, refs #4053.
This was SVN commit r18451.
2016-06-29 00:00:44 +00:00
FeXoR d30ee0292b Fixes a bug in random map library placer.js function SimpleObject.place() that placed entities outside of the playable map area. Add a constant MAP_BORDER_WIDTH to remove magic numbers. Also removed some unneeded brackets in the changed files. Fixes 4012
This was SVN commit r18450.
2016-06-28 11:37:56 +00:00
FeXoR 0f1cef8766 Code cleanup of random map lib map.js.
This was SVN commit r18449.
2016-06-27 22:42:12 +00:00
wraitii 9b3ec336fe Make non-refraction water less transparent.
This was SVN commit r18448.
2016-06-27 13:50:54 +00:00
wraitii d60d7d7da6 pow is behaving in undefined ways for negative numbers and this lead to issues on nvidia and amd. Fix this and comment for future reference. Thanks to fatherbushido for the debugging help.
This was SVN commit r18447.
2016-06-27 11:36:10 +00:00
elexis e782e23ff9 Fix 8da8d28102 as it didn't update the ingame summary screen and did a wrong inline. Reported by Imarok.
This was SVN commit r18446.
2016-06-27 11:18:56 +00:00
mimo 307ed87829 petra: fix some rare case trying to attack an ally
This was SVN commit r18444.
2016-06-26 18:18:29 +00:00
wraitii ead8436b3d Improve water rendering, partly based on a patch by aeonios, including:
-increase the size of the refraction and reflection texture
-blur the refraction map depending on depth

Fixes #3781

This was SVN commit r18443.
2016-06-26 16:54:58 +00:00
wraitii a4a45e4dc4 Fix compiler warning, thanks to elexis. Refs #4056
This was SVN commit r18442.
2016-06-26 16:51:52 +00:00
elexis 9f796068f8 Win and defeat cleanup, fixes #4013.
Add a new simulation message and chat notification for players who won.
Avoid duplicate playerstate messages in the sim and GUI by triggering
changes with a function instead of a message.
Reveal the map on defeat/win exclusively in the player component
(instead of having a silly GUI proxy and doing it also in the
EndGameManager sometimes).
Remove the skipAlliedVictory argument from the player component, since
that shouldn't contain references to the EndGameManager, refs #3970.

Show a proper message box on win/loss and add the hint for hosts
disconnecting other players.
Do defeat/win procedure in the GUI when such a message arrives, instead
of checking onTick for playerstate changes.
Thus don't show that confirmation again on every rejoin.
Don't show a pointless message box if IsAtlasRunning.

Explain that the session.js variable is needed to avoid an
order-of-execution bug.
Select "observer" item when rejoining as a defeated player.
Remove an unneeded call to updateTopPanel.

This was SVN commit r18441.
2016-06-26 04:40:50 +00:00
elexis 8da8d28102 Savegame / summary screen / replay menu cleanup, refs #1090.
Savegame / replay menu selected game information:
  Show players who won the game (not only defeat).
  Show translated civs instead of the civ code.
  Use a translation for "%(team)s:\n%(playerDescriptions)s".
  Merge nearly duplicate objects passed to formatPlayerInfo.
  Merge deleteGame and deleteGameWithoutConfirmation.

Summary screen:
  Construct the summary screen title in place, not in the session, nor
replay menu.
  Remove g_Players from the replay metadata since all relevant
information is contained in the sim data.
  Split g_GameData into gui and sim.
  Access g_GameData instead of data for consistency.
  Move code from XML to JS.
  Don't use victory music when observers enter the summary screen (just
keep the current track like when exiting the game as a player).
  Rename updateObjectPlayerPosition to initPlayerBoxPositions.

This was SVN commit r18440.
2016-06-26 03:36:55 +00:00
wraitii 898ab5229b Change profiling calls to get a better view of what is actually slow and what is not.
This was SVN commit r18438.
2016-06-25 13:12:35 +00:00
FeXoR d2e081b602 Separate getFullEntityList() - gathering all entities placed until now on a random map in a list - from getMapData(). Preparation for committing collision detection and beautifier patches. Fixes #4068
This was SVN commit r18437.
2016-06-25 12:00:06 +00:00
wraitii be1b5a9fa7 Improve Profiler2 JS interface with multiple threads and frameless threads. Add a setting to the analysis graphs. Refs #4056
This was SVN commit r18436.
2016-06-25 10:12:04 +00:00
wraitii c886206d96 Fix crash after opening profiler2 with GPU profiling following 3cbe96d24c. Refs #4056
This was SVN commit r18435.
2016-06-25 09:11:10 +00:00
mimo 98f8541581 remove a useless leftover var
This was SVN commit r18434.
2016-06-24 18:03:19 +00:00
elexis d8e9642d09 Fix lineendings of all files in simulation/.
This was SVN commit r18433.
2016-06-24 12:39:22 +00:00
elexis 989df9cb3b Fix lineendings of JS simulation components.
This was SVN commit r18432.
2016-06-24 12:23:39 +00:00
elexis b8fbfe2d20 Survival of the fittest cleanup. Based on patch by bb, refs #3102.
Show notificaiton to all players and observers.
Whitespace fixes.
let instead of var.

This was SVN commit r18430.
2016-06-23 22:37:42 +00:00
mimo 9c980173e3 petra cleanup
This was SVN commit r18429.
2016-06-23 18:25:27 +00:00
elexis 62f4a4f7ca Lobby / gamesetup cleanup.
Translate the map "random" in the lobby.
Fix a warning in getMapDisplayName reported by echotangoecho when
hosting a lobby game and selecting the random map.
Use the right translation of that "random" map in b84b9a374a (since it's
not the maptype).
Notice mapInfoName still shouldn't be colored.

This was SVN commit r18428.
2016-06-23 14:33:28 +00:00
elexis 89fd897fd9 Buff quinquereme, especially the garrisoning of expensive catapults. Patch by causative, fixes #4065.
This was SVN commit r18427.
2016-06-23 13:20:46 +00:00
wraitii 95d3612b68 Fix Profiler2 calls in UserReport.cpp, which lead to multiple Leave events being recorded without corresponding enter events. Possible fix for the linux crash of profiler2.
This was SVN commit r18426.
2016-06-23 10:01:31 +00:00
wraitii 490ee7387f Fix a double to float coercion and JS errors with empty threads in Profiler2 . Refs #4056
This was SVN commit r18424.
2016-06-22 16:46:49 +00:00
wraitii 3cbe96d24c Revamp Profiler2 to make it more usable.
Features include new graphs to compare runtime of functions and runtimes
across reports, as well as new profiling functions that only profile
spikes.

This was SVN commit r18423.
2016-06-22 13:38:05 +00:00
elexis 68bc88fb95 Savegame GUI cleanup..
Move duplicate reallyDeleteGame to shared file.
Inline getPlayerInfoText since it is used only once, refs #1090.
Merge deleteGame and deleteGameWithoutConfirmation.
Use let instead of var.

This was SVN commit r18422.
2016-06-22 11:42:43 +00:00
elexis 2735494a92 Configurable batch size when training units. Patch by Sandarac, fixes #4059.
This was SVN commit r18421.
2016-06-22 11:13:40 +00:00
niektb 70417715be Enhanced autumn trees from Delenda Est. Related forum topic: https://wildfiregames.com/forum/index.php?/topic/20833-autumn-tree-content-mod/#comment-317651
This was SVN commit r18420.
2016-06-21 15:45:14 +00:00
elexis 0f807c643a GUI cleanup.
Point out missing functionality and unused properties in the
implementation of checkboxes.
Don't specify a useless font tag for checkboxes in the templates.

This was SVN commit r18419.
2016-06-21 14:38:06 +00:00
wraitii 9e526614be Accidentally left a change from #4056 in in 7c21a0cf8e.
This was SVN commit r18418.
2016-06-21 11:13:00 +00:00
wraitii 7c21a0cf8e Header cleanup: profile.h is no longer unnecessarily included in scriptinterface.h but rather in the required .cpp files
This was SVN commit r18417.
2016-06-21 10:33:11 +00:00
elexis bc40ebb97e Improve bartering GUI responsiveness and immediately switch to the selected resource instead of waiting one turn. Refs #3194.
This was SVN commit r18416.
2016-06-21 09:34:26 +00:00
elexis 4fde34c168 Revert be5f2d2bb5 since the implicit conversion throws a warning.
This was SVN commit r18415.
2016-06-21 00:06:14 +00:00
mimo 600f21578f cleanup of some replay and savedgame stuff
This was SVN commit r18414.
2016-06-20 17:43:16 +00:00
elexis be5f2d2bb5 Remove an unneeded String() conversion.
This was SVN commit r18413.
2016-06-20 16:09:57 +00:00
elexis 23a9fa1e65 Trigger script cleanup.
Remove tons of trailing whitespace.
Format JSdoc comments properly.
Use alphabetical sorting in array.
let instead of var.
Eliminate deprecated for-each.

This was SVN commit r18412.
2016-06-20 15:59:14 +00:00
elexis 86db6dcf12 Implement wonder victory games that are finished instantaneously after build, refs #3234.
Thus don't supplement the hypothetically missing wonderduration
gameattribute with a hardcoded simulation default.

This was SVN commit r18411.
2016-06-20 15:46:21 +00:00
mimo f7ff2f2e99 improve load game UI, fixes #1090
This was SVN commit r18409.
2016-06-19 21:01:25 +00:00
niektb 5bc0de7f3a Put the newly credited persons in 24b2a2b828 in an alphabetical order
This was SVN commit r18408.
2016-06-19 18:13:35 +00:00
niektb 24b2a2b828 Three new fauna portraits made by Foaly
This was SVN commit r18407.
2016-06-19 18:08:39 +00:00
elexis 5186560466 Suppress a warning.
This was SVN commit r18406.
2016-06-19 14:37:38 +00:00
elexis 22f6daf612 Add missing territory to corrals (to prevent decay in connected allied territory).
Increase territory of the storehouse slightly to allow adjacent
buildings.

This was SVN commit r18405.
2016-06-19 14:32:42 +00:00
mimo dbe985cd78 petra: remove some useless return
This was SVN commit r18404.
2016-06-18 17:34:02 +00:00
mimo e8291130bd petra: update list of enemy structures when diplomacy changes
This was SVN commit r18403.
2016-06-18 16:59:34 +00:00
elexis 932b0c1e3e Trireme and bireme ship balancing.
The mauryan empire is not known to have the strongest fleet, so reduce
their ships hitpoints to the average for that model.
Redue bireme metal cost to make it an actual alternative to the trireme,
considering population cost and hitpoints.
Remove a hardoded linenumber in a comment.

This was SVN commit r18402.
2016-06-18 14:30:21 +00:00
elexis 64d14b9fc6 Fix "supersedes" indentation issue of technologies in 4c22d4631a.
This was SVN commit r18401.
2016-06-18 11:07:44 +00:00
elexis b28dfb42df Fix indentation of auras in 46ead523b8. Patch by fatherbushido, reported by leper, fixes #4062, refs #3792.
This was SVN commit r18400.
2016-06-18 10:45:33 +00:00
elexis 09fdf716e9 Session cleanup.
Move chat window and developer overlay to a custom file.
Use String(foo) instead of ""+foo.
Remove a pointless loop and GetGUIObjectByName call in autoCompleteNick.
Remove noisy line-comments.

This was SVN commit r18399.
2016-06-17 15:38:07 +00:00
elexis f4b818bec4 Wonder mode cleanup.
Remove unused, seemingly unusable wonder duration multiplier, refs
#3234.
Replace wonderDuration of the EndGameManager with gameTypeSettings,
since the component should be agnostic about victory condition logic.
Remove an unused cmpEndGameManager.
Inline a variable, few newlines, let intsead of var.

This was SVN commit r18398.
2016-06-17 14:24:30 +00:00
elexis 8c69309e7c Missing semicolon, rephrase comment, refs #3216.
This was SVN commit r18397.
2016-06-17 12:08:40 +00:00
elexis f60befe098 Capture statistics summary. Patch by maveric and Imarok, fixes #3216.
Also colorize the headings, use two lines per player and remove
duplication of an ugly regex hack.

This was SVN commit r18395.
2016-06-17 02:27:11 +00:00
elexis df764c0200 Increase vision range proportionally when increasing the attack range. Patch by Imarok, fixes #3989.
This was SVN commit r18394.
2016-06-17 01:11:39 +00:00
elexis a214f83017 Trader cleanup.
Remove unused required goods.
Won't be used since setting the goods individually for every trader is
overkill.

This was SVN commit r18393.
2016-06-16 20:54:31 +00:00
elexis 7c9c715ddc Tech tree cleanup.
Newlines.
Eliminate deprecated for each.
One or two simplifications.

This was SVN commit r18392.
2016-06-16 20:26:36 +00:00
elexis a874b3c1c3 Colorize playernames in the kick/ban chat notification, refs #3241.
This was SVN commit r18391.
2016-06-16 17:13:02 +00:00
sanderd17 450973a624 Clean up some code-style issues reported by leper
This was SVN commit r18390.
2016-06-16 14:51:12 +00:00
elexis ed7924f9ca Session GUI cleanup
Use arrow functions.
Inline exchangeResources which was defined in the wrong file.
Remove unused selectRequiredGoods. Related code should be removed likely
too.
Add missing translate.

This was SVN commit r18389.
2016-06-16 01:08:36 +00:00
elexis 8aea8d0849 Replace magic number with a readable string, refs #3436.
This was SVN commit r18388.
2016-06-16 00:40:21 +00:00
mimo f25921ba24 improve 2392f6fe8e as these checks are also done in Commands.js, thanks to leper
This was SVN commit r18387.
2016-06-15 21:20:04 +00:00
mimo 6da94fef96 petra cleanup, spotted by leper
This was SVN commit r18386.
2016-06-15 21:06:09 +00:00
elexis 156b360f06 Print engine version to the logfiles.
This was SVN commit r18385.
2016-06-15 19:26:28 +00:00
elexis ed225e1fc4 Chat cleanup, refs #3870.
Remove toggleChatWindow which duped openChat and closeChat.
Toggling the chat window with hotkeys is pointless due to the focus.
Inline setTeamChat.
Add some newlines, 2 missing semicolons and remove unneeded comments.

This was SVN commit r18384.
2016-06-15 16:54:16 +00:00
elexis 8302eeaf73 Rest of the previous commit.
This was SVN commit r18383.
2016-06-15 16:16:55 +00:00
elexis 0ce02441ee Simulation cleanup
Use QueryPlayerIDInterface to remove duplication as suggested by leper.
Remove its duplicate GetPlayerComponent.
Add IsOwnedByHelper and IsOwnedByEntityHelper to remove duplicated ally
check functions.
Remove unused function GetPlayerFilter from 17c473f2f3.
Remove unused variables and access to undefined ones identified using
jshint.
Rename cmpPlayerMan.

This was SVN commit r18382.
2016-06-15 16:13:08 +00:00
elexis 84d5fb2d34 Tooltip GUI engine cleanup.
Merge some if statements.
Fix whitespace.
Remove unneeded comments and braces.
Remove one duplicated statement out of an if-statement.

This was SVN commit r18381.
2016-06-15 15:40:05 +00:00
elexis 997ea01b2b Fix typo in 366085e037 as reported by mimo.
This was SVN commit r18380.
2016-06-14 21:29:37 +00:00
elexis a296909f91 GUI engine cleanup.
Merge a check.
Remove unneeded comments and braces.
Some whitespace fixes.

This was SVN commit r18379.
2016-06-14 15:06:39 +00:00
elexis a9426a3f26 Distinguish private and public room level messages in the lobby. Patch by scythetwirler, refs #3865.
This was SVN commit r18378.
2016-06-14 14:07:52 +00:00
elexis 8d9255eaee Lobby cleanup.
Remove duplicate assignments in updateGameSelection.
Add function senderFont to remove duplication.
Add newlines to reduce line length and have properties of different
objects start on the same level of indentation.
Use logical OR instead of ternary in two occurances (mapTypeIdx).

This was SVN commit r18377.
2016-06-14 13:28:54 +00:00
elexis b65594832d Lobby cleanup.
Use let instead of var.
Merge redundant assignment in updateSubject.

This was SVN commit r18376.
2016-06-14 12:34:46 +00:00
elexis fb5e738920 Lobby cleanup. Patch by scythetwirler, refs #3865.
Replace an ugly workaround of ccb534259d with a proper check.

This was SVN commit r18375.
2016-06-14 12:17:37 +00:00
elexis 949f22b67d Victory check cleanup.
Use let instead of var.
Add newlines and a missing semicolon.
Remove an excess semicolon.

This was SVN commit r18374.
2016-06-14 11:18:28 +00:00
elexis 62061557db Host on arbitrary UDP ports. Patch in cooperation with Imarok, fixes #3575.
This was SVN commit r18372.
2016-06-13 16:56:14 +00:00
elexis 7b655b7ea6 Implement multiplayer dialog retries, fixes #4035, refs #3575.
Cleanup:
Move all code to hide elements to switchSetupPage.
Remove nasty second argument from switchSetupPage by just hiding every
page.
To avoid another state variable, immediately set g_IsConnecting to true
by calling startConnectionStatus when trying to host.
Use .some instead of a loop.

This was SVN commit r18371.
2016-06-13 14:29:52 +00:00
elexis 320798f901 Don't select "everyone" but the previously selected chat addressee when someone connected or disconnected. Fixes #3956.
This was SVN commit r18369.
2016-06-12 21:11:01 +00:00
elexis 31decd6274 Messed up variable name in 9dc66a27d8.
This was SVN commit r18368.
2016-06-12 15:29:43 +00:00
sanderd17 929711febb Fix skirmish entities to use Hellenic actors after removing the Athenian duplicates.
This was SVN commit r18367.
2016-06-12 15:13:09 +00:00
elexis 9dc66a27d8 Pass pointer by ref.
This was SVN commit r18366.
2016-06-12 14:37:13 +00:00
elexis 6e2106edd8 Fix whitespace, refs #3000.
This was SVN commit r18365.
2016-06-12 13:54:00 +00:00
elexis 38c7d7224a Elephants are not expected to capture buildings.
This was SVN commit r18363.
2016-06-11 16:07:28 +00:00
elexis a0960f4f89 Show the player color and name of units from other players garrisoned in allied buildings. Fixes #4052.
This was SVN commit r18362.
2016-06-11 15:02:34 +00:00
elexis d7d1d8ccb5 Implement buttons for up to 10 heroes. Patch by Clockwork-Muse, fixes #3000.
This was SVN commit r18361.
2016-06-11 13:46:04 +00:00
FeXoR 759aaa2264 Fixes a bug introduced in 0bf90da597 that prevents entity placement on some rectangular maps e.g. Phoenician Levant and Corsica vs Sardinia. Also fixes a typo in the Phoenician Levant .js and .json files. Fixes #4012
This was SVN commit r18360.
2016-06-11 11:16:07 +00:00
elexis ab9cef172b Savegame cleanup.
Implement loading of multiplayer savegames that were created by
observers.

This was SVN commit r18359.
2016-06-11 00:30:11 +00:00
wraitii 001c411cc2 Remove a division by a fixed equal to one in NearestNavcell in the short-range pathfinder which was from profiling on VC2013/windows 7 responsible for about 10% of ComputeShortPath.
This was SVN commit r18358.
2016-06-10 22:57:28 +00:00
elexis c94cd66a57 Savegame cleanup.
Remove the player assignments altogether (506350d6fa) as the C++ part
already saves the playerID.
Grab the playerID directly from the game instead of passing it around
needlessly.

This was SVN commit r18357.
2016-06-10 19:04:57 +00:00
elexis 6ba90a2555 Session cleanup.
Move message polling code from onTick to messages.js and blend it in.

This was SVN commit r18356.
2016-06-10 13:17:47 +00:00
elexis 506350d6fa Savegame, session and gamesetup cleanup.
Don't save the player assignments to savegames as
the GUIDs are outdated and the GUI data only applies to the player that
saved the game.
Remove unneeded argument from getPlayerData.
Remove invalid (ready should be status) and unneeded playerAssignment
data when selecting a map in singleplayer mode.
Show filenames of saved games in the debug log.

This was SVN commit r18355.
2016-06-10 13:03:13 +00:00
mimo a792503cab completes the ai adaptation to cost multipliers, fixes #4003
This was SVN commit r18353.
2016-06-09 19:28:54 +00:00
mimo dd823dd572 ai cleanup
This was SVN commit r18352.
2016-06-09 19:25:40 +00:00
wraitii 41bc367bd1 Messed up 01603708de
This was SVN commit r18350.
2016-06-09 17:45:50 +00:00
wraitii 01603708de Reuse vectors in the short-range pathfinder, making SplitAAEdges much faster and reducing memory fragmentation substantially. Refs #3588
This was SVN commit r18349.
2016-06-09 17:38:59 +00:00
elexis 91e4ac58e3 Ensure in the simulation that locked teams and last man standing aren't enabled simultaneously. Suggested by leper, refs #3970.
This was SVN commit r18348.
2016-06-09 15:35:12 +00:00
elexis f92447f88b Observer mode cleanup, refs #3168.
For consistency remove grayout from unit action commands (unload all,
delete, ...) as suggested by sanderd17 some time ago.
Remove unneeded grayout from unittype specific ungarrison buttons (as
the grayout is added automatically in this case).
Allow focusing on rallypoints for observers (should be added to the
allied commands too).
Add newlines and inline some variables.

This was SVN commit r18347.
2016-06-09 15:32:41 +00:00
elexis 4bb9c80001 Continue to allow cheating and some other commands after winning the game. Refs #3168.
This was SVN commit r18346.
2016-06-09 14:47:25 +00:00
elexis fab2e9274a Lobby cleanup. Based on patch by Imarok, refs #3575.
Fix a typo and use let instead of var.

This was SVN commit r18345.
2016-06-09 13:59:40 +00:00
wraitii d1cc3dcb80 Re-use the same vector for the range manager spatial subdivision queries to cut down on allocations and memory fragmentation. Refs #4045
This was SVN commit r18344.
2016-06-08 17:06:58 +00:00
elexis 2165250316 Clarify translated string, as reported on transifex.
This was SVN commit r18343.
2016-06-08 11:12:10 +00:00
elexis cd3c52c53f Last Man Standing mode. Based on patch by Sandarac, fixes #3970.
Also fix a simulation bug (check for allied victory on game start).
The mode is not a victory condition as it applies to all victoriy
conditions.

This was SVN commit r18342.
2016-06-08 11:03:16 +00:00
elexis 70e6be5196 GUI engine cleanup.
Remove unneeded parenthesis and few whitespace changes.

This was SVN commit r18341.
2016-06-07 15:57:33 +00:00
sanderd17 ffd1639f05 Implement damage variants with an example for the Iberian fire ship. Fixes #3983
This was SVN commit r18340.
2016-06-07 13:21:32 +00:00
elexis a7b310f3bd GUI engine cleanup.
Fix typos, remove unneeded comments.

This was SVN commit r18339.
2016-06-07 12:02:33 +00:00
mimo 29a069b6fb petra cleanup
This was SVN commit r18337.
2016-06-05 20:52:21 +00:00
Itms 260f925ad9 Some fixes and improvements suggested by leper
This was SVN commit r18336.
2016-06-05 20:48:22 +00:00
LordGood ee8061d867 fixed market actor and seleucid spec texture
This was SVN commit r18335.
2016-06-05 15:31:48 +00:00
mimo d3ffa91fa9 petra cleanup
This was SVN commit r18334.
2016-06-05 14:44:17 +00:00
mimo e260fab9a0 petra: first part of adaptation to cost multipliers, ref #4003
This was SVN commit r18333.
2016-06-05 14:39:37 +00:00
sanderd17 98f1d02d88 Fix garrison flag on new seleucid blacksmith
This was SVN commit r18332.
2016-06-05 08:47:22 +00:00
LordGood f064b0566c Seleucids blacksmith, fixed a few things with the corral and barracks too
This was SVN commit r18331.
2016-06-05 05:31:05 +00:00
mimo 756d23c987 petra cleanup
This was SVN commit r18330.
2016-06-04 17:36:14 +00:00
sanderd17 f6b9cbf280 Remove duplicate temple actors
This was SVN commit r18329.
2016-06-04 14:15:52 +00:00
sanderd17 29b6f8273f Fix garrison flags of hellenistic civs + remove duplication for a number of athen vs hele actors + clean up some actors
This was SVN commit r18328.
2016-06-04 14:02:19 +00:00
sanderd17 279a9ed785 Move old Persian building
This was SVN commit r18327.
2016-06-04 13:29:08 +00:00
sanderd17 e573ea54a2 Move some old hellenistic actors to the old directory
This was SVN commit r18326.
2016-06-04 13:25:30 +00:00
mimo 04123e7725 some cleanup, reported by leper
This was SVN commit r18325.
2016-06-04 12:43:02 +00:00
sanderd17 c08bde9100 Fix garrison flags on Spartan buildings + clean up some actors
This was SVN commit r18323.
2016-06-04 12:18:47 +00:00
elexis 248a48d88a Major network cleanup. Patch by Imarok.
Access the server from the client only, not from the GUI (except for
autostarted games).
Thereby lay the foundation for clients to setup the game (refs #3806)
and dedicated hosting (refs #3556).
Doesn't transfer nor remove the SetTurnLength showcase from 0ebe3486b6.

This was SVN commit r18322.
2016-06-04 12:08:30 +00:00
sanderd17 1871213496 Fix garrison flags on Seleucid buildings + clean up some actors
This was SVN commit r18321.
2016-06-04 12:06:48 +00:00
sanderd17 9a38ae6455 Fix garrison flags on Roman buildings + clean up some actors
This was SVN commit r18320.
2016-06-04 11:58:10 +00:00
sanderd17 c0f0f6fb53 Fix garrison flags on Ptolemaeic buildings + clean up some actors
This was SVN commit r18319.
2016-06-04 11:31:21 +00:00
elexis 6377670543 Simulation cleanup.
Fix previous commit and add missing semicolon.

This was SVN commit r18318.
2016-06-04 02:33:53 +00:00
elexis 40e8600a58 Statistics tracker cleanup.
Inline some variables.
Simplify domestic animal check.
Remove trailing whitespace.

This was SVN commit r18317.
2016-06-04 01:58:37 +00:00
elexis a84b9a087c Fix some string issues pointed out by leper.
This was SVN commit r18316.
2016-06-04 00:59:46 +00:00
elexis 4110fee44e Session cleanup and bugfix.
Rename "hosts" following 903803ceec in session and join dialog.
Move join/leave code to new functions OnClientJoin and OnClientLeave.

This was SVN commit r18315.
2016-06-03 16:54:00 +00:00
elexis 80ea90ec4b Summary screen cleanup.
Use 8b30273a50 to remove hardcoding of the available panels.
Access the summary panels by name instead of numerical index.
Move nested function to global scope.
Add newlines.
Remove unneeded comments.
Use join(" ") to construct the size property.

This was SVN commit r18314.
2016-06-03 16:22:02 +00:00
elexis 92f2a21ac5 Summary screen cleanup.
Thou shalt not repeat thyself when formatting numbers.
Renaming of 1-character variables by Imarok.

This was SVN commit r18313.
2016-06-03 16:17:21 +00:00
FeXoR 0bf90da597 Fixes a bug for random maps where Map.validT didn't apply the distance parameter properly on rectangular maps. Fixes #4012
This was SVN commit r18312.
2016-06-03 15:29:28 +00:00
sanderd17 3cf766126b Fix garrison flags on Persian buildings + clean up some actors
This was SVN commit r18311.
2016-06-03 15:12:07 +00:00
sanderd17 4048c0e03c Fix garrison flags on Mauryan buildings + clean up some actors
This was SVN commit r18310.
2016-06-03 14:21:07 +00:00
sanderd17 81eb22d01a Fix garrison flags on Macedonian buildings + clean up some actors
This was SVN commit r18309.
2016-06-03 14:00:59 +00:00
sanderd17 03060c4307 Fix skirmish replacements
This was SVN commit r18308.
2016-06-03 13:49:26 +00:00
sanderd17 81512a5558 Fix garrison flags on iberian buildings + clean up some actors
This was SVN commit r18307.
2016-06-03 13:11:47 +00:00
sanderd17 8e2fb41f92 Rename the not-so-new celtic actors
This was SVN commit r18306.
2016-06-03 11:38:04 +00:00
sanderd17 80ffd7ecb6 Move old celtic actors to a separate directory
This was SVN commit r18305.
2016-06-03 11:26:03 +00:00
sanderd17 1a3ed203b6 Fix previous commit where SVN messed up a bit between copying and moving files
This was SVN commit r18304.
2016-06-03 11:04:41 +00:00
sanderd17 b881c4e327 Move old athenian actors to separate directory + rename the not-so-new actors to regular names
This was SVN commit r18303.
2016-06-03 10:09:03 +00:00
sanderd17 df622b5614 Remove magic number from credits code.
This was SVN commit r18301.
2016-06-03 09:37:58 +00:00
elexis 903803ceec Gamesetup ready- and PlayerAssignments-cleanup.
Split logic to onClientJoin onClientLeave.
Remove duplicate, yet slightly different ready button caption.
Rename hosts to newAssignments in the GUI message sent by the NetClient.

This was SVN commit r18299.
2016-06-03 02:28:29 +00:00
elexis 0f8b10fc0e Gamesetup cleanup.
Call updateGameAttributes instead of copying the function contents.
Inline numPlayers and remove ternary that returns the same value in both
cases.
Add newlines, change some comments.

This was SVN commit r18298.
2016-06-03 00:21:21 +00:00
elexis c941a2f352 Gamesetup cleanup.
Determine the Seed, AISeed and matchID only once (when starting the
game).
Only specify Seed on random maps.

This was SVN commit r18297.
2016-06-02 23:54:18 +00:00
elexis 8b30273a50 GUI engine improvement + gamesetup cleanup.
Grab the list of children of a GUI object directly instead of hardcoding
the names.

This was SVN commit r18296.
2016-06-02 22:49:28 +00:00
elexis 31a7181eb8 Hide the continue button from d9caf157e2 once pressed, refs #4031.
This was SVN commit r18295.
2016-06-02 22:39:02 +00:00
sanderd17 53ffe766d8 Fix garrison flags on Gallic and Celtic structures + clean up the Gallic and Celtic structure actors
This was SVN commit r18294.
2016-06-02 20:18:06 +00:00
sanderd17 0fc9a47c85 Fix garrison flags on Carthaginian structures + clean up the Carthaginian structure actors
This was SVN commit r18293.
2016-06-02 19:59:02 +00:00
sanderd17 b0b0495fc9 Fix garrison flags on Briton structures + clean up the Briton structure actors
This was SVN commit r18292.
2016-06-02 19:44:16 +00:00
sanderd17 d4fa905cb1 Fix garrison flags on Athenian structures + clean up the Athenian structure actors
This was SVN commit r18291.
2016-06-02 19:35:59 +00:00
mimo 5be948019b ai cleanup
This was SVN commit r18290.
2016-06-02 18:08:14 +00:00
elexis d9caf157e2 Fix a confirmation hotkey bug in the multiplayer dialog. Patch by Imarok, fixes #4031.
Remove a duplicate button and move code from XML to JS.

This was SVN commit r18289.
2016-06-02 16:47:24 +00:00
elexis 6df3b0d794 Wall placement cleanup. Somewhat based on patch by bb, refs #3811.
Early return instead of a big if-statement.
Inline r, targetX, targetZ, towerX and towerZ.
Rename s to spacing.
Remove unneeded else keywords.
Eliminate deprecated for-each.
Use let instead of var.
Quote object keys.
++i instead of i++.
Some newlines.

This was SVN commit r18288.
2016-06-02 12:52:54 +00:00
elexis 00c3b09008 Patch by Sandarac and bb, fixes #3859.
This was SVN commit r18287.
2016-06-02 12:14:32 +00:00
elexis f15abb066c Allow garrisoning elephants at the elephant stables. Patch by jonbaer.
Also add missing obstruction class to the elephant archer and fix its
walking speed.

This was SVN commit r18286.
2016-06-02 12:05:41 +00:00
elexis 74e672d879 Observermode cleanup, fixes #3850.
Recalculate status bars when changing the perspective.

This was SVN commit r18285.
2016-06-02 00:20:02 +00:00
elexis 00ea7763f7 GUIInterface / observermode cleanup as recommended by leper, fixes #3999.
Default to the viewed player in the GUIInterface to avoid passing that
separately in some places, refs #3168.
Thus GetEntityState will be called for the viewed player instead of
observer playerID, therefore
fixes a fog-of-war selection relict when changing the perspective, refs
#3850.
Also remove some unused player arguments.

This was SVN commit r18283.
2016-06-02 00:09:21 +00:00
elexis 662f8ec620 Template cleanup. Patch by fatherbushido, refs #4021.
Move duplicate military colony template to a new parent template.

This was SVN commit r18282.
2016-06-01 23:33:29 +00:00
sanderd17 4223fad060 Make it easier for mods to add their own credits. Fixes #3986
This was SVN commit r18281.
2016-06-01 19:37:24 +00:00
mimo ab4c656ff6 make healer more proactive, patch by causative, fixes #3932
decrease a bit the increase of heal range with techs, and also decrease
a bit the cost of such techs

This was SVN commit r18280.
2016-06-01 17:59:06 +00:00
sanderd17 ff886b1773 Try to fix issue with probably uninitialised animation frequency, improve error message and clean up code a bit
This was SVN commit r18278.
2016-06-01 07:21:50 +00:00
elexis 8a8c0b526d Template Cleanup. Some string fixes for 802d0f0de8 and d238128960 as suggested by leper.
This was SVN commit r18277.
2016-06-01 00:13:57 +00:00
elexis 8a4af2e7b5 Template cleanup. Patch by Palaxin, refs #4021.
Move duplicate library template to a new parent template.

This was SVN commit r18276.
2016-05-31 23:49:44 +00:00
elexis 1bd82494a3 Template cleanup. Patch by Palaxin, fixes #4022.
Move duplicate rotary mill template to a new parent template.

This was SVN commit r18275.
2016-05-31 23:12:07 +00:00
mimo 3eea0df931 ai cleanup
This was SVN commit r18274.
2016-05-31 21:06:53 +00:00
mimo 7060ca888c petra: continue splitting of attack function in smaller functions, + some cleanup
This was SVN commit r18273.
2016-05-31 21:04:13 +00:00
elexis 246c758085 All wonders should have rallypoints. Patch by Sandarac, fixes #4002.
This was SVN commit r18271.
2016-05-31 09:49:14 +00:00
elexis 2bcb5f7d18 Actually delete it, refs #4016.
This was SVN commit r18270.
2016-05-31 02:16:11 +00:00
elexis 8f02ae3fd2 Template cleanup. Patch by fatherbushido, fixes #4016.
Removes duplicate theatron templates and use a parent template instead.
Removes unused Theban theatron.
Fixes a buildtime inconsistency.
Also improve the tooltip string as suggested by leper.

This was SVN commit r18269.
2016-05-31 02:13:20 +00:00
elexis ac4533f7df Network cleanup, refs #3752.
Replace a TODO comment asking why something is set with a comment
answering that.

This was SVN commit r18268.
2016-05-30 17:59:02 +00:00
sanderd17 b18c4ac217 Code style improvements to df971c3885
This was SVN commit r18267.
2016-05-30 17:05:39 +00:00
sanderd17 83af69286d Allow simulation to set the actor variant selection, and use it for the garrison flag. Fixes #3952 Refs #2679, #3983
This was SVN commit r18266.
2016-05-30 14:07:48 +00:00
sanderd17 df971c3885 Allow to give a frequency to animations, and allow to sync randomly selected animations on base model and prop. Fixes #2324
This was SVN commit r18265.
2016-05-30 11:53:19 +00:00
mimo 92e28ba947 more petra cleanup
This was SVN commit r18263.
2016-05-29 18:37:02 +00:00
sanderd17 25e637dcac Fix issue with undefined newValue while origValue is defined.
This was SVN commit r18262.
2016-05-29 18:10:57 +00:00
elexis 1edacf6153 Add another missing hotkey to the ingame manual as mentioned by sanderd17.
This was SVN commit r18261.
2016-05-29 17:44:46 +00:00
sanderd17 a8c05c8df3 Revert ba071f8b4e as it is unsafe for serialization
This was SVN commit r18260.
2016-05-29 14:51:15 +00:00
sanderd17 1a8f5f3490 Move rallypoint waypoints smoothly with moving targets
This was SVN commit r18259.
2016-05-29 12:49:32 +00:00
mimo 3d6c48e357 ai cleanup, mainly var -> let
This was SVN commit r18258.
2016-05-29 12:26:41 +00:00
mimo f1610ce4fa petra: wip changes to make it less dumb against walls
and start splitting the huge attack function in small parts

This was SVN commit r18257.
2016-05-29 12:16:53 +00:00
sanderd17 ba071f8b4e Reduce number of rallypoint recalculations when a target has moved before, but doesn't move now.
This was SVN commit r18256.
2016-05-29 12:15:24 +00:00
elexis d238128960 Balance the wonder and improve unique building tooltips.
Increase the armor of buildings following 27c46a0a68.
Triple the research time for the population tech, as it is the most
powerful tech in the game.
Mention that unique building auras stack.
Fix a bad tooltip in pop_wonder.json.

This was SVN commit r18255.
2016-05-28 20:49:45 +00:00
sanderd17 50ba14d16d Restructure unit_actions.js. Fixes #4007
This was SVN commit r18254.
2016-05-28 14:46:20 +00:00
elexis 16bad4ee07 Properly handle the case of removed hotkeys in 6162c6388f, refs #3051.
This was SVN commit r18253.
2016-05-28 10:50:22 +00:00
elexis 6162c6388f Show hotkeys in the tooltips of six buttons.
This was SVN commit r18252.
2016-05-27 23:49:14 +00:00
elexis 39bf451d49 Use relative template for 0b2f0ea042.
This was SVN commit r18251.
2016-05-27 23:42:34 +00:00
mimo 1b598eaccf ai: remove some redundant get functions
This was SVN commit r18250.
2016-05-27 19:59:27 +00:00
elexis 0b2f0ea042 Balance hellenic champions.
Double the metal cost of elite spartan citizen soldiers, as they have
stats near those of champions.
Use a more reasonable cost for age 2 champions.
Differentiate the armored swordsmen from the other sword champions by
actually increasing it's armor.

This was SVN commit r18249.
2016-05-27 18:58:52 +00:00
elexis 802d0f0de8 Unique building aura balancing, refs #3930
Owning multiple libraries and theatrons increases the aura bonus
proportionally, so as to incentivize capturing.
Make the library aura more appealing by giving a 10% research time
bonus.
Improve a tooltip.

This was SVN commit r18248.
2016-05-27 17:13:31 +00:00
elexis 06b77c1522 Update manual with some new hotkeys.
This was SVN commit r18247.
2016-05-27 17:01:18 +00:00
elexis 5ad1079a5a Show the filepath in the command line output when taking screenshots.
This was SVN commit r18245.
2016-05-27 14:24:05 +00:00
elexis 038e45cba8 Rotate icon, refs #3805.
This was SVN commit r18244.
2016-05-27 13:22:10 +00:00
elexis 965e658463 Make ptolemian bolt shooter available. Patch by fatherbushido, fixes #4006.
Let ptolemians produce it in a captured siege workshop.
Remove bolt shooter technology from seleucids, as they don't have that
weapon.

This was SVN commit r18243.
2016-05-27 11:57:20 +00:00
sanderd17 f422b67eb0 Fix issue with hidden techs after researching it
This was SVN commit r18242.
2016-05-27 08:37:44 +00:00
elexis 67149137c8 Reduce the size of the "Team" label to not overlap the reset-civ button when using 1024x768. Patch by Sandarac, refs #3805.
This was SVN commit r18240.
2016-05-27 01:49:15 +00:00
elexis 78accf3d97 Add a button to the gamesetup to reset the selected civilizations of all players to random.
Code by Sandarac, icon by Lionkanzen, fixes #3805.

This was SVN commit r18239.
2016-05-26 22:58:30 +00:00
elexis 30e7b3bf25 Implement hotkey to delete units and buildings without confirmation dialog. Patch by Sandarac, fixes #3962.
This was SVN commit r18238.
2016-05-26 22:33:38 +00:00
sanderd17 dacecd0f33 Better syntax for e84e0611b0
This was SVN commit r18237.
2016-05-26 20:04:20 +00:00
sanderd17 e84e0611b0 Fix an issue 1b0fbee2d9. Selecting ents with and without production queue gave undefined tech cost multipliersOC.
This was SVN commit r18236.
2016-05-26 19:56:14 +00:00
sanderd17 4bf0dddace Add javelin to samnite skirmisher projectile attachpoint. Fixes #4005
This was SVN commit r18235.
2016-05-26 18:10:22 +00:00
mimo 0856dde011 fix a typo in 58e356babb, plus a missing semicolon
This was SVN commit r18234.
2016-05-26 17:58:08 +00:00
sanderd17 1b0fbee2d9 Let auras and techs modify tech cost. Patch by fatherbushido. Fixes #3930
This was SVN commit r18233.
2016-05-26 06:28:23 +00:00
mimo 9c67cd6743 transfer the entities angles to the AIs
This was SVN commit r18231.
2016-05-25 19:03:41 +00:00
mimo 07007f1963 some cleanup in ai
This was SVN commit r18230.
2016-05-25 18:43:48 +00:00
LordGood 3d27d47d54 Seleucid corral
This was SVN commit r18229.
2016-05-25 12:39:16 +00:00
Itms 09907351a0 Little update to the musicians list, plus alphabetic order for instrument players.
This was SVN commit r18228.
2016-05-24 19:17:07 +00:00
elexis d7e7a24168 Gamesetup cleanup (game/map-description), refs #3994.
Add linebreaks.
Eliminate unneeded variables mapName and gameDescription.
Remove a check as g_GameAttributes.map is always defined.
Sort the two one-line statements above the helper variable declarations
to make it more more obvious that the statements don't use them.

This was SVN commit r18227.
2016-05-24 12:56:52 +00:00
elexis b2f3402c50 Network cleanup.
Remove unused netmessage type NMT_LAST.
Use CStr instead of the alias CStr8.
Remove unneeded comments.

This was SVN commit r18226.
2016-05-24 12:21:21 +00:00
elexis a99f314a61 Session cleanup.
Use let instead of var.

This was SVN commit r18225.
2016-05-24 12:06:22 +00:00
elexis 6e17a7d2ff Session / unit-actions cleanup.
Eliminate deprecated for-each.
Merge if-conditions.
Add linebreaks to objects, so that each property is declared on a
separate line, refs #252.
For consistency, use returns in negative instead of positive cases.
Make three functions global, one of which had been defined thrice.
Remove comments stating the same as the code.

This was SVN commit r18224.
2016-05-24 12:03:33 +00:00
elexis 9cc98aaf47 Take new observermode into account in some missing places, refs #3850, #3168.
This was SVN commit r18223.
2016-05-23 15:26:47 +00:00
sanderd17 33f6713f94 New attempt to get the aura translations included. See 1606d40f68
This was SVN commit r18221.
2016-05-23 10:40:26 +00:00
mimo 6171f66d06 AI: fix serialization of template changes, fixes #3993, refs #3858
This was SVN commit r18219.
2016-05-22 20:25:41 +00:00
sanderd17 a951762d6c Add support to the structure tree for units with technologies in their production queue. Patch by s0600204. Fixes #4001
This was SVN commit r18218.
2016-05-22 15:32:47 +00:00
elexis 38de20c989 Add missing init, refs #3991.
This was SVN commit r18217.
2016-05-21 20:24:38 +00:00
mimo 9c9796d8ad Changes in AI: Decrease a bit the required number of champions in attacks because of the recent increase of their cost,
Make more use of corrals when no fields and Cleanups

This was SVN commit r18216.
2016-05-21 17:06:25 +00:00
mimo 682086b7fb do not let the captureStrength become infinite when capturing a damaged structure, fix #3973, patch by fatherbushido
This was SVN commit r18215.
2016-05-21 16:44:20 +00:00
elexis 4b5f8dfca6 Remove trailing whitespace and simplify some length checks. Refs #252.
This was SVN commit r18214.
2016-05-21 16:20:27 +00:00
sanderd17 a2bd82d171 Complete phase tooltips. Patch by fatherbushido. Fixes #3451
This was SVN commit r18213.
2016-05-21 11:18:06 +00:00
sanderd17 1606d40f68 I18n of auras. Based on patch by fatherbushido. Fixes #3982
This was SVN commit r18212.
2016-05-21 09:18:05 +00:00
FeXoR ff342619c7 Fixes a bug in random map schwarzwald.js introduced in 7471a0db63 that prevented the starting positions to be flattened.
This was SVN commit r18211.
2016-05-20 20:36:10 +00:00
sanderd17 a84b923380 Fix timing of previous patch
This was SVN commit r18210.
2016-05-20 14:05:19 +00:00
sanderd17 804fd4be61 Update 'survival of the fittest' to work with capturing (include siege engines in the attacking units) + add some randomness to the waves + make the timing a bit more challenging
This was SVN commit r18209.
2016-05-20 14:02:47 +00:00
elexis 7cd43ba8cf Fix whitespace and remove duplicate comment, refs #1950.
This was SVN commit r18208.
2016-05-20 12:51:27 +00:00
sanderd17 9368ffe345 Fix tech modifications calculations so we don't bump into stupid mistakes again (f.e. multiplying two positive numbers is now guaranteed to stay positive). See 7f300bbf3d and 0b8845eb4f
This was SVN commit r18207.
2016-05-20 11:20:51 +00:00
elexis ec1696ded3 Send a network message to update the GUI if another player pauses a multiplayer game. Patch by echotangoecho, fixes #1950.
Pause animations then and on disconnect.
Don't unpause unintentionally when closing a message box in
singleplayer.

This was SVN commit r18204.
2016-05-19 22:10:38 +00:00
elexis 856dc1c999 Network cleanup.
Send the "client has rejoined" message after the synchronization
finished instead of right after the loading screen.
Patch by echotangoecho, refs #1949, #1950.

This was SVN commit r18203.
2016-05-19 21:03:46 +00:00
elexis 6f744aef88 Simulation context cleanup, refs #3991, #3168.
Save the viewed player in the CGame class.
Add the const keyword back to the SimContext to help find mistakes at
compiletime.

This was SVN commit r18201.
2016-05-19 19:42:07 +00:00
elexis 1b3a12ea92 Also update this file following 1c5a7f6267.
This was SVN commit r18200.
2016-05-19 17:51:56 +00:00
sanderd17 09ceb841f3 Add some useful warnings on missing or abnormal template/technology data.
This was SVN commit r18199.
2016-05-19 15:12:28 +00:00
FeXoR 1c5a7f6267 Moved BUILDING_ANGlE from the maps to BUILDING_ORIENTATION in a random map lib. Made some arguments optional with the default set to that constant, renamed some arguments and moved "orientation" in placeCivDefaultEntities to kwargs. Removed unneeded comments. Fixes #3988
This was SVN commit r18198.
2016-05-19 14:48:21 +00:00
elexis 4921056b9e Revert de06dc76f7 as it's broken in several ways and revealed a simulation bug. Refs #3288.
This was SVN commit r18197.
2016-05-19 09:33:17 +00:00
mimo b57a103e81 petra cleanup, mainly unneeded parentheses
This was SVN commit r18196.
2016-05-17 19:35:33 +00:00
mimo 329caed9dd petra: be more inclined to help an ally attacked by several enemies
This was SVN commit r18195.
2016-05-17 19:31:03 +00:00
elexis de06dc76f7 Show researchable techs of all selected entities, not only the first one. Fixes #3288.
This was SVN commit r18194.
2016-05-17 19:05:18 +00:00
elexis 01d41cc8a5 Actually update the sound gain after changing the setting. Patch by dpiquet, fixes #3901.
This was SVN commit r18193.
2016-05-17 16:40:36 +00:00
elexis 67cdbedb24 Fix an option comment.
This was SVN commit r18192.
2016-05-17 16:35:48 +00:00
elexis b49414b03e Gamesetup cleanup.
Use JSdoc comments and use rgbToGuiColor as pointed out by sanderd17.

This was SVN commit r18191.
2016-05-17 16:05:36 +00:00
sanderd17 0501ff9f59 Fix Seleucus aura
This was SVN commit r18190.
2016-05-17 11:44:29 +00:00
elexis 23a43cb0f6 Allow more choices for the wonder timeout, refs #3234.
This was SVN commit r18189.
2016-05-16 18:32:24 +00:00
elexis 2de117618b Fix typo in 46ead523b8. Patch by fatherbushido, refs #3792.
This was SVN commit r18188.
2016-05-16 13:57:45 +00:00
elexis c34998b85a Show the playerselection dropdown in front of the "Follow player" observer option in case they overlap.
This was SVN commit r18187.
2016-05-16 13:18:26 +00:00
mimo 0b6c7ca1b0 ai: remove some unneeded parentheses
This was SVN commit r18186.
2016-05-16 10:48:52 +00:00
mimo 7ddfc89c18 petra: fix buildLimit when it is 0, reported by fatherbushido
This was SVN commit r18185.
2016-05-16 10:23:35 +00:00
elexis f4e69b7c07 Cleanup of #3255, fixes #3966.
Don't create an empty oos_logs directory when starting the game.
Rename getDateIndexSubdirectory to createDateIndexSubdirectory.
Add a comment for the breakpoint argument of CreateDirectories.

This was SVN commit r18183.
2016-05-16 00:56:07 +00:00
elexis 24b262e4d1 Remove the trigger keyword from these maps as they either use the Tutorial AI for scripting or use a script only to place entities on load, refs #3013.
This was SVN commit r18182.
2016-05-16 00:21:44 +00:00
elexis 9eccf5cd07 Use an actual playername instead of "You" in singleplayer, fixes #3979.
Differentiate between SP and MP name and allow editing it in the
settings.
Defaults to the OS username.
Makes sharing singleplayer replays more effective.
Also fixes a troublesome colorization of "You" in a translated sentence,
refs #3501.

This was SVN commit r18180.
2016-05-15 17:13:35 +00:00
elexis 6680fe82e2 Add maplist filter for maps that come with triggerscripts. Patch by fabio and Stan, refs #3013.
This was SVN commit r18179.
2016-05-15 04:19:45 +00:00
elexis 4944d9b83c GUI / messagebox cleanup.
Remove pointless "mode" argument from messageBox and add newlines to its
calls.
Remove unused variable codes, trailing whitespace and useless comments.
Remove redundant button init code by using a loop (forEach to avoid a
closure).
Inline many unneeded variables.
Add missing translate to gamesetup_mp.js.
Quote object keys and capitalize globals correctly.

This was SVN commit r18178.
2016-05-15 04:04:31 +00:00
elexis b562db2f27 Update the loading screen tooltips following 60a2af2988.
This was SVN commit r18177.
2016-05-15 01:14:33 +00:00
elexis f64f1c4ade Show a hint when failed to connect to a game stating that it is likely caused by the host not forwarding the UDP port. Patch by Stan, fixes #3570.
This was SVN commit r18176.
2016-05-15 00:37:58 +00:00
sanderd17 5a5f05f8d9 Remove gather penalty from some more units (the penalty is added as tech). Units discovered by fatherbushido.
This was SVN commit r18175.
2016-05-14 20:17:04 +00:00
mimo 6dbdaf1160 fix 58e356babb
This was SVN commit r18174.
2016-05-14 18:25:35 +00:00
elexis dd26d683c6 Summary screen cleanup.
Few simplifications, newlines for sprintf calls.

This was SVN commit r18173.
2016-05-14 13:10:50 +00:00
mimo 58e356babb allow trade with mirage markets, fixes #3894
This was SVN commit r18172.
2016-05-14 12:27:48 +00:00
elexis 866d04a22b Fix typo.
This was SVN commit r18171.
2016-05-14 12:15:41 +00:00
mimo ac525fcd2a some cleanup in petra
This was SVN commit r18170.
2016-05-14 12:14:12 +00:00
elexis f5cfda84b8 Gamesetup cleanup. Patch by Imarok, fixes #3980.
Rename GUI objects to numPlayers, mapFilter and mapType for consistency.
Thus use loops to remove code duplication for hiding controls.

This was SVN commit r18169.
2016-05-14 12:07:41 +00:00
mimo 721c47a9e8 remove the hardcoded gain in petra, fixes #3943, patch by LittleDev
This was SVN commit r18168.
2016-05-14 12:04:44 +00:00
mimo 0b8845eb4f fix 7f300bbf3d
This was SVN commit r18167.
2016-05-13 20:14:02 +00:00
sanderd17 7f300bbf3d Fix issue with elite units not being able to gather anything
This was SVN commit r18165.
2016-05-12 19:04:24 +00:00
mimo 148f485172 remove some unused var
This was SVN commit r18164.
2016-05-12 17:42:27 +00:00
mimo a4cb84c8e0 ai cleanup, mainly trailing spaces
This was SVN commit r18163.
2016-05-12 17:38:58 +00:00
elexis 7eea4bd81a GUI cleanup.
A commit against colored spaces.
Use helper function to shorten code while keeping the space apparent.
Inline username variable.
Rename playerIndex to playerID.

This was SVN commit r18162.
2016-05-12 16:08:26 +00:00
elexis 7c2ff117f3 Distinguish resign- and defeat-chatmessage. Patch by dpiquet, fixes #3501.
For consistency, also colorize the "You" part in the singleplayer
variants.

This was SVN commit r18161.
2016-05-12 14:02:05 +00:00
elexis 366085e037 Savegame cleanup.
Simplify the error message for savegames with different mods enabled.
Remove deprecated for-each with map and for-of.
Simplify code that used conditional operator by replacing it with
logical operators.
Add linebreaks.
Quote object keys.
Early return.
Prefix global with g_.
Remove unneeded sprintf in error messages.
Capitalize comments.

This was SVN commit r18160.
2016-05-12 12:14:22 +00:00
elexis 518ad5380d Replay menu cleanup
Add the version number to the incompatibility message.
Add missing translate for the comma-separation.

This was SVN commit r18159.
2016-05-12 11:48:08 +00:00
elexis 0e5815b78f Remove trailing whitespace.
This was SVN commit r18158.
2016-05-12 11:27:21 +00:00
elexis 8b14bfe78b Balance garrisoned regeneration rate as proposed by mimo and scythetwirler.
Reduce rate in village phase from 10 to 5.
Increase town phase addition from 2 to 7 and city phase addition from
1.5 to 9.

This was SVN commit r18157.
2016-05-11 22:32:33 +00:00
sanderd17 b0000da90e Fix small issue discovered by fatherbushido
This was SVN commit r18156.
2016-05-11 09:35:52 +00:00
elexis 9414674cfc Train naked fanatics in town phase to promote rushing, completes b5bf0c7e86.
This was SVN commit r18155.
2016-05-11 00:42:56 +00:00
elexis f5dccae966 Display the carried resources when selecting a group of units. Patch by Imarok, fixes #3113.
Shows the information for all selected units and for all units of a
given type.
Rename g_CostDisplayNames to g_CostDisplayIcons.

This was SVN commit r18154.
2016-05-11 00:07:38 +00:00
fabio 2a830fdb6a Support building with mozjs 31.5 used in Ubuntu PPA.
Fixes #3039.

This was SVN commit r18153.
2016-05-10 09:02:58 +00:00
elexis 2b0fa71d23 Session cleanup.
Use colorizePlayernameByID instead of replica.

This was SVN commit r18152.
2016-05-10 03:14:51 +00:00
elexis 71c441b092 GUI cleanup.
Remove a wrong translation comment.
Nuke duplicate calls.

This was SVN commit r18151.
2016-05-10 02:35:12 +00:00
LordGood 6ba0d86ab6 Seleucid market commit
This was SVN commit r18150.
2016-05-09 22:45:50 +00:00
elexis 7d4fb0d4d9 Limit population cost to at most 3, as suggested by scythetwirler.
This was SVN commit r18149.
2016-05-09 20:02:32 +00:00
elexis 18e9c4e558 Session cleanup.
Remove a pointless conditional operator (which had been introduced with
the other format-message functions that distinguish more strings).
Remove unneeded parenthesis and try once more to align this if-statement
properly.

This was SVN commit r18147.
2016-05-09 01:00:34 +00:00
mimo b45e3e46f7 add non-blocking obstruction to mirages, fixes #3957, refs #2951
This was SVN commit r18145.
2016-05-08 17:26:43 +00:00
elexis 883d1aaf48 Fix Windows build. Those includes in 1a3fb29ff3 didn't resolve properly on Windows, refs #3953.
This was SVN commit r18143.
2016-05-08 16:25:00 +00:00
FeXoR cf7a71965b Removing function euclid_distance as duplication of getDistance. Fixes #3968
This was SVN commit r18142.
2016-05-08 15:15:43 +00:00
FeXoR 7471a0db63 Separate global heightmap manipulation functions to a library. Fixes #3764
This was SVN commit r18141.
2016-05-08 14:58:57 +00:00
elexis 1a3fb29ff3 Network cleanup, fixes #3953.
Don't compare for "127.0.0.1" to identify the host, but check for a new
boolean flag that is set by the client, refs #2854.
Remove an unneeded IP address conversion from u32 to string, refs #3241.

This was SVN commit r18140.
2016-05-08 11:46:19 +00:00
sanderd17 cc3d7d58ea Improve findIdleUnit and hasIdleUnit code. Patch by Clockwork-Muse. Fixes #3826
This was SVN commit r18139.
2016-05-08 09:32:16 +00:00
sanderd17 09fd6da38e Update credits
This was SVN commit r18136.
2016-05-06 07:26:51 +00:00
mimo cd4957144c remove hardcoded inconsistencies in some templates, fixes #3954, patch by fatherbushido
This was SVN commit r18134.
2016-05-05 12:12:42 +00:00
sanderd17 503cc428b4 Add team option to autostart. Patch by Jonbaer
This was SVN commit r18133.
2016-05-04 06:51:34 +00:00
mimo dfad4ec7d7 fix petra typo reported by falsevision, fixes #3955
This was SVN commit r18132.
2016-05-03 18:49:33 +00:00
sanderd17 051ba38f36 Reduce gather speed for elite units, as in their original template.
This was SVN commit r18131.
2016-05-03 17:40:21 +00:00
sanderd17 77224548bf Use references instead of copies
This was SVN commit r18130.
2016-05-02 19:03:19 +00:00
sanderd17 eaed715a13 Fix typo in aura tooltip
This was SVN commit r18129.
2016-05-02 18:02:24 +00:00
sanderd17 a2c3a8a8db Fix typo in AuraManager
This was SVN commit r18128.
2016-05-02 17:32:04 +00:00
elexis c1b5e8c8b7 Gamesetup cleanup. Ensure the existance of the AI property after selecting a map or loading the persistmatchsettings.
This was SVN commit r18127.
2016-05-02 17:08:22 +00:00
elexis 36d8e0bf5b Remove unused function.
This was SVN commit r18126.
2016-05-02 16:53:38 +00:00
sanderd17 58569aa573 Fix some auras. Patch by fatherbushido. Fixes #3947
This was SVN commit r18125.
2016-05-02 16:26:27 +00:00
elexis 2378ecd35c Swap the civilizations when swapping players in the gamesetup. Based on patch by Vladislav, fixes #3804.
This was SVN commit r18124.
2016-05-02 13:42:37 +00:00
sanderd17 c3488df240 Clean up AuraManager objects while the game is running. Refs #3834
This was SVN commit r18123.
2016-05-02 10:31:32 +00:00
sanderd17 4ea49f374a Disable serialization of the AI when no AI players are present. Disable serialization of cached AI templates overall. Improve serialization of repetitive vectors and templatenames. Refs #3834
This was SVN commit r18121.
2016-05-02 09:26:07 +00:00
Enrique 19ccdb8cf5 Updated Gaul Tavern. Thanks for Stan for the model and actors and wackyserious for the texture fix
This was SVN commit r18119.
2016-05-01 21:10:32 +00:00
mimo bc19818e86 some petra cleaning
This was SVN commit r18118.
2016-05-01 15:03:23 +00:00
elexis 462540585b Network cleanup.
Only send the network-warnings to clients that successfully joined the
gamesetup or game.
Thus save a bit performance and
prevents a rare, harmless FSM update error (like in refs #3199) in case
a client received the message while authenticating.
Reported by fatherbushido, refs #3264.

This was SVN commit r18117.
2016-05-01 10:33:51 +00:00
sanderd17 3bb1058950 Allow more structures in the structure tree. Patch by s0600204. Fixes #3938
This was SVN commit r18116.
2016-05-01 08:42:27 +00:00
sanderd17 32d8c60239 Implement team bonuses. Patch by fatherbushido. Fixes #2445
This was SVN commit r18115.
2016-05-01 08:38:59 +00:00
LordGood 4471e0bf18 Colonnade for Seleucid city building
This was SVN commit r18114.
2016-05-01 04:35:24 +00:00
FeXoR d8ed6d828a Separate some random map libraries into a new directory. Fixes #3900
This was SVN commit r18113.
2016-04-30 14:42:10 +00:00
elexis 983ef2ed2c Add translation context to the "Unknown" strings, allowing to chose a different translation for every occurance.
This was SVN commit r18112.
2016-04-30 14:01:07 +00:00
elexis 7ab5f8daf6 Allow filtering the replaylist by single/multiplayer, victorycondition and rated games. Patch by Imarok, fixes #3436.
This was SVN commit r18111.
2016-04-30 13:24:28 +00:00
elexis 4cfd0d64fb Only show the AI-difficulty button if there is an AI assigned to that playerslot. Patch by Imarok, fixes #3942.
This was SVN commit r18110.
2016-04-30 12:14:08 +00:00
mimo d420717eba add some missing semicolon from b88f63b699
This was SVN commit r18109.
2016-04-29 19:56:58 +00:00
mimo b88f63b699 Move the const from simulation/helpers/TraderGain.js into the templates (InternationalBonus and GainMultiplier)
Add a tech to improve the internalBonus and give an improved bonus to
cart
Patch from fatherbushido, fixes #3917

This was SVN commit r18108.
2016-04-29 18:52:44 +00:00
mimo b780073e24 petra cleanup
This was SVN commit r18105.
2016-04-28 17:14:07 +00:00
elexis c76b2a6c92 Session cleanup.
Remove an occurance of a hardcoded playerlimit.

This was SVN commit r18104.
2016-04-28 16:39:09 +00:00
elexis 3e177c7f84 Hide the link to the replay in the summary screen if the client rejoined, since the replay doesn't work in that case.
Patch by Imarok, refs #3437.

This was SVN commit r18103.
2016-04-28 09:10:16 +00:00
sanderd17 ef3794f90a Fix serialisationtest by serializing the territory trigger event, and sending the message only once.
This was SVN commit r18102.
2016-04-27 18:37:27 +00:00
sanderd17 f24523dc8f Rename TechnologyTemplateManager to DataTemplateManager in order to reflect its new function. Fixes #3909. Disable serialisation of technology templates. Refs #3834
This was SVN commit r18100.
2016-04-27 08:25:47 +00:00
LordGood f7a618d233 Seleucid barracks edit
Seleucid wonder commit

This was SVN commit r18098.
2016-04-27 04:43:47 +00:00
mimo 7c6e2019e6 Petra: Prevent the AI to endlessly try building structures that none of its units can build,
This fixes the problem of romans not building defense towers

This was SVN commit r18097.
2016-04-26 19:14:13 +00:00
mimo fd4d5cce64 petra: recomputes territory only when receiving some events, refs #3858
This was SVN commit r18096.
2016-04-26 18:26:18 +00:00
mimo 76a076e776 fix petra typos reported by falseVision, fixes #3926
This was SVN commit r18095.
2016-04-26 18:15:57 +00:00
sanderd17 d49f31cdcd Display health bar for garrisoned units. Patch by Imarok. Fixes #3114
This was SVN commit r18094.
2016-04-25 07:24:05 +00:00
Itms d70062c348 Cleanup of the network code (range-based for, remove spaces between angle brackets, and other little things).
Based on a patch by elexis, fixes #3907

This was SVN commit r18091.
2016-04-24 20:48:53 +00:00
Itms c856bc296d Slight improvement to the short range pathfinder. Patch by fsincos, refs #3925
This was SVN commit r18090.
2016-04-24 14:35:31 +00:00
sanderd17 6137fea5ed Make order of persian buildings concistent in the panels. Patch by bb
This was SVN commit r18089.
2016-04-23 21:17:13 +00:00
Itms 644b3e6fa1 Improve the UI icon for the patrol button, refs #1720.
This was SVN commit r18088.
2016-04-23 10:48:14 +00:00
Enrique 2f1c08de64 Greek rooftiles texture update
This was SVN commit r18087.
2016-04-23 09:04:22 +00:00
elexis 72421f97d8 Fix a typo (compability -> compatibility).
This was SVN commit r18086.
2016-04-22 22:32:20 +00:00
elexis fca844eef6 Restore the previously selected item and filters when returning to the replay menu. Patch by Imarok, fixes #3742.
Also few cleanups and translate the mapnames in the correct place.

This was SVN commit r18085.
2016-04-22 22:25:50 +00:00
Enrique f0263086c4 Roman textures transparency fix
This was SVN commit r18084.
2016-04-22 16:47:56 +00:00
sanderd17 11d150ce59 Move animations for female citizens to separate variant files.
This was SVN commit r18083.
2016-04-22 12:51:09 +00:00
Enrique f9a7494d3f Roman rooftile update
This was SVN commit r18082.
2016-04-22 11:01:50 +00:00
sanderd17 7130e50d7f Improve the length of the new wall models a bit (still doesn't fit perfectly)
This was SVN commit r18081.
2016-04-22 07:34:49 +00:00
LordGood c226517f2f Seleucid walls, finally
Placeholder normalmaps and specmaps added too

This was SVN commit r18079.
2016-04-22 06:10:01 +00:00
elexis b120404141 Reveal AI settings in the gamesetup to all players. Based on patch by Imarok, fixes #3911.
This was SVN commit r18078.
2016-04-21 20:07:39 +00:00
sanderd17 c2e42f0e55 Add capture animation to champion infantry of different civs
This was SVN commit r18077.
2016-04-21 09:05:13 +00:00
elexis fa703a2613 Revert a copy&paste mistake in 46ead523b8 when auras were converted from XML to JSON. Patch by fatherbushido, refs #3792.
This was SVN commit r18076.
2016-04-20 22:39:31 +00:00
elexis b2fdfeba53 New gamesetup option enabling the host to vary the time required to win the wonder-gamemode. Patch by svott, fixes #3234.
This was SVN commit r18075.
2016-04-20 21:01:58 +00:00
sanderd17 46443f92c9 Define animations for Spartan infantry in separate variant files.
This was SVN commit r18074.
2016-04-20 10:55:02 +00:00
sanderd17 d305371782 Define animations for Seleucid infantry in separate variant files.
This was SVN commit r18073.
2016-04-20 10:47:24 +00:00
sanderd17 2b3aa81c0e Define animations for Ptolemy infantry in separate variant files.
This was SVN commit r18072.
2016-04-20 09:58:34 +00:00
sanderd17 9ee2f75390 Define animations for Roman infantry in separate variant files.
This was SVN commit r18071.
2016-04-20 09:49:54 +00:00
sanderd17 a40857556a Define animations for Persian infantry in separate variant files.
This was SVN commit r18070.
2016-04-20 08:51:11 +00:00
sanderd17 532d495e6d Define animations for Mauryan infantry in separate variant files.
This was SVN commit r18069.
2016-04-20 08:33:59 +00:00
sanderd17 a032d5c8b5 Define animations for Macedonian infantry in separate variant files.
This was SVN commit r18068.
2016-04-20 08:03:13 +00:00
sanderd17 70feece690 Define animations for Iberian infantry in separate variant files.
This was SVN commit r18067.
2016-04-20 07:07:05 +00:00
sanderd17 5602454fe2 Correctly support different javelin types for different javelinists
This was SVN commit r18066.
2016-04-20 06:51:50 +00:00
sanderd17 bdabc459b0 Define animations for Hellenistic infantry in separate variant files.
This was SVN commit r18065.
2016-04-20 06:21:07 +00:00
sanderd17 481f90d107 Define animations for Celtic infantry in separate variant files.
This was SVN commit r18064.
2016-04-19 19:09:05 +00:00
sanderd17 8311472a5c Change include into forward declaration
This was SVN commit r18063.
2016-04-19 17:48:06 +00:00
sanderd17 2dea3f2ec4 Remove two more build limit tooltips. Patch by fatherbushido
This was SVN commit r18062.
2016-04-19 16:22:48 +00:00
sanderd17 61fcf29a9e Define animations for Carthagian infantry in separate variant files.
This was SVN commit r18061.
2016-04-19 16:15:01 +00:00
elexis 04794599ed GUI cleanup.
Use logical AND instead of the conditional operator.

This was SVN commit r18060.
2016-04-19 15:41:14 +00:00
sanderd17 82ad4998cc Move attack animations definitions for the Athenian civ to variation files too.
This was SVN commit r18059.
2016-04-19 12:59:27 +00:00
sanderd17 4b4de5204b Head and helmet of the Athenian hoplite must always appear together.
This was SVN commit r18058.
2016-04-19 12:25:48 +00:00
sanderd17 421a65ef41 Define civil tasks for infantry in separate variant files, and update the Athenian infantry to use it.
This was SVN commit r18057.
2016-04-19 10:10:49 +00:00
sanderd17 e81fdc3f4d Not sure how I managed to commit the wrong contents in the variant file ...
This was SVN commit r18056.
2016-04-19 08:30:25 +00:00
sanderd17 1e6c12de7b Allow variants to be defined in external files. Fixes #3286
This was SVN commit r18054.
2016-04-19 07:51:59 +00:00
Enrique 5d8e5edbfb Improved farms from LordGood.
This was SVN commit r18053.
2016-04-18 22:46:46 +00:00
sanderd17 eb09c58b00 Remove build limit from tooltips (the limit text is generated automatically).
This was SVN commit r18051.
2016-04-18 13:09:00 +00:00
sanderd17 a60abaa1c8 Disable building most structures in unconnected territory. Fixes #3526
This was SVN commit r18049.
2016-04-18 07:00:22 +00:00
sanderd17 6dd8d77d32 The dialogs aren't unused, but used for triggers (currently at least the demo map)
This was SVN commit r18048.
2016-04-18 06:54:04 +00:00
Itms de0500e274 Fix the shared dropsites unit action icon. Refs #3791
This was SVN commit r18047.
2016-04-17 21:00:51 +00:00
scythetwirler 07b368f064 Thanks, IDE, for proper indentation detection...
This was SVN commit r18046.
2016-04-17 20:29:02 +00:00
scythetwirler 27c46a0a68 Increases hack armour on buildings, since we have capturing now. Increase garrison regeneration rate for structures.
This was SVN commit r18045.
2016-04-17 20:18:13 +00:00
sanderd17 c25dc39b86 Distribute XP per hit. Fixes #3889
This was SVN commit r18044.
2016-04-17 17:52:22 +00:00
scythetwirler c9eb2fd05c Adds a build limit to Persian Halls.
This was SVN commit r18043.
2016-04-17 17:46:57 +00:00
mimo ba56678bb3 Add market component to foundations. This is needed since 8f4dffe3f0 to be able to set
a market rallyPoint on a market foundation. refs #2951"

This was SVN commit r18042.
2016-04-17 16:14:19 +00:00
sanderd17 df3c3c35b2 Cleanup cinema code. Fix some issues with resetting of times. Patch by Vladislav. Refs #3814
This was SVN commit r18041.
2016-04-17 15:43:29 +00:00
mimo 9c6e9f70b5 ai: fix typo from 317e2b259d
This was SVN commit r18039.
2016-04-16 17:52:50 +00:00
mimo 259af9effc adapt the ai to recent changes in phase tech requirements
This was SVN commit r18038.
2016-04-16 13:15:41 +00:00
scythetwirler d38adc7cd0 Makes siege less useless.
This was SVN commit r18037.
2016-04-15 17:37:38 +00:00
elexis f905ee2c7e Don't use the ternary operator as some people find that unreadable.
This was SVN commit r18035.
2016-04-15 06:11:38 +00:00
sanderd17 15e44a89ff Fix structree with new 'notciv' tech requirement
This was SVN commit r18034.
2016-04-14 18:23:32 +00:00
sanderd17 3ddfa1695e Fix tests
This was SVN commit r18033.
2016-04-14 17:25:22 +00:00
sanderd17 ec3fb36602 Fix build for gcc 4.6. Patch by Vladislav
This was SVN commit r18032.
2016-04-14 16:36:12 +00:00
elexis a57bfc829e Add a button to the summary screen to replay the game that was just played (or replayed). Patch by Imarok, fixes #3437.
This was SVN commit r18031.
2016-04-14 14:45:03 +00:00
sanderd17 f4bfe7c3ad Disallow certain civs to use certain techs (which could have become available after capturing a building of a different civ). Patch by fatherbushido. Fixes #3902
This was SVN commit r18030.
2016-04-14 11:33:48 +00:00
mimo 317e2b259d AI: changes in the tech requirements (following what is done in the simulation) + some cleanup
This was SVN commit r18029.
2016-04-13 20:12:21 +00:00
mimo 8f4dffe3f0 add a new market component, fixes #3277
This was SVN commit r18028.
2016-04-13 19:56:18 +00:00
sanderd17 a69da3401f Completely hide techs that aren't researchable by the civ of the owner + cleanup of requirements checking. Patch by fatherbushido. Fixes #3899
This was SVN commit r18027.
2016-04-13 09:15:16 +00:00
Itms 4e4f0dbbd8 Fixes the handling of teams in the summary screen, along with some cleanup. Patch by Imarok, fixes #3150, #3561.
This was SVN commit r18026.
2016-04-12 19:34:41 +00:00
scythetwirler b5bf0c7e86 Nerfs champions and slows champion production speed.
This was SVN commit r18025.
2016-04-12 18:51:14 +00:00
scythetwirler 60a2af2988 Adds some more civ-specific structures and formerly atlas-only structures. Adds loyalty regen and epic healing auras..
This was SVN commit r18024.
2016-04-12 18:38:23 +00:00
mimo e23daa11ec AI: add a isMutualAlly function for #3526 and update the AI for e0cfcbd806
This was SVN commit r18023.
2016-04-12 17:37:04 +00:00
FeXoR 8aa5b1fa9e Center lake in random map schwarzwald
This was SVN commit r18022.
2016-04-12 12:03:48 +00:00
sanderd17 e0cfcbd806 Enable technologies on captured buildings. Allow a negation on the civ selection in the technology json files. Patch by fatherbushido
This was SVN commit r18021.
2016-04-11 19:40:53 +00:00
mimo 8c870f8633 petra: remove a leftover test
This was SVN commit r18020.
2016-04-11 17:20:45 +00:00
elexis f83505986e Tune the size and angle of the valley generation of the Lion's Den map for smaller maps. Patch by _kali, fixes #3844.
This was SVN commit r18019.
2016-04-11 10:43:56 +00:00
elexis 649cc82ff1 Only send a gamereport to the lobbybot for 1v1s (as only those are rated), fixes #3040.
This was SVN commit r18018.
2016-04-11 09:54:06 +00:00
Itms 5ac76ecf89 Some style fixes reported by leper.
This was SVN commit r18016.
2016-04-10 16:57:12 +00:00
mimo b5ff5a6969 make the force explicit such that the previous order is recorded in the workOrders
This was SVN commit r18015.
2016-04-10 16:41:00 +00:00
sanderd17 3183a4ea4a Improve selection rings for animals. Patch by Palaxin. Fixes #3786
This was SVN commit r18014.
2016-04-10 08:31:11 +00:00
sanderd17 f8e986d057 Fix territory not being updated when diplomacy changes. Fixes #3891
This was SVN commit r18012.
2016-04-09 19:57:34 +00:00
Itms 8c436a8a41 Slight improvement of the flood filling algorithm in the hierarchical pathfinder.
Remove some useless check and a useless reverse loop, and add a flag to
prevent redundant checks.

Patch by fsincos, refs #3588

This was SVN commit r18011.
2016-04-09 19:47:09 +00:00
sanderd17 cc35f221c8 Add auras back to structure tree. Patch by bb. Fixes #3887
This was SVN commit r18010.
2016-04-09 16:00:42 +00:00
sanderd17 9f21806ef7 Properly round health and CP values. Patch by bb. Fixes #3855
This was SVN commit r18009.
2016-04-09 07:35:20 +00:00
mimo e93c1e6bca add diversity to corral production, fixes #3877
This was SVN commit r18008.
2016-04-08 20:51:24 +00:00
mimo 2392f6fe8e lock/unlock simultaneously multiple dropsites when selected
This was SVN commit r18007.
2016-04-08 20:48:10 +00:00
mimo 90cb6ff6b6 petra: improve the sharing between support units and citizen soldiers
This was SVN commit r18006.
2016-04-08 18:31:09 +00:00
Itms 378c8bdf26 Remove references to a possibly undefined variable and improve some error messages.
This was SVN commit r18005.
2016-04-08 18:23:17 +00:00
mimo fd8c181f9d dropsites are now shared by default, but still can be locked
This was SVN commit r18004.
2016-04-08 18:05:45 +00:00
sanderd17 a4f10d53f2 Fix indentation due to pastebin patch losing a newline
This was SVN commit r18003.
2016-04-08 14:43:06 +00:00
sanderd17 59c6fd44a0 Remove stamina completely. Patch by fatherbushido
This was SVN commit r18002.
2016-04-08 14:36:18 +00:00
sanderd17 22bbe450e4 Move some methods out of the headers. Patch by Vladislav. Refs #3814
This was SVN commit r18000.
2016-04-07 17:47:30 +00:00
sanderd17 524d35ffdc Stop defense tower techs from affecting wall tower stats
This was SVN commit r17999.
2016-04-07 16:57:00 +00:00
mimo 017d5cc7de petra: fix serialization on f057eb5aba and fix placement of rotary mills
This was SVN commit r17998.
2016-04-07 16:55:08 +00:00
sanderd17 dd7ee8f53f Rename StrictAlly to ExclusiveAlly, since that term was already used in the AI code.
This was SVN commit r17997.
2016-04-07 16:51:25 +00:00
elexis 3c40131c61 Player component cleanup.
Remove unneeded parenthesis.
Restore indentation.

This was SVN commit r17996.
2016-04-07 10:57:11 +00:00
sanderd17 f7099d364c Fix typo
This was SVN commit r17995.
2016-04-07 08:23:06 +00:00
sanderd17 ffe2c7bbb4 Add methods to check for strickt alliance. Patch by fatherbushido
This was SVN commit r17994.
2016-04-07 08:12:15 +00:00
sanderd17 f8ce6819b9 Add s1lence to credits
This was SVN commit r17993.
2016-04-07 07:24:14 +00:00
sanderd17 6471a54c9f Refactor GetEntityCollisions to make it clear what the function actually does since the new pathfinder
This was SVN commit r17992.
2016-04-06 17:36:47 +00:00
Itms 9aa829d034 Add female Greek voice and musicians credits.
This was SVN commit r17991.
2016-04-06 16:56:29 +00:00
sanderd17 7d9f64ca40 Set default model of cart wall tower to Idle while constructing. Fixes #3504
This was SVN commit r17990.
2016-04-06 12:59:23 +00:00
sanderd17 eeb07d8231 Don't show bridges on minimap, and don't let them change ownership
This was SVN commit r17989.
2016-04-06 11:44:05 +00:00
sanderd17 fd4e899f11 Remove useless History tags from the templates in preparation of #3212
This was SVN commit r17988.
2016-04-06 09:53:53 +00:00
elexis ccf0f74970 Random-map-script cleanup.
Flatten 37 variables into 3 objects and give them proper names.

This was SVN commit r17987.
2016-04-05 22:32:51 +00:00
elexis 138724ce0f Random-map-script cleanup.
Rename biomeID to g_BiomeID.

This was SVN commit r17986.
2016-04-05 18:49:37 +00:00
mimo 5744c2c6b0 petra: improve warning and warn only once when garrisonManager gets muddled
This was SVN commit r17985.
2016-04-05 18:44:15 +00:00
mimo 7029ddc2dd fix autostart in maps with gaia in PlayerData, fixes #3880
This was SVN commit r17984.
2016-04-05 18:21:10 +00:00
sanderd17 8b0d24048a First unit test for auras
This was SVN commit r17983.
2016-04-05 15:28:38 +00:00
sanderd17 4be96ece08 Implement stackable auras + fix an issue with techs, auras and ownership changes. Patch by fatherbushido. Fixes #3792
This was SVN commit r17982.
2016-04-05 14:13:44 +00:00
elexis 70a3201b23 Remove triple X comment pollution from maps.
This was SVN commit r17981.
2016-04-05 11:53:05 +00:00
elexis 62b7c07353 Remove unused author and version tag from ardennes forest.
This was SVN commit r17980.
2016-04-05 11:22:16 +00:00
scythetwirler bfa94b87ae Bumps up version number.
This was SVN commit r17978.
2016-04-04 21:20:45 +00:00
Itms a7806675fb This was SVN commit r17977. 2016-04-04 21:18:58 +00:00
Itms 6c3964f52a Cleanup of SoundGroup XML files.
Remove some useless settings using the default values.
Remove the obsolete <Replacement> tag.
Update some documentation in the code, fix whitespace and unify line
endings.

Patch by otero, fixes #3268

This was SVN commit r17976.
2016-04-04 20:54:48 +00:00
sanderd17 2a11d3ca7b Interpolate cinematic camera rotation + allow more points in cinematic path + add comments. Patch by Vladislav. Refs #3814
This was SVN commit r17975.
2016-04-04 20:31:18 +00:00
sanderd17 46ead523b8 Cleanup of the Auras code in preparation of stackable auras. Implements auras being enabled by techs. Refs #3792. Patch by fatherbushido
This was SVN commit r17974.
2016-04-04 18:55:44 +00:00
mimo d7b62e0af7 cleanup of the ai api, with removal of some old stuff
This was SVN commit r17973.
2016-04-04 18:12:48 +00:00
mimo f057eb5aba petra now uses corrals on maps with low starting resources
This was SVN commit r17971.
2016-04-03 09:16:14 +00:00
mimo 63fad07905 nerf a bit wall towers
This was SVN commit r17970.
2016-04-03 09:13:13 +00:00
mimo 1d0c0e00e5 allows destroying animals when controlAllUnits is set
This was SVN commit r17969.
2016-04-02 14:58:31 +00:00
mimo 8211f95978 petra cleanup
This was SVN commit r17968.
2016-04-02 14:49:08 +00:00
mimo 18960ddcf8 fix petra training of support units, fixes #3864
This was SVN commit r17967.
2016-04-02 14:23:14 +00:00
mimo 42b93c45b8 fix playerData of Forest Battle map
This was SVN commit r17966.
2016-04-02 14:21:20 +00:00
Itms 3f1b30a8e3 Update Translators credits and add texane to the list of contributors (refs #3863).
This was SVN commit r17964.
2016-03-28 00:23:04 +00:00
Itms a517184150 Update the creditTranslators script for the A20 languages.
This was SVN commit r17963.
2016-03-28 00:18:13 +00:00
elexis d3255168b9 enet backward-compatibility fix, refs #2854. Patch by texane, fixes #3863.
This was SVN commit r17960.
2016-03-27 23:27:37 +00:00
Itms 373107898c Update the list of included languages for A20: Bulgarian, Hungarian and Swedish get in the team!
This was SVN commit r17959.
2016-03-27 22:08:25 +00:00
elexis ad34950780 Add a missing check to 347ffabaeb as the previous one throws errors in case a dead sheep lies in the selection rectangle.
Thanks bb for reporting, refs #2407.

This was SVN commit r17957.
2016-03-27 12:46:18 +00:00
Itms 6b2a3bb549 Translate the "Observer" choice in the observer mode player selection dropdown.
This was SVN commit r17956.
2016-03-26 19:19:49 +00:00
Itms c777e34cba Properly fix the typo mentioned in 91ed318f0d. The ++i in the for loop already increments i so doing it once more is not wanted.
Fixes #3854.

This was SVN commit r17955.
2016-03-26 13:25:51 +00:00
sanderd17 6b212dc6ad Fix promotion of barrack champions for the Macedonians. Fixes #3853. Patch by fatherbushido.
This was SVN commit r17954.
2016-03-26 11:21:49 +00:00
mimo b0c74fdaa0 petra: fix a misbehaviour spotted by sanderd17, when the defenseManager tries to rescue units performing an attack
This was SVN commit r17953.
2016-03-25 18:21:13 +00:00
elexis c5ede78373 Require players to own a wonder for 10minutes (instead of 5) before declaring them the winner of wonder-victory games.
This was SVN commit r17952.
2016-03-25 18:05:19 +00:00
sanderd17 6f0d0ff8f4 Round max hp of units in simulation. Refs #3855
This was SVN commit r17951.
2016-03-25 12:51:48 +00:00
Itms e8decfbd2b Amend fdf7dabe18: the foundation component won't exist for a mirage (foundation inside the fog-of-war) so the miraged interface to it should be queried.
Fixes #3849.

This was SVN commit r17949.
2016-03-24 21:48:15 +00:00
elexis aa64a92d1a Ignore production hotkeys for observers instead of throwing errors on press.
This was SVN commit r17948.
2016-03-24 21:26:34 +00:00
elexis 350422dcae Fix whitespace (leading mixed whitespace, trailing whitespace and missing newlines).
Remove three unused variables area, ix and iz.
Thanks mimo for reporting.

This was SVN commit r17947.
2016-03-24 15:53:53 +00:00
elexis 66267cb714 Remove a check for an edge case where the entrance of a bluff would be cutoff by the players territory.
Instead, reserve some space at the bottom of the slope for an entrance.
Finetune the terrain textures of bluffs depending on the biome.
Patch by _kali, refs #3455.

This was SVN commit r17946.
2016-03-24 15:34:36 +00:00
elexis 6312b71911 Improve the resource distribution on the map "Ambush" and maps using bluffs in general. Based on patch by _kali, refs #3455.
Bluffs:
Cover half instead of most of the area of bluffs with forests (to allow
placing CCs / forts there).
Proportionally reduce the likelyhood of placing metal/stone on bluffs.
Compensate the absence of forests on the savanna biome with more
straggler trees.

Ambush:
Place forests also on the mainland (so that players are not immediately
forced to expand to bluffs).
Reduce the amount of berries and animals a bit following 91e8248273.

This was SVN commit r17945.
2016-03-24 14:54:47 +00:00
elexis ebfd214a19 Return Infinity instead of undefined in BuildingAI.GetMaxArrowCount. Refs #3196, #3846 and 82fa9d8f5b.
Notice the previous check `if (count > this.GetMaxArrowCount())`
implicitly relied on
numerical comparisons returning false if one of the two arguments is
undefined.

This was SVN commit r17944.
2016-03-24 13:25:47 +00:00
elexis 58d3425ad4 Reduce the number of lobby gamelist updates by roughly 60-80% by eliminating duplicate packets, refs #3847.
This was SVN commit r17943.
2016-03-24 12:08:00 +00:00
Itms 572847ddd4 Revert 1f34a004e5.
It breaks the Windows build by using time_t and it changes too many
things to the way lobby messages are processed to be entirely safe to
commit now.
Refs #3832.

As a side effect it reverts e514aca599, refs #3350.

This was SVN commit r17941.
2016-03-23 21:58:23 +00:00
elexis c58bbfaa14 Select observer for defeated players, but keep the current player selected on win.
This was SVN commit r17940.
2016-03-23 13:49:59 +00:00
sanderd17 82fa9d8f5b Fix counting issue with previous commit
This was SVN commit r17939.
2016-03-23 10:01:27 +00:00
sanderd17 63d276b73b Fix counting of arrows in buildings: don't remove entities twice from the garrisonholder. Fixes #3846
This was SVN commit r17938.
2016-03-23 09:04:02 +00:00
elexis e7deb587bb Random-map-script cleanup.
Use constants when checking for the biome type.
Remove unused code for nonexistent biomeID 0 from gaia.js.

This was SVN commit r17937.
2016-03-23 03:05:39 +00:00
elexis cfb8a6e30e Fix confusion between concat and push in map Frontier, patch by _kali.
This was SVN commit r17936.
2016-03-23 02:06:06 +00:00
sanderd17 fc14e733bd Change an Object into a Map, this should stop the deserializer of reordering the keys in some cases and stop an OOS on rejoining. Refs #3375
This was SVN commit r17935.
2016-03-22 20:57:27 +00:00
mimo c43ce2ca55 cleanup of missing semicolon
This was SVN commit r17934.
2016-03-21 20:33:05 +00:00
elexis 1a02684cf7 Check for GUID, as the playerIndex doesn't distinguish between observers. Refs #1767.
(Avoid private messages where sender and addressee are identical).

This was SVN commit r17933.
2016-03-21 18:58:52 +00:00
mimo f8d05ed5c3 fix petra serialization (add two variables forgotten, and remove two useless ones)
This was SVN commit r17932.
2016-03-21 18:15:39 +00:00
sanderd17 820846b56b Completely initialise Auras even before ownership is set. Fixes #3843
This was SVN commit r17931.
2016-03-21 16:22:40 +00:00
elexis 0448a3de73 Lobby cleanup.
Make sense of the spammonitor by using an object instead of an array and
introducing a global constant instead of using magic numbers.

This was SVN commit r17930.
2016-03-21 14:29:41 +00:00
elexis e514aca599 Display chat-timestamps in the lobby in the correct timezone, refs #3350.
This was SVN commit r17929.
2016-03-21 13:53:22 +00:00
elexis 1f34a004e5 Add timestamps to the GUI/chat-notifications sent from XmppClient, even if it's not a historical message.
Correct spammonitor behavior for historical messages and when returning
to the lobby from a game.
Patch by Josh, fixes #3832.

This was SVN commit r17928.
2016-03-21 13:48:22 +00:00
elexis 86a309ad76 Show replay path in commandline interface.
This was SVN commit r17927.
2016-03-21 12:09:21 +00:00
LordGood f8a09cf5c1 Seleucid barracks model, actor, AO
This was SVN commit r17926.
2016-03-21 10:25:01 +00:00
elexis 8f4daa9dd0 Lobby performance improvement.
Since 8b437a0b1c, updatePlayerList() is called everytime a muc-message
is received, calling playersBox.SelectionChange(), calling
displayProfile() which requests the profile from the server again.
Similar cases should be handled in #3840.

This was SVN commit r17924.
2016-03-21 03:44:01 +00:00
elexis cfe169d2bc Reduce lobbybot load by only requesting a ratinglist when actually opening the leaderboard (as suggested by scythetwirler).
This was SVN commit r17923.
2016-03-21 01:51:05 +00:00
elexis 9e338f4461 Barter component cleanup. Replace deprecated for-each.
This was SVN commit r17922.
2016-03-21 00:45:32 +00:00
elexis 10b6022557 Convert string to int conversion in the lobby-leaderboard.
This was SVN commit r17921.
2016-03-21 00:38:31 +00:00
elexis 91e8248273 Make "Lion's Den" and "Empre" default maps.
Add more animals/berries to "Ambush".
Improve placing of initial resources on all of _kali's maps.

* Increase distance from chickens to CC from `7` to `9` (to account for
roman CCs, refs #3836)
* Increase number of initial trees from `5` to `25` (ensuring players
have enough wood to build a new CC)
* Avoid resource collisions by increasing the minDistance from `2` to
`4` (when not using angles)
* Ensure that initial resources are placed (by first placing mines and
adding retry-loops for the other resources)
  Notice The loop can't be moved to `createObjectGroup` since
    * the parameters (like `mAngle`) also need to randomized again
    * we need to place initial resources in range of the actual
playerbase

This was SVN commit r17920.
2016-03-20 19:03:43 +00:00
Itms b84b9a374a Improve some strings based on translators' feedback.
This was SVN commit r17919.
2016-03-20 18:58:59 +00:00
mimo 81948477df fix the test when changing markets, fixes #3838
This was SVN commit r17918.
2016-03-20 14:00:49 +00:00
scythetwirler 3025b4b8e3 Reduce query time of rating sorts.
This was SVN commit r17917.
2016-03-20 05:17:15 +00:00
sanderd17 01b963b259 Update version names to A20
This was SVN commit r17915.
2016-03-19 08:21:00 +00:00
elexis d5059e8e23 Don't use that variable outside of scope.
This was SVN commit r17913.
2016-03-18 17:54:22 +00:00
elexis 31fe2770f6 Update credits, refs #3234.
This was SVN commit r17912.
2016-03-18 14:58:13 +00:00
elexis 5c6ba10626 Remove blood from skeletons, refs #3455.
This was SVN commit r17911.
2016-03-18 14:02:47 +00:00
elexis 3337adcbbe Remove unused variables, duplicate comments and trailing whitespace from volcanic lands.
This was SVN commit r17910.
2016-03-18 12:04:17 +00:00
elexis b623a3a9ff Ensure initial trees are placed on volcanic lands and add missing semicolons. Patch by niektb, refs #3808.
This was SVN commit r17909.
2016-03-18 11:56:00 +00:00
sanderd17 0a8ed799f1 Revert tech applying to auras due to issues. Patch by fatherbushido. Fixes #3830
This was SVN commit r17907.
2016-03-17 08:25:13 +00:00
sanderd17 d44c4fd5c6 Update manual to mention skirmish maps
This was SVN commit r17906.
2016-03-17 08:13:52 +00:00
Itms f7045b23ce Fix some errors reported by translators on Transifex.
This was SVN commit r17905.
2016-03-16 23:27:17 +00:00
Itms 19a218cd48 Change the language names for translation credits to the names in the original language.
This removes the loophole in our release process, fixes #3827.

This was SVN commit r17904.
2016-03-16 23:04:10 +00:00
Itms 6d52a71d4a Include some new random maps by kali! Style updates by elexis and map previews by niektb.
Refs #3455

This was SVN commit r17903.
2016-03-16 22:59:10 +00:00
sanderd17 94f9100ba1 Limit the length of error strings to prevent crashes when logging long strings
This was SVN commit r17902.
2016-03-16 18:24:32 +00:00
mimo 29e0a23c8e fix gui for non-sharable dropsites
This was SVN commit r17901.
2016-03-16 16:13:18 +00:00
sanderd17 d033038d69 Also translate specific name in strucTree (translations already exist)
This was SVN commit r17900.
2016-03-16 12:22:23 +00:00
mimo c3324765d2 improved icon from niektb
This was SVN commit r17899.
2016-03-15 20:22:19 +00:00
mimo 0863f20722 cleanup
This was SVN commit r17898.
2016-03-15 18:27:17 +00:00
elexis 62f6aa07d0 Add missing round to the armor tooltip. Patch by fatherbushido, fixes #3817.
This was SVN commit r17897.
2016-03-15 05:12:22 +00:00
elexis 518ae4fcb2 Lock diplomacy for all players if the locked-teams setting is enabled, fixes #3702.
GUI fix in 17e6b316fa, simulation fix here.

Remove quadruplicated code!
Check in Commands.js as this one handles user input.
Don't check in Player.js as the function should be versatile enough to
change diplomacy from all components, even if teams are locked or
ceasefire active.

This was SVN commit r17896.
2016-03-15 04:53:13 +00:00
elexis d61e315f4d Fix few style issues remarked by leper.
Add a unit (seconds) to the network-timeout warning.
Rename isChatAddressee to parseChatAddressee as it changes the message.
Early return for EnableOOSLog to avoid printing duplicate messages.

This was SVN commit r17895.
2016-03-15 04:37:41 +00:00
elexis a2ecee4168 Rest of the previous commit, refs #3743.
This was SVN commit r17894.
2016-03-15 04:08:07 +00:00
elexis d7fe1b6002 Allow observers to follow the commands and attacks of the currently viewed player, fixes #3743.
If enabled, the camera focuses on the affected units (source and target)
and selects them.

This was SVN commit r17893.
2016-03-15 04:02:15 +00:00
Itms f1d99a9450 Fix a typo which made the "Exit" button in the in-game menu look weird. Thanks niektb for noticing!
This was SVN commit r17892.
2016-03-14 19:47:34 +00:00
mimo dd07241ef7 Petra: fix a bug in attackPlan spotted by leper
This was SVN commit r17891.
2016-03-14 18:08:51 +00:00
elexis c4f607f6e0 Random Map cleanup.
Remove unneeded braces and comments.
Use ++i instead of i++.
Use foo.bar instead of foo["bar"].
Fix a comment.

This was SVN commit r17890.
2016-03-14 18:00:09 +00:00
sanderd17 87da09bf1b Fix tests broken in 028e573759
This was SVN commit r17889.
2016-03-14 17:50:56 +00:00
elexis bedce1e617 Observer fix for shared-dropsites, refs #3791.
This was SVN commit r17887.
2016-03-14 01:23:09 +00:00
elexis 541a5567d8 Show the attack-notification to observers.
Allow adding entities to the selection if they are owned by the observed
player.

This was SVN commit r17886.
2016-03-14 00:35:37 +00:00
Itms a7b31398b0 Revert dbbc600dc3, refs #3745, refs #3823
This was SVN commit r17885.
2016-03-13 22:18:31 +00:00
mimo f7ea533ab9 better icon from niektb, refs #3791
This was SVN commit r17884.
2016-03-13 17:38:23 +00:00
Itms 9238fc8713 Fix oversight in dbbc600dc3: GetExtendedEntityState is far too demanding for performance, and it is not needed.
Refs #3745

This was SVN commit r17883.
2016-03-13 17:06:12 +00:00
Itms d84ad7799a Limit arrows on certain buildings and ships. Patch by sanderd17, fixes #3196.
Balancing by elexis, reverts fcf7344537 in favor of the new total arrow
limit.

This was SVN commit r17882.
2016-03-13 17:02:18 +00:00
elexis 042c9a9334 Allow hosting matches with 8 players and up to 16 observers, fixes #3254.
The host can change the number of allowed observers in running games.

Make sure that joining observers won't take the "slot" of disconnected
players, fixes #3671.

Send clients a new disconnect reason "Server full" instead of letting
them timeout.

This was SVN commit r17881.
2016-03-13 16:52:00 +00:00
Itms dbbc600dc3 Workaround for the multiple-selection commands problem in the case of the back-to-work button. In this case a fix is really needed, as long as the system for handling the selection is not improved.
Also fix the wrong documentation for some functions.

Patch by svott, fixes #3745.

This was SVN commit r17880.
2016-03-13 16:44:21 +00:00
elexis 369ca4d012 Allow RMS authors to set the biomeID explicitly or to randomize excluding some biomes.
Add missing semicolon for random_sky.
Fix some scope whitespace issues.

This was SVN commit r17879.
2016-03-13 14:13:38 +00:00
mimo 2022aad5d1 decrease the hack armour of fields to favor rushes
This was SVN commit r17878.
2016-03-13 14:09:52 +00:00
elexis 6c8004c206 Player component cleanup.
Fat-arrow.
Whitespace fixes for some selected objects.
Newlines to make it more readable.
++i instead of i++.

This was SVN commit r17877.
2016-03-13 13:49:37 +00:00
elexis 2e5969c395 Thanks Guuts for #3606 and the other patches you have worked on!
This was SVN commit r17876.
2016-03-13 13:36:25 +00:00
mimo 028e573759 allow the use of allied dropsites using tech, fixes #3791
This was SVN commit r17875.
2016-03-13 13:33:21 +00:00
Itms bcfa626bc4 Improve 27b4df0978.
This was SVN commit r17874.
2016-03-12 22:20:15 +00:00
Itms 26488bd892 Fix ugly all-bold tooltip for the multiple details area capture bar (reported by bb who has a good eyesight!)
This was SVN commit r17871.
2016-03-12 18:36:28 +00:00
Itms c9cecab0be Remove libjpeg. Fixes #2828.
Based on patch by dalerank, tested on Windows, might need to be amended
for OSX.

This was SVN commit r17870.
2016-03-12 18:15:04 +00:00
sanderd17 753a79ff67 Fix messages.json
This was SVN commit r17868.
2016-03-12 17:48:16 +00:00
Itms b2f0544215 Delete some broken actor and art files, listed by stanislas69, refs #2524
This was SVN commit r17867.
2016-03-12 15:46:26 +00:00
Itms a4a1bcab94 Remove the now useless UnitMotion planning, and cleanup of CCmpUnitMotion.cpp (unused variables, whitespace). Fixes #3790.
This should have a noticeable impact on performance (in the good way!)

Thanks mimo for noticing something was off with the planning system!

This was SVN commit r17866.
2016-03-12 13:44:51 +00:00
Itms 27b4df0978 Improve some aura and technology descriptions where there was a confusion between speed and time.
Patch by Palaxin, fixes #3600

This was SVN commit r17865.
2016-03-12 13:18:32 +00:00
mimo 2546eecbf3 fix modifications (by tech or aura) of garrison and formation auras, fixes #3799, patch by fatherbushido
This was SVN commit r17863.
2016-03-10 21:46:37 +00:00
elexis 18829e17c2 Fix comment following e0a9dfd5a2.
This was SVN commit r17862.
2016-03-10 17:11:36 +00:00
elexis e0a9dfd5a2 Allow changing the late-observer flag in a running game, fixes #3669.
Remove it from the game-attributes, since it is not used in the
simulation, nor are they supposed to change in running games.

This was SVN commit r17861.
2016-03-10 11:35:43 +00:00
elexis 2305218d9f Optionnames are in lower case, refs #3604.
This was SVN commit r17860.
2016-03-10 11:16:15 +00:00
elexis b71e7e3538 Petra chathelper cleanup.
Inline variables used only once.

This was SVN commit r17859.
2016-03-10 10:44:52 +00:00
elexis aa1e3f6d06 Session cleanup
Simpler errorhandling when fetching GUIInterface-notifications.

This was SVN commit r17858.
2016-03-10 10:15:23 +00:00
Itms 4b636fc407 Add a precision to the instructions included in default.cfg.
This was SVN commit r17857.
2016-03-09 21:48:41 +00:00
mimo 212d8e7dd0 cleanup of 98b4fe6d00
This was SVN commit r17856.
2016-03-09 21:45:14 +00:00
elexis 04586c9e8b Adapt the number-of-players GUI objects of the lobby to support 10 and more clients.
This was SVN commit r17855.
2016-03-09 21:30:53 +00:00
mimo 98b4fe6d00 fixes confusion between markets when doing trade, fixes #3812, patch by leper and fatherbushido
This was SVN commit r17854.
2016-03-09 19:54:12 +00:00
elexis 7409fe4bec Defeated players are not supposed to do stuff.
Not sending resources on defeat also gives an incentive to completely
defeat players.
Patch by fatherbushido, refs #3265.

This was SVN commit r17853.
2016-03-09 16:11:55 +00:00
elexis 2fea95530f Quit if the user requested that while loading the replay list. Fixes #3446.
This was SVN commit r17852.
2016-03-09 16:06:41 +00:00
elexis f2ed0098ee Make the playername-deduplication ("User" -> "User (2)") optional.
Have it disabled by default to fix #3604.
Prevents players from rejoining as late-observers in case they timed-out
on the client-side but not on the server-side.

This was SVN commit r17851.
2016-03-09 15:02:38 +00:00
elexis c0f321b52e Add svott (refs #3736) and fpre (refs #3205) to the contributors.
This was SVN commit r17850.
2016-03-09 14:33:41 +00:00
mimo 7c33658fdd ships can be garrisoned in cart superDock with a heal rate, fixes #3810, patch by fatherbushido
This was SVN commit r17849.
2016-03-08 21:50:37 +00:00
mimo a1c6d9149b fix typo from 8725c3ae7a
This was SVN commit r17848.
2016-03-08 18:49:06 +00:00
elexis c7c8d9a5c7 Map previews for 3 random maps and some selected demo maps. Patch by yoreei, fixes #3798.
This was SVN commit r17847.
2016-03-08 17:29:18 +00:00
elexis 52bf894c50 Remove naval-tag from flood.
(It can be played without any ships and naval maps are not offered by
default).
Thanks yoreei for reporting.

This was SVN commit r17846.
2016-03-08 14:00:44 +00:00
elexis c511e9c4ec To avoid unintentional joins, ask lobby users if they want to late-join the game as an observer before attempting to do so. Refs #3739.
Add selectedGame() to simplify some checks.
Add linebreaks to hostGame().

This was SVN commit r17845.
2016-03-08 00:18:21 +00:00
elexis ea73e6b3b4 New random map script "Flood". Created by _kali and niektb, refs #3455.
This was SVN commit r17844.
2016-03-07 23:13:52 +00:00
elexis 35a13c5080 Remove trailing whitespace.
This was SVN commit r17843.
2016-03-07 17:28:31 +00:00
elexis f3ba295593 Add new contributor _kali to the randommap-script credits.
Add existing contributors niektb and Stan to the map-section for the new
maps in alpha 20.

This was SVN commit r17842.
2016-03-07 17:12:34 +00:00
elexis dd5cc3d02e Gamesetup cleanup.
Inline initializaiton of g_ServerName and fix a typo in e05c8263c5.

This was SVN commit r17841.
2016-03-07 15:05:16 +00:00
elexis fc0f496e3d Fix indentation, refs #3803.
This was SVN commit r17840.
2016-03-07 11:44:03 +00:00
elexis e827ebeb5c Multiplayer-gamesetup cleanup.
Eliminate deprecated for-each.
Quote object keys.
Remove unneeded sprintf from error() calls.
Remove unneeded comments.
Add linebreaks.

This was SVN commit r17839.
2016-03-07 11:42:52 +00:00
Itms 05bf260838 Fix the garrisoning flag for some Seleucid buildings, patch by stanislas69. Fixes #3631
This was SVN commit r17838.
2016-03-07 11:38:00 +00:00
elexis 49c30ae4b8 Give credit to three awesome contributors, refs #3802.
This was SVN commit r17837.
2016-03-07 10:24:38 +00:00
elexis 231586f2fa Aura cleanup.
Eliminate deprecated for-each.
Remove unused variable auraNames.
Use array-filter instead of for-loop.
Fix whitespace.
Don't use affectedPlayers outside of scope.

This was SVN commit r17835.
2016-03-06 14:57:39 +00:00
elexis b1cacacff1 Fix the test of the Player-component following c9b0db7f5f. Patch by fatherbushido, fixes #3803, refs #3522.
This was SVN commit r17834.
2016-03-06 14:02:34 +00:00
elexis b155a28698 Immediately set the fog-of-war instead of waiting for session.js to load, refs #3168.
This was SVN commit r17832.
2016-03-06 13:56:07 +00:00
mimo 5a8d7d1a58 petra cleanup
This was SVN commit r17831.
2016-03-05 16:20:49 +00:00
Itms bcf2c75513 New in-game Credits page, fixes #3744.
This was SVN commit r17830.
2016-03-05 11:52:08 +00:00
Itms 1504115c14 I shouldn't rename things.
This was SVN commit r17829.
2016-03-05 11:43:14 +00:00
Itms dfbf874d8b Some string fixes.
This was SVN commit r17828.
2016-03-05 11:30:27 +00:00
mimo 6451a4c3c1 Petra: improve choice of workers, fixes #3586, patch from otero
This was SVN commit r17827.
2016-03-04 17:08:45 +00:00
mimo 6b19eefdcb cleanup of some foreach
This was SVN commit r17826.
2016-03-04 16:51:52 +00:00
mimo 9d2b8a74b7 petra: do not let the ai build too much towers or fortresses
This was SVN commit r17824.
2016-03-03 18:38:13 +00:00
mimo d3e9aa2101 petra: complete changes started in 8d0223d6aa + some cleanup"
This was SVN commit r17823.
2016-03-03 16:18:12 +00:00
mimo 7403b92785 petra cleanup: use some arrow functions for sort
This was SVN commit r17822.
2016-03-02 17:10:26 +00:00
mimo 8d0223d6aa petra: do not anymore assume that workers are necessarily builders and gatherers
This was SVN commit r17821.
2016-03-02 16:58:02 +00:00
elexis 8725c3ae7a Diplomacy-manager cleanup.
Move resource-tributing button code to a custom function.
Shorten comment.
Reuse RESOURCES.
Inline tributeResource.

This was SVN commit r17820.
2016-03-02 16:56:44 +00:00
elexis ed1afbebfc Diplomacy-manager cleanup.
Move the text setup to a custom function.
Reuse colorizePlayernameByID.
Add newlines.

This was SVN commit r17819.
2016-03-02 16:44:57 +00:00
elexis 17e6b316fa Diplomacy manager cleanup.
Move the diplomatic stance button initialization to a custom function.
Always hide the button if locked-teams is enabled, refs #3702.
Inline setDiplomacy.

This was SVN commit r17818.
2016-03-02 16:38:05 +00:00
mimo 23d37f188a cleanup of some missing tabs
This was SVN commit r17817.
2016-03-02 16:25:14 +00:00
elexis e99e7e33ba Diplomacy manager cleanup.
Split openDiplomacy into four smaller functions, starting with
diplomacyFormatAttackRequestButton in this commit.
Hide the button if the user has no allies and after defeat/win.

This was SVN commit r17816.
2016-03-02 16:23:46 +00:00
elexis af396c9bf9 Player-component cleanup.
Remove deprecated for-each and inline a variable.

This was SVN commit r17815.
2016-03-02 15:00:24 +00:00
elexis 458b4a6567 Prohibit user-initiated diplomacy-changes in the simulation while ceasefire is active, refs #2749.
This was SVN commit r17814.
2016-03-02 14:43:18 +00:00
elexis 012b686e7c Two early returns. Refs #3265.
This was SVN commit r17813.
2016-03-02 13:42:47 +00:00
mimo 163af24a6c cleanup in petra, patch by otero
This was SVN commit r17812.
2016-03-01 17:57:19 +00:00
mimo 9c6082ec23 fix garrison aura from heros, patch by fatherbushido
This was SVN commit r17811.
2016-03-01 17:19:16 +00:00
mimo 04c94da3cb add some missing spaces in previous commit
This was SVN commit r17810.
2016-03-01 17:12:38 +00:00
mimo c9b0db7f5f Techs can now modify an aura
Wonder population bonus is now an aura (reverted when the wonder is
destroyed) with 10 pop (wonder) with an additionnal +40 with the tech
patch by fatherbushido

This was SVN commit r17809.
2016-03-01 17:10:42 +00:00
mimo b88fd4fe09 fix typo from 8a3bbdf4db
This was SVN commit r17808.
2016-02-29 17:21:35 +00:00
mimo ba0700f612 garrisoning only works between mutual allies
This was SVN commit r17806.
2016-02-28 12:58:52 +00:00
Itms ae309ed550 Replace the inscription on the altar in the main menu background.
The new inscription fits better with the scene, set in Sparta, and is
the Greek original epitaph written on the Cenotaph of Thermopylae,
according to Herodotus:
"Go, tell the Spartans, stranger passing by, that here, obedient to
their laws, we lie."

The previous inscription was apparently a fraction of a sentence and was
about Spartan foreign policy in Ionia.

Suggestion and research by Danny, art by wowgetoffyourcellphone.

This was SVN commit r17805.
2016-02-27 21:31:59 +00:00
elexis c2fad862d8 Correct a typo in 2b0c40d7b2, thanks fede for reporting, fixes #3794.
This was SVN commit r17804.
2016-02-26 22:40:22 +00:00
mimo 652ec4f8e5 fix some resetting of gatherer walk animation
This was SVN commit r17802.
2016-02-24 18:57:23 +00:00
mimo ec43274e2b drop carried resources when finishing to build a dropsite
This was SVN commit r17801.
2016-02-24 18:49:28 +00:00
mimo 05cf535c58 do not drop resources when garrisoning in allied structure
This was SVN commit r17800.
2016-02-24 17:45:13 +00:00
elexis 632901043e Give the mauryan pillar of ashoka a trade speed bonus, fixes #3639.
This was SVN commit r17799.
2016-02-23 23:30:42 +00:00
elexis 4ebcae8fa6 Highlight unassigned players in the player-assignments dropdown. Sort by player index. Based on patch by dalerank, fixes #3508.
This was SVN commit r17798.
2016-02-23 22:40:43 +00:00
elexis 8b85b72dfc Fix water-terrain painting following 6cc00f6a82. Based on patch by niektb.
This was SVN commit r17797.
2016-02-23 17:47:55 +00:00
elexis 2b0c40d7b2 Translate some untranslated strings, refs #3665.
Add a chat message if the control-all units cheat was used, refs #2676.

This was SVN commit r17796.
2016-02-23 17:29:39 +00:00
elexis df42b9caba Commands.js cleanup.
This was SVN commit r17795.
2016-02-23 15:51:09 +00:00
elexis e10ff35869 Commands.js cleanup. Remove unneeded characters of all sorts and use "early-continues".
This was SVN commit r17794.
2016-02-23 15:04:28 +00:00
elexis b60c6f6b15 Commands.js cleanup - fix whitespace.
This was SVN commit r17793.
2016-02-23 14:52:20 +00:00
elexis 8a3bbdf4db Commands.js cleanup. Fix remaining for-each loops and increment operators.
This was SVN commit r17792.
2016-02-23 14:49:03 +00:00
elexis e953ca23ba Commands.js cleanup. Replace deprecated for-each.
This was SVN commit r17791.
2016-02-23 14:36:50 +00:00
elexis 3a502c0d21 Commands.js cleanup, use fat-arrows.
This was SVN commit r17790.
2016-02-23 14:13:46 +00:00
elexis 844566c787 Translate the developer-overlay notification at the receiving end, fixes #3304.
This was SVN commit r17789.
2016-02-23 12:27:34 +00:00
elexis 7a5d75be11 Better placement for initial resources on Island Stronghold, based on patch by niektb, refs #3455.
First place all starting entities before placing initial resources to
avoid placing them on each other.
Don't place initial mines near the territory of allies.

This was SVN commit r17788.
2016-02-23 11:51:16 +00:00
elexis c6804aad35 Small RMS library style improvement.
This was SVN commit r17787.
2016-02-23 10:46:32 +00:00
elexis fc298eb3f5 Show time-notifications to observers, refs #3168.
This was SVN commit r17786.
2016-02-22 22:53:48 +00:00
elexis b68654b52d Inlining this is not possible due to the closure.
This was SVN commit r17785.
2016-02-22 17:23:46 +00:00
elexis 97c3a166a8 Don't shoot an undocumented arrow from UnitAI if the entity also has a BuildingAI component shooting arrows. Fixes #3763.
Instead, add the arrow to the affected unit templates (except bireme and
trireme, refs #3196).

This was SVN commit r17784.
2016-02-22 17:01:16 +00:00
elexis 94ccb153a6 BuildingAI style fixes, refs #3763.
Remove a duplicate targetUnits-, some useless length-checks and unneeded
comments.

This was SVN commit r17783.
2016-02-22 16:44:57 +00:00
elexis 8f630789e6 Add/move the Mercenary tag to VisibleClasses, so that all mercenaries are influenced by auras and techs.
Patch by fatherbushido, fixes #3770.

This was SVN commit r17782.
2016-02-22 11:13:31 +00:00
elexis 6006edf031 Revert approach to detect offline players without remembering disconnect messages, since it doesn't work for entities of unassigned players. Refs #3677.
Remove unused AIManager.
Inline playerData.

This was SVN commit r17780.
2016-02-20 17:37:19 +00:00
mimo 6e9fd4ccf2 fix the ungarrison-all command from allied structures
This was SVN commit r17779.
2016-02-20 15:04:00 +00:00
elexis 7918347342 Hide the offline-hint for gaia, refs #3677.
Inline some variables.

This was SVN commit r17777.
2016-02-19 14:36:36 +00:00
elexis a32ed75bff Fix a race-condition when two games have been started simultaneously and attempt to create the same replay directory, refs #3255.
Instead of triggering a debug-breakpoint, print a warning to stdout and
succeed in the N'th retry when having started N processes
simultaneously.
Previously the problem had been addressed by using the processID in the
directory name.

This was SVN commit r17776.
2016-02-19 11:22:32 +00:00
elexis 4cda0b7040 Don't show the offline hint for AI-assigned players, refs #3677.
This was SVN commit r17774.
2016-02-18 14:46:45 +00:00
elexis 6cc00f6a82 Reduce base-height of the random map island stronghold, so units don't walk too far into the water. Patch by niektb, refs #3455.
This was SVN commit r17773.
2016-02-18 13:50:10 +00:00
elexis 2e7e1c0b2b Prevent the local client of the host from becoming disconnected in case of lag, fixes #2854.
This was SVN commit r17772.
2016-02-18 13:10:59 +00:00
elexis f8b20d181d Add chat-addressee dropdown, refs #1767.
Add observer-only chat and allow private messages from observer to
observer.
Prevent defeated players from using the team-chat, fixes #3441.

This was SVN commit r17771.
2016-02-18 01:09:56 +00:00
elexis 365cbf5b64 Apply auras to resource costs of buildings. Fix some broken loops over a Map. Patch by fatherbushido, fixes #3769.
This was SVN commit r17770.
2016-02-17 23:27:36 +00:00
mimo 6289251b3b Improve unitMotion in the final step before reaching the target,
which decreases the proportion of units going back and forth around the
target

This was SVN commit r17769.
2016-02-17 19:00:34 +00:00
mimo 4584a81656 be less restrictive with fix for #3785
This was SVN commit r17768.
2016-02-17 18:31:01 +00:00
elexis 5aa7a232a4 Ceasefiremanager cleanup.
Let instead of var.
Remove unneeded comments.
Remove trailing whitespace.

This was SVN commit r17767.
2016-02-16 16:23:40 +00:00
mimo 41d7e64271 prevent short pathfinder to go into impassable region, fixes #3785
This was SVN commit r17765.
2016-02-15 21:24:27 +00:00
mimo a9376eeebb update goal before pathing when moving target refs #3472 and improve unitMotion overlay
This was SVN commit r17764.
2016-02-15 19:30:17 +00:00
elexis c3ac6cf7fc Save target-nodes (lookAt-coordinates) for cinematic-camera paths. Patch by Vladislav, refs #3301.
This was SVN commit r17763.
2016-02-15 17:18:59 +00:00
elexis badc75b0ad Show wall-aura in the construction tooltip. Patch by s0600204, fixes #3766.
This was SVN commit r17762.
2016-02-15 16:18:57 +00:00
elexis 5998d13442 Use date and sequential ID for replay-directorynames, fixes #3255.
Save replays in userdata (screenshots, savegames)  and create one
subdirectory for every release.

This was SVN commit r17761.
2016-02-15 15:57:23 +00:00
elexis ab57951198 Don't lose the player-offline hint on diplomacy change. Patch by dalerank, fixes #3677.
Also remove the "disconnected" property which has apparently never been
used since its introduction in 81f5e0ac5f.

This was SVN commit r17760.
2016-02-15 15:38:56 +00:00
elexis 5485f50948 Defeat the player if the only building owned is an athenian theatron. Patch by fatherbushido, refs #3229.
This was SVN commit r17759.
2016-02-15 13:08:59 +00:00
elexis 9ec4f35959 Improve and fix some wrong observer-checks that didn't take defeated players into account. Refs #3168, #3215.
Introduce isPlayerObserver to easily cover that case.
Move some checks and updates into selectViewPlayer and eliminate
setObserverMode.
Initialize the music before changing the perspective.

This was SVN commit r17758.
2016-02-15 12:53:06 +00:00
elexis e3bd2e3fa8 Session cleanup, some simplifications.
This was SVN commit r17757.
2016-02-15 11:39:02 +00:00
elexis 823fe17dd4 Entity selection cleanup.
Replace deprecated for-each and remove trailing whitespace.

This was SVN commit r17755.
2016-02-14 23:25:28 +00:00
mimo cb4f8989f1 add a small vision range for aggressive/violent animals, refs #3783
This was SVN commit r17754.
2016-02-14 17:08:55 +00:00
mimo ecb65cd58d petra cleanup
This was SVN commit r17753.
2016-02-13 16:28:23 +00:00
elexis 2695e7c77b Remove trailing whitespace, refs #3586.
This was SVN commit r17752.
2016-02-13 11:44:46 +00:00
elexis 3244d91add Don't render a selection box instead of crashing due to ENSURE when elements are removed from a dropdownlist
(while the list is rendered and the last element being selected).

This was SVN commit r17751.
2016-02-12 16:38:25 +00:00
mimo 07133ceb8c fix sound options not propagated to sound manager when reverting/resetting options
This was SVN commit r17749.
2016-02-09 19:00:10 +00:00
Itms 4ad601a301 Sorry for the surprise fix but that really hurts my eyes :p
This was SVN commit r17748.
2016-02-09 16:12:52 +00:00
elexis cd9106b664 Fix / finish previous commit.
This was SVN commit r17747.
2016-02-09 14:34:59 +00:00
elexis ca9d06d6ad Correct handling of replays with no turns or only turn 0.
Add a comment for 3ec3f0b160.
Some style fixes.

This was SVN commit r17746.
2016-02-09 12:09:17 +00:00
elexis 4ac89001f4 Fix compile error for gcc 4.6, refs #3168.
This was SVN commit r17745.
2016-02-08 22:44:23 +00:00
mimo ca19d42a68 fix typos in renderer's initialization, refs #3737
This was SVN commit r17744.
2016-02-08 18:27:56 +00:00
elexis ac1f935bad Split GUI updates from onSimulationUpdate.
This was SVN commit r17743.
2016-02-08 14:01:21 +00:00
mimo a9de2bf397 cleanup of 971d70fa99
This was SVN commit r17741.
2016-02-07 19:06:15 +00:00
mimo 971d70fa99 allows the user to restore the default game options, refs #3737
This was SVN commit r17739.
2016-02-07 15:10:44 +00:00
mimo 43f358563c when saving an option to file, write only that value and not all the content of the user configDB, refs #3737
This was SVN commit r17738.
2016-02-07 11:31:23 +00:00
mimo 26f7a3df96 init configDB with renderer initial values, refs #3737
This was SVN commit r17737.
2016-02-07 11:24:09 +00:00
elexis a2f7d4d82a Show fog of war in observermode, fixes #3168.
This was SVN commit r17735.
2016-02-06 12:56:41 +00:00
elexis 875a774da9 New random map "Island Stronghold" by _kali, reworked by niektb. Refs #3455.
This was SVN commit r17734.
2016-02-06 12:30:40 +00:00
elexis b973eebeda Add color indicator to the playerselection in observermode, refs #3168.
This was SVN commit r17733.
2016-02-06 12:19:02 +00:00
elexis 22f5b00fce Implement network-warnings, fixes #3264.
Shows a notification if the local client or other players connections
timeout or have bad latency.

This was SVN commit r17730.
2016-02-04 17:14:46 +00:00
mimo 4d41bd9622 reorganize options, adding dependences, refs #3737
This was SVN commit r17729.
2016-02-02 21:50:00 +00:00
elexis 6052716a78 Random-map-script cleanup.
Move duplicate code of the area- and object-group placing methods to
retryPlacing and two coordinate-randomization functions.
Remove three unused functions (println obsolete since 0e0ed94926,
chooseRand and its helper argsToArray since before 34f1817869).
Inline local calls to GetMapSize() and IsCircularMap(). Keep unused
isCircularMap for API access. Cache variables when retrying.
Map-generation can finish 2% faster.

This was SVN commit r17728.
2016-02-02 16:33:36 +00:00
elexis fdc67768f0 Random random-map-script cleanup.
Simplify sortPlayers.
Use [] instead of new Array.
Remove unneeded braces.
Use JSDoc comments.
Use let instead of var.

This was SVN commit r17727.
2016-02-02 13:35:03 +00:00
elexis b1fbc5b6bd Add newlines, remove unneeded braces.
This was SVN commit r17726.
2016-02-02 11:23:01 +00:00
elexis 254f6357f6 Fix a typo (terreins -> terrains).
This was SVN commit r17725.
2016-02-02 10:56:39 +00:00
mimo d8b0404281 petra: some tweaks to be able to better deal with maps like the Migration scenario
i.e. maps with a small starting island, no initial population and no
initial gathering food

This was SVN commit r17723.
2016-01-29 19:41:34 +00:00
mimo 30bd2baeeb fix Migration scenario map
This was SVN commit r17722.
2016-01-29 18:53:09 +00:00
mimo b65f2a338c petra cleanup
This was SVN commit r17720.
2016-01-28 19:44:18 +00:00
mimo c46e64c4d2 fix dropdown option
This was SVN commit r17719.
2016-01-28 18:44:50 +00:00
mimo 30d0bcd350 petra remove some useless code
This was SVN commit r17718.
2016-01-28 18:30:39 +00:00
mimo 75d91c6a26 petra: fix account of foundation popbonus when checking if new houses are needed
This was SVN commit r17717.
2016-01-27 18:30:49 +00:00
mimo 06eadf2bc4 petra cleanup + some tweaks
This was SVN commit r17716.
2016-01-27 18:17:55 +00:00
mimo 564941c477 fix wall buildings after f34dc412b6, refs #3647
This was SVN commit r17715.
2016-01-26 19:04:29 +00:00
mimo 91ed318f0d fix typo
This was SVN commit r17714.
2016-01-26 18:36:59 +00:00
mimo 08d326cef5 clone the rallypoint data from cmd, fixes #3751
This was SVN commit r17713.
2016-01-26 18:03:06 +00:00
elexis 090f2ccfe5 Don't modify the command object. Refs #3647.
This was SVN commit r17712.
2016-01-26 17:58:15 +00:00
mimo bb8ceba632 completes f34dc412b6 for non visual replays, refs #3751
This was SVN commit r17711.
2016-01-25 20:37:26 +00:00
elexis ab16ddb256 Show a more specific disconnect-message in case the host closed the server. Refs #3264, #3570.
This was SVN commit r17710.
2016-01-25 12:56:30 +00:00
elexis 3ec3f0b160 Stop the animations at the end of visual replays, refs #3581.
This was SVN commit r17709.
2016-01-25 10:23:03 +00:00
elexis e683751b4f Delete code which became obsolete with 56bb858802.
This was SVN commit r17708.
2016-01-25 09:57:33 +00:00
elexis 68f87cb556 Proportionally adapt cost for civ-specific fortresses since the generic template was changed in 6b9b863747.
Thanks Hannibal Barca for reporting.

This was SVN commit r17706.
2016-01-25 00:38:33 +00:00
mimo 4a58c7f8b6 petra: improve performance of docks positioning (was really slow) + some cleanup
This was SVN commit r17705.
2016-01-24 20:43:27 +00:00
elexis 7c6f35b2c0 Update the unit selection for observers, refs #3168.
Don't disable the deselect button.

This was SVN commit r17704.
2016-01-24 12:33:34 +00:00
Yves 199d38dfec Work around clang bug to fix compiling.
This was SVN commit r17703.
2016-01-24 10:34:38 +00:00
historic_bruno 4bff1ef1a9 Disables MSVC build warning C4003 "not enough actual parameters for macro", introduced by changes in Boost 1.57
This was SVN commit r17700.
2016-01-24 01:03:39 +00:00
elexis aa8541e8ce 2-player skirmish map "Golden Island". Created by scythetwirler and updated by niektb.
This was SVN commit r17697.
2016-01-23 23:02:25 +00:00
Yves 1a66f510d0 Use const T& for parameters of some types in script-exposed native functions
Using references matches the C++ coding style better and should improve
performance a bit in theory. It avoids 2 copies of T in case of the
functions registered with RegisterFunction (mainy used in the GUI). It
should also avoid one or two copies in case of
DEFINE_INTERFACE_METHOD_X, which is used in the simulation, but I
haven't bothered to count it there exactly.
It is now predefined which types have to be passed by const reference
and which are passed by value. Note that references can't be used as
out-parameters (to return multiple values to JS). This hasn't worked
before either and probably never will.

This was SVN commit r17696.
2016-01-23 15:17:56 +00:00
Yves 5f86beea6f Replace HandleWrapper and avoid repoint function
JS::Handle<T>::repoint gets removed with SpiderMonkey 38, so the
existing solution has to be replaced. The new approach should also be a
bit clearer. Named Return Value Optimization (NRVO) should avoid a
superfluous temporary for the return value in the generic template
function implementation of AssignOrFromJSVal.

Refs #3708

This was SVN commit r17695.
2016-01-23 14:42:59 +00:00
historic_bruno b9f1125010 Fixes memory leak in TestPreprocessor. When using CPreprocessor::Parse "you must free() the result string only if the returned address is not inside the source text"
This was SVN commit r17693.
2016-01-23 03:48:00 +00:00
elexis 27d04d0165 Close previously opened dialogs before opening a new one. Fixes #3535. Also remove many duplicate calls.
This was SVN commit r17692.
2016-01-23 03:40:31 +00:00
elexis 4fbd550cda Correct z-ordering issue for chat panel and input form. Patch by dalerank, refs #3535.
This was SVN commit r17691.
2016-01-23 03:24:00 +00:00
elexis c97a91f7bd Change displayed string instead of throwing errors in case of unspecified civs in replays.
This was SVN commit r17690.
2016-01-23 02:41:35 +00:00
elexis 5747619c39 Don't create replays without commands in case of running non-visual replay or an atlas simulation.
Remove trailing whitespace.

This was SVN commit r17689.
2016-01-23 01:02:57 +00:00
mimo dd7287c1c8 additionnal petra cleanup
fix a case with foundation access not defined

This was SVN commit r17688.
2016-01-22 19:46:51 +00:00
mimo c955d74330 petra cleanup (thanks to leper's suggestion)
This was SVN commit r17687.
2016-01-22 18:45:28 +00:00
mimo fdf7dabe18 check that the target can be built or repaired inside the canRepair function
This was SVN commit r17685.
2016-01-21 20:49:57 +00:00
mimo edb16dafbb petra cleanup
This was SVN commit r17684.
2016-01-21 20:38:56 +00:00
mimo df7da846ad some cleanup in ai api
This was SVN commit r17683.
2016-01-21 20:23:19 +00:00
elexis b5cb62ffa2 Remove error messages from the CinemaManager, since not having a GameView is expected in non-visual replay. Patch by Vladislav, refs #3301.
This was SVN commit r17682.
2016-01-21 13:07:52 +00:00
mimo cccd33e7fe petra cleanup
This was SVN commit r17679.
2016-01-20 19:45:47 +00:00
mimo 87886b7b03 fix the AI for the switch to the Repairable component
This was SVN commit r17678.
2016-01-20 19:04:38 +00:00
mimo dd545bdbf1 petra cleanup
This was SVN commit r17677.
2016-01-19 23:19:40 +00:00
elexis 0a64bf25cd Sort globals, add JSDoc comments, remove trailing whitespace.
This was SVN commit r17676.
2016-01-19 18:09:34 +00:00
elexis 5308b95aa8 Let observers change perspective. Refs #3168.
Disable the controls for observers (unless the developer-option is
enabled).
Don't check for g_IsObserver, since observers should be able to use the
developer overlay as well.
Update all GUI elements when changing the perspective using
onSimulationUpdate().
Enable observermode for defeated players.

This was SVN commit r17675.
2016-01-19 17:23:16 +00:00
elexis 0e48b7df75 Update the idle-worker-button onSimulationUpdate. Patch by svott, fixes #3736.
This was SVN commit r17674.
2016-01-19 16:04:59 +00:00
leper f34dc412b6 Deep freeze simulation commands to prevent accidental updates. Fixes #3647.
This was SVN commit r17673.
2016-01-18 22:24:50 +00:00
elexis e035e3e985 Restore the replay selection after deletion. Based on patch by dalerank, fixes #3473.
This was SVN commit r17672.
2016-01-18 20:16:45 +00:00
mimo a6f8b3b3d7 rename the Close button, refs #3737
This was SVN commit r17671.
2016-01-18 19:44:48 +00:00
elexis a59833102f Specify the default column sorting order in XML instead of JS.
Ref #2405, #3473.

This was SVN commit r17670.
2016-01-18 19:23:14 +00:00
mimo 9481c168bd petra cleanup
This was SVN commit r17669.
2016-01-18 19:20:09 +00:00
elexis 69f4614768 Don't use two different default values ("name" and "") in JS for the default lobby sorting order in b8fce56821, refs #2405.
Supplement a variable g_GameStatusOrder missing in 66ec6dbf12.

This was SVN commit r17668.
2016-01-18 18:29:16 +00:00
fabio f8941ac668 boost_signals was removed in 940868398c.
This was SVN commit r17667.
2016-01-18 16:46:32 +00:00
fabio 5d00d0ff8b Update libpng to 1.6.21 + comments cleanup.
This was SVN commit r17666.
2016-01-18 16:42:54 +00:00
elexis 7c40c67efa Fix a bug in b8fce56821 which prevented the replaylist from being sorted correclty on init, refs #2405, #3473.
The default column argument is given in XML and applied in
COList::SetupText() but it hasn't been stored, preventing JS from
knowing the selected column.

This was SVN commit r17665.
2016-01-18 14:45:13 +00:00
elexis 8827db201a Remove the virtual keyword since this is a helper-function not used by the interface. Refs #3215.
This was SVN commit r17663.
2016-01-18 03:41:00 +00:00
elexis 8d2a73bf52 Show the aura of city walls in the structure tree. Patch by s0600204, refs #3655.
This was SVN commit r17662.
2016-01-18 03:24:26 +00:00
historic_bruno 48ba4d9cb4 Updates precompiled win32 SDL libs to 2.0.4 from libsdl.org.
Fixes windows build with SDL 2.0.4, fixes #3138, #3225

This was SVN commit r17658.
2016-01-17 23:11:37 +00:00
mimo c20ee2ad5e add dropdown capacity for options, fixes #2596
remove use of eval for function execution

This was SVN commit r17657.
2016-01-17 21:50:54 +00:00
mimo dc9d1fff11 restore sorting in template, refs #3741
This was SVN commit r17656.
2016-01-17 15:44:38 +00:00
leper cfb2216b8c Remove JSDebugger. Closes #2419, #2973. Refs #410, #2348, #3708.
https://bugzilla.mozilla.org/show_bug.cgi?id=1069694

This was SVN commit r17655.
2016-01-17 00:34:33 +00:00
mimo b4d11cf747 let farms have the terrain ownership, fixes #3741
This was SVN commit r17654.
2016-01-16 12:47:33 +00:00
mimo c4d9b64fe5 fix undef var when in petra debug
This was SVN commit r17653.
2016-01-15 19:12:34 +00:00
leper 0d33ec31cc Pass cmd to TryTransformWallToGate as that is used when debugging commands. Patch by dalerank. Fixes #3694.
This was SVN commit r17651.
2016-01-14 16:21:05 +00:00
elexis 327c0d0d00 Remove trailing whitespace. Refs #118.
This was SVN commit r17650.
2016-01-14 00:04:32 +00:00
elexis 419453e212 Allow randommap-scripts to set a custom fail-limit when placing objects. Patch by Stan, fixes #3567.
This was SVN commit r17649.
2016-01-13 23:51:46 +00:00
elexis ad7c53e65a Adapt the template for corrals to the limitation in UnitAI.CanGarrison. Refs #3412.
This was SVN commit r17648.
2016-01-13 23:33:08 +00:00
leper c33d1e3741 Remove commented out code and comments invalid since 9542ecdd7e.
This was SVN commit r17647.
2016-01-13 22:39:09 +00:00
mimo aa7ef01105 rename reload to revert
This was SVN commit r17646.
2016-01-13 22:32:42 +00:00
mimo 5c61f68600 Rework the logics of options loading to allow more flexibility (i.e. adding a min or max value for number inputs)
Fix some problems when reloading saved options, refs #3511
Add the material quality option, refs #3737
Reload and Save buttons are only enabled when some options have changed.

This was SVN commit r17645.
2016-01-13 22:01:36 +00:00
elexis cd22f9f722 Display all auras in the tooltips (even if there are some with an identical name). Patch by s0600204, fixes #3655.
Add an aura tooltip to the construction panel.
Remove duplicate tooltip code for the training panel.
Eliminate for-each and use the aura ID in GetTemplateDataHelper, since
only that is a unique identifier.
Change the name from "Hero Aura" to "Garrisoned Capture Aura" for that
aura that every hero has.

This was SVN commit r17644.
2016-01-13 19:32:17 +00:00
elexis c9a22ec7c3 Show the population bonus of buildings in the structure tree. Patch by s0600204, fixes #3738.
Also fix a newline in the tooltip.

This was SVN commit r17643.
2016-01-13 18:44:30 +00:00
leper fb92761c92 Use explicit types instead of auto.
This was SVN commit r17642.
2016-01-13 00:42:55 +00:00
leper 27fab6bf1e Constify Spatial.h a bit.
While there don't check for null when delete-ing since that is a no-op,
use the proper type instead of auto, always swap when removing a single
element (instead of comparing .size() to 1), and clean up includes.

foobar

This was SVN commit r17641.
2016-01-13 00:20:22 +00:00
leper e6a8cd8c5e Do not redeclare a variable.
This was SVN commit r17640.
2016-01-12 20:04:33 +00:00
elexis ee6a5fd915 Extend defensive-stance tooltip and add quotes to object keys.
This was SVN commit r17639.
2016-01-12 18:32:30 +00:00
elexis a02f797169 Add unit-stance tooltips. Patch by bb, fixes #3385.
Reorder cases, correct indentation, remove unneeded variable and
sprintf.

This was SVN commit r17638.
2016-01-12 16:19:43 +00:00
leper 4107c2abb9 Fix link to documentation.
This was SVN commit r17637.
2016-01-11 23:56:51 +00:00
mimo 83efc8363e fix old typos in sound config
This was SVN commit r17636.
2016-01-11 22:39:03 +00:00
leper 2ec4d87abf Use .assign instead of operator=.
This was SVN commit r17634.
2016-01-11 20:57:03 +00:00
leper f4898c18d8 SpiderMonkey 38 removes the JS_LookupProperty{,ById} API. Refs #3708.
Use JS_GetProperty{,ById} instead.
Ensure that we break if someone tries to serialize a getter by using
something similar to what we used pre 47a03c3397.
https://bugzilla.mozilla.org/show_bug.cgi?id=1094176

This was SVN commit r17633.
2016-01-11 20:03:33 +00:00
leper 39eb7fb243 Fix JS_SetGCZeal call.
https://bugzilla.mozilla.org/show_bug.cgi?id=650978
https://bugzilla.mozilla.org/show_bug.cgi?id=742570

This was SVN commit r17632.
2016-01-11 20:03:31 +00:00
leper 775f856421 Use .assign instead of operator=.
This was SVN commit r17631.
2016-01-11 20:03:28 +00:00
leper d08044c8ad JS_DumpHeap is removed in SpiderMonkey 38, since we have nothing using it remove it. Refs #3708.
https://bugzilla.mozilla.org/show_bug.cgi?id=1105069
https://bugzilla.mozilla.org/show_bug.cgi?id=1122842

This was SVN commit r17630.
2016-01-11 20:03:09 +00:00
leper 785acdb1c6 Fix test failure on Windows.
This was SVN commit r17629.
2016-01-11 20:03:01 +00:00
mimo f0fc36138d cleanup of previous patches
This was SVN commit r17627.
2016-01-10 22:46:37 +00:00
mimo 3246b02cda make easy AI levels easier and hard levels harders by also applying the bonus/malus to trade, fixes #3722
add some info on AI levels in the AI config window

This was SVN commit r17626.
2016-01-10 21:57:01 +00:00
mimo 7fa2962c45 allows changing options for one session without having to save them, fixes #3511
changes on text or number options are now detected without any need of
typing Return, fixes #2451
graphic options (using the renderer type) are now properly saved when
changed
sound options (using the function type) are still not saved

This was SVN commit r17625.
2016-01-10 21:41:34 +00:00
elexis e9511d21d5 Fix bug in d4d05c6236.
This was SVN commit r17624.
2016-01-10 17:25:40 +00:00
elexis 8c7b6dceaa Show status-bars of all players to observers, fixes #3215.
This was SVN commit r17623.
2016-01-10 16:47:57 +00:00
elexis 8859f33b38 Rename PickFriendlyEntitiesOnScreen to PickPlayerEntitiesOnScreen.
Rename PickFriendlyEntitiesInRect to PickPlayerEntitiesInRect.
Rename PickSimilarFriendlyEntities to PickSimilarPlayerEntities.
Add comment.
Refs #3215.

This was SVN commit r17622.
2016-01-10 14:47:09 +00:00
fabio 4a9d6d2e5f Update all OS X libraries to their latest versions (exlcuding currently unused libjpeg, see #2828). Some also include security fixes. Fixes #3721.
Also disable unused wxwidgets features. Patch by trompetin17, refs
#2924.
Tested by wraitii.

This was SVN commit r17621.
2016-01-10 13:23:25 +00:00
elexis 893ca29723 Allow 10 clients to conncet to the server by default (allows 8 players and 2 observers). Refs #3254.
This was SVN commit r17620.
2016-01-10 01:06:07 +00:00
elexis ead85b1572 Update the control-all-units checkbox when changing the perspective and onSimulationUpdate so that it always shows the correct value.
This was SVN commit r17619.
2016-01-10 00:59:28 +00:00
elexis 9a623a8e00 Style fixes.
This was SVN commit r17618.
2016-01-09 23:01:07 +00:00
elexis 6b710f35b0 Show the selection panels to observers / in replays, fixes #3731.
This allows observers to see the training queue, researched techs, unit
stance, constructable buildings, garrisoned units, market prices etc.
for all players without changing the perspective.
All buttons are disabled if the user isn't allowed to control the
affected player.
Notice updateUnitCommands() fills out the panel differently in case of
selecting an allied building.
Extends the GUIInterface methods "GetNeededResources",
"CheckTechnologyRequirements" and "IsTechnologyResearched" to optionally
take a different player-argument.

This was SVN commit r17617.
2016-01-09 22:01:08 +00:00
Itms 9b922ebadd Remove invisible character introduced in deaa224785.
This was SVN commit r17616.
2016-01-09 12:12:42 +00:00
Itms 629e73a768 Fix a compiler warning.
This was SVN commit r17615.
2016-01-09 09:52:51 +00:00
leper 491cba314a Translate some notification messages. Refs #3665.
This was SVN commit r17614.
2016-01-08 23:22:45 +00:00
leper caa81a1d31 Remove garrison code duplication.
This was SVN commit r17613.
2016-01-08 23:02:26 +00:00
Itms deaa224785 Fix some Gallic leader names, based on historic_bruno's suggestions. Fixes #3675
This was SVN commit r17612.
2016-01-08 20:12:25 +00:00
leper 87a93b2498 Add version command line option. Fixes #2965.
This was SVN commit r17611.
2016-01-08 19:35:33 +00:00
elexis b4f187b8d4 Defeat the player if he/she has no more units, nor buildings that can train units. Fixes #3229.
This was SVN commit r17610.
2016-01-08 12:21:40 +00:00
elexis 5b60f2d1f6 Display the buildrate of foundations in the tooltip. Patch by bb, fixes #3395.
This was SVN commit r17609.
2016-01-08 11:53:48 +00:00
fabio e1e4a00ad7 Enable sky by default. This is usually not needed during gameplay (no sky visible), but it is with cinematic, committed in 89aef0b6eb, where camera can point to the sky.
Can still be disabled in game options menu.
Refs: #3301.

This was SVN commit r17607.
2016-01-07 12:38:43 +00:00
elexis 1cc1ba2b17 Fix non-visual replaymode. Refs #3301 (cinematic camera). Patch by Vladislav. Bug reported by eternaf.
This was SVN commit r17606.
2016-01-06 21:40:59 +00:00
mimo a7743e95b9 cleanup of unused counters
This was SVN commit r17605.
2016-01-06 21:15:58 +00:00
elexis e0a1e2beb1 Session cleanup.
Don't send the simstate as an argument of reportGame().
Eliminate a for-each loop.
Remove some superfluous comments.

This was SVN commit r17604.
2016-01-05 03:02:59 +00:00
leper b18cd3254c Test FixedVector{2,3}D script conversions, and test calling functions of the prototypes.
Also ENSURE that the given value identifier is actually present in the
cache instead of creating one if it is not.

This was SVN commit r17603.
2016-01-04 21:41:40 +00:00
mimo 4c4beb8450 cleanup
This was SVN commit r17602.
2016-01-04 18:10:04 +00:00
elexis 9f334036ef Do not align object properties.
Do not construct objects if they only contain two atomic elements.
Revert getDisconnectReason so as to have a custom message for the error
case. Add a warning.

This was SVN commit r17601.
2016-01-04 17:59:12 +00:00
leper ab4668ac79 Remove legacy error codes from strings.
This was SVN commit r17600.
2016-01-04 17:58:28 +00:00
leper 7a3f011587 Fix a typo.
This was SVN commit r17599.
2016-01-04 17:05:43 +00:00
leper 5033fd6cbf Some const and fix the indentation.
This was SVN commit r17598.
2016-01-04 17:05:39 +00:00
mimo 24b14fe201 allow the AI to build near walls (but not gates), fixes #3725
This was SVN commit r17596.
2016-01-03 21:04:23 +00:00
Yves 89aef0b6eb Cinematic camera core functionality. Patch by Vladislav Belov.
Based on existing code that was still around from an old(not working)
implementation.
Supports basic control from trigger scirpts (queue, start and stop
camera paths) and works in multiplayer.

This was SVN commit r17594.
2016-01-03 12:41:04 +00:00
Yves d313a1934a Code style cleanups for CinemaPath in preparation for the cinematic camera patch.
Refs #3301

This was SVN commit r17593.
2016-01-02 20:14:14 +00:00
mimo a32aa3b6cf petra: use the proper attack number when deserializing, refs #3720
This was SVN commit r17592.
2016-01-02 18:16:50 +00:00
elexis 036f985017 Add missing semicolons.
Update timestamp.

This was SVN commit r17591.
2016-01-02 18:12:02 +00:00
mimo 8773d816ae add specific regeneration when idle, fixes #3606, patch by Guuts
This was SVN commit r17590.
2016-01-02 18:10:10 +00:00
mimo 1d00164b6b petra: make better use of the new fishing tech
This was SVN commit r17589.
2016-01-02 17:50:56 +00:00
leper d5d60d53ed Replace JS_ASSERT (which is renamed to MOZ_ASSERT in SpiderMonkey 38) with TS_ASSERT, since the former was used for no apparent reason.
This was SVN commit r17588.
2016-01-01 21:28:25 +00:00
JoshuaJB 9281aaf25e Map more specific messages from the Gloox documentation to registration results and stanza errors in the lobby code. Also, don't request translation of more arcane errors. Fixes #3047
This was SVN commit r17587.
2016-01-01 18:38:50 +00:00
mimo 371a41c216 seems that line was missing, with the result that garrisoned units sent a TerritoryPositionChanged message each turn
This was SVN commit r17586.
2016-01-01 17:45:53 +00:00
mimo 7c89cfb3ba fix typo in petra debug outputs
This was SVN commit r17585.
2016-01-01 17:41:49 +00:00
JoshuaJB 9f9db45a03 Fix broken feedback display logic and broken error handling from ccb534259d. Additionally, streamline logic in prelobby.js and remove an unexplained check in lobby.js added by 76a1a84a58.
This was SVN commit r17584.
2016-01-01 17:18:17 +00:00
elexis ccb534259d Major lobby cleanup.
Create an object holding the handling of all netmessage types.
Display private messages sent by moderators.

Details:
 Switch back the second and third argument of CreateSimpleMessage, so it
relates again to the switch/object.
 Reduce the dimension/nesting of the object/switch from three to two.
 Hence remove the useless "standard" and "internal" value send in the
text field.
 Rename CreateSimpleMessage to CreateGUIMessage
 Use the property "level" instead of "text" for "connect" and
"disconnect".
 Remove the handling of the "connect" event in lobby.js, since it is
never called.
 Translate the disconnect event.
 Add comments and explicit checks to handleMessage and handleMUCMessage
to make obvious where they differ.
 Remove the "message" property from those GUI messages, since it should
just use "text".
 Move the login-fail handling to JS.
 Remove useless sprintf calls from warning messages.
 Inline some variables.
 Add missing semicolons.

This was SVN commit r17581.
2015-12-31 17:08:23 +00:00
elexis 2bf194134b Repairrate cleanup. Refs #3395, patch by bb.
Rename ratio to rate.
Simplify translation.
Round in GUI, not simulation.
Check for div/0.
Fix wrong variable name in test_GuiInterface.js.

This was SVN commit r17580.
2015-12-31 15:20:12 +00:00
elexis 75eed7cc79 Missing semicolons, two wrong commata, jshint ftw.
This was SVN commit r17579.
2015-12-31 14:02:59 +00:00
Yves a144ec7e08 Indentation corrections and other code style fixes in preparation for the cinematic camera patch.
Refs #3301

This was SVN commit r17578.
2015-12-31 13:40:56 +00:00
elexis 460f17e6f7 Fix mauryan pillar of ashoka GUI panel bug. Refs #3639.
It can only be built while ashoka is alive.
Previously the structure was selectable from the panel but not placable
while he was absent.

This was SVN commit r17577.
2015-12-31 12:19:45 +00:00
elexis f7a262fa4a Remove trailing whitespace. Based on patch by otero, refs #3268.
This was SVN commit r17576.
2015-12-31 11:45:13 +00:00
Yves 8d9cfd66b8 Reorganize code in different files in prepartion for the cinematic camera patch (by Vladislav Belov).
Refs #3301

This was SVN commit r17575.
2015-12-30 21:16:35 +00:00
fabio 969008befd Add shebang to ease running the script as a program.
Update replay command adding needed -mod=public.

This was SVN commit r17574.
2015-12-30 14:29:28 +00:00
mimo 36c08193ba optimizes range queries, fixes #3717
This was SVN commit r17573.
2015-12-30 13:44:51 +00:00
elexis 082a32802b Refresh the diplomacy and trade window in case the playerselection (change perspective) has changed.
This was SVN commit r17572.
2015-12-30 12:10:11 +00:00
elexis aa8e0159a0 Only regain health while idle (Battlefield Medicine tech). Fixes #3606, patch by Guuts.
This was SVN commit r17571.
2015-12-30 11:37:50 +00:00
elexis 6cdd99474a Fix fail.
This was SVN commit r17570.
2015-12-30 11:17:50 +00:00
elexis 7648b4f482 Gamesetup and session cleanup.
Convert network commands to an object and simplify the formating of
system chat messages.

This was SVN commit r17569.
2015-12-29 15:29:24 +00:00
elexis 46a42c04ef Gamesetup message cleanup.
Transform switch-statements into objects.
Make them more consistent, in particular the kick/ban and
ready-messages.
Also colorizes the playername in disconnect messages.
Fix a wrong comment in the network code and remove a duplicate check
(AIs).

This was SVN commit r17568.
2015-12-29 14:45:53 +00:00
elexis 9f65e90b60 Fix wrong errormessage in case of encountering a broken replay.
This was SVN commit r17567.
2015-12-29 14:00:30 +00:00
elexis f8ec158116 Session cleanup.
Transform trivial switch-statements to objects.
Move removeOldChatMessage right below addChatMessage, since it is only
used there.

This was SVN commit r17566.
2015-12-28 23:16:33 +00:00
elexis 2e8d5aa2c8 Session chat cleanup.
Unify switch-statement using objects.
Do not parse recursively, but do a linear 2-step process. Remove msg.me
property and move "/me" parsing out of that function.
Early return instead of using msg.hide.
Add observer-checks for private messages to impede abuse and fix #3270.
Remove the "/all" command, since it doesn't add functionality but
complexity.
Remove a TODO as displaying multiple contexts ("/team /allies text"?) is
not useful currently and made the previous code error-prone.

This was SVN commit r17565.
2015-12-28 22:16:21 +00:00
mimo 2a0d403b4b let promotion improve a bit the capture strength of citizen
This was SVN commit r17564.
2015-12-28 18:51:49 +00:00
elexis 6182385626 Session cleanup.
Remove variable action.
Close diplomacy and trade window on disconnect.

This was SVN commit r17563.
2015-12-28 17:19:29 +00:00
mimo 543472b77b Optimization of isBoxVisible + cleanup, fixes #3712
This was SVN commit r17561.
2015-12-28 16:27:31 +00:00
mimo 82c215de49 prevent thousands of calls per turn of calculeTerritories which would exit immediately
This was SVN commit r17560.
2015-12-28 16:23:06 +00:00
mimo 704c08d2b0 petra: fixes placement of dock when on the border of the map
fixes attack path computation when change of target during
preparation
       fixes #3710

This was SVN commit r17557.
2015-12-26 13:14:13 +00:00
elexis 0d41806e99 Session cleanup.
Move formating of resource-amounts to new function
translateResourceAmounts.
Rename player/player1 to sourcePlayer/targetPlayer.
Inline colorizedPlayername.

This was SVN commit r17556.
2015-12-26 01:40:50 +00:00
elexis 5d56ee0449 Session cleanup.
Move new objects to globals, which makes the code easier to read,
changable for mods and saves performance.
Move cheat functions below variable declarations.

Remove old function formatClientList, which for any reason didn't make
it into last commit.

This was SVN commit r17555.
2015-12-26 00:42:52 +00:00
elexis a280cb87db Colorize playernames when using the /list command in the gamesetup/session.
Add two missing semicolons and remove an unnecessary one.
Eliminate formatClientList, message, formattedUsername and
formattedUsernamePrefix.
Move four hardcoded colors to globals.

This was SVN commit r17554.
2015-12-25 23:49:28 +00:00
elexis 5f95bca6b0 Session cleanup (trading dialog text).
Move the code to update the idle-traders text to two new simplified
functions.
Eliminate all if-statements (including quadruple-nested ones).

This was SVN commit r17553.
2015-12-25 19:35:14 +00:00
elexis 0fb87496e7 Display the correct AI name instead of "Unknown Player" in case an AI sends a formatted chat message (introduced in 03adf0111a).
Thanks Evulant (AlThePhoenix) for reporting.

This was SVN commit r17552.
2015-12-25 18:07:16 +00:00
elexis b154056266 Those globals were removed in 5aae5ee55a.
This was SVN commit r17550.
2015-12-24 20:54:47 +00:00
elexis 5aae5ee55a Session menu cleanup.
Replace for-each with for-of.
Remove duplicate code from updateMenuPosition.
Eliminate three unneeded globals.
Rename savedGameData to g_SavedGameData.
Remove unneeded braces.

This was SVN commit r17549.
2015-12-24 14:59:03 +00:00
elexis 39ffb0a6bd Session menu cleanup.
Rename globals to g_Foo.
Remove unused variable playerID from updateTimeNotifications which
became obsolete in fe9eeedd66.
Use let instead of var.
Add some missing semicolons.
Fix whitespace, quote object keys.

This was SVN commit r17548.
2015-12-24 02:53:18 +00:00
elexis 7a75f22f9f Session cleanup.
Transform switch-statement in handleNetMessage to object of fat-arrow
functions.

Also add missing check to colorizePlayernameByGUID.

This was SVN commit r17547.
2015-12-24 01:46:06 +00:00
elexis 7caaa278d6 Session cleanup.
Move code from switch-statement to handlePlayerAssignmentsMessage.
Inline updatePlayerDataAdd and updatePlayerDataRemove as they are tiny
and only used here.
Remove comments, early return, eliminate for-each.

This was SVN commit r17546.
2015-12-24 01:06:01 +00:00
elexis f276791069 Session cleanup.
Transform netstatus switch-statement to an object consisting of a
fat-arrow function per message type.

This was SVN commit r17545.
2015-12-23 23:51:18 +00:00
elexis 3dcf51c466 Session chat cleanup.
Remove duplicate code by transforming getUsernameAndColor to
colorizePlayername.
Notice the previous function getUsernameAndColorByGUID didn't work with
unassigned players.

This was SVN commit r17544.
2015-12-23 19:06:48 +00:00
mimo 48f72aacc9 petra: some defense tweaks + cleanup
This was SVN commit r17543.
2015-12-23 16:17:05 +00:00
elexis 4eedfac0ca Refactor session chat.
Show chatmessages for diplomacy-changes and tributed resources to
observers/in replays. Fixes #3379.

This was SVN commit r17542.
2015-12-23 15:48:06 +00:00
elexis 03adf0111a Session chat cleanup
Remove g_PlayerAssignments from calls to findGuidForPlayerID, since the
argument was removed in ae92736b02.
Simplify formatChatMessage by moving playercolor-detection to
formatDefeatMessage and formatChatCommand.

This was SVN commit r17541.
2015-12-22 21:45:09 +00:00
leper cf7b8329fb Use var instead of let, since this variable is defined with var in this function already.
This was SVN commit r17540.
2015-12-22 20:43:17 +00:00
leper 3fd4d07ca1 Test \0 in object property names for serializing.
This was SVN commit r17539.
2015-12-22 19:01:18 +00:00
mimo 67b7366528 petra: remove hyphen in file names
This was SVN commit r17538.
2015-12-22 18:21:37 +00:00
elexis ae92736b02 Session chat cleanup.
Use .property instead of ["property"].
Use if (object.property) instead of if ("property" in object).
Use array- and fat-arrow functions.

This was SVN commit r17537.
2015-12-22 17:37:22 +00:00
mimo 3ba50b4ed4 decrease the repair rate of walls, refs #3707
This was SVN commit r17536.
2015-12-22 17:37:00 +00:00
leper 6970ebba16 Test non-ASCII string conversions.
This was SVN commit r17535.
2015-12-22 17:30:05 +00:00
elexis ef7c01ee4c Don't error out when selecting maps with non-existent civs.
This was SVN commit r17534.
2015-12-22 17:04:57 +00:00
mimo 385101bbe7 petra: cleanup of defenseManager
This was SVN commit r17533.
2015-12-22 16:58:53 +00:00
elexis dca07f9ddd Fix e9bc3e2089.
This was SVN commit r17532.
2015-12-22 16:44:27 +00:00
elexis 4212777334 Session chat cleanup.
Correct indentation.

This was SVN commit r17531.
2015-12-22 16:05:27 +00:00
elexis e9bc3e2089 Session chat cleanup.
Split formatChatMessage into smaller functions.
Correct the indentation with the next commit.

This was SVN commit r17530.
2015-12-22 16:02:25 +00:00
elexis 0e40273c28 Session chat cleanup.
Move code from addChatMessage to a new function formatChatMessage.

This was SVN commit r17529.
2015-12-22 15:29:03 +00:00
elexis 57af0ac8b4 Session chat cleanup.
Remove duplicate call to parseChatCommands.
Rename msg.action to msg.me, as it only applies to the "/me" chat
command.
Remove some duplicate checks.
Remove unused variable userTag.
Also fix a wrong space in the loading screen.

This was SVN commit r17528.
2015-12-22 14:56:30 +00:00
leper 848efb56b3 Make a method const.
This was SVN commit r17527.
2015-12-22 14:08:32 +00:00
elexis bd35b097e2 Session chat cleanup.
Process the "system" case first.
Move shared variable to colorizedPlayername.
Remove trailing whitespace.

This was SVN commit r17526.
2015-12-22 13:38:38 +00:00
elexis b790403c87 Strip trailing whitespace from network code.
This was SVN commit r17524.
2015-12-21 13:58:32 +00:00
elexis 72dcd7422d Loading screen cleanup. Patch by Stan, refs #2087.
Use let instead of var.
Use g_ prefix for globals.
Remove trailing whitespace.

This was SVN commit r17523.
2015-12-20 23:02:18 +00:00
elexis 41fa85a34b Map cleanup.
Remove the "Seed" attribute as it is a relict of Atlas and not used
anywhere.
Also remove the author-tag of Forest Battle (4) as it's the only map
that has it.

This was SVN commit r17522.
2015-12-20 21:48:48 +00:00
mimo 0dda3b579c drop resources before switching to next queued order, fixes #1670
This was SVN commit r17521.
2015-12-20 21:30:34 +00:00
elexis d4d05c6236 Session cleanup. Patch by Stan.
Eliminate the deprecated for-each.

This was SVN commit r17520.
2015-12-20 21:20:05 +00:00
mimo 423d26890a fix cases where changes in unitai orders were not transmitted to the ai
This was SVN commit r17519.
2015-12-20 21:07:47 +00:00
elexis bacedf18bc Show the repair-ratio in the tooltip of buildings. Patch by bb, refs #3395.
This was SVN commit r17518.
2015-12-20 20:40:42 +00:00
elexis eb8e381934 GuiInterface Cleanup
Remove trailing whitespace.

This was SVN commit r17517.
2015-12-20 19:18:39 +00:00
elexis fab9327a14 GuiInterface cleanup. Refs #3395.
Simplify GetAverageRangeForBuildings and GetFormationInfoFromTemplate.
Use let instead of var.
Quote object keys.
Remove unneeded braces and variables.
Remove unused variable cmpMirage in L414 and numCleared in L1096.
Add missing semicolon in L637.
Use fat-arrow function.

This was SVN commit r17516.
2015-12-20 19:05:57 +00:00
elexis c2b74197e0 Cleanup tooltips and selection details. Refs #3395.
Use let instead of var.
Quote object keys.
Prefix globals with g_.
Remove some unneeded variables.
Use ternary operator and fat arrow functions.

This was SVN commit r17515.
2015-12-20 17:15:21 +00:00
scythetwirler eea104748d Adjusts female citizen HP cost correctly using relative templates. Fixes #3510. Patch by Palaxin.
This was SVN commit r17514.
2015-12-19 22:57:28 +00:00
leper 509028d738 CompileOptions::setFileAndLine does not copy the string, so create a copy for it.
This was SVN commit r17512.
2015-12-19 02:55:30 +00:00
leper 332096e4ed SpiderMonkey 38 removes JS_AllocateArrayBufferContents.
Users required the returned buffer to be passable to free(), so replace
it by malloc().
https://bugzilla.mozilla.org/show_bug.cgi?id=1037358

This was SVN commit r17511.
2015-12-19 02:49:46 +00:00
leper 190f9176df SpiderMonkey 38 removes JS_NewPropertyIterator, use JS_Enumerate instead.
https://bugzilla.mozilla.org/show_bug.cgi?id=1081660

This was SVN commit r17510.
2015-12-19 02:21:22 +00:00
elexis e80e37cb21 Fix whitespace.
This was SVN commit r17509.
2015-12-19 02:03:30 +00:00
leper 753936e7df SpiderMonkey 38 removes JS_Evaluate{,UC}Script, use JS::Evaluate.
https://bugzilla.mozilla.org/show_bug.cgi?id=1100579

This was SVN commit r17508.
2015-12-19 01:58:03 +00:00
elexis 56bf37a54e Simulation cleanup (Attack.js)
Use let instead of var.
Do not redeclare timeToTarget and cmpTimer.
Remove unused variable graphicalPosition.
Fix some whitespace issues.

This was SVN commit r17507.
2015-12-19 01:48:11 +00:00
leper 2239fe338c The jschar typedef is removed in SpiderMonkey 38.
Since it already is char16_t in 31 replace it by that.
https://bugzilla.mozilla.org/show_bug.cgi?id=1063962

This was SVN commit r17506.
2015-12-19 01:29:55 +00:00
leper 69ab2bae5b Some ctors were made explicit in SpiderMonkey 38, so call them where needed.
https://bugzilla.mozilla.org/show_bug.cgi?id=1013663

This was SVN commit r17505.
2015-12-19 01:13:56 +00:00
leper efda359acc Use new when calling the builtin typed array constructor.
The current code will be forbidden in ES6.

This was SVN commit r17504.
2015-12-19 01:10:13 +00:00
elexis 825a2fcc34 Summary screen cleanup. Based on patch by bb, fixes #3518.
This was SVN commit r17503.
2015-12-19 01:00:32 +00:00
elexis a381334976 Gamesetup cleanup
Unify the gameattributes-update of checkboxes.

This was SVN commit r17502.
2015-12-18 22:40:56 +00:00
elexis 9cf9695d8d Graceful exit in case of trying to replay a directory. Fixes #3427.
Also remove unneeded variable ran_atlas.

This was SVN commit r17501.
2015-12-18 21:16:08 +00:00
elexis abce6cb737 Pathfinder optimization, fixes #3541.
Simplify the math of Geometry::TestRayAASquare.

This was SVN commit r17500.
2015-12-18 15:05:33 +00:00
elexis 659606b83e Revert the removal of setting the defaults in updateGUIObjects in b1e754c9b1 (until a better solution is found).
Add comments for the unsuspecting.

This was SVN commit r17499.
2015-12-18 12:48:04 +00:00
elexis 2d34b198df Remove a wrong tag from two skirmish maps.
This was SVN commit r17497.
2015-12-17 21:10:20 +00:00
elexis d31afada25 Gamesetup cleanup
Move assignments of dropdownlist functions from XML to JS, so they are
all defined in one place.
Rename a function.

This was SVN commit r17496.
2015-12-16 23:13:59 +00:00
mimo dca32228b5 fix dead tree actor, patch by stanislas69, fixes #3705
This was SVN commit r17495.
2015-12-16 20:45:08 +00:00
mimo 3196df663f some petra cleanup
This was SVN commit r17494.
2015-12-16 17:57:39 +00:00
mimo 6c4598fe16 increase a bit the loot xp of fauna_hunt, refs #3701
This was SVN commit r17493.
2015-12-16 17:54:00 +00:00
elexis 58cf3cb266 Correct two wrong references to variables in 5ccee7ade1. Patch by bb, fixes #3703.
This was SVN commit r17492.
2015-12-16 17:15:16 +00:00
fabio c1b97e4709 Improve indentation of 'case' statements updated after SDL1 removal (thanks leper).
Also update other 'case' statements in the same file for consistency.

This was SVN commit r17491.
2015-12-16 15:36:56 +00:00
elexis 7e9d105401 Toggle the session menu with the hotkey. Patch by Vladislav, fixes #3661.
This was SVN commit r17490.
2015-12-16 02:05:29 +00:00
elexis 1c6baed8e3 Gamesetup cleanup
Move creation of game-description to a separate function.

This was SVN commit r17489.
2015-12-16 01:37:43 +00:00
elexis b1e754c9b1 Gamesetup cleanup
Remove all remaining variables referencing GUI objects in
updateGUIObjects.
Do more simple checks and insert new calls at more coherent places.

This was SVN commit r17488.
2015-12-16 00:42:26 +00:00
elexis 6873a5e5a9 Gamesetup cleanup
Unify switch-statement and remove unused variables.

This was SVN commit r17487.
2015-12-15 23:57:45 +00:00
elexis f99de00779 Fix an operator precedence bug in the previous commit.
This was SVN commit r17486.
2015-12-15 23:19:01 +00:00
elexis 78cc57c16b Gamesetup cleanup (loadPersistMatchSettings, updateGUIObjects)
Move GUI updates from loadPersistMatchSettings to updateGUIObjects.
Simplify updateGUIObjects and use setGUIBoolean.
Move SetRankedGame from updateGUIObjects to handleGamesetupMessage.
Early return in handleGamesetupMessage.

This was SVN commit r17485.
2015-12-15 18:25:32 +00:00
elexis df25d425dd Gamesetup cleanup (loadPersistMatchSettings)
Remove duplicate GUI updates which are done in initMapNameList and
updateGUIObjects.
Remove the g_IsInGuiUpdate line as the variable will be overwritten with
the next statement.

This was SVN commit r17484.
2015-12-15 17:16:35 +00:00
elexis ffc70a2390 Gamesetup cleanup.
Don't copy the label from the dropdownlist, but create it from
g_MapFilters.
Move placeholder items to g_RandomMap and g_RandomCiv.

This was SVN commit r17483.
2015-12-15 15:40:34 +00:00
elexis ab053fef3e Gamesetup cleanup
Remove 4 duplicate GUI updates in updateGUIObjects.
mapSelectionBox is updated in initMapNameList, the other three are done
80 lines below.
Inline finding of the selected map.

This was SVN commit r17482.
2015-12-15 14:57:06 +00:00
elexis a960958379 Gamesetup cleanup.
Abort in case a client tries to update the gamesettings.

Rename onGameAttributesChange to updateGUIObjects.
Move a check to sendRegisterGameStanza().

This was SVN commit r17481.
2015-12-15 14:14:52 +00:00
elexis 8354adb74a Gamesetup cleanup
Deobfuscate mapfilter code. Remove unneeded, peculiar functions.
Construct g_MapFilters in-place and mark as const.

In initMapNameList, load "all" maps if no mapfilter is specified.

This was SVN commit r17480.
2015-12-15 12:23:39 +00:00
fabio 5a7c2ec2db Cleanup after SDL1 removal.
Remove the "sdl1" option from premake4.lua (thanks historic_bruno).
Improve isUnprintableChar indentation, resolve two defines, change SDL*
to SDL2 in premake (thanks leper).

This was SVN commit r17479.
2015-12-15 08:53:24 +00:00
elexis 931f5f752b Gamesetup cleanup.
Resolve if-statements in initMultiplayerSettings.

This was SVN commit r17478.
2015-12-15 00:21:27 +00:00
mimo 5a7a56da41 more cleanup on petra
This was SVN commit r17477.
2015-12-14 21:17:22 +00:00
mimo 0ed4a4c102 update the XP loot points of animals, fixes #3701, and remove the outdated and not used elephant template
This was SVN commit r17476.
2015-12-14 20:49:04 +00:00
elexis 636cc34a13 Gamesetup cleanup & translation fix
The caption of mapSelectionText (mapname-label visible to clients)
showed "random" instead of a translated "Random".
Move hardcoded "orange" color to a global const.

Simplify loadMapData.
Rename saveGameAttributes() to savePersistMatchSettings().

This was SVN commit r17475.
2015-12-14 18:47:41 +00:00
elexis a8ac537ebc Limit the number of units spawned when using cheats to prevent freezing the game. Based on patch by Stan, fixes #3545.
This was SVN commit r17474.
2015-12-14 17:10:55 +00:00
elexis da9ec4f325 Session cleanup.
Remove unused and useless ambientsound code. The ambient actually stops
with EndGame.

This was SVN commit r17473.
2015-12-14 16:47:45 +00:00
elexis 5df6a0182a Gamesetup cleanup.
Use hideControl for playerdropdowns.
Remove some superfluous checks and  comments.
Simplify using logical or, math and ternary operator.

This was SVN commit r17472.
2015-12-14 15:37:58 +00:00
elexis acde954f8d Gamesetup cleanup.
Use let in function scope too.

Though spider monkey doesn't support let fully yet, it might be able to
detect some more reference errors in the code with later versions.
For example if a let variable is referenced before being defined
(temporal dead zone).
Besides, it is an easier rule to follow (let in functions, var for
globals) and makes the code more coherent.

This was SVN commit r17471.
2015-12-14 14:32:43 +00:00
fabio 9a2d0f803e Remove disabled by default SDL1 support.
Refs #2041.

This was SVN commit r17470.
2015-12-14 10:52:21 +00:00
elexis 7665a9ee31 Session cleanup.
The usual suspects:
Move all constants to the top.
Rename all globals to g_Foo.
Use let for all local variables (except in the for-each parts which will
be updated later).
Quote object keys.
Ternary operator.
Fat-arrow functions.
Whitespace issues.

This was SVN commit r17468.
2015-12-14 05:37:34 +00:00
elexis 25e6136786 Clear g_ChatTimers too in case the new /clear command is used from the session. Refs #3396.
This was SVN commit r17467.
2015-12-14 04:14:58 +00:00
elexis 4dbc9b8b1d Cleanup color.js
Move some shared color-code to color.js.
Remove shuffleArray() as it's unused since bbc325fb5a.
Add JSdoc comments and use let.

This was SVN commit r17466.
2015-12-14 03:53:48 +00:00
elexis 6e80288d30 Add a chat-command to clear all messages. Works for lobby, gamesetup and session. Patch by ruiRanger, fixes #3396.
This was SVN commit r17465.
2015-12-14 03:12:26 +00:00
elexis f776e06044 Session messages/notification cleanup.
Rename globals, use const, let, JSdoc comments.
Rename host to guid for coherency.
Don't use for-each.

This was SVN commit r17464.
2015-12-14 03:08:53 +00:00
mimo 45c7d1681f petra cleanup, mainly renaming stuff for better readability
This was SVN commit r17463.
2015-12-13 22:04:09 +00:00
elexis 5864447d92 Don't resurrect dead units when trying to promoting them while they die. Patch by karamel, fixes #3544.
This was SVN commit r17461.
2015-12-13 18:09:56 +00:00
wraitii b87b3ff3dc Left some debug code in.
This was SVN commit r17460.
2015-12-13 17:39:19 +00:00
elexis a7a6b3316c GUI cleanup.
Moves cropping of the mappreview image to a common function
setMapPreviewImage.
Also avoids magic numbers by using the actual formula.

This was SVN commit r17459.
2015-12-13 17:09:41 +00:00
wraitii 1e504cd64c Fix the actoreditor menu bar on OSX. Patch by trompetin17. Fixes #1554.
This was SVN commit r17458.
2015-12-13 16:53:35 +00:00
wraitii 909b8d4369 Allow multiple special sprites, to facilitate cases where we want to add an overlay to a sprite.
"color" can make use of the sprite's alpha texture, and the "add_color"
effect will now take the original image's alpha into account.
Remove the no longer needed "unaffordableMask" images on a variety of
panels.

Somewhat based on a patch by BoeseRaupe. Fixes #2421 and #3688.

This was SVN commit r17456.
2015-12-13 16:03:17 +00:00
elexis 88d6f35126 Summary screen cleanup.
Rename panelsData and teamMiscHelperData to g_Foo.
Use let instead of var everywhere except for globals.
Quote object keys, add some spaces.

This was SVN commit r17455.
2015-12-13 13:20:54 +00:00
elexis 5ccee7ade1 Summary screen cleanup. Patch by bb, refs #3518.
Renames globals to g_Foo.
Uses let instead of for in loops.
Fixes indentation and some whitespace issues.

This was SVN commit r17453.
2015-12-13 12:42:58 +00:00
Enrique 160b6e60cd Added new tree acacia and variations.
Upgraded aleppo pines.
New Oaks and dead oaks variations.
New generic dead trees.
Upgraded grapes texture by Stanislas69. Thanks Stan!

This was SVN commit r17452.
2015-12-12 22:44:39 +00:00
elexis 5c36a4ab22 Gamesetup cleanup.
Unify calls to hideControl which were duplicated per maptype.

This was SVN commit r17451.
2015-12-12 21:43:32 +00:00
elexis 59b9a7a0db Gamesetup cleanup.
Introduce a GUI function to set checkboxes and their label-counterpart
in one line.
Replace code that is duplicated for every maptype.
Fix a typo "ExporeMap" from e05c8263c5.

This was SVN commit r17450.
2015-12-12 20:29:54 +00:00
elexis 745b1aae8d Correctly hide the mapsize-description (see 0b4308bbc8).
This was SVN commit r17449.
2015-12-12 18:07:39 +00:00
mimo 47a23904e5 adding more diversity in petra warnings
This was SVN commit r17448.
2015-12-12 15:45:02 +00:00
elexis 0b4308bbc8 Gamesetup cleanup (simplify GUI calls)
Make a hidden function globally available and use it everywhere to
simplify the hiding/showing of GUI elements.
Use strings instead of the references to the actual GUI objects, so that
the code doesn't rely on variables anymore.
Use a default argument so we can reuse it with regards to other
conditions like scenario maps or multiplayer.
Notice the JS variables have the same name as the GUIObjects, so the
replacement is simple.

This was SVN commit r17447.
2015-12-12 15:35:52 +00:00
elexis 2e54fee44d Fix oversight in 3006904403.
This was SVN commit r17446.
2015-12-12 15:27:07 +00:00
elexis 96003e8812 Correct the order of JSDoc arguments in so many places and use @returns instead of @return.
Remove some unneeded comments.

This was SVN commit r17445.
2015-12-12 14:53:28 +00:00
elexis 89f74d2528 Fix a playerassignment-bug in the gamesetup where the game couldn't be started if a player has rejoined the gamesetup while the host reduced the number of players.
The previous code failed at it as it looped over g_PlayerAssignments
instead of all slots.

Based on patch by Pilzschaf, fixes #3602.

This was SVN commit r17444.
2015-12-12 12:00:18 +00:00
elexis a939b49de7 Fix #3607 by assigning new players to unused slots instead of assuming that the n'th slot is available.
This was SVN commit r17443.
2015-12-12 10:48:59 +00:00
elexis 3006904403 Gamesetup cleanup.
Split handleNetMessage into five smaller functions.
Besides improving the readability a bit, it allows adding new variables
without declaring them in the scope of other messagetypes.

This was SVN commit r17442.
2015-12-12 10:31:06 +00:00
mimo ead4caaa41 do mot modify the cmd object, refs #3467
This was SVN commit r17441.
2015-12-11 20:15:10 +00:00
elexis bdc028fe09 Include award-winning skirmish map Forest Battle (4). Map created by Stan and reworked by niektb. Fixes #3618.
See Mapping Contest 16 hosted by the Council of Modders.

This was SVN commit r17440.
2015-12-11 19:36:03 +00:00
leper 71abb9cbed Use same resource translations as are used in the GUI already. Refs #3691.
This was SVN commit r17439.
2015-12-11 19:11:37 +00:00
mimo eacbdd4dfb cleanup in the petra queueManager
This was SVN commit r17438.
2015-12-11 18:45:03 +00:00
mimo 489822e384 some cleanup in the ai common-api
This was SVN commit r17437.
2015-12-11 18:35:01 +00:00
elexis 925b2910fe Fix whitespace and remove the placeholder functions initHostControls and initFinalize (see previous commit).
This was SVN commit r17436.
2015-12-11 18:33:09 +00:00
elexis 7b9c1e23db Major gamesetup cleanup.
Split the 280-line function initGUIObjects (former initMain) into
sixteen short functions.

Do not correct indentation in this commit in order to have the smallest
changeset possible, highlighting the actual changes
[the only logic change being mapTypes.selected and mapFilters.selected
being set one function (initMoreOptions) earlier].

This was SVN commit r17435.
2015-12-11 18:20:45 +00:00
wraitii 48e3959391 Change the "Summary" button from the top bar to the menu to help support our minimal resolution.
Disable said button for non-observers.
Refs #3387.

This was SVN commit r17434.
2015-12-11 15:49:33 +00:00
elexis 4a81d53f3b Gamesetup cleanup.
Rename initMain to initGUIObjects to clarify what the function does.
While init() sets globals without touching the GUI, initGUIObjects
updates all GUI controls after the first tick.

Rename loadGameAttributes to loadPersistMatchSettings as that's more
specific as to where the attributes are loaded from.
Add some JSDoc comments and a TODO for an annoying old bug.

Simplifiy to-boolean conversions by negating twice (!!)

This was SVN commit r17433.
2015-12-11 14:11:33 +00:00
elexis 682a7b3ba0 Gamesetup cleanup.
Don't define variables inside switch-statements.
Move chat-font to global.
Rename host and an i to guid, newPlayer to newGUID to be more coherent.
Do early continues when finding joinings/leavings and swapping players.

This was SVN commit r17432.
2015-12-11 11:55:16 +00:00
elexis c32a2b52be Gamesetup cleanup.
Simplify initMapNameList.
Remove six superfluous checks.
Remove two unneeded variables in updatePlayerList.

This was SVN commit r17431.
2015-12-11 10:17:44 +00:00
elexis 42548698c5 Gamesetup cleanup.
Replace more var by let.
The only remaining places to update are switch-statements.

This was SVN commit r17429.
2015-12-11 00:21:04 +00:00
elexis df86b15b91 Gamesetup cleanup.
Simplify by using array functions, the ternary operator and unifying
duplicate code.
Move map-paths to a global.

This was SVN commit r17428.
2015-12-11 00:02:18 +00:00
mimo d07f16ed80 petra: fix resource translations, fixes #3691
This was SVN commit r17427.
2015-12-10 20:35:24 +00:00
mimo afa07325a1 petra: improve the detection of stuck gatherers, refs #3562
This was SVN commit r17426.
2015-12-10 20:02:37 +00:00
mimo a74d9be130 make const the new method introduced in 2451872731
This was SVN commit r17425.
2015-12-10 19:23:50 +00:00
elexis 57260e185b Use let instead of var in the gamesetup.
Doing so follows the principle of least exposure and means those
variables will be destroyed when leaving the block (i.e. memory being
freed up earlier).

The blocks affected by this commit are short (mostly 3-5 lines).
The variables are not referenced before or after the block, nor in their
temporal dead zones.

This was SVN commit r17424.
2015-12-10 17:44:14 +00:00
wraitii e57c99c6f6 Add a button to the top bar to access the summary screen in-game or in replays.
No effort was done to prevent players from accessing it since it's
impossible to prevent them from doing so anyway.

Fixes #3387 .

This was SVN commit r17423.
2015-12-10 15:33:06 +00:00
elexis 4dcbad7b1b Simplify init() and initMain(). Exit gracefully in case of encountering an error there.
Do not focus the maplist when entering the singleplayer gamesetup as
that actually doesn't have an effect (you can't scroll the maplist with
arrow-keys).

This was SVN commit r17422.
2015-12-10 14:24:03 +00:00
elexis 9b4e359d64 Gah.
This was SVN commit r17421.
2015-12-10 13:28:57 +00:00
elexis 223305b7ae Simplify sendRegisterGameStanza by using the conditional operator and removing four variables which are used only once.
This was SVN commit r17420.
2015-12-10 13:20:45 +00:00
elexis 7a8c37a885 Use map function instead of deprecated for-each.
This was SVN commit r17419.
2015-12-10 13:06:36 +00:00
elexis 63fa889fcd Rename playableOnly to selectableOnly as non-selectable civs can be playable on scenario maps.
This was SVN commit r17418.
2015-12-10 12:52:38 +00:00
elexis af4dc43478 Revert the removal of non-selectable civs from the gamesetup (bbc325fb5a) to allow scenario maps to select unselectable civs.
This was SVN commit r17417.
2015-12-10 12:49:53 +00:00
leper 349b5786dd Fix test failure. Refs #3590.
This was SVN commit r17416.
2015-12-09 22:52:33 +00:00
mimo b6dbb2bff0 fix tabs of 2451872731
This was SVN commit r17415.
2015-12-09 20:56:53 +00:00
mimo 2451872731 improve performance of hierarchical pathfinder, refs #3588
This was SVN commit r17413.
2015-12-09 19:56:30 +00:00
fabio 73a26a22ca Enable by default postproc, smoothlos and all water features when on OpenGL4+.
This autodetection has a higer priority than default.cfg, but lower
priority than local changes.
Note that after enabling these features some get disabled later on on
some drivers (Intel, software renderers).
Also note that mesa drivers only expose core profile OpenGL, and 0 A.D.
reads compatibility profile, so that on mesa drivers OpenGL4 is never
detected and these features are never enabled by default.

This was SVN commit r17412.
2015-12-09 16:12:58 +00:00
fabio 07f0a178f4 Fixes what looks a copy-paste error.
Makes disable_allwater setting in hwdetect.js what it was supposed to
do.

This was SVN commit r17411.
2015-12-09 11:35:40 +00:00
fabio a5152c14d1 Properly use the passed parameter as all other occourences.
Fixes 'disable_allwater = false' case in hwdetect.js.

This was SVN commit r17410.
2015-12-09 11:28:24 +00:00
mimo 6a73dc2e16 fix multiple (useless) insertion in grid update of hierarchical pathfinder
This was SVN commit r17409.
2015-12-08 22:58:04 +00:00
leper b4f0227f1b Add support for undeletable entities. Fixes #3590.
This was SVN commit r17408.
2015-12-08 22:34:32 +00:00
mimo 82ca673e0a petra: retune the dock placement criteria, fixes #3469
This was SVN commit r17407.
2015-12-08 19:16:50 +00:00
leper 489e41362a Use placeholder in plural string.
This was SVN commit r17406.
2015-12-08 18:13:09 +00:00
leper fd32da5c87 Update tinygettext.
Updates tinygettext to upstream commit
328f015d0b07465c8a5a05cbfc0a41154a2f8ebf.
This adds better collision logging.

This was SVN commit r17405.
2015-12-08 18:05:11 +00:00
leper 61886f0e7a Use inheritance instead of redefining properties.
This was SVN commit r17404.
2015-12-08 18:05:06 +00:00
JoshuaJB 80663a6c8a Add gray, stone-esc modern button type.
This was SVN commit r17403.
2015-12-07 18:47:41 +00:00
elexis 71cd4ac3cc Simplify input.js. Unify checks, remove unneeded variables and use the conditional operator.
This was SVN commit r17401.
2015-12-07 13:45:50 +00:00
elexis 780a1de136 Don't comment out code. Refs #3486.
This was SVN commit r17400.
2015-12-07 12:27:52 +00:00
elexis 8af675e207 Don't emit sounds when selecting dead animals. Patch by Stan. Fixes #3486.
This was SVN commit r17399.
2015-12-07 00:21:24 +00:00
elexis 9e39d6b46c Implement markForPluralTranslation() which allows to translate plural-strings sent by the simulation.
Use it for the build-restriction notifications.

Based on patch by Safa Alfulaij, fixes #3081.

This was SVN commit r17398.
2015-12-06 23:56:03 +00:00
leper 66bb4deef8 Use the tech name as it is used everywhere else.
This was SVN commit r17397.
2015-12-06 21:29:09 +00:00
mimo d5e083247a fix 66bd932374 which has increased too much the repair specificness: it should be higher than the capture one, but smaller than the move one. refs #3443
This was SVN commit r17396.
2015-12-06 21:02:04 +00:00
leper 3483a2d226 Extract attack notification strings. Refs #3691.
This was SVN commit r17395.
2015-12-06 20:51:32 +00:00
leper abd7b78b02 Return the boolean test instead of having an if-return return.
This was SVN commit r17394.
2015-12-06 20:51:30 +00:00
elexis 2bd22bb6a8 Fix whitespace.
This was SVN commit r17393.
2015-12-06 17:13:47 +00:00
elexis 0462829579 Use more plural translations for tooltips. Patch by Safa Alfulaij. Refs #3081.
This was SVN commit r17392.
2015-12-06 16:56:46 +00:00
elexis 953e745067 Do a more explicit sanitycheck in loadCivData (in case we encounter the value false).
Make that viking boat gaia which is more coherent with the other
eastereggs.

This was SVN commit r17391.
2015-12-06 15:30:49 +00:00
elexis 21f032c305 Ignore the "user" mod when checking the compability of replays and savegames.
This was SVN commit r17390.
2015-12-06 14:00:03 +00:00
elexis 84678cf40e Tune lobby rating alignment and remove a TODO that won't be fixed due to uglyness.
This was SVN commit r17389.
2015-12-06 13:21:41 +00:00
elexis cff6056e9f Lobby cleanup.
Remove unneeded 4 globals and 2 functions used for sorting the lobby
lists.

This was SVN commit r17388.
2015-12-06 12:13:06 +00:00
elexis 66ec6dbf12 Lobby cleanup.
Actually define these variables and revert to sorting by state for
gamelists by default (despite not having a column to sort for that).

This was SVN commit r17387.
2015-12-06 11:42:30 +00:00
scythetwirler 987a7028bd Implements relative templates. Fixes #2936. Thanks to leper, wraitii, historicbruno and everyone else that helped.
This was SVN commit r17386.
2015-12-05 17:02:25 +00:00
mimo 8813cb3133 petra: some fixes (buildrestrictions min distance) and some cleanup
This was SVN commit r17385.
2015-12-05 15:02:45 +00:00
mimo 99c0d0493c remove warnings in structtree, fixes #3682, patch from s0600204
This was SVN commit r17384.
2015-12-05 14:57:09 +00:00
elexis 4b37462645 Restore player- and game-selection when updating the lists. Fixes #3244.
The previous selection is saved globally so that we don't lose it in
case of no element being selected.
Also remove an unused variable.

This was SVN commit r17383.
2015-12-05 04:28:23 +00:00
elexis 7316473921 Don't translate botnames in multiplayer games (so names are in english instead of the language of the host). Refs #3307
This was SVN commit r17382.
2015-12-04 23:54:45 +00:00
elexis bbc325fb5a Gamesetup cleanup. Refs #3680.
Don't even load non-playable civs in the gamesetup and add sanity checks
to sanitizePlayerData() and loadCivData() so that we can remove later
checks.
Remove some blatantly wrong code from launchGame().
Move hardcoded romanNumbers to a global.

This was SVN commit r17381.
2015-12-04 23:45:35 +00:00
elexis 71b0d9c052 Update atlas with the new map_sizes.json format. Refs #3355.
This was SVN commit r17379.
2015-12-04 16:37:30 +00:00
elexis 6572b6d042 Simplify civ info (main menu -> learn how to play -> history).
Add JSDoc comments.
Refs #3680 a bit.

This was SVN commit r17378.
2015-12-04 15:35:34 +00:00
elexis 654ec6f2bf Gamesetup cleanup. Refs #3680
Simplify mapfilter code and mark g_CivData as const.

This was SVN commit r17377.
2015-12-04 14:06:01 +00:00
elexis 82d93c89dd Gamesetup cleanup. Refs #3680
Remove a broken implementation of default maps.
Remove some unneeded comments.

This was SVN commit r17376.
2015-12-04 13:10:50 +00:00
elexis 99d7b73d2c Don't link unused eastereggs to wrong civs. Patch by Stan, fixes #3679.
This was SVN commit r17375.
2015-12-04 12:47:04 +00:00
elexis e8bb6f5974 Actually remove the old file from the repository. Refs #3355
This was SVN commit r17374.
2015-12-04 12:30:24 +00:00
elexis a98a44875e Move mapsizes to the new simulation settings system. Fixes #3355.
Notice that initMapSizes() confusingly mapped from "LongName" to "names"
and from "Name" to "shortnames".
Now it's identical in both parts.

Also fixes a bug in the summary screen where it would show "Scenario"
for a skirmish map.

This was SVN commit r17373.
2015-12-04 12:24:58 +00:00
elexis d50075adc4 Lobby cleanup. Fixes #3383
This was SVN commit r17371.
2015-12-04 00:22:15 +00:00
elexis 76a1a84a58 Lobby cleanup. Refs #3383
Remove wrong attempt to display private-messages in the lobby.
Move hardcoded font to g_SenderFont global.
Replace some variables with references.
Correct indentation in ircFormat().

This was SVN commit r17370.
2015-12-03 22:22:26 +00:00
elexis 787960b63c Lobby cleanup. Refs #3383
Removes a broken translation in displayProfile().
Removes many unused functions, variables and comments.
Moves filter initialization to new function.
Moves hardcoded system color to g_SystemColor.
Simplifies a lot without changing the logic otherwise.

This was SVN commit r17369.
2015-12-03 17:43:16 +00:00
elexis 88816a1043 Fix two oversights and simplify mapfilter-initialization. Refs #3383
This was SVN commit r17368.
2015-12-03 14:10:28 +00:00
elexis 2e69872b11 Remove debug parser from replay menu. Refs #3440
This was SVN commit r17367.
2015-12-03 03:12:43 +00:00
elexis 477e8c36ee Lobby cleanup. Simplifies updatePlayerList() and moves hardcoded color values to the top of the file for easy access. Refs #3383
This was SVN commit r17366.
2015-12-03 02:52:44 +00:00
historic_bruno 5b2738b0cb Doubles size of sound card string buffers, for users with many sound devices present. Fixes #3660
This was SVN commit r17365.
2015-12-02 22:41:17 +00:00
elexis 3c6580ed83 Add JSdoc comments to all lobby globals and remove g_MapSizes because it is only used locally. Refs #3383
This was SVN commit r17364.
2015-12-02 17:44:09 +00:00
elexis a88e8e3e5c Remove obfuscated easteregg in the lobby.
This was SVN commit r17363.
2015-12-02 17:21:08 +00:00
elexis 2b64d83978 Enlighten too dark username-colors in the lobby and gamesetup-chat. Patch by fpre, fixes #3205.
This was SVN commit r17362.
2015-12-02 17:00:12 +00:00
elexis e6840f5fca Remove useless global g_SpecialKey. Refs #3383
This was SVN commit r17360.
2015-12-02 16:00:20 +00:00
elexis d1f0cbe01d Renames to g_MapSizes, g_UserRating and g_SpamMonitor. Refs #3383 #3440
This was SVN commit r17359.
2015-12-02 14:54:08 +00:00
elexis 02c065e2c9 Removes the unused "gone" presence state from the lobby. Refs #3383.
This was SVN commit r17358.
2015-12-02 14:41:32 +00:00
elexis eeaffa05ee Correct sorting for ratings in the lobby and use fat-arrow functions. Fixes #3662.
This was SVN commit r17357.
2015-12-02 14:29:27 +00:00
elexis a1e57aaeaf Replay menu cleanups. Fixes #3440.
Hides the summary-button in the replaymenu in case the summary wasn't
saved.
Corrects the timestamp for incompatible replays.
Remove unused UNUSED from header files.
Use string8() instead of OsString().
Mention a reported compiler warning.
Use const& instead of a copy in StartVisualReplay().

This was SVN commit r17356.
2015-12-02 13:53:44 +00:00
elexis 0553a74884 Remove wrong semicolons. Refs #3424
This was SVN commit r17353.
2015-12-02 03:24:04 +00:00
mimo cd635f9615 cleanup of df6d30a910
This was SVN commit r17352.
2015-12-01 21:03:24 +00:00
mimo df6d30a910 fix affordable gui of gates
This was SVN commit r17351.
2015-12-01 19:41:52 +00:00
mimo 0a8fc4bb08 improve pathFinder by optimizing the DistanceToSquare computation, refs #3588
This was SVN commit r17350.
2015-12-01 19:01:41 +00:00
elexis b657eb05e2 Remove the unused and broken function GetBaseSpeed. Fixes #3672.
This was SVN commit r17349.
2015-12-01 13:17:34 +00:00
fabio 60f82e54dd Make the warning message on software renderers a bit more informative.
This was SVN commit r17348.
2015-12-01 09:42:49 +00:00
fabio 418318ea88 Properly read preferglsl in user config files.
This was SVN commit r17347.
2015-12-01 09:00:12 +00:00
elexis bef7682bbe Fixes a bug in the mauryan warchariot walk-animation. They were walking instead of standing on the chariot when it moves.
Patch by Stan. Refs #2577.

This was SVN commit r17346.
2015-11-30 22:09:00 +00:00
elexis 45723b1293 Don't break the translation of the playerdefaults. Refs #3355
This was SVN commit r17345.
2015-11-30 20:51:20 +00:00
mimo 6fd700d95d restore min range distance of defense towers, and make it removable with murder_hole tech, fixes #3559
This was SVN commit r17344.
2015-11-30 20:49:57 +00:00
leper 2008f3e3a9 Plural translation since that is needed for some languages.
This was SVN commit r17343.
2015-11-30 20:47:42 +00:00
mimo 66bd932374 gives repair a lower priority compared to capture, fixes #3443
This was SVN commit r17342.
2015-11-30 20:26:10 +00:00
leper 6f09803e8c TerrainTextureManager file loading rewrite. Fixes #3358.
Add directory callback to vfs::ForEachFile.
Each terrain directory should now have a terrains.xml file,
as using the previous terrains.xml file is unlikely to be what was
intended.

This was SVN commit r17341.
2015-11-30 20:12:12 +00:00
fabio af202ae963 Clean up software renderers detection.
Fix llvmpipe (mesa) detection.
Add softpipe (mesa) detection.
Add GDI Generic (Windows) detection.
Consolidate software renderers detection in a function.
Disable s3tc on software renderers, it halves performance and make
textures weird.
Add a warning when on software renderer, to inform the player something
is bad.

This was SVN commit r17339.
2015-11-30 16:12:12 +00:00
fabio fa9c8e061b Enable GLSL by default on OpenGL 3+.
This doesn't override any user setting, it just changes the default when
no preferglsl setting is specified.

Fixes #3641.
Refs #145.

This was SVN commit r17338.
2015-11-30 10:51:02 +00:00
elexis f8f8a1eb6a Increases the gatherer limit for some special resources. Fixes #3583.
This was SVN commit r17336.
2015-11-30 04:20:30 +00:00
elexis 324179e2b9 Show icon for the female inspiration aura. Fixes #3384
This was SVN commit r17335.
2015-11-30 03:58:19 +00:00
elexis d7e444b862 Loot resources that killed enemies carried. Fixes #2732
This was SVN commit r17334.
2015-11-30 03:41:18 +00:00
elexis 56716577e0 Changes the type "notification" of some GuiInterface-notifications to "chat" as the former isn't defined.
Also fixes a typo reported by AlThePhoenix and removes trailing
whitespace.

This was SVN commit r17333.
2015-11-30 02:06:58 +00:00
elexis 700859b2c3 Move the playerdefaults to the settings directory. Refs #3355
This was SVN commit r17332.
2015-11-30 01:33:59 +00:00
wraitii 61e5e92b14 Update/revamp my template analyzer tool.
Remove the useless "fancy" data in favor of a simpler visualization of
templates, adding an in-place tool to filter and sort (for convenience).

This was SVN commit r17331.
2015-11-29 19:19:20 +00:00
elexis ff30dc2ba4 Forgot to add the JSON file. Refs #3477.
This was SVN commit r17330.
2015-11-29 16:53:32 +00:00
elexis 296f3b2614 Adds a new cheat as an abbreviation for most other cheats. Also cleans the code.
Fixes #3477. Patch by bb.

This was SVN commit r17329.
2015-11-29 16:47:04 +00:00
wraitii 28bea05e06 Show units that can train other units (trainer units) in the structure tree. Patch by s0600204. Fixes #3213 .
This was SVN commit r17328.
2015-11-29 16:18:21 +00:00
mimo c9f40be84e improve indentation of 34b0c6d779
This was SVN commit r17327.
2015-11-29 16:13:13 +00:00
mimo 34b0c6d779 add a NOT when checking classes matching, fixes #3611
This was SVN commit r17326.
2015-11-29 15:59:52 +00:00
wraitii 814cdd9524 Tie tangent generation with preferGLSL setting for convenience since that setting was not really useful. Fixes #2506 . Patch by fabio.
This was SVN commit r17325.
2015-11-29 15:44:22 +00:00
wraitii 51793dde28 Fix an oversight when constructing walls that changed issued commands and would result in false positives when running with -serializationtest. Refs #3637
This was SVN commit r17324.
2015-11-29 15:25:51 +00:00
elexis bb7c4aa86a Code cleanup. Refs #3420.
Since the window is now closed immediately after disconnect in
messages.js, we don't need to close it in menu.js.

This was SVN commit r17323.
2015-11-29 15:11:30 +00:00
mimo 9f75b78a84 fix nearGatherPosition, fixes #3658
This was SVN commit r17322.
2015-11-29 14:43:28 +00:00
mimo 42d42243ac add specific names for gaul and brit fishing ships, fixes #3490, patch from stanislas69
This was SVN commit r17321.
2015-11-29 14:29:43 +00:00
elexis a6b44c12a2 Don't replace the custom colors of scenario maps with default colors. Fixes #3627.
This was SVN commit r17320.
2015-11-29 13:38:10 +00:00
elexis 58f88210f3 Informs the translation extractor of the replay menu. Fixes #3656.
Thanks Itms for reporting :-)

This was SVN commit r17319.
2015-11-29 13:31:38 +00:00
elexis 6a4e0f714c Cleans up Looter.js. Removes duplicate code and simplifies it. Fixes #3424. Thanks fcxSanya for the review!
This was SVN commit r17318.
2015-11-29 02:15:35 +00:00
elexis 7b67324ae6 Code cleanup.
Adds missing whitespace to objects.
Removes trailing whitespace.
Corrects some for-loop counters.

This was SVN commit r17317.
2015-11-29 01:45:45 +00:00
elexis d8ecc2f87f Lobby cleanup.
Designate constants as such.
Comply with naming convention for globals.
Quote object keys.
Add few JSDoc comments.

Refs #3383.

This was SVN commit r17316.
2015-11-29 01:29:38 +00:00
elexis d39810df7d Closes the chat window after disconnect and prevents opening it again. Fixes #3420.
This was SVN commit r17315.
2015-11-29 00:51:00 +00:00
elexis 7de746cc58 Visual replay code cleanup. Refs #3440.
Moves StartVisualReplay() from JSInterface_VisualReplay.cpp to
VisualReplay.cpp, so that the former doesn't define any logic.
Uses replayFile.string8() instead of
utf8_from_wstring(replayFile.string()).
SAFE_DELETE instead of delete.
Fixes a compiler warning in getReplayDuration().

This was SVN commit r17314.
2015-11-29 00:23:18 +00:00
elexis 8cf2333568 Corrects an offset of a menu entry. Thanks niektb for reporting. Refs #3440
This was SVN commit r17313.
2015-11-28 23:27:54 +00:00
wraitii d21f932bf9 Experiment: lower the cost of palisade walls a lot and of stone walls slightly, make them both faster to build. Make palisades less resistant (in particular to hack attacks). Reduce the efficiency of stone wall towers since those could be used stand-alone to have more towers.
This was SVN commit r17312.
2015-11-28 15:32:23 +00:00
mimo 8f74850215 add technologies for fishing, fixes #3576, fishing_net icon from stanislas69
This was SVN commit r17311.
2015-11-28 13:43:26 +00:00
mimo be9b6fa59c improves performance of hierarchical pathFinder, refs #3588
This was SVN commit r17310.
2015-11-28 13:06:44 +00:00
mimo 0d27dbf5a3 some petra cleanup
This was SVN commit r17309.
2015-11-28 11:46:45 +00:00
mimo ca3828f9ac some simulation cleanup
This was SVN commit r17308.
2015-11-28 11:43:14 +00:00
mimo be2ddb9c63 some gui cleanup
This was SVN commit r17307.
2015-11-28 11:23:04 +00:00
mimo 2548187474 fix selection when owner change, ref #3645
This was SVN commit r17306.
2015-11-28 11:16:13 +00:00
mimo 2d4ec03019 update packing flag, fixes #3628
This was SVN commit r17305.
2015-11-28 11:11:40 +00:00
mimo 0d1b595fa0 fix UnitAI state, fix #3630
This was SVN commit r17304.
2015-11-28 11:09:29 +00:00
leper 432df9b38e Use two range based for loops to fix two TODOs.
This was SVN commit r17303.
2015-11-28 08:27:42 +00:00
leper c0c19db94e Null serialization functions for some components without dynamic state.
This was SVN commit r17302.
2015-11-28 08:27:41 +00:00
leper e4834e8a0d Some JS component cleanup.
This was SVN commit r17301.
2015-11-28 08:27:38 +00:00
leper 5d243d0ce8 Clarify font licenses.
This was SVN commit r17300.
2015-11-28 08:27:36 +00:00
leper 9a40d1284e Update version numbers. Switch lobby room.
This was SVN commit r17299.
2015-11-28 08:27:33 +00:00
6094 changed files with 123270 additions and 260007 deletions
+4
View File
@@ -0,0 +1,4 @@
{
"phabricator.uri" : "https://code.wildfiregames.com/",
"repository.callsign" : "P"
}
+18
View File
@@ -0,0 +1,18 @@
{
"exclude": [
"(^binaries/system/)",
"(^source/third_party/)",
"(^libraries/)"
],
"linters": {
"text": {
"type": "text",
"severity": {
"1": "disabled",
"2": "disabled",
"3": "disabled",
"5": "disabled"
}
}
}
}
+5 -5
View File
@@ -37,7 +37,7 @@ in particular, let us know and we can try to clarify it.
BSD
/build/premake/*.lua
MIT
MIT - see license_mit.txt
/docs
Various (unspecified)
@@ -49,7 +49,7 @@ in particular, let us know and we can try to clarify it.
GPL version 2 (or later) - see license_gpl-2.0.txt
/source/lib
MIT
MIT - see license_mit.txt
/source/scriptinterface/third_party
MPL 2.0
@@ -60,16 +60,16 @@ in particular, let us know and we can try to clarify it.
/source/third_party/encryption
GPL version 2 (or later)
ISC (pkcs5_pbkdf2.cpp)
MIT (pkcs5_pbkdf2.h)
MIT (pkcs5_pbkdf2.h) - see license_mit.txt
/source/third-party/jsonspirit
MIT
MIT - see license_mit.txt
/source/third_party/mikktspace
zlib
/source/third_party/mongoose
MIT
MIT - see license_mit.txt
/source/third_party/tinygettext
zlib
+73 -27
View File
@@ -5,6 +5,12 @@
; * create a text file called "local.cfg" instead, and copy *
; * the lines from this file that you want to change. *
; * *
; * If a setting is part of a section (for instance [hotkey]) *
; * you need to append the section name at the beginning of *
; * your custom line (for instance you need to write *
; * "hotkey.pause = Space" if you want to change the pausing *
; * hotkey to the spacebar). *
; * *
; * On Linux, create: *
; * $XDG_CONFIG_HOME/0ad/config/local.cfg *
; * (Note: $XDG_CONFIG_HOME defaults to ~/.config) *
@@ -23,12 +29,6 @@ windowed = false
; Show detailed tooltips (Unit stats)
showdetailedtooltips = false
; Enable/disable the splashscreen
splashscreendisable = false
; Splashscreen version (date of last modification). By default, 0 to force splashscreen to appear at first launch.
splashscreenversion = 0
; Pause the game on window focus loss (Only applicable to single player mode)
pauseonfocusloss = true
@@ -73,7 +73,7 @@ shadowpcf = true
vsync = false
particles = true
silhouettes = true
showsky = false
showsky = true
nos3tc = false
noautomipmap = true
@@ -96,12 +96,9 @@ force_s3tc_enable = true
renderpath = default
;;;;; EXPERIMENTAL ;;;;;
; Prefer GLSL shaders over ARB shaders (not recommended). REQUIRES gentangents=true.
; Prefer GLSL shaders over ARB shaders. Allows fancier graphical effects.
preferglsl = false
; Generate tangents for normal and parallax mapping. REQUIRES preferglsl=true.
gentangents = false
; Experimental probably-non-working GPU skinning support; requires preferglsl; use at own risk
gpuskinning = false
@@ -111,7 +108,7 @@ smoothlos = false
; Use screen-space postprocessing filters (HDR, bloom, DOF, etc). Incompatible with fixed renderpath.
postproc = false
; Quality level of shader effects (set to 10 to display effects)
; Quality level of shader effects (set to 10 to display all effects)
materialmgr.quality = 2.0
; Maximum distance to display parallax effect. Set to 0 to disable parallax.
@@ -128,6 +125,9 @@ forcealphatest = false
; Color of the sky (in "r g b" format)
skycolor = "0 0 0"
[adaptivefps]
session = 60 ; Throttle FPS in running games (prevents 100% CPU workload).
menu = 30 ; Throttle FPS in menus only.
[hotkey]
; Each one of the specified keys will trigger the action on the left
@@ -135,7 +135,7 @@ skycolor = "0 0 0"
; See keys.txt for the list of key names.
; > SYSTEM SETTINGS
exit = "Alt+F4", "Ctrl+Break", "Super+Q" ; Exit to desktop
exit = "Ctrl+Break", "Super+Q" ; Exit to desktop
cancel = Escape ; Close or cancel the current dialog box/popup
leave = Escape ; End current game or Exit
confirm = Return ; Confirm the current command
@@ -160,16 +160,17 @@ console.toggle = BackQuote, F9 ; Open/close console
fps.toggle = "Alt+F" ; Toggle frame counter
realtime.toggle = "Alt+T" ; Toggle current display of computer time
session.devcommands.toggle = "Alt+D" ; Toggle developer commands panel
session.gui.toggle = "Alt+G" ; Toggle visibility of session GUI
menu.toggle = "F10" ; Toggle in-game menu
timeelapsedcounter.toggle = "F12" ; Toggle time elapsed counter
session.showstatusbars = Tab ; Toggle display of status bars
session.highlightguarding = PgDn ; Toggle highlight of guarding units
session.highlightguarded = PgUp ; Toggle highlight of guarded units
session.toggleaurarange = "Alt+V" ; Toggle display of aura range overlays of selected units and structures
session.togglehealrange = "Alt+B" ; Toggle display of heal range overlays of selected units
; > HOTKEYS ONLY
chat = Return ; Toggle chat window
teamchat = "T" ; Toggle chat window in team chat mode
privatechat = "L" ; Toggle chat window and select the previous private chat partner
; > QUICKSAVE
quicksave = "Shift+F5"
@@ -178,6 +179,7 @@ quickload = "Shift+F8"
[hotkey.camera]
reset = "R" ; Reset camera rotation to default.
follow = "F" ; Follow the first unit in the selection
rallypointfocus = unused ; Focus the camera on the rally point of the selected building
zoom.in = Plus, Equals, NumPlus ; Zoom camera in (continuous control)
zoom.out = Minus, NumMinus ; Zoom camera out (continuous control)
zoom.wheel.in = WheelUp ; Zoom camera in (stepped control)
@@ -234,7 +236,7 @@ add = Shift ; Add units to selection
milonly = Alt ; Add only military units to selection
idleonly = "I" ; Select only idle units
remove = Ctrl ; Remove units from selection
cancel = Esc ; Un-select all units and cancel building placement
cancel = Esc ; Un-select all units and cancel building placement
idleworker = Period ; Select next idle worker
idlewarrior = ForwardSlash ; Select next idle warrior
offscreen = Alt ; Include offscreen units in selection
@@ -275,25 +277,35 @@ offscreen = Alt ; Include offscreen units in selection
[hotkey.session]
kill = Delete ; Destroy selected units
stop = "H" ; Stop the current action
backtowork = "Y" ; The unit will go back to work
unload = "U" ; Unload garrisoned units when a building/mechanical unit is selected
attack = Ctrl ; Modifier to attack instead of another action (eg capture)
attackmove = Ctrl ; Modifier to attackmove when clicking on a point
attackmoveUnit = "Ctrl+Q" ; Modifier to attackmove targeting only units when clicking on a point (should contain the attackmove keys)
garrison = Ctrl ; Modifier to garrison when clicking on building
autorallypoint = Ctrl ; Modifier to set the rally point on the building itself
guard = "G" ; Modifier to escort/guard when clicking on unit/building
patrol = "P" ; Modifier to patrol a unit
repair = "J" ; Modifier to repair when clicking on building/mechanical unit
queue = Shift ; Modifier to queue unit orders instead of replacing
batchtrain = Shift ; Modifier to train units in batches
massbarter = Shift ; Modifier to barter bunch of resources
masstribute = Shift ; Modifier to tribute bunch of resources
noconfirmation = Shift ; Do not ask confirmation when deleting a building/unit
fulltradeswap = Shift ; Modifier to put the desired trade resource to 100%
unloadtype = Shift ; Modifier to unload all units of type
deselectgroup = Ctrl ; Modifier to deselect units when clicking group icon, instead of selecting
rotate.cw = RightBracket ; Rotate building placement preview clockwise
rotate.ccw = LeftBracket ; Rotate building placement preview anticlockwise
[hotkey.session.gui]
toggle = "Alt+G" ; Toggle visibility of session GUI
menu.toggle = "F10" ; Toggle in-game menu
barter.toggle = "Ctrl+B" ; Toggle in-game barter/trade page
[hotkey.session.savedgames]
delete = Delete ; Delete the selected saved game asking confirmation
noConfirmation = Shift ; Do not ask confirmation when deleting a game
noconfirmation = Shift ; Do not ask confirmation when deleting a game
[hotkey.session.queueunit] ; > UNIT TRAINING
1 = "Z" ; add first unit type to queue
@@ -319,18 +331,31 @@ move.right = "Ctrl+RightArrow" ; Move cursor to start of word to the right of
cursorblinkrate = 0.5 ; Cursor blink rate in seconds (0.0 to disable blinking)
scale = 1.0 ; GUI scaling factor, for improved compatibility with 4K displays
[gui.menu]
limitfps = true ; Limit FPS in the menus and loading screen
[gui.gamesetup]
enabletips = true ; Enable/Disable tips during gamesetup (for newcomers)
assignplayers = everyone ; Whether to assign joining clients to free playerslots. Possible values: everyone, buddies, disabled.
[gui.session]
attacknotificationmessage = true ; Show attack notification messages
camerajump.threshold = 40 ; How close do we have to be to the actual location in order to jump back to the previous one?
timeelapsedcounter = false ; Show the game duration in the top right corner
batchtrainingsize = 5 ; Number of units to be trained per batch (when pressing the hotkey)
aurarange = true ; Display aura range overlays of selected units and structures
healrange = true ; Display heal range overlays of selected units
[gui.session.minimap]
blinkduration = 1.7 ; The blink duration while pinging
pingduration = 50.0 ; The duration for which an entity will be pinged after an attack notification
[gui.session.notifications]
attack = true ; Show a chat notification if you are attacked by another player
tribute = true ; Show a chat notification if an ally tributes resources to another team member if teams are locked, and all tributes in observer mode
barter = true ; Show a chat notification to observers when a player bartered resources
phase = completed ; Show a chat notification if you or an ally have started, aborted or completed a new phase, and phases of all players in observer mode. Possible values: none, completed, all.
[gui.splashscreen]
enable = true ; Enable/disable the splashscreen
version = 0 ; Splashscreen version (date of last modification). By default, 0 to force splashscreen to appear at first launch
[joystick] ; EXPERIMENTAL: joystick/gamepad settings
enable = false
deadzone = 8192
@@ -342,27 +367,45 @@ rotate.y = 2
zoom.in = 5
zoom.out = 4
[jsdebugger]
; The Debugger is currently broken and can't be enabled until the SpiderMonkey upgrade is done and the debugger is updated for the new API.
enable = false ; Enable Javascript debugging.
[chat]
timestamp = true ; Show at which time chat messages have been sent
[chat.session]
extended = true ; Whether to display the chat history
[lobby]
chattimestamp = false ; Show time chat message was posted
history = 0 ; Number of past messages to display on join
room = "arena19" ; Default MUC room to join
room = "arena22" ; Default MUC room to join
server = "lobby.wildfiregames.com" ; Address of lobby server
xpartamupp = "wfgbot19" ; Name of the server-side xmpp client that manage games
xpartamupp = "wfgbot22" ; Name of the server-side xmpp client that manage games
buddies = "," ; Comma separated list of playernames that the current user has marked as buddies
[lobby.columns]
gamerating = false ; Show the average rating of the participating players in a column of the gamelist
[lobby.stun]
enabled = true ; The STUN protocol allows hosting games without configuring the firewall and router.
; If STUN is disabled, the game relies on direct connection, UPnP and port forwarding.
server = "lobby.wildfiregames.com" ; Address of the STUN server.
port = 3478 ; Port of the STUN server.
delay = 200 ; Duration in milliseconds that is waited between STUN messages.
; Smaller numbers speed up joins but also become less stable.
[mod]
enabledmods = "mod public"
[network]
duplicateplayernames = false ; Rename joining player to "User (2)" if "User" is already connected, otherwise prohibit join.
lateobservers = everyone ; Allow observers to join the game after it started. Possible values: everyone, buddies, disabled.
observerlimit = 8 ; Prevent further observer joins in running games if this limit is reached
[overlay]
fps = "false" ; Show frames per second in top right corner
realtime = "false" ; Show current system time in top right corner
netwarnings = "true" ; Show warnings if the network connection is bad
[profiler2]
autoenable = false ; Enable HTTP server output at startup (default off for security/performance)
script.enable = false ; Enable Javascript profiling. Needs to be set before startup and can't be changed later. (default off for performance)
gpu.arb.enable = true ; Allow GL_ARB_timer_query timing mode when available
gpu.ext.enable = true ; Allow GL_EXT_timer_query timing mode when available
gpu.intel.enable = true ; Allow GL_INTEL_performance_queries timing mode when available
@@ -374,6 +417,9 @@ ambientgain = 0.6
actiongain = 0.7
uigain = 0.7
[sound.notify]
nick = true ; Play a sound when someone mentions your name in the lobby or game
[tinygettext]
debug = false ; Print error messages each time a translation for an English string is not found.
+2 -98
View File
@@ -1,5 +1,7 @@
## This file documents keynames that can be used in .cfg files for specifying hotkeys
## Note: the keynames are not actually configured or implemented here
## Also note: if your keyboard supports keys that do not appear here (such as the French é letter),
## you should be able to use it directly.
Backspace, BkSp
Tab
@@ -150,101 +152,3 @@ Mouse Wheel Down, WheelDown
MouseButtonX, MouseNX # where X is a number 1-255, for extra mouse buttons
## (note that some mice start numbering their buttons at higher numbers
## so the first extra button on your mouse might be #8 here)
## Special keys for international and non-QWERTY keyboards:
World0, W0
World1, W1
World2, W2
World3, W3
World4, W4
World5, W5
World6, W6
World7, W7
World8, W8
World9, W9
World10, W10
World11, W11
World12, W12
World13, W13
World14, W14
World15, W15
World16, W16
World17, W17
World18, W18
World19, W19
World20, W20
World21, W21
World22, W22
World23, W23
World24, W24
World25, W25
World26, W26
World27, W27
World28, W28
World29, W29
World30, W30
World31, W31
World32, W32
World33, W33
World34, W34
World35, W35
World36, W36
World37, W37
World38, W38
World39, W39
World40, W40
World41, W41
World42, W42
World43, W43
World44, W44
World45, W45
World46, W46
World47, W47
World48, W48
World49, W49
World50, W50
World51, W51
World52, W52
World53, W53
World54, W54
World55, W55
World56, W56
World57, W57
World58, W58
World59, W59
World60, W60
World61, W61
World62, W62
World63, W63
World64, W64
World65, W65
World66, W66
World67, W67
World68, W68
World69, W69
World70, W70
World71, W71
World72, W72
World73, W73
World74, W74
World75, W75
World76, W76
World77, W77
World78, W78
World79, W79
World80, W80
World81, W81
World82, W82
World83, W83
World84, W84
World85, W85
World86, W86
World87, W87
World88, W88
World89, W89
World90, W90
World91, W91
World92, W92
World93, W93
World94, W94
World95, W95
+1
View File
@@ -22,6 +22,7 @@
"MarkForTranslationWithContext": [[1], 2]
},
"commentTags": [
"dennis-ignore:",
"Translation:"
]
}
@@ -2,3 +2,44 @@ function GlobalSubtractionHelper(a, b)
{
return a-b;
}
function Vector2D(x, y)
{
if (arguments.length == 2)
{
this.x = x;
this.y = y;
}
else
this.x = this.y = 0;
}
Vector2D.prototype.add = function(v)
{
this.x += v.x;
this.y += v.y;
return this;
};
function Vector3D(x, y, z)
{
if (arguments.length == 3)
{
this.x = x;
this.y = y;
this.z = z;
}
else
this.x = this.y = this.z = 0;
}
Vector3D.prototype.add = function(v)
{
this.x += v.x;
this.y += v.y;
this.z += v.z;
return this;
};
// make the prototypes easily accessible to C++
const Vector2Dprototype = Vector2D.prototype;
const Vector3Dprototype = Vector3D.prototype;
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity>
<Test2A datatype="tokens">
a b c
</Test2A>
</Entity>
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="inherit_a">
<Test2A datatype="tokens">
d
</Test2A>
</Entity>
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity>
<Test2A a="b">
a b c
</Test2A>
</Entity>
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity parent="inherit_c">
<Test2A c="d"/>
</Entity>
@@ -0,0 +1,44 @@
<?xml version="1.0" encoding="utf-8"?>
<Entity filtered="">
<AIProxy merge=""/>
<Armour merge=""/>
<BuildRestrictions merge=""/>
<!-- Don't provide population bonuses yet (but still do take up population cost) -->
<Cost merge="">
<PopulationBonus>0</PopulationBonus>
</Cost>
<Decay merge=""/>
<Health>
<Initial>1</Initial>
</Health>
<Fogging merge=""/>
<Footprint merge=""/>
<!-- Add the Foundation component, to deal with the construction process -->
<Foundation replace=""/>
<Health merge=""/>
<Identity merge=""/>
<!-- Foundations shouldn't initially block unit movement -->
<Obstruction merge="">
<DisableBlockMovement>true</DisableBlockMovement>
<DisableBlockPathfinding>true</DisableBlockPathfinding>
</Obstruction>
<OverlayRenderer merge=""/>
<Ownership merge=""/>
<Position merge=""/>
<RallyPoint merge=""/>
<RallyPointRenderer merge=""/>
<Selectable merge=""/>
<Sound merge=""/>
<StatusBars merge=""/>
<Visibility merge=""/>
<!-- Foundations should be visible themselves in fog-of-war if their base template is,
but shouldn't have any vision range -->
<Vision merge="">
<Range>0</Range>
<RevealShore merge="">false</RevealShore>
</Vision>
<!-- Switch the actor to foundation mode -->
<VisualActor>
<Foundation/>
</VisualActor>
</Entity>
@@ -1,23 +1,14 @@
<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<SoundGroup>
<Gain>1</Gain>
<Pitch>1</Pitch>
<Priority>100</Priority>
<ConeGain>1</ConeGain>
<ConeInner>360</ConeInner>
<ConeOuter>360</ConeOuter>
<Looping>0</Looping>
<RandOrder>1</RandOrder>
<RandGain>1</RandGain>
<GainUpper>1</GainUpper>
<GainLower>0.8</GainLower>
<RandPitch>1</RandPitch>
<PitchUpper>1.1</PitchUpper>
<PitchLower>0.9</PitchLower>
<Threshold>1</Threshold>
<Decay>3</Decay>
<Replacement>ui_button_click.ogg</Replacement>
<Path>audio/interface/ui</Path>
<Sound>ui_button_click.ogg</Sound>
<Sound>ui_button_longclick.ogg</Sound>
</SoundGroup>
</SoundGroup>
@@ -1,22 +1,13 @@
<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<SoundGroup>
<Gain>1</Gain>
<Pitch>1</Pitch>
<Priority>100</Priority>
<ConeGain>1</ConeGain>
<ConeInner>360</ConeInner>
<ConeOuter>360</ConeOuter>
<Looping>0</Looping>
<RandOrder>1</RandOrder>
<RandGain>1</RandGain>
<GainUpper>1</GainUpper>
<GainLower>0.8</GainLower>
<RandPitch>1</RandPitch>
<PitchUpper>1.1</PitchUpper>
<PitchLower>0.9</PitchLower>
<Threshold>1</Threshold>
<Decay>3</Decay>
<Replacement>ui_button_longclick.ogg</Replacement>
<Path>audio/interface/ui</Path>
<Sound>ui_button_longclick.ogg</Sound>
</SoundGroup>
@@ -29,7 +29,6 @@ SoundGroup = element SoundGroup {
element ConeGain { xsd:float }? &
element ConeInner { xsd:float }? &
element ConeOuter { xsd:float }? &
element Replacement { text }? &
element Threshold { xsd:float }? &
element Decay { xsd:float }? &
element Sound { text }+ &
@@ -106,11 +106,6 @@
<data type="float"/>
</element>
</optional>
<optional>
<element name="Replacement">
<text/>
</element>
</optional>
<optional>
<element name="Threshold">
<data type="float"/>
+71 -81
View File
@@ -1,88 +1,74 @@
var g_translations = {};
var g_pluralTranslations = {};
var g_translationsWithContext = {};
var g_pluralTranslationsWithContext = {};
/**
* These functions rely on the JS cache where possible and
* should be prefered over the Engine.Translate ones to optimize the performance.
*/
var g_Translations = {};
var g_PluralTranslations = {};
var g_TranslationsWithContext = {};
var g_PluralTranslationsWithContext = {};
// Checks if the specified variable is a string, and if it is, it checks that it
// is not empty.
function isNonEmptyString(variable)
function isTranslatableString(message)
{
if (typeof variable != "string")
return false;
else if (variable.trim())
return true;
else
return false;
return typeof message == "string" && !!message.trim();
}
// Translates the specified English message into the current language.
//
// This function relies on the g_translations cache when possible. You should use this function instead of
// Engine.Translate() whenever you can to minimize the number of C++ calls and string conversions involved.
/**
* Translates the specified English message into the current language.
*/
function translate(message)
{
var translation = g_translations[message];
if (!translation)
return g_translations[message] = Engine.Translate(message);
return translation;
if (!g_Translations[message])
g_Translations[message] = Engine.Translate(message);
return g_Translations[message];
}
// Translates the specified English message into the current language for the specified number.
//
// This function relies on the g_pluralTranslations cache when possible. You should use this function instead of
// Engine.TranslatePlural() whenever you can to minimize the number of C++ calls and string conversions involved.
/**
* Translates the specified English message into the current language for the specified number.
*/
function translatePlural(singularMessage, pluralMessage, number)
{
var translation = g_pluralTranslations[singularMessage];
if (!translation)
g_pluralTranslations[singularMessage] = {};
if (!g_PluralTranslations[singularMessage])
g_PluralTranslations[singularMessage] = {};
var pluralTranslation = g_pluralTranslations[singularMessage][number];
if (!pluralTranslation)
return g_pluralTranslations[singularMessage][number] = Engine.TranslatePlural(singularMessage, pluralMessage, number);
if (!g_PluralTranslations[singularMessage][number])
g_PluralTranslations[singularMessage][number] = Engine.TranslatePlural(singularMessage, pluralMessage, number);
return pluralTranslation;
return g_PluralTranslations[singularMessage][number];
}
// Translates the specified English message into the current language for the specified context.
//
// This function relies on the g_translationsWithContext cache when possible. You should use this function instead of
// Engine.TranslateWithContext() whenever you can to minimize the number of C++ calls and string conversions involved.
/**
* Translates the specified English message into the current language for the specified context.
*/
function translateWithContext(context, message)
{
var translationContext = g_translationsWithContext[context];
if (!translationContext)
g_translationsWithContext[context] = {}
if (!g_TranslationsWithContext[context])
g_TranslationsWithContext[context] = {}
var translationWithContext = g_translationsWithContext[context][message];
if (!translationWithContext)
return g_translationsWithContext[context][message] = Engine.TranslateWithContext(context, message);
if (!g_TranslationsWithContext[context][message])
g_TranslationsWithContext[context][message] = Engine.TranslateWithContext(context, message);
return translationWithContext;
return g_TranslationsWithContext[context][message];
}
// Translates the specified English message into the current language for the specified context and number.
//
// This function relies on the g_pluralTranslationsWithContext cache when possible. You should use this function instead of
// Engine.TranslatePluralWithContext() whenever you can to minimize the number of C++ calls and string conversions involved.
/**
* Translates the specified English message into the current language for the specified context and number.
*/
function translatePluralWithContext(context, singularMessage, pluralMessage, number)
{
var translationContext = g_pluralTranslationsWithContext[context];
if (!translationContext)
g_pluralTranslationsWithContext[context] = {};
if (!g_PluralTranslationsWithContext[context])
g_PluralTranslationsWithContext[context] = {};
var translationWithContext = g_pluralTranslationsWithContext[context][singularMessage];
if (!translationWithContext)
g_pluralTranslationsWithContext[context][singularMessage] = {};
if (!g_PluralTranslationsWithContext[context][singularMessage])
g_PluralTranslationsWithContext[context][singularMessage] = {};
var pluralTranslationWithContext = g_pluralTranslationsWithContext[context][singularMessage][number];
if (!pluralTranslationWithContext)
return g_pluralTranslationsWithContext[context][singularMessage][number] = Engine.TranslatePluralWithContext(context, singularMessage, pluralMessage, number);
if (!g_PluralTranslationsWithContext[context][singularMessage][number])
g_PluralTranslationsWithContext[context][singularMessage][number] =
Engine.TranslatePluralWithContext(context, singularMessage, pluralMessage, number);
return pluralTranslationWithContext;
return g_PluralTranslationsWithContext[context][singularMessage][number];
}
/**
@@ -99,28 +85,24 @@ function translatePluralWithContext(context, singularMessage, pluralMessage, num
*/
function translateMessageObject(object)
{
// the translation function
var trans = translate;
let trans = translate;
if (object.context)
trans = function(msg) { return translateWithContext(object.context, msg);};
trans = msg => translateWithContext(object.context, msg);
if (object.message)
object = trans(object.message);
else if (object.list)
{
var translatedList = object.list.map(trans);
object = translatedList.join(translateWithContext("enumeration", ", "));
}
object = object.list.map(trans).join(translateWithContext("enumeration", ", "));
return object;
}
/**
* Translates any string value in the specified JavaScript object
* Translates any string value in the specified JavaScript object
* that is associated with a key included in the specified keys array.
*
* it accepts an object in the form of
*
*
* {
* translatedString1: "my first message",
* unTranslatedString1: "some English string",
@@ -139,7 +121,7 @@ function translateMessageObject(object)
* }
*
* Together with a keys list to translate the strings and objects
* ["translatedString1", "translatedString2", "translatedObject1",
* ["translatedString1", "translatedString2", "translatedObject1",
* "translatedObject2"]
*
* The result will be (f.e. in Dutch)
@@ -151,30 +133,28 @@ function translateMessageObject(object)
* unTranslatedString2: "some English string"
* },
* translatedObject1: "mijn derde bericht",
* translatedObject2: "lijst, van, teksten",
* translatedObject2: "lijst, van, teksten",
* }
*
* So you see that the keys array can also contain lower-level keys,
* And that you can include objects in the keys array to translate
* And that you can include objects in the keys array to translate
* them with a context, or to join a list of translations.
*
* Also, the keys array may be an object where properties are keys to translate
* and values are translation contexts to use for each key.
*/
function translateObjectKeys(object, keys) {
// If keys is an array, simply translate.
function translateObjectKeys(object, keys)
{
if (keys instanceof Array)
{
for (var property in object)
for (let property in object)
{
if (keys.indexOf(property) > -1)
{
if (isNonEmptyString(object[property]))
if (isTranslatableString(object[property]))
object[property] = translate(object[property]);
else if (object[property] instanceof Object)
{
object[property] = translateMessageObject(object[property]);
}
}
else if (object[property] instanceof Object)
translateObjectKeys(object[property], keys);
@@ -185,11 +165,11 @@ function translateObjectKeys(object, keys) {
// An empty value means no context.
else
{
for (var property in object)
for (let property in object)
{
if (property in keys)
{
if (isNonEmptyString(object[property]))
if (isTranslatableString(object[property]))
if (keys[property])
object[property] = translateWithContext(keys[property], object[property]);
else
@@ -208,11 +188,21 @@ function translateObjectKeys(object, keys) {
* So it may only be used on a plain string,
* it won't have any effect on a calculated string.
*/
function markForTranslation(message) {
function markForTranslation(message)
{
return message;
}
function markForTranslationWithContext(context, message) {
function markForTranslationWithContext(context, message)
{
return message;
}
function markForPluralTranslation(singularMessage, pluralMessage, number)
{
return {
"message": singularMessage,
"pluralMessage": pluralMessage,
"pluralCount": number
};
}
@@ -223,4 +223,4 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
})
}
}
})(typeof window === "undefined" ? this : window);
})(typeof window === "undefined" ? this : window);
@@ -15,6 +15,7 @@
sprite_back_vertical = "ModernScrollBack"
sprite_bar_vertical = "ModernScrollBar"
/>
<!--
==========================================
- TOOLTIPS -
@@ -30,6 +31,18 @@
sprite="BlackBorderOnGray"
textcolor="255 255 255"
/>
<tooltip name="sliderTooltip"
anchor="top"
buffer_zone="4"
delay="0"
font="sans-14"
maxwidth="300"
offset="16 32"
sprite="BlackBorderOnGray"
textcolor="255 255 255"
/>
<!--
==========================================
- COLORS -
@@ -199,6 +199,22 @@
size = "0 1 100% 100%-1"
/>
</sprite>
<sprite name="ModernDarkBoxGoldDisabled">
<effect grayscale=""/>
<!-- borders -->
<image texture = "global/modern/gold-separator.png"
real_texture_placement = "0 0 806 1"
size = "0 0 100% 1"
/>
<image texture = "global/modern/gold-separator.png"
real_texture_placement = "0 0 806 1"
size = "0 100%-1 100% 100%"
/>
<!-- background -->
<image backcolor = "12 12 12 100"
size = "0 1 100% 100%-1"
/>
</sprite>
<sprite name="ModernDarkBoxWhite">
<!-- borders -->
<image texture = "global/modern/white-separator.png"
@@ -555,6 +571,150 @@
size="100%-8 100%-8 100% 100%"
/>
</sprite>
<!-- GRAY -->
<sprite name="ModernButtonGray">
<!-- Background -->
<image texture="global/modern/button/gray-unselected-background.png"
real_texture_placement="0 0 512 128"
texture_size="0 0 512 128"
size="2 2 100%-2 100%-2"
/>
<!-- Left -->
<image texture="global/modern/button/gray-unselected-left-top.png"
real_texture_placement="0 0 8 8"
size="0 0 8 8"
/>
<image texture="global/modern/button/gray-unselected-left-center.png"
real_texture_placement="0 0 8 16"
texture_size="0 0 8 16"
size="0 8 8 100%-8"
/>
<image texture="global/modern/button/gray-unselected-left-bottom.png"
real_texture_placement="0 0 8 8"
size="0 100%-8 8 100%"
/>
<!-- Center -->
<image texture="global/modern/button/gray-unselected-center-top.png"
real_texture_placement="0 0 128 8"
texture_size="0 0 128 8"
size="8 0 100%-8 8"
/>
<image texture="global/modern/button/gray-unselected-center-bottom.png"
real_texture_placement="0 0 128 8"
texture_size="0 0 128 8"
size="8 100%-8 100%-8 100%"
/>
<!-- Right -->
<image texture="global/modern/button/gray-unselected-right-top.png"
real_texture_placement="0 0 8 8"
size="100%-8 0 100% 8"
/>
<image texture="global/modern/button/gray-unselected-right-center.png"
real_texture_placement="0 0 8 16"
texture_size="0 0 8 16"
size="100%-8 8 100% 100%-8"
/>
<image texture="global/modern/button/gray-unselected-right-bottom.png"
real_texture_placement="0 0 8 8"
size="100%-8 100%-8 100% 100%"
/>
</sprite>
<sprite name="ModernButtonGrayOver">
<!-- Background -->
<image texture="global/modern/button/gray-unselected-background.png"
real_texture_placement="0 0 512 128"
texture_size="0 0 512 128"
size="2 2 100%-2 100%-2"
>
<effect add_color="42 42 42 0"/>
</image>
<!-- Left -->
<image texture="global/modern/button/gray-unselected-left-top.png"
real_texture_placement="0 0 8 8"
size="0 0 8 8"
/>
<image texture="global/modern/button/gray-unselected-left-center.png"
real_texture_placement="0 0 8 16"
texture_size="0 0 8 16"
size="0 8 8 100%-8"
/>
<image texture="global/modern/button/gray-unselected-left-bottom.png"
real_texture_placement="0 0 8 8"
size="0 100%-8 8 100%"
/>
<!-- Center -->
<image texture="global/modern/button/gray-unselected-center-top.png"
real_texture_placement="0 0 128 8"
texture_size="0 0 128 8"
size="8 0 100%-8 8"
/>
<image texture="global/modern/button/gray-unselected-center-bottom.png"
real_texture_placement="0 0 128 8"
texture_size="0 0 128 8"
size="8 100%-8 100%-8 100%"
/>
<!-- Right -->
<image texture="global/modern/button/gray-unselected-right-top.png"
real_texture_placement="0 0 8 8"
size="100%-8 0 100% 8"
/>
<image texture="global/modern/button/gray-unselected-right-center.png"
real_texture_placement="0 0 8 16"
texture_size="0 0 8 16"
size="100%-8 8 100% 100%-8"
/>
<image texture="global/modern/button/gray-unselected-right-bottom.png"
real_texture_placement="0 0 8 8"
size="100%-8 100%-8 100% 100%"
/>
</sprite>
<sprite name="ModernButtonGrayDisabled">
<!-- Background -->
<image texture="global/modern/button/gray-unselected-background.png"
real_texture_placement="0 0 512 128"
texture_size="0 0 512 128"
size="2 2 100%-2 100%-2"
/>
<!-- Left -->
<image texture="global/modern/button/gray-unselected-left-top.png"
real_texture_placement="0 0 8 8"
size="0 0 8 8"
/>
<image texture="global/modern/button/gray-unselected-left-center.png"
real_texture_placement="0 0 8 16"
texture_size="0 0 8 16"
size="0 8 8 100%-8"
/>
<image texture="global/modern/button/gray-unselected-left-bottom.png"
real_texture_placement="0 0 8 8"
size="0 100%-8 8 100%"
/>
<!-- Center -->
<image texture="global/modern/button/gray-unselected-center-top.png"
real_texture_placement="0 0 128 8"
texture_size="0 0 128 8"
size="8 0 100%-8 8"
/>
<image texture="global/modern/button/gray-unselected-center-bottom.png"
real_texture_placement="0 0 128 8"
texture_size="0 0 128 8"
size="8 100%-8 100%-8 100%"
/>
<!-- Right -->
<image texture="global/modern/button/gray-unselected-right-top.png"
real_texture_placement="0 0 8 8"
size="100%-8 0 100% 8"
/>
<image texture="global/modern/button/gray-unselected-right-center.png"
real_texture_placement="0 0 8 16"
texture_size="0 0 8 16"
size="100%-8 8 100% 100%-8"
/>
<image texture="global/modern/button/gray-unselected-right-bottom.png"
real_texture_placement="0 0 8 8"
size="100%-8 100%-8 100% 100%"
/>
</sprite>
<!--
==========================================
- Basic. -
@@ -585,6 +745,14 @@
size="0 6 16 22"
/>
</sprite>
<sprite name = "ModernDropDownArrowDisabled">
<effect grayscale=""/>
<image texture = "global/modern/dropdown-arrow.png"
real_texture_placement = "0 0 16 16"
texture_size="0 0 16 16"
size="0 6 16 22"
/>
</sprite>
<sprite name = "ModernNotSorted">
<image texture = "global/modern/arrow-up-down.png"
real_texture_placement = "0 0 16 16"
@@ -625,13 +793,20 @@
size="0 0 22 22"
/>
</sprite>
<sprite name="ModernTickDisabled">
<sprite name="ModernTickDisabledOn">
<effect grayscale=""/>
<image texture="global/modern/tick-on.png"
real_texture_placement="0 0 27 27"
size="0 0 22 22"
/>
</sprite>
<sprite name="ModernTickDisabledOff">
<effect add_color="35 35 35 0"/>
<image texture="global/modern/tick-off.png"
real_texture_placement="0 0 27 27"
size="0 0 22 22"
/>
</sprite>
<sprite name="ModernGear">
<image texture="global/modern/gear.png"
texture_size="0 0 24 24"
@@ -647,4 +822,16 @@
texture_size="0 0 24 24"
/>
</sprite>
<sprite name="ModernSliderButton">
<image texture="global/modern/tick-on.png"
real_texture_placement="0 0 27 27"
size="50%-10 50%-10 50%+11 50%+11"
/>
</sprite>
<sprite name="ModernSliderLine">
<image texture="global/modern/gold-separator.png"
real_texture_placement="0 0 806 1"
size="0 50%-1 100% 50%+1"
/>
</sprite>
</sprites>
@@ -39,6 +39,7 @@
<style name = "ModernList"
buffer_zone = "5"
font = "sans-bold-stroke-14"
heading_height="25"
scrollbar = "true"
scrollbar_style = "ModernScrollBar"
sprite = "ModernDarkBoxGoldNoTop"
@@ -58,8 +59,10 @@
text_valign="center"
sprite="ModernDarkBoxGold"
sprite_disabled="ModernDarkBoxGoldDisabled"
button_width="16"
sprite2="ModernDropDownArrow"
sprite2_disabled="ModernDropDownArrowDisabled"
sprite2_pressed="ModernDropDownArrowHighlight"
buffer_zone="8"
@@ -67,6 +70,7 @@
sprite_list="BlackBorderOnGray"
sprite_selectarea="ModernDarkBoxWhite"
textcolor_selected="white"
textcolor_disabled="140 140 140 255"
scrollbar="true"
scrollbar_style="ModernScrollBar"
@@ -78,18 +82,21 @@
<style name="ModernLabelText"
font="sans-bold-stroke-14"
textcolor="white"
textcolor_disabled="140 140 140 255"
text_align="center"
text_valign="center"
/>
<style name="ModernRightLabelText"
font="sans-bold-stroke-14"
textcolor="white"
textcolor_disabled="140 140 140 255"
text_align="right"
text_valign="center"
/>
<style name="ModernLeftLabelText"
font="sans-bold-stroke-14"
textcolor="white"
textcolor_disabled="140 140 140 255"
text_align="left"
text_valign="center"
/>
@@ -128,11 +135,17 @@
<style name="ModernTickBox"
sprite="ModernTickOff"
sprite2="ModernTickOn"
sprite_disabled="ModernTickDisabled"
sprite2_disabled="ModernTickDisabled"
sprite_disabled="ModernTickDisabledOff"
sprite2_disabled="ModernTickDisabledOn"
square_side="22"
sound_pressed="audio/interface/ui/ui_button_click.ogg"
/>
<style name="ModernSlider"
sprite="ModernSliderButton"
sprite_bar="ModernSliderLine"
button_width="20"
tooltip_style="sliderTooltip"
/>
<style name="ModernButtonRed"
sprite="ModernButtonRed"
sprite_disabled="ModernButtonRedDisabled"
@@ -140,6 +153,7 @@
sprite_pressed="ModernButtonRed"
font="sans-bold-stroke-14"
textcolor="white"
textcolor_disabled="210 210 210 160"
text_align="center"
text_valign="center"
sound_pressed="audio/interface/ui/ui_button_click.ogg"
@@ -148,9 +162,20 @@
sprite="ModernButtonYellow"
sprite_disabled="ModernButtonYellowDisabled"
sprite_over="ModernButtonYellowOver"
sprite_pressed="ModernButtonRed"
font="sans-bold-14"
textcolor="black"
sprite_pressed="ModernButtonYellow"
font="sans-bold-stroke-14"
textcolor="white"
text_align="center"
text_valign="center"
sound_pressed="audio/interface/ui/ui_button_click.ogg"
/>
<style name="ModernButtonGray"
sprite="ModernButtonGray"
sprite_disabled="ModernButtonGrayDisabled"
sprite_over="ModernButtonGrayOver"
sprite_pressed="ModernButtonGray"
font="sans-bold-stroke-14"
textcolor="white"
text_align="center"
text_valign="center"
sound_pressed="audio/interface/ui/ui_button_click.ogg"
+9 -5
View File
@@ -52,12 +52,12 @@ ex_settings =
attribute button_width { xsd:decimal }?&
attribute checked { bool }?&
attribute clip { bool }?&
attribute default_column { text }?&
attribute dropdown_size { xsd:decimal }?&
attribute dropdown_buffer { xsd:decimal }?&
attribute enabled { bool }?&
attribute font { text }?&
attribute fov_wedge_color { ccolor }?&
attribute heading_height { text }?&
attribute hotkey { text }?&
attribute cell_id { xsd:integer }?&
attribute independent { bool }?&
@@ -71,6 +71,9 @@ ex_settings =
attribute scrollbar { bool }?&
attribute scrollbar_style { text }?&
attribute scroll_bottom { bool }?&
attribute scroll_top { bool }?&
attribute selected_column { text }?&
attribute selected_column_order { text }?&
attribute sortable { bool }?&
attribute sound_closed { text }?&
attribute sound_disabled { text }?&
@@ -121,7 +124,7 @@ object =
((object
| action
| \attribute
| def
| column
| \include
| item
| repeat
@@ -142,14 +145,15 @@ action =
(keep | translate)*,
attribute id { text }
}
def =
element def {
column =
element column {
translatableAttribute?,
(
attribute id { text }&
attribute color { ccolor }?&
attribute heading { text }?&
attribute width { text }?
attribute width { text }?&
attribute hidden { bool }?
)
}
\include =
+34 -16
View File
@@ -199,9 +199,6 @@
<ref name="bool"/>
</attribute>
</optional>
<optional>
<attribute name="default_column"/>
</optional>
<optional>
<attribute name="dropdown_size">
<data type="decimal"/>
@@ -225,6 +222,9 @@
<ref name="ccolor"/>
</attribute>
</optional>
<optional>
<attribute name="heading_height"/>
</optional>
<optional>
<attribute name="hotkey"/>
</optional>
@@ -290,7 +290,20 @@
</attribute>
</optional>
<optional>
<attribute name="sortable"/>
<attribute name="scroll_top">
<ref name="bool"/>
</attribute>
</optional>
<optional>
<attribute name="selected_column"/>
</optional>
<optional>
<attribute name="selected_column_order"/>
</optional>
<optional>
<attribute name="sortable">
<ref name="bool"/>
</attribute>
</optional>
<optional>
<attribute name="sound_closed"/>
@@ -319,6 +332,9 @@
<optional>
<attribute name="sprite2"/>
</optional>
<optional>
<attribute name="sprite_asc"/>
</optional>
<optional>
<attribute name="sprite_heading"/>
</optional>
@@ -328,6 +344,9 @@
<optional>
<attribute name="sprite_background"/>
</optional>
<optional>
<attribute name="sprite_desc"/>
</optional>
<optional>
<attribute name="sprite_disabled"/>
</optional>
@@ -337,6 +356,9 @@
<optional>
<attribute name="sprite2_disabled"/>
</optional>
<optional>
<attribute name="sprite_not_sorted"/>
</optional>
<optional>
<attribute name="sprite_over"/>
</optional>
@@ -352,15 +374,6 @@
<optional>
<attribute name="sprite_selectarea"/>
</optional>
<optional>
<attribute name="sprite_asc"/>
</optional>
<optional>
<attribute name="sprite_desc"/>
</optional>
<optional>
<attribute name="sprite_not_sorted"/>
</optional>
<optional>
<attribute name="square_side">
<data type="decimal"/>
@@ -443,7 +456,7 @@
<ref name="object"/>
<ref name="action"/>
<ref name="attribute"/>
<ref name="def"/>
<ref name="column"/>
<ref name="include"/>
<ref name="item"/>
<ref name="repeat"/>
@@ -477,8 +490,8 @@
<attribute name="id"/>
</element>
</define>
<define name="def">
<element name="def">
<define name="column">
<element name="column">
<optional>
<ref name="translatableAttribute"/>
</optional>
@@ -495,6 +508,11 @@
<optional>
<attribute name="width"/>
</optional>
<optional>
<attribute name="hidden">
<ref name="bool"/>
</attribute>
</optional>
</interleave>
</element>
</define>
+21 -8
View File
@@ -192,7 +192,7 @@ function generateModsList(listObjectName, mods)
});
// Update the list
var obj = Engine.GetGUIObjectByName(listObjectName);
var obj = Engine.GetGUIObjectByName(listObjectName);
obj.list_name = names;
obj.list_modFolderName = folders;
obj.list_modLabel = labels;
@@ -269,19 +269,32 @@ function disableMod()
function resetFilters()
{
// Reset states of gui objects.
Engine.GetGUIObjectByName("modTypeFilter").selected = 0;
Engine.GetGUIObjectByName("negateFilter").checked = false;
Engine.GetGUIObjectByName("modGenericFilter").caption = "";
Engine.GetGUIObjectByName("negateFilter").checked = false;
// NOTE: Calling generateModsLists() is not needed as the selection changes and that calls applyFilters()
Engine.GetGUIObjectByName("modTypeFilter").selected = 0;
}
function applyFilters()
{
Engine.GetGUIObjectByName("modsAvailableList").selected = -1;
Engine.GetGUIObjectByName("modsEnabledList").selected = -1;
// Save selected rows
let modsAvailableList = Engine.GetGUIObjectByName("modsAvailableList");
let modsEnabledList = Engine.GetGUIObjectByName("modsEnabledList");
let selectedModAvailableFolder = modsAvailableList.list_modFolderName[modsAvailableList.selected];
let selectedModEnabledFolder = modsEnabledList.list_modFolderName[modsEnabledList.selected];
// Remove selected rows to prevent a link to a non existing item
modsAvailableList.selected = -1;
modsEnabledList.selected = -1;
generateModsLists();
// Restore previously selected rows
modsAvailableList.selected = modsAvailableList.list_modFolderName.indexOf(selectedModAvailableFolder);
modsEnabledList.selected = modsEnabledList.list_modFolderName.indexOf(selectedModEnabledFolder);
Engine.GetGUIObjectByName("globalModDescription").caption = "";
}
/**
@@ -360,7 +373,7 @@ function moveCurrItem(objectName, up)
function areDependenciesMet(mod)
{
var guiObject = Engine.GetGUIObjectByName("message");
for each (var dependency in g_mods[mod].dependencies)
for (var dependency of g_mods[mod].dependencies)
{
if (isDependencyMet(dependency))
continue;
@@ -397,7 +410,7 @@ function isDependencyMet(dependency_idAndVersion, modsEnabled = null)
var dependency_id = dependency_idAndVersion;
// modsEnabled_key currently is the mod folder name.
for each (var modsEnabled_key in modsEnabled)
for (var modsEnabled_key of modsEnabled)
{
var modJson = g_mods[modsEnabled_key];
if (modJson.name != dependency_id)
+41 -30
View File
@@ -86,30 +86,35 @@
<translatableAttribute id="caption">Available Mods</translatableAttribute>
</object>
<object name="modsAvailableList" style="ModernList" type="olist" size="0 25 100%-2 100%" font="sans-stroke-13">
<object name="modsAvailableList"
style="ModernList"
type="olist"
size="0 25 100%-2 100%"
font="sans-stroke-13"
>
<action on="SelectionChange">showModDescription(this.name);</action>
<!-- List headers -->
<def id="name" color="100 100 200" width="10%">
<column id="name" color="100 100 200" width="10%">
<translatableAttribute id="heading">Name</translatableAttribute>
</def>
<def id="modVersion" color="128 128 128" width="7%">
</column>
<column id="modVersion" color="128 128 128" width="7%">
<translatableAttribute id="heading">Version</translatableAttribute>
</def>
<def id="modFolderName" color="100 100 200" width="13%">
</column>
<column id="modFolderName" color="100 100 200" width="13%">
<translatableAttribute id="heading">(Folder)</translatableAttribute>
</def>
<def id="modLabel" color="0 60 0" width="18%">
</column>
<column id="modLabel" color="0 60 0" width="18%">
<translatableAttribute id="heading">Mod Label</translatableAttribute>
</def>
<def id="modType" color="0 128 128" width="12%">
</column>
<column id="modType" color="0 128 128" width="12%">
<translatableAttribute id="heading">Mod Type</translatableAttribute>
</def>
<def id="modDependencies" color="128 128 128" width="20%">
</column>
<column id="modDependencies" color="128 128 128" width="20%">
<translatableAttribute id="heading">Dependencies</translatableAttribute>
</def>
<def id="modURL" color="128 128 128" width="24%">
</column>
<column id="modURL" color="128 128 128" width="24%">
<translatableAttribute id="heading">Website</translatableAttribute>
</def>
</column>
</object>
<object name="globalModDescription" type="text" style="ModmodScrollbar" size="0 100%-28 100%-16 100%">
<attribute id="caption"><keep>[color="100 100 100"]</keep><translate>Description</translate><keep>[/color]</keep></attribute>
@@ -127,30 +132,36 @@
<translatableAttribute id="caption">Enabled Mods</translatableAttribute>
</object>
<object name="modsEnabledList" style="ModernList" type="olist" size="0 25 96%-5 100%" font="sans-stroke-13" tooltip_style="pgToolTip">
<object name="modsEnabledList"
style="ModernList"
type="olist"
size="0 25 96%-5 100%"
font="sans-stroke-13"
tooltip_style="pgToolTip"
>
<action on="SelectionChange">showModDescription(this.name);</action>
<!-- List headers -->
<def id="name" color="100 100 200" width="10%">
<column id="name" color="100 100 200" width="10%">
<translatableAttribute id="heading">Name</translatableAttribute>
</def>
<def id="modVersion" color="128 128 128" width="7%">
</column>
<column id="modVersion" color="128 128 128" width="7%">
<translatableAttribute id="heading">Version</translatableAttribute>
</def>
<def id="modFolderName" color="100 100 200" width="13%">
</column>
<column id="modFolderName" color="100 100 200" width="13%">
<translatableAttribute id="heading">(Folder)</translatableAttribute>
</def>
<def id="modLabel" color="0 60 0" width="18%">
</column>
<column id="modLabel" color="0 60 0" width="18%">
<translatableAttribute id="heading">Mod Label</translatableAttribute>
</def>
<def id="modType" color="0 128 128" width="12%">
</column>
<column id="modType" color="0 128 128" width="12%">
<translatableAttribute id="heading">Mod Type</translatableAttribute>
</def>
<def id="modDependencies" color="128 128 128" width="20%">
</column>
<column id="modDependencies" color="128 128 128" width="20%">
<translatableAttribute id="heading">Dependencies</translatableAttribute>
</def>
<def id="modURL" color="128 128 128" width="20%">
</column>
<column id="modURL" color="128 128 128" width="20%">
<translatableAttribute id="heading">Website</translatableAttribute>
</def>
</column>
</object>
<object type="button" style="ModernButtonRed" size="96% 23 100% 40%+12">
+5 -5
View File
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<page>
<include>common/modern/setup.xml</include>
<include>common/modern/styles.xml</include>
<include>common/modern/sprites.xml</include>
<include>common/modern/setup.xml</include>
<include>common/modern/styles.xml</include>
<include>common/modern/sprites.xml</include>
<include>modmod/styles.xml</include>
<include>modmod/modmod.xml</include>
<include>modmod/styles.xml</include>
<include>modmod/modmod.xml</include>
</page>
+54 -9
View File
@@ -1,4 +1,4 @@
/* Copyright (c) 2013 Wildfire Games
/* Copyright (C) 2015 Wildfire Games.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
@@ -7,10 +7,10 @@
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
*
* The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software.
*
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
@@ -174,12 +174,17 @@ function RunDetection(settings)
// List of warning strings to log
var warnings = [];
// If variable value is not undefined it overrides default.cfg,
// local preferences have a higher priority anyway
var disable_audio = undefined;
var disable_s3tc = undefined;
var disable_shadows = undefined;
var disable_shadowpcf = undefined;
var disable_allwater = undefined;
var disable_fancywater = undefined;
var enable_glsl = undefined;
var enable_postproc = undefined;
var enable_smoothlos = undefined;
var override_renderpath = undefined;
// TODO: add some mechanism for setting config values
@@ -209,6 +214,35 @@ function RunDetection(settings)
var GL_VERSION = settings.GL_VERSION;
var GL_EXTENSIONS = settings.GL_EXTENSIONS.split(" ");
// Enable GLSL on OpenGL 3+, which should be able to properly
// manage GLSL shaders, needed for effects like windy trees
if (GL_VERSION.match(/^[3-9]/))
enable_glsl = true;
// Enable most graphics options on OpenGL 4+, which should be
// able to properly manage them
if (GL_VERSION.match(/^[4-9]/))
{
enable_postproc = true;
enable_smoothlos = true;
// enable all water effects
disable_allwater = false;
}
// Disable most graphics features on software renderers
if (GL_RENDERER.match(/^(Software Rasterizer|.*(llvm|soft)pipe.*|Mesa X11|Apple Software Renderer|GDI Generic)$/))
{
warnings.push("You are using '" + GL_RENDERER + "' graphics driver, expect very poor performance!");
warnings.push("If possible install a proper graphics driver for your hardware.");
enable_glsl = false;
enable_postproc = false;
enable_smoothlos = false;
// s3tc on software renderers halves fps and makes textures weird
disable_s3tc = true;
disable_shadows = true;
disable_shadowpcf = true;
disable_allwater = true;
}
// NVIDIA 260.19.* UNIX drivers cause random crashes soon after startup.
// http://www.wildfiregames.com/forum/index.php?showtopic=13668
@@ -235,7 +269,7 @@ function RunDetection(settings)
// Intel 4500MHD
// In the interests of performance, we'll disable them on lots of devices
// (with a fairly arbitrary cutoff for Intels)
if ((os_unix && GL_RENDERER.match(/^(Software Rasterizer|Gallium \S* on llvmpipe|Mesa X11|Apple Software Renderer)$/)) ||
if (
(os_unix && GL_RENDERER.match(/^Mesa DRI R[123]00 /)) ||
(os_macosx && IsWorseThanIntelMac(GL_RENDERER, "Intel HD Graphics 3000")) ||
(os_unix && IsWorseThanIntelMesa(GL_RENDERER, "Intel(R) Ironlake Desktop")) ||
@@ -247,14 +281,13 @@ function RunDetection(settings)
}
// Fragment-shader water is really slow on most Intel devices (especially the
// "use actual depth" option) and on software renderers, so disable it on all of them
if ((os_unix && GL_RENDERER.match(/^(Software Rasterizer|Gallium \S* on llvmpipe|Apple Software Renderer)$/)) ||
// "use actual depth" option), so disable it on all of them
if (
(os_macosx && IsWorseThanIntelMac(GL_RENDERER, "*")) ||
(os_unix && IsWorseThanIntelMesa(GL_RENDERER, "*")) ||
(os_win && IsWorseThanIntelWindows(GL_RENDERER, "*"))
)
{
disable_allwater = false;
disable_fancywater = true;
disable_shadowpcf = true;
}
@@ -293,6 +326,9 @@ function RunDetection(settings)
"disable_shadowpcf": disable_shadowpcf,
"disable_allwater": disable_allwater,
"disable_fancywater": disable_fancywater,
"enable_glsl": enable_glsl,
"enable_postproc": enable_postproc,
"enable_smoothlos": enable_smoothlos,
"override_renderpath": override_renderpath,
};
}
@@ -327,11 +363,20 @@ global.RunHardwareDetection = function(settings)
Engine.SetDisableShadowPCF(output.disable_shadowpcf);
if (output.disable_allwater !== undefined)
Engine.SetDisableFancyWater(output.disable_allwater);
Engine.SetDisableAllWater(output.disable_allwater);
if (output.disable_fancywater !== undefined)
Engine.SetDisableFancyWater(output.disable_fancywater);
if (output.enable_glsl !== undefined)
Engine.SetEnableGLSL(output.enable_glsl);
if (output.enable_postproc !== undefined)
Engine.SetEnablePostProc(output.enable_postproc);
if (output.enable_smoothlos !== undefined)
Engine.SetEnableSmoothLOS(output.enable_smoothlos);
if (output.override_renderpath !== undefined)
Engine.SetRenderPath(output.override_renderpath);
};
+2 -2
View File
@@ -22,14 +22,14 @@ hwdetectTestData.sort(function(a, b) {
return 0;
});
for each (var settings in hwdetectTestData)
for (var settings of hwdetectTestData)
{
var output = RunDetection(settings);
var os = (settings.os_linux ? "linux" : settings.os_macosx ? "macosx" : settings.os_win ? "win" : "???");
var disabled = [];
for each (var d in ["disable_audio", "disable_s3tc", "disable_shadows", "disable_shadowpcf", "disable_allwater", "disable_fancywater", "override_renderpath"])
for (var d of ["disable_audio", "disable_s3tc", "disable_shadows", "disable_shadowpcf", "disable_allwater", "disable_fancywater", "override_renderpath"])
if (output[d] !== undefined)
disabled.push(d+"="+output[d])
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<effect>
<technique>
<require shaders="fixed"/>
<pass shader="fixed:gui_solid"/>
</technique>
<technique>
<require shaders="glsl"/>
<pass shader="glsl/gui_solid_mask"/>
</technique>
</effect>
@@ -7,5 +7,7 @@ varying vec2 v_tex;
void main()
{
gl_FragColor = texture2D(tex, v_tex) + color;
vec4 t = texture2D(tex, v_tex);
gl_FragColor.rgb = t.rgb + color.rgb * t.a;
gl_FragColor.a = t.a;
}
@@ -0,0 +1,13 @@
#version 110
uniform sampler2D tex;
uniform vec4 color;
varying vec2 v_tex;
void main()
{
vec4 t = texture2D(tex, v_tex);
gl_FragColor.rgb = color.rgb;
gl_FragColor.a = t.a*color.a;
}
@@ -0,0 +1,15 @@
#version 110
uniform mat4 transform;
varying vec2 v_tex;
attribute vec3 a_vertex;
attribute vec2 a_uv0;
void main()
{
gl_Position = transform * vec4(a_vertex, 1.0);
v_tex = a_uv0;
}
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<program type="glsl">
<vertex file="glsl/gui_solid_mask.vs">
<stream name="pos"/>
<stream name="uv0"/>
<attrib name="a_vertex" semantics="gl_Vertex"/>
<attrib name="a_uv0" semantics="gl_MultiTexCoord0"/>
</vertex>
<fragment file="glsl/gui_solid_mask.fs"/>
</program>
@@ -9,6 +9,7 @@ element actor {
element group {
element variant {
attribute name { text }? &
attribute file { text }? &
attribute frequency { xsd:nonNegativeInteger }? &
element mesh {
text
@@ -37,6 +38,8 @@ element actor {
element animations {
element animation {
attribute name { text } &
attribute id { text }? &
attribute frequency { xsd:nonNegativeInteger }? &
attribute file { text }? &
attribute speed { xsd:nonNegativeInteger } &
attribute event { xsd:decimal { minInclusive = "0" maxInclusive = "1" } }? &
@@ -18,6 +18,9 @@
<optional>
<attribute name="name"/>
</optional>
<optional>
<attribute name="file"/>
</optional>
<optional>
<attribute name="frequency">
<data type="nonNegativeInteger"/>
@@ -90,6 +93,14 @@
<element name="animation">
<interleave>
<attribute name="name"/>
<optional>
<attribute name="id"/>
</optional>
<optional>
<attribute name="frequency">
<data type="nonNegativeInteger"/>
</attribute>
</optional>
<optional>
<attribute name="file"/>
</optional>
@@ -5,18 +5,26 @@
<variant frequency="100" name="Base">
<mesh>skeletal/pig.dae</mesh>
<props>
<prop actor="particle/flame_catapult.xml" attachpoint="root"/>
<prop actor="particle/smoke.xml" attachpoint="root"/>
<prop actor="particle/flame_pig.xml" attachpoint="root"/>
<prop actor="particle/smoke_blacksmith.xml" attachpoint="root"/>
</props>
<textures><texture file="skeletal/animal_pig_a.dds" name="baseTex"/></textures>
</variant>
</group>
<group>
<variant frequency="100" name="Idle"/>
<variant name="healthy" frequency="1">
<textures><texture file="skeletal/animal_pig_b.png" name="baseTex"/></textures>
</variant>
<variant name="lightDamage">
<textures><texture file="skeletal/animal_pig_c.png" name="baseTex"/></textures>
</variant>
<variant name="mediumDamage">
<textures><texture file="skeletal/animal_pig_d.png" name="baseTex"/></textures>
</variant>
<variant name="heavyDamage">
<textures><texture file="skeletal/animal_pig_e.png" name="baseTex"/></textures>
</variant>
<variant name="death">
<props>
<prop actor="props/units/blood_01.xml" attachpoint="root"/>
</props>
<textures><texture file="skeletal/animal_pig_e.png" name="baseTex"/></textures>
</variant>
</group>
</actor>
@@ -17,7 +17,10 @@
</group>
<group>
<variant frequency="1" name="standard">
<textures><texture file="skeletal/animal_rhino.png" name="baseTex"/></textures>
<textures>
<texture file="skeletal/animal_rhino.png" name="baseTex"/>
<texture file="skeletal/animal_rhino_spec.png" name="specTex"/>
</textures>
</variant>
</group>
<group>
@@ -28,4 +31,5 @@
</props>
</variant>
</group>
<material>basic_specmap.xml</material>
</actor>
@@ -5,14 +5,14 @@
<group>
<variant frequency="100" name="Mesh">
<animations>
<animation file="other/whale_fin_idle_a.dae" name="Idle" speed="5"/>
<animation file="other/whale_fin_idle_a.dae" name="Idle" speed="6"/>
<animation file="other/whale_fin_idle_b.dae" name="Idle" speed="5"/>
<animation file="other/whale_fin_idle_b.dae" name="Idle" speed="5"/>
<animation file="other/whale_fin_idle_c.dae" name="Idle" speed="5"/>
<animation file="other/whale_fin_idle_c.dae" name="Idle" speed="7"/>
<animation file="other/whale_fin_idle_d.dae" name="Idle" speed="6"/>
<animation file="other/whale_fin_idle_d.dae" name="Idle" speed="5"/>
<animation file="other/whale_fin_idle_a.dae" name="Idle" speed="2"/>
<animation file="other/whale_fin_idle_a.dae" name="Idle" speed="3"/>
<animation file="other/whale_fin_idle_b.dae" name="Idle" speed="2"/>
<animation file="other/whale_fin_idle_b.dae" name="Idle" speed="3"/>
<animation file="other/whale_fin_idle_c.dae" name="Idle" speed="2"/>
<animation file="other/whale_fin_idle_c.dae" name="Idle" speed="3"/>
<animation file="other/whale_fin_idle_d.dae" name="Idle" speed="3"/>
<animation file="other/whale_fin_idle_d.dae" name="Idle" speed="2"/>
</animations>
<mesh>skeletal/whale_fin.dae</mesh>
</variant>
@@ -0,0 +1,56 @@
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<actor version="1">
<castshadow/>
<group>
<variant frequency="1" name="trunk-a">
<mesh>gaia/tree_acacia_a.dae</mesh>
<props>
<prop actor="flora/trees/acacia_top_a.xml" attachpoint="root"/>
<prop actor="flora/trees/acacia_branches_a.xml" attachpoint="root"/>
</props>
</variant>
<variant frequency="1" name="trunk-b">
<mesh>gaia/tree_acacia_b.dae</mesh>
<props>
<prop actor="flora/trees/acacia_top_b.xml" attachpoint="root"/>
<prop actor="flora/trees/acacia_branches_b.xml" attachpoint="root"/>
</props>
</variant>
<variant frequency="1" name="trunk-c">
<mesh>gaia/tree_acacia_c.dae</mesh>
<props>
<prop actor="flora/trees/acacia_top_c.xml" attachpoint="root"/>
<prop actor="flora/trees/acacia_branches_c.xml" attachpoint="root"/>
</props>
</variant>
<variant frequency="1" name="trunk-d">
<mesh>gaia/tree_acacia_d.dae</mesh>
<props>
<prop actor="flora/trees/acacia_top_d.xml" attachpoint="root"/>
<prop actor="flora/trees/acacia_branches_d.xml" attachpoint="root"/>
</props>
</variant>
<variant frequency="1" name="trunk-e">
<mesh>gaia/tree_acacia_e.dae</mesh>
<props>
<prop actor="flora/trees/acacia_top_e.xml" attachpoint="root"/>
<prop actor="flora/trees/acacia_branches_e.xml" attachpoint="root"/>
</props>
</variant>
</group>
<group>
<variant name="trunk-texture">
<textures><texture file="gaia/tree_dead.dds" name="baseTex"/></textures>
</variant>
</group>
<material>basic_trans_wind.xml</material>
</actor>
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<actor version="1">
<castshadow/>
<group>
<variant frequency="1" name="acacia-branches-mesh-a">
<mesh>gaia/tree_acacia_branches_a.dae</mesh>
</variant>
</group>
<group>
<variant frequency="1" name="acacia-dead-branches">
<textures><texture file="gaia/tree_dead_branches.png" name="baseTex"/></textures>
</variant>
</group>
<material>basic_trans_wind.xml</material>
</actor>
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<actor version="1">
<castshadow/>
<group>
<variant frequency="1" name="acacia-branches-mesh-b">
<mesh>gaia/tree_acacia_branches_b.dae</mesh>
</variant>
</group>
<group>
<variant frequency="1" name="acacia-dead-branches">
<textures><texture file="gaia/tree_dead_branches.png" name="baseTex"/></textures>
</variant>
</group>
<material>basic_trans_wind.xml</material>
</actor>
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<actor version="1">
<castshadow/>
<group>
<variant frequency="1" name="acacia-branches-mesh-c">
<mesh>gaia/tree_acacia_branches_c.dae</mesh>
</variant>
</group>
<group>
<variant frequency="1" name="acacia-dead-branches">
<textures><texture file="gaia/tree_dead_branches.png" name="baseTex"/></textures>
</variant>
</group>
<material>basic_trans_wind.xml</material>
</actor>
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<actor version="1">
<castshadow/>
<group>
<variant frequency="1" name="acacia-branches-mesh-d">
<mesh>gaia/tree_acacia_branches_d.dae</mesh>
</variant>
</group>
<group>
<variant frequency="1" name="acacia-dead-branches">
<textures><texture file="gaia/tree_dead_branches.png" name="baseTex"/></textures>
</variant>
</group>
<material>basic_trans_wind.xml</material>
</actor>
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<actor version="1">
<castshadow/>
<group>
<variant frequency="1" name="acacia-branches-mesh-e">
<mesh>gaia/tree_acacia_branches_e.dae</mesh>
</variant>
</group>
<group>
<variant frequency="1" name="acacia-dead-branches">
<textures><texture file="gaia/tree_dead_branches.png" name="baseTex"/></textures>
</variant>
</group>
<material>basic_trans_wind.xml</material>
</actor>
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<actor version="1">
<castshadow/>
<group>
<variant frequency="1" name="acacia-top-mesh-a">
<mesh>gaia/tree_acacia_top_a.dae</mesh>
</variant>
</group>
<group>
<variant frequency="2" name="acacia-top-texture-a">
<textures><texture file="gaia/tree_carob_c.dds" name="baseTex"/></textures>
</variant>
<variant frequency="1" name="acacia-top-texture-b">
<textures><texture file="gaia/tree_baobab_b.dds" name="baseTex"/></textures>
</variant>
</group>
<material>basic_trans_wind.xml</material>
</actor>
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<actor version="1">
<castshadow/>
<group>
<variant frequency="1" name="acacia-top-mesh-b">
<mesh>gaia/tree_acacia_top_b.dae</mesh>
</variant>
</group>
<group>
<variant frequency="2" name="acacia-top-texture-a">
<textures><texture file="gaia/tree_carob_c.dds" name="baseTex"/></textures>
</variant>
<variant frequency="1" name="acacia-top-texture-b">
<textures><texture file="gaia/tree_baobab_b.dds" name="baseTex"/></textures>
</variant>
</group>
<material>basic_trans_wind.xml</material>
</actor>
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<actor version="1">
<castshadow/>
<group>
<variant frequency="1" name="acacia-top-mesh-c">
<mesh>gaia/tree_acacia_top_c.dae</mesh>
</variant>
</group>
<group>
<variant frequency="2" name="acacia-top-texture-a">
<textures><texture file="gaia/tree_carob_c.dds" name="baseTex"/></textures>
</variant>
<variant frequency="1" name="acacia-top-texture-b">
<textures><texture file="gaia/tree_baobab_b.dds" name="baseTex"/></textures>
</variant>
</group>
<material>basic_trans_wind.xml</material>
</actor>
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<actor version="1">
<castshadow/>
<group>
<variant frequency="1" name="acacia-top-mesh-d">
<mesh>gaia/tree_acacia_top_d.dae</mesh>
</variant>
</group>
<group>
<variant frequency="2" name="acacia-top-texture-a">
<textures><texture file="gaia/tree_carob_c.dds" name="baseTex"/></textures>
</variant>
<variant frequency="1" name="acacia-top-texture-b">
<textures><texture file="gaia/tree_baobab_b.dds" name="baseTex"/></textures>
</variant>
</group>
<material>basic_trans_wind.xml</material>
</actor>
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<actor version="1">
<castshadow/>
<group>
<variant frequency="1" name="acacia-top-mesh-e">
<mesh>gaia/tree_acacia_top_e.dae</mesh>
</variant>
</group>
<group>
<variant frequency="2" name="acacia-top-texture-a">
<textures><texture file="gaia/tree_carob_c.dds" name="baseTex"/></textures>
</variant>
<variant frequency="1" name="acacia-top-texture-b">
<textures><texture file="gaia/tree_baobab_b.dds" name="baseTex"/></textures>
</variant>
</group>
<material>basic_trans_wind.xml</material>
</actor>
@@ -13,15 +13,30 @@
</variant>
</group>
<group>
<variant frequency="1" name="Foliage-small">
<variant frequency="1" name="Aleppo-1">
<mesh>gaia/tree_pine_aleppo_1.dae</mesh>
</variant>
<variant frequency="1" name="Foliage-double">
<variant frequency="1" name="Aleppo-2">
<mesh>gaia/tree_pine_aleppo_2.dae</mesh>
</variant>
<variant frequency="2" name="Foliage-single">
<variant frequency="1" name="Aleppo-3">
<mesh>gaia/tree_pine_aleppo_3.dae</mesh>
</variant>
<variant frequency="1" name="Aleppo-4">
<mesh>gaia/tree_pine_aleppo_4.dae</mesh>
</variant>
<variant frequency="1" name="Aleppo-5">
<mesh>gaia/tree_pine_aleppo_5.dae</mesh>
</variant>
<variant frequency="1" name="Aleppo-6">
<mesh>gaia/tree_pine_aleppo_6.dae</mesh>
</variant>
<variant frequency="1" name="Aleppo-7">
<mesh>gaia/tree_pine_aleppo_7.dae</mesh>
</variant>
<variant frequency="1" name="Aleppo-8">
<mesh>gaia/tree_pine_aleppo_8.dae</mesh>
</variant>
</group>
<material>basic_trans_wind.xml</material>
</actor>
@@ -1,17 +1,17 @@
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<actor version="1">
<castshadow/>
<group>
<variant frequency="100" name="Base">
<animations/>
<mesh>gaia/tree_dead_a_1.dae</mesh>
<props/>
<textures><texture file="gaia/tree_dead.dds" name="baseTex"/></textures>
<props>
<prop actor="props/flora/tree_dead_a1_branches.xml" attachpoint="root"/>
</props>
<textures>
<texture file="gaia/tree_dead.dds" name="baseTex"/>
</textures>
</variant>
</group>
<material>basic_trans_wind.xml</material>
</actor>
@@ -1,8 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<actor version="1">
<castshadow/>
<group>
<variant name="EuropeanBeech-Trunk-a">
<mesh>gaia/tree_oak_a.dae</mesh>
@@ -11,13 +9,11 @@
<mesh>gaia/tree_oak_b.dae</mesh>
</variant>
</group>
<group>
<variant name="Trunk-Texture">
<textures><texture file="gaia/trunk_beech_a.dds" name="baseTex"/></textures>
</variant>
</group>
<group>
<variant name="prop-canopy">
<props>
@@ -25,5 +21,5 @@
</props>
</variant>
</group>
<material>basic_trans_wind.xml</material>
</actor>
@@ -32,5 +32,5 @@
<textures><texture file="gaia/tree_euro_beech_c_aut.dds" name="baseTex"/></textures>
</variant>
</group>
<material>basic_trans.xml</material>
<material>basic_trans_wind.xml</material>
</actor>
@@ -1,17 +1,13 @@
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<actor version="1">
<castshadow/>
<group>
<variant frequency="100" name="Base">
<animations/>
<mesh>gaia/wrld_grass_1.dae</mesh>
<props/>
<textures><texture file="gaia/wrld_med_plant.dds" name="baseTex"/></textures>
<textures><texture file="gaia/wrld_med_plant.png" name="baseTex"/></textures>
</variant>
</group>
<material>basic_trans_wind.xml</material>
</actor>
@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<actor version="1">
<castshadow/>
<group>
<variant frequency="1" name="trunk-b">
<mesh>gaia/tree_oak_new_b.dae</mesh>
</variant>
<variant frequency="1" name="trunk-c">
<mesh>gaia/tree_oak_new_c.dae</mesh>
</variant>
<variant frequency="1" name="trunk-d">
<mesh>gaia/tree_oak_new_d.dae</mesh>
</variant>
<variant frequency="1" name="trunk-e">
<mesh>gaia/tree_oak_new_e.dae</mesh>
</variant>
<variant frequency="1" name="trunk-f">
<mesh>gaia/tree_oak_new_f.dae</mesh>
</variant>
</group>
<group>
<variant name="trunk-texture">
<textures><texture file="gaia/tree_dead.dds" name="baseTex"/></textures>
</variant>
</group>
<material>basic_trans_wind.xml</material>
</actor>
@@ -0,0 +1,46 @@
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<actor version="1">
<castshadow/>
<group>
<variant frequency="1" name="trunk-a">
<mesh>gaia/tree_oak_new_a.dae</mesh>
<props><prop actor="flora/trees/oak_new_top_a.xml" attachpoint="root"/></props>
</variant>
<variant frequency="1" name="trunk-b">
<mesh>gaia/tree_oak_new_b.dae</mesh>
<props><prop actor="flora/trees/oak_new_top_b.xml" attachpoint="root"/></props>
</variant>
<variant frequency="1" name="trunk-c">
<mesh>gaia/tree_oak_new_c.dae</mesh>
<props><prop actor="flora/trees/oak_new_top_c.xml" attachpoint="root"/></props>
</variant>
<variant frequency="1" name="trunk-d">
<mesh>gaia/tree_oak_new_d.dae</mesh>
<props><prop actor="flora/trees/oak_new_top_d.xml" attachpoint="root"/></props>
</variant>
<variant frequency="1" name="trunk-e">
<mesh>gaia/tree_oak_new_e.dae</mesh>
<props><prop actor="flora/trees/oak_new_top_e.xml" attachpoint="root"/></props>
</variant>
<variant frequency="1" name="trunk-f">
<mesh>gaia/tree_oak_new_f.dae</mesh>
<props><prop actor="flora/trees/oak_new_top_f.xml" attachpoint="root"/></props>
</variant>
</group>
<group>
<variant name="trunk-texture">
<textures><texture file="gaia/tree_dead.dds" name="baseTex"/></textures>
</variant>
</group>
<material>basic_trans_wind.xml</material>
</actor>
@@ -0,0 +1,46 @@
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<actor version="1">
<castshadow/>
<group>
<variant frequency="1" name="trunk-a">
<mesh>gaia/tree_oak_new_a.dae</mesh>
<props><prop actor="flora/trees/oak_new_top_aut_a.xml" attachpoint="root"/></props>
</variant>
<variant frequency="1" name="trunk-b">
<mesh>gaia/tree_oak_new_b.dae</mesh>
<props><prop actor="flora/trees/oak_new_top_aut_b.xml" attachpoint="root"/></props>
</variant>
<variant frequency="1" name="trunk-c">
<mesh>gaia/tree_oak_new_c.dae</mesh>
<props><prop actor="flora/trees/oak_new_top_aut_c.xml" attachpoint="root"/></props>
</variant>
<variant frequency="1" name="trunk-d">
<mesh>gaia/tree_oak_new_d.dae</mesh>
<props><prop actor="flora/trees/oak_new_top_aut_d.xml" attachpoint="root"/></props>
</variant>
<variant frequency="1" name="trunk-e">
<mesh>gaia/tree_oak_new_e.dae</mesh>
<props><prop actor="flora/trees/oak_new_top_aut_e.xml" attachpoint="root"/></props>
</variant>
<variant frequency="1" name="trunk-f">
<mesh>gaia/tree_oak_new_f.dae</mesh>
<props><prop actor="flora/trees/oak_new_top_aut_f.xml" attachpoint="root"/></props>
</variant>
</group>
<group>
<variant name="trunk-texture">
<textures><texture file="gaia/tree_dead.dds" name="baseTex"/></textures>
</variant>
</group>
<material>basic_trans_wind.xml</material>
</actor>
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<actor version="1">
<castshadow/>
<group>
<variant frequency="1" name="oak-new-top-mesh-a">
<mesh>gaia/tree_oak_new_top_a.dae</mesh>
</variant>
</group>
<group>
<variant frequency="1" name="oak-top-texture-a">
<textures><texture file="gaia/tree_oak_a.dds" name="baseTex"/></textures>
</variant>
<variant frequency="2" name="oak-top-texture-b">
<textures><texture file="gaia/tree_oak_b.dds" name="baseTex"/></textures>
</variant>
<variant frequency="4" name="oak-top-texture-c">
<textures><texture file="gaia/tree_oak_c.dds" name="baseTex"/></textures>
</variant>
</group>
<material>basic_trans_wind.xml</material>
</actor>
@@ -0,0 +1,50 @@
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<actor version="1">
<castshadow/>
<group>
<variant frequency="1" name="oak-new-top-mesh-a">
<mesh>gaia/tree_oak_new_top_a.dae</mesh>
</variant>
</group>
<group>
<variant frequency="2" name="a-oak-top-texture-a">
<textures><texture file="gaia/tree_oak_a.dds" name="baseTex"/></textures>
</variant>
<variant frequency="1" name="a-oak-aut-top-texture-a">
<textures><texture file="gaia/tree_oak_a_aut.dds" name="baseTex"/></textures>
</variant>
<variant frequency="2" name="a-oak-aut-top-texture-b1">
<textures><texture file="gaia/tree_oak_b_aut.dds" name="baseTex"/></textures>
</variant>
<variant frequency="4" name="a-oak-aut-top-texture-c1">
<textures><texture file="gaia/tree_oak_c_aut.dds" name="baseTex"/></textures>
</variant>
<variant frequency="4" name="a-oak-aut-top-texture-d">
<textures><texture file="gaia/tree_oak_d_aut.dds" name="baseTex"/></textures>
</variant>
<variant frequency="4" name="a-oak-aut-top-texture-e">
<textures><texture file="gaia/tree_oak_e_aut.dds" name="baseTex"/></textures>
</variant>
<variant frequency="3" name="a-beech-aut-top-texture-c">
<textures><texture file="gaia/tree_euro_beech_c_aut.dds" name="baseTex"/></textures>
</variant>
</group>
<group>
<variant frequency="2" name="Falling Leaves">
<props>
<prop actor="particle/falling_leaf_dry_a.xml" attachpoint="root"/>
</props>
</variant>
<variant frequency="3" name="No Falling Leaves">
<props>
<prop attachpoint="root"/>
</props>
</variant>
</group>
<material>basic_trans_wind.xml</material>
</actor>
@@ -0,0 +1,50 @@
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<actor version="1">
<castshadow/>
<group>
<variant frequency="1" name="oak-new-top-mesh-b">
<mesh>gaia/tree_oak_new_top_b.dae</mesh>
</variant>
</group>
<group>
<variant frequency="2" name="b-oak-top-texture-a">
<textures><texture file="gaia/tree_oak_a.dds" name="baseTex"/></textures>
</variant>
<variant frequency="1" name="b-oak-aut-top-texture-a">
<textures><texture file="gaia/tree_oak_a_aut.dds" name="baseTex"/></textures>
</variant>
<variant frequency="2" name="b-oak-aut-top-texture-b">
<textures><texture file="gaia/tree_oak_b_aut.dds" name="baseTex"/></textures>
</variant>
<variant frequency="4" name="b-oak-aut-top-texture-c">
<textures><texture file="gaia/tree_oak_c_aut.dds" name="baseTex"/></textures>
</variant>
<variant frequency="4" name="b-oak-aut-top-texture-d">
<textures><texture file="gaia/tree_oak_d_aut.dds" name="baseTex"/></textures>
</variant>
<variant frequency="4" name="b-oak-aut-top-texture-e">
<textures><texture file="gaia/tree_oak_e_aut.dds" name="baseTex"/></textures>
</variant>
<variant frequency="3" name="b-beech-aut-top-texture-c">
<textures><texture file="gaia/tree_euro_beech_c_aut.dds" name="baseTex"/></textures>
</variant>
</group>
<group>
<variant frequency="2" name="Falling Leaves">
<props>
<prop actor="particle/falling_leaf_dry_a.xml" attachpoint="root"/>
</props>
</variant>
<variant frequency="3" name="No Falling Leaves">
<props>
<prop attachpoint="root"/>
</props>
</variant>
</group>
<material>basic_trans_wind.xml</material>
</actor>
@@ -0,0 +1,50 @@
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<actor version="1">
<castshadow/>
<group>
<variant frequency="1" name="oak-new-top-mesh-c">
<mesh>gaia/tree_oak_new_top_c.dae</mesh>
</variant>
</group>
<group>
<variant frequency="2" name="c-oak-top-texture-a">
<textures><texture file="gaia/tree_oak_a.dds" name="baseTex"/></textures>
</variant>
<variant frequency="1" name="c-oak-aut-top-texture-a">
<textures><texture file="gaia/tree_oak_a_aut.dds" name="baseTex"/></textures>
</variant>
<variant frequency="2" name="c-oak-aut-top-texture-b">
<textures><texture file="gaia/tree_oak_b_aut.dds" name="baseTex"/></textures>
</variant>
<variant frequency="4" name="c-oak-aut-top-texture-c">
<textures><texture file="gaia/tree_oak_c_aut.dds" name="baseTex"/></textures>
</variant>
<variant frequency="4" name="c-oak-aut-top-texture-d">
<textures><texture file="gaia/tree_oak_d_aut.dds" name="baseTex"/></textures>
</variant>
<variant frequency="4" name="c-oak-aut-top-texture-e">
<textures><texture file="gaia/tree_oak_e_aut.dds" name="baseTex"/></textures>
</variant>
<variant frequency="3" name="c-beech-aut-top-texture-c">
<textures><texture file="gaia/tree_euro_beech_c_aut.dds" name="baseTex"/></textures>
</variant>
</group>
<group>
<variant frequency="2" name="Falling Leaves">
<props>
<prop actor="particle/falling_leaf_dry_a.xml" attachpoint="root"/>
</props>
</variant>
<variant frequency="3" name="No Falling Leaves">
<props>
<prop attachpoint="root"/>
</props>
</variant>
</group>
<material>basic_trans_wind.xml</material>
</actor>
@@ -0,0 +1,50 @@
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<actor version="1">
<castshadow/>
<group>
<variant frequency="1" name="oak-new-top-mesh-d">
<mesh>gaia/tree_oak_new_top_d.dae</mesh>
</variant>
</group>
<group>
<variant frequency="2" name="d-oak-top-texture-a">
<textures><texture file="gaia/tree_oak_a.dds" name="baseTex"/></textures>
</variant>
<variant frequency="1" name="d-oak-aut-top-texture-a">
<textures><texture file="gaia/tree_oak_a_aut.dds" name="baseTex"/></textures>
</variant>
<variant frequency="3" name="d-oak-aut-top-texture-b">
<textures><texture file="gaia/tree_oak_b_aut.dds" name="baseTex"/></textures>
</variant>
<variant frequency="4" name="d-oak-aut-top-texture-c">
<textures><texture file="gaia/tree_oak_c_aut.dds" name="baseTex"/></textures>
</variant>
<variant frequency="4" name="d-oak-aut-top-texture-d">
<textures><texture file="gaia/tree_oak_d_aut.dds" name="baseTex"/></textures>
</variant>
<variant frequency="4" name="d-oak-aut-top-texture-e">
<textures><texture file="gaia/tree_oak_e_aut.dds" name="baseTex"/></textures>
</variant>
<variant frequency="3" name="d-beech-aut-top-texture-c">
<textures><texture file="gaia/tree_euro_beech_c_aut.dds" name="baseTex"/></textures>
</variant>
</group>
<group>
<variant frequency="2" name="Falling Leaves">
<props>
<prop actor="particle/falling_leaf_dry_a.xml" attachpoint="root"/>
</props>
</variant>
<variant frequency="3" name="No Falling Leaves">
<props>
<prop attachpoint="root"/>
</props>
</variant>
</group>
<material>basic_trans_wind.xml</material>
</actor>
@@ -0,0 +1,50 @@
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<actor version="1">
<castshadow/>
<group>
<variant frequency="1" name="oak-new-top-mesh-e">
<mesh>gaia/tree_oak_new_top_e.dae</mesh>
</variant>
</group>
<group>
<variant frequency="2" name="e-oak-top-texture-a">
<textures><texture file="gaia/tree_oak_a.dds" name="baseTex"/></textures>
</variant>
<variant frequency="1" name="e-oak-aut-top-texture-a">
<textures><texture file="gaia/tree_oak_a_aut.dds" name="baseTex"/></textures>
</variant>
<variant frequency="2" name="e-oak-aut-top-texture-b">
<textures><texture file="gaia/tree_oak_b_aut.dds" name="baseTex"/></textures>
</variant>
<variant frequency="4" name="e-oak-aut-top-texture-c">
<textures><texture file="gaia/tree_oak_c_aut.dds" name="baseTex"/></textures>
</variant>
<variant frequency="4" name="e-oak-aut-top-texture-d">
<textures><texture file="gaia/tree_oak_d_aut.dds" name="baseTex"/></textures>
</variant>
<variant frequency="4" name="e-oak-aut-top-texture-e">
<textures><texture file="gaia/tree_oak_e_aut.dds" name="baseTex"/></textures>
</variant>
<variant frequency="3" name="e-beech-aut-top-texture-c">
<textures><texture file="gaia/tree_euro_beech_c_aut.dds" name="baseTex"/></textures>
</variant>
</group>
<group>
<variant frequency="2" name="Falling Leaves">
<props>
<prop actor="particle/falling_leaf_dry_a.xml" attachpoint="root"/>
</props>
</variant>
<variant frequency="3" name="No Falling Leaves">
<props>
<prop attachpoint="root"/>
</props>
</variant>
</group>
<material>basic_trans_wind.xml</material>
</actor>
@@ -0,0 +1,50 @@
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<actor version="1">
<castshadow/>
<group>
<variant frequency="1" name="oak-new-top-mesh-f">
<mesh>gaia/tree_oak_new_top_f.dae</mesh>
</variant>
</group>
<group>
<variant frequency="2" name="f-oak-top-texture-a">
<textures><texture file="gaia/tree_oak_a.dds" name="baseTex"/></textures>
</variant>
<variant frequency="1" name="f-oak-aut-top-texture-a">
<textures><texture file="gaia/tree_oak_a_aut.dds" name="baseTex"/></textures>
</variant>
<variant frequency="2" name="f-oak-aut-top-texture-b">
<textures><texture file="gaia/tree_oak_b_aut.dds" name="baseTex"/></textures>
</variant>
<variant frequency="4" name="f-oak-aut-top-texture-c">
<textures><texture file="gaia/tree_oak_c_aut.dds" name="baseTex"/></textures>
</variant>
<variant frequency="4" name="f-oak-aut-top-texture-d">
<textures><texture file="gaia/tree_oak_d_aut.dds" name="baseTex"/></textures>
</variant>
<variant frequency="4" name="f-oak-aut-top-texture-e">
<textures><texture file="gaia/tree_oak_e_aut.dds" name="baseTex"/></textures>
</variant>
<variant frequency="3" name="f-beech-aut-top-texture-c">
<textures><texture file="gaia/tree_euro_beech_c_aut.dds" name="baseTex"/></textures>
</variant>
</group>
<group>
<variant frequency="2" name="Falling Leaves">
<props>
<prop actor="particle/falling_leaf_dry_a.xml" attachpoint="root"/>
</props>
</variant>
<variant frequency="3" name="No Falling Leaves">
<props>
<prop attachpoint="root"/>
</props>
</variant>
</group>
<material>basic_trans_wind.xml</material>
</actor>
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<actor version="1">
<castshadow/>
<group>
<variant frequency="1" name="oak-new-top-mesh-b">
<mesh>gaia/tree_oak_new_top_b.dae</mesh>
</variant>
</group>
<group>
<variant frequency="1" name="oak-top-texture-a">
<textures><texture file="gaia/tree_oak_a.dds" name="baseTex"/></textures>
</variant>
<variant frequency="2" name="oak-top-texture-b">
<textures><texture file="gaia/tree_oak_b.dds" name="baseTex"/></textures>
</variant>
<variant frequency="4" name="oak-top-texture-c">
<textures><texture file="gaia/tree_oak_c.dds" name="baseTex"/></textures>
</variant>
</group>
<material>basic_trans_wind.xml</material>
</actor>
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<actor version="1">
<castshadow/>
<group>
<variant frequency="1" name="oak-new-top-mesh-c">
<mesh>gaia/tree_oak_new_top_c.dae</mesh>
</variant>
</group>
<group>
<variant frequency="1" name="oak-top-texture-a">
<textures><texture file="gaia/tree_oak_a.dds" name="baseTex"/></textures>
</variant>
<variant frequency="2" name="oak-top-texture-b">
<textures><texture file="gaia/tree_oak_b.dds" name="baseTex"/></textures>
</variant>
<variant frequency="4" name="oak-top-texture-c">
<textures><texture file="gaia/tree_oak_c.dds" name="baseTex"/></textures>
</variant>
</group>
<material>basic_trans_wind.xml</material>
</actor>
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<actor version="1">
<castshadow/>
<group>
<variant frequency="1" name="oak-new-top-mesh-d">
<mesh>gaia/tree_oak_new_top_d.dae</mesh>
</variant>
</group>
<group>
<variant frequency="1" name="oak-top-texture-a">
<textures><texture file="gaia/tree_oak_a.dds" name="baseTex"/></textures>
</variant>
<variant frequency="2" name="oak-top-texture-b">
<textures><texture file="gaia/tree_oak_b.dds" name="baseTex"/></textures>
</variant>
<variant frequency="4" name="oak-top-texture-c">
<textures><texture file="gaia/tree_oak_c.dds" name="baseTex"/></textures>
</variant>
</group>
<material>basic_trans_wind.xml</material>
</actor>
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<actor version="1">
<castshadow/>
<group>
<variant frequency="1" name="oak-new-top-mesh-e">
<mesh>gaia/tree_oak_new_top_e.dae</mesh>
</variant>
</group>
<group>
<variant frequency="1" name="oak-top-texture-a">
<textures><texture file="gaia/tree_oak_a.dds" name="baseTex"/></textures>
</variant>
<variant frequency="2" name="oak-top-texture-b">
<textures><texture file="gaia/tree_oak_b.dds" name="baseTex"/></textures>
</variant>
<variant frequency="4" name="oak-top-texture-c">
<textures><texture file="gaia/tree_oak_c.dds" name="baseTex"/></textures>
</variant>
</group>
<material>basic_trans_wind.xml</material>
</actor>
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<actor version="1">
<castshadow/>
<group>
<variant frequency="1" name="oak-new-top-mesh-f">
<mesh>gaia/tree_oak_new_top_f.dae</mesh>
</variant>
</group>
<group>
<variant frequency="1" name="oak-top-texture-a">
<textures><texture file="gaia/tree_oak_a.dds" name="baseTex"/></textures>
</variant>
<variant frequency="2" name="oak-top-texture-b">
<textures><texture file="gaia/tree_oak_b.dds" name="baseTex"/></textures>
</variant>
<variant frequency="4" name="oak-top-texture-c">
<textures><texture file="gaia/tree_oak_c.dds" name="baseTex"/></textures>
</variant>
</group>
<material>basic_trans_wind.xml</material>
</actor>
@@ -0,0 +1,49 @@
<?xml version="1.0" encoding="utf-8"?>
<actor version="1">
<castshadow/>
<group>
<variant frequency="2" name="Cretan-Date-Palm-02">
<mesh>gaia/tree_cretan_date_palm_02.dae</mesh>
</variant>
<variant frequency="3" name="Cretan-Date-Palm-04">
<mesh>gaia/tree_cretan_date_palm_04.dae</mesh>
</variant>
<variant frequency="3" name="Cretan-Date-Palm-05">
<mesh>gaia/tree_cretan_date_palm_05.dae</mesh>
</variant>
<variant frequency="0" name="Weird_Crooked_One">
<mesh>gaia/tree_cretan_date_palm_08.dae</mesh>
</variant>
</group>
<group>
<variant frequency="1" name="Palm Fronds-a">
<textures>
<texture file="gaia/tree_palm_senegal_a.dds" name="baseTex"/>
<texture file="gaia/tree_palm_senegal_spec.png" name="specTex"/>
<texture file="gaia/tree_palm_senegal_norm.png" name="normTex"/>
</textures>
</variant>
<variant frequency="1" name="Palm Fronds-b">
<textures>
<texture file="gaia/tree_palm_senegal_b.dds" name="baseTex"/>
<texture file="gaia/tree_palm_senegal_spec.png" name="specTex"/>
<texture file="gaia/tree_palm_senegal_norm.png" name="normTex"/>
</textures>
</variant>
<variant frequency="1" name="Palm Fronds-c">
<textures>
<texture file="gaia/tree_palm_senegal_c.dds" name="baseTex"/>
<texture file="gaia/tree_palm_senegal_spec.png" name="specTex"/>
<texture file="gaia/tree_palm_senegal_norm.png" name="normTex"/>
</textures>
</variant>
<variant frequency="1" name="Palm Fronds-d">
<textures>
<texture file="gaia/tree_palm_senegal_d.dds" name="baseTex"/>
<texture file="gaia/tree_palm_senegal_spec.png" name="specTex"/>
<texture file="gaia/tree_palm_senegal_norm.png" name="normTex"/>
</textures>
</variant>
</group>
<material>trans_wind_parallax_spec.xml</material>
</actor>
@@ -1,17 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<actor version="1">
<castshadow/>
<group>
<variant frequency="100" name="Base">
<animations/>
<mesh>gaia/palm_d.dae</mesh>
<props/>
<textures><texture file="gaia/wrld_palm.dds" name="baseTex"/></textures>
</variant>
</group>
<material>basic_trans_wind.xml</material>
</actor>
@@ -1,17 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<actor version="1">
<castshadow/>
<group>
<variant frequency="100" name="Base">
<animations/>
<mesh>gaia/palm_e.dae</mesh>
<props/>
<textures><texture file="gaia/wrld_palm.dds" name="baseTex"/></textures>
</variant>
</group>
<material>basic_trans_wind.xml</material>
</actor>
@@ -14,5 +14,5 @@
<textures><texture file="gaia/tree_dead.dds" name="baseTex"/></textures>
</variant>
</group>
<material>basic_trans_wind.xml</material>
<material>basic_trans.xml</material>
</actor>
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<actor version="1">
<castshadow/>
<group>
<variant frequency="1" name="tree test top">
<mesh>gaia/tree_test.dae</mesh>
<props>
<prop actor="flora/trees/tree_test_top.xml" attachpoint="root"/>
</props>
</variant>
</group>
<group>
<variant frequency="1" name="trunk">
<textures><texture file="gaia/trunk_deciduous_a.dds" name="baseTex"/></textures>
</variant>
</group>
<material>basic_trans_wind.xml</material>
</actor>
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<actor version="1">
<castshadow/>
<group>
<variant frequency="1" name="tree test top">
<mesh>gaia/tree_test_top.dae</mesh>
</variant>
</group>
<group>
<variant frequency="1" name="leaf-color-a">
<textures><texture file="gaia/tree_carob_a.dds" name="baseTex"/>
<texture file="props/yellow.png" name="specTex"/>
</textures>
</variant>
<variant frequency="1" name="leaf-color-b">
<textures><texture file="gaia/tree_carob_b.dds" name="baseTex"/>
<texture file="props/yellow.png" name="specTex"/>
</textures>
</variant>
<variant frequency="1" name="leaf-color-c">
<textures><texture file="gaia/tree_carob_c.dds" name="baseTex"/>
<texture file="props/yellow.png" name="specTex"/>
</textures>
</variant>
</group>
<material>basic_trans_wind.xml</material>
</actor>
@@ -1,18 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<actor version="1">
<castshadow/>
<group>
<variant name="straight_a">
<mesh>gaia/cliff_a.dae</mesh>
</variant>
<variant name="corner_inside">
<mesh>gaia/cliff_a_corner_inside.dae</mesh>
</variant>
</group>
<group>
<variant>
<textures><texture file="gaia/cliff_desert_a.dds" name="baseTex"/></textures>
</variant>
</group>
<material>basic_trans.xml</material>
</actor>
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<actor version="1">
<group>
<variant name="Base">
<particles file="dust_storm_reddish.xml"/>
</variant>
</group>
<material>basic_trans.xml</material>
</actor>
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<actor version="1">
<group>
<variant name="Falling Dry Leaf">
<particles file="leaf_dry_a.xml"/>
</variant>
</group>
<material>basic_trans.xml</material>
</actor>
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<actor version="1">
<group>
<variant name="Base">
<particles file="flame_pig.xml"/>
</variant>
</group>
<material>basic_trans.xml</material>
</actor>
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<actor version="1">
<float/>
<group>
<variant name="Base">
<particles file="smoke_curved.xml"/>
</variant>
</group>
<material>basic_trans.xml</material>
</actor>
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<actor version="1">
<group>
<variant name="Base">
<particles file="sparks_blacksmith.xml"/>
</variant>
</group>
<material>basic_trans.xml</material>
</actor>
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<actor version="1">
<castshadow/>
<group>
<variant name="a">
<mesh>gaia/cross_large_short.dae</mesh>
@@ -17,5 +16,5 @@
</textures>
</variant>
</group>
<material>basic_glow.xml</material>
<material>basic_trans_wind.xml</material>
</actor>
@@ -1,13 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<actor version="1">
<group>
<variant name="Barley">
<mesh>gaia/wrld_barley.dae</mesh>
<variant name="Patch Small">
<mesh>gaia/grass_la_tall_a.dae</mesh>
</variant>
<variant name="Patch Large">
<mesh>gaia/grass_la_tall_b.dae</mesh>
</variant>
</group>
<group>
<variant name="Barley Texture">
<textures>
<texture file="gaia/farming_barley_harvest_a.png" name="baseTex"/>
<texture file="props/yellow.png" name="specTex"/>
</textures>
</variant>
</group>
<material>basic_glow.xml</material>
<material>basic_trans_wind.xml</material>
</actor>
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<actor version="1">
<castshadow/>
<group>
<variant name="a">
<mesh>gaia/cross_large_short.dae</mesh>
@@ -17,5 +16,5 @@
</textures>
</variant>
</group>
<material>basic_glow.xml</material>
<material>basic_trans_wind.xml</material>
</actor>
@@ -16,5 +16,5 @@
</textures>
</variant>
</group>
<material>basic_glow.xml</material>
<material>basic_trans_wind.xml</material>
</actor>
@@ -8,7 +8,7 @@
</group>
<group>
<variant name="grapes">
<textures><texture file="gaia/bush_grapes.dds" name="baseTex"/></textures>
<textures><texture file="gaia/bush_grapes.png" name="baseTex"/></textures>
</variant>
</group>
<group>
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<actor version="1">
<castshadow/>
<group>
<variant frequency="100" name="Base">
<mesh>props/tree_dead_a1_branches.dae</mesh>
<textures>
<texture file="gaia/tree_dead_branches.png" name="baseTex"/>
</textures>
</variant>
</group>
<material>basic_trans_wind.xml</material>
</actor>
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<actor version="1">
<castshadow/>
<group>
<variant frequency="100" name="Base">
<mesh>props/tree_dead_a2_branches.dae</mesh>
<textures>
<texture file="gaia/tree_dead_branches.png" name="baseTex"/>
</textures>
</variant>
</group>
<material>basic_trans_wind.xml</material>
</actor>
@@ -1,18 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<actor version="1">
<castshadow/>
<float/>
<group>
<variant frequency="100">
<mesh>props/special/marker_object_sound.dae</mesh>
</variant>
</group>
<group>
<variant name="base">
<textures>
<texture file="props/marker_object.png" name="baseTex"/>
</textures>
</variant>
</group>
<material>player_trans.xml</material>
</actor>

Some files were not shown because too many files have changed in this diff Show More