leper
781cec163e
Remove CTerritoryManager pointer from CWorld, a relic from before simulation2.
...
Patch By: Sandarac
Differential Revision: https://code.wildfiregames.com/D731
This was SVN commit r19931.
2017-07-29 23:27:02 +00:00
elexis
99b0362edf
Bump version number to Alpha 23.
...
Differential Revision: https://code.wildfiregames.com/D758
Reviewed By: fatherbushido
This was SVN commit r19923.
2017-07-29 16:36:55 +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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
leper
4ed7d6c202
Fix compilation failure.
...
This was SVN commit r18621.
2016-08-21 20:35:10 +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
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
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
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
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
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
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
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