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
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
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
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
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
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
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
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
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
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
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
08b23d0164
Sooner network timeout warnings.
...
Reviewed By: echotangoecho
This was SVN commit r19574.
2017-05-13 22:52:11 +00:00
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
37da3b008a
Translate the Out-Of-Sync error message and send it to the JS GUI for convenience and future extension.
...
Add a hint that multiplayer games with AI are currently not supported.
Differential Revision: https://code.wildfiregames.com/D105
Reviewed By: leper
Refs #3858
This was SVN commit r19491.
2017-05-01 04:55:56 +00:00
7d6bfe27ab
Clean up FromJSProperty a little. Patch by Vladislav.
...
Differential Revision: https://code.wildfiregames.com/D399
This was SVN commit r19489.
2017-05-01 00:58:35 +00:00
234aa36b25
Update the documentation on how to write simulation components.
...
Mention how to handle const methods (be1a205f91
, D75).
Note that parameters are passed as const references (1a66f510d0
).
Also remove mention of jsval (which is deprecated).
Reviewed By: wraitii
Differential Revision: https://code.wildfiregames.com/D374
This was SVN commit r19484.
2017-04-30 23:48:54 +00:00
ecaa8434b1
Cinematic path node moving tool for Atlas. Patch by Vladislav.
...
Differential Revision: https://code.wildfiregames.com/D369
This was SVN commit r19483.
2017-04-30 23:47:16 +00:00
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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