elexis
08b23d0164
Sooner network timeout warnings.
...
Reviewed By: echotangoecho
This was SVN commit r19574.
2017-05-13 22:52:11 +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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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