b995135138
Use an FSM to parse our config files instead of using CParser. Refs #2589 .
...
Properly write config settings with multiple values back to files. Refs
#1810 .
Print error messages if we encountered an invalid setting.
This was SVN commit r15980.
2014-11-17 01:03:59 +00:00
f88ee2766e
use by default a random seed for the AI to make it less repetitive
...
This was SVN commit r15973.
2014-11-16 19:53:29 +00:00
59676dfc84
Update tools/LICENSE.txt
...
This was SVN commit r15970.
2014-11-16 02:10:31 +00:00
df4c07238d
Change GUI tag parsing to use a FSM instead of using CParser. Refs #2589 .
...
Parameters now have to be quoted with ".
Supports " in parameters by escaping them with \.
Tag start characters can be included in normal text by escaping them
with \.
Better error handling and a error messages to help with fixing
invalid/malformed strings.
This was SVN commit r15969.
2014-11-16 02:10:28 +00:00
d15e2f0cf6
Check for availability of XmppClient.
...
Move Lobby script function registration to the lobby JS interface.
This was SVN commit r15968.
2014-11-16 02:10:24 +00:00
d58189d510
Parse terrain properties without CParser. Refs #2589 .
...
This was SVN commit r15967.
2014-11-16 02:09:02 +00:00
fc1fe174cd
Amend the "Reveal All" behavior by always hiding mirages.
...
This was SVN commit r15966.
2014-11-14 20:29:35 +00:00
4d89820f1c
Fixes build errors on Windows introduced in c813a11427
and 1a0f9b086e
.
...
This was SVN commit r15964.
2014-11-13 22:37:43 +00:00
49a31c5de2
prevent events from the first turn after deserialization to be thrown away
...
This was SVN commit r15962.
2014-11-13 20:21:00 +00:00
c813a11427
Split ScriptRuntime and ScriptInterface code to separate files.
...
The runtime is becoming more and more important in the JSAPI. As a
result, we also have more functionality on the runtime level and having
the whole ScriptRuntime class hidden in ScriptInterface.cpp doesn't make
sense anymore. ScriptInterface.cpp also has become quite a large file
and pulling out the runtime part makes it a bit smaller.
Refs #2462
This was SVN commit r15961.
2014-11-13 11:19:28 +00:00
1a0f9b086e
GUI cleanup.
...
Remove toTitleCase(). Unify iColorToString() and rgbToGuiColor().
Translate XMPP errors (displayed when connecting).
This was SVN commit r15960.
2014-11-13 01:26:36 +00:00
6e788fb15e
Clean up JSON parsing code. Refs #1374 .
...
Fix Engine.ReadJSONFile() which did throw a JS exception that was not
caught. Discovered by s0600204.
Expose Engine.ReadJSONFile() to the gui scripts.
This was SVN commit r15959.
2014-11-13 01:26:22 +00:00
e108b162b6
Add hotloading for translation files. Fixes #2915 .
...
This was SVN commit r15947.
2014-11-09 16:58:14 +00:00
8b9847e007
Replace CScriptValRooted with JS::Heap<T> and custom tracer for CNetClient
...
Refs #2462
This was SVN commit r15946.
2014-11-09 15:16:00 +00:00
8e2d514228
Exact stack rooting for CParamNode
...
Refs #2415
Refs #2462
This was SVN commit r15944.
2014-11-09 11:08:53 +00:00
edd9622050
wip petra support of saved games, still incomplete
...
This was SVN commit r15940.
2014-11-08 19:23:29 +00:00
f4b5054815
Fix valgrind warning about uninitialized variable. Patch by Echelon9. Fixes #2878 .
...
This was SVN commit r15936.
2014-11-08 00:37:42 +00:00
7dad37c78f
Some cleanup. Fix a comment.
...
This was SVN commit r15928.
2014-11-05 00:22:14 +00:00
d07d1a17f3
Add a new Visibility component that will eventually allow scripted components and mods to influence an entity's visibility.
...
This first commit only refactors code and does not add any new feature.
Refs #2913 (see this ticket for more information about the change)
This was SVN commit r15925.
2014-11-04 20:53:25 +00:00
199eb46d86
Fixes GLES build
...
This was SVN commit r15914.
2014-10-29 02:36:42 +00:00
10d13a991c
Use fitplural added in upstream revision 1404284. Refs #2539 .
...
This was SVN commit r15913.
2014-10-28 16:03:19 +00:00
7f1fd01174
Moves some includes out of Renderer.h to slightly optimize compilation
...
This was SVN commit r15912.
2014-10-28 03:57:22 +00:00
ff50b0b74c
Fixes incorrect input handling in dropdowns and lists, they were manually handling all events, but should only handle certain key presses. Fixes #2885 .
...
Fixes bug where lists/dropdowns could select an invalid index.
This was SVN commit r15909.
2014-10-27 04:37:06 +00:00
570b0374f4
Convert path separator after building the full path.
...
This was SVN commit r15908.
2014-10-27 03:09:36 +00:00
d06ecc1b89
Fixes some errors in i18n scripts: use ASCII quotes to avoid charset errors in Windows command line, and use function form of print
...
This was SVN commit r15907.
2014-10-27 02:42:06 +00:00
e3e86e2a29
Fixes init of post processing effects, so they can be cleanly enabled/disabled at runtime. Fixes #2890 , refs #2672 , #2893 .
...
Updates descriptions on options screen and fixes comment in default.cfg
(smoothlos does not require preferglsl)
This was SVN commit r15905.
2014-10-27 00:53:31 +00:00
4a68170aeb
Add msgstrs for plural forms to pots.
...
This was SVN commit r15904.
2014-10-26 17:25:12 +00:00
b4997dc7c6
Fixes minimap GLES compatibility by making point size a uniform and passing into the shaders
...
This was SVN commit r15901.
2014-10-26 04:37:26 +00:00
7f247580b3
Remove outdated bundled transifex client. Fixes #2789 .
...
Anyone wanting to pull updates from transifex should install the client.
This was SVN commit r15896.
2014-10-26 00:28:41 +00:00
ae10d34d99
Switch i18n scripts to use Pology. Fixes #2539 .
...
Still requires a patch to Pology to keep the source file ordering.
This was SVN commit r15894.
2014-10-26 00:28:35 +00:00
6334ee3f8b
Reverts 03eaf9b461
due to licensing issues (source/lib is MIT licensed) and replaces with compatible FreeBSD/clang-based solution, patch by pstumpf. Refs #2675
...
This was SVN commit r15890.
2014-10-18 20:45:11 +00:00
c65817829f
Adds compatibility for XMPP differences between platforms that can cause case inconsistencies.
...
This was SVN commit r15888.
2014-10-18 14:28:46 +00:00
03eaf9b461
Fixes cpuid to work with i386 CPUs and PIE/PIC, based on old GCC cpuid.h source and patch by pstumpf, fixes #2675
...
This was SVN commit r15886.
2014-10-18 03:07:24 +00:00
1631b8de14
Fixes Atlas error when using the map open/save dialog on Linux, based on patch by njm, fixes #2858
...
This was SVN commit r15885.
2014-10-18 01:53:06 +00:00
18ab827886
Change L10n code to use ps/Singleton, so that we can recreate it.
...
This allows for adding locales in mods.
This was SVN commit r15874.
2014-10-15 16:04:37 +00:00
227d828b67
Updates Windows version strings for 8.1 and 10 (technical preview)
...
This was SVN commit r15869.
2014-10-14 21:37:19 +00:00
6ec902ec20
Fix a typo in the packaging scripts.
...
This was SVN commit r15857.
2014-10-12 20:53:13 +00:00
849cbc13ee
Fix path in fontbuilder.
...
This was SVN commit r15852.
2014-10-12 19:27:55 +00:00
46fd718ac1
Initialize some variables. Patch by Echelon9. Fixes #2862 .
...
This was SVN commit r15851.
2014-10-12 19:27:49 +00:00
3c8ef99007
Switch lobby room. Update mod version.
...
This was SVN commit r15850.
2014-10-12 19:27:42 +00:00
a028027f75
Fix previous commit.
...
This was SVN commit r15847.
2014-10-05 22:46:24 +00:00
41ea9539a2
Update the translations selection script to match our choices for A17.
...
This was SVN commit r15846.
2014-10-05 22:05:22 +00:00
5d9d9a67bf
Allow enabling the post processing filters during a game.
...
Includes numerous code updates, also updated the copyright for
cd5de73f3a
.
Patch by dan@sstrev.com , fixes #2672 .
This was SVN commit r15843.
2014-10-05 20:50:10 +00:00
cd5de73f3a
Allow setting the "Smoothing LoS" option during a game.
...
Patch by dan@sstrev.com , fixes #2513
This was SVN commit r15841.
2014-10-05 20:02:04 +00:00
69c8b89f84
Fixes blank window after maximizing, minimizing, then restoring the game on Windows. In SDL2, this is an SDL_WINDOWEVENT_EXPOSED event, which we must handle to reset the game's minimized state. Refs #2041
...
This was SVN commit r15832.
2014-10-04 00:46:53 +00:00
5a985e18f4
Modify GC scheduling and reduce VFS cache size.
...
It seems like there is a memory leak if we haven't finished with the
marking phase of an incremental GC and SpiderMonkey has to trigger a
full GC because it runs out of memory. With this patch we stop trying to
make incremental GCs if we are above 1/2 of the runtime size and do Full
GCs instead. This should make such low memory conditions even less
likely than they were already after the previous patch. Also reduce the
maximum VFS cache size to 400 MB.
Refs #2808
This was SVN commit r15831.
2014-10-04 00:43:04 +00:00
9c4eb0295a
Fixes some bugs related to IME text input in SDL2, including a possible crash, refs #2041 . Behavior seems reasonably consistent now on Windows and OS X
...
This was SVN commit r15830.
2014-10-03 23:33:41 +00:00
f10bdf5089
Fixes some issues when toggling fullscreen mode with SDL2, refs #2041 :
...
* SDL_WINDOW_RESIZABLE must be set when creating the window, apparently
only fullscreen flags take effect in SDL_SetWindowFullscreen
* Stores window position, so a window can be restored to both its
original position and size, rather than defaults
* Changes initial window position from undefined to centered, it caused
some problems with window positioning returning from fullscreen mode
This was SVN commit r15827.
2014-09-28 22:10:09 +00:00
2afeec0c01
Unify removal of incomplete translations in packaging scripts. Fixes #2825 .
...
This was SVN commit r15826.
2014-09-28 21:51:48 +00:00
5200ea0365
Fixes starting Atlas from in-game on OS X, patch by trompetin17, refs #2427
...
This was SVN commit r15821.
2014-09-28 07:03:51 +00:00