2ef3c0c42e
Compute the actual percentage of map explored by the team in the summary screen.
...
Fixes #2587 .
This was SVN commit r16071.
2014-12-26 19:13:40 +00:00
1e17cbe33c
Use the range manager to pick entities when drawing a selection box during a game. This allows for a significant performance improvement.
...
Fixes #2961 , patch by @aBothe.
This was SVN commit r16068.
2014-12-26 13:07:49 +00:00
49187dd990
Drop support for AIs that are not using modules.
...
This was SVN commit r16061.
2014-12-23 01:20:50 +00:00
d21cf8f3aa
Clarify some comments.
...
This was SVN commit r16060.
2014-12-23 00:46:00 +00:00
ce0c1e4302
Report names of components or interfaces in case of error when registering those.
...
This was SVN commit r16059.
2014-12-23 00:29:14 +00:00
efce88b97b
Call setlocale(3) on BSDs so that we can log unicode strings. Patch by Teiresias. Fixes #1142 .
...
This was SVN commit r16058.
2014-12-22 00:23:07 +00:00
71ba68e3a3
Fix performance problem with unnecessary global message subscription
...
On my ESR31 branch, I've made two measurements with different replays
(both around 15000 turns).
In the first, I got around 3% performance improvement and in the second
about 7.5%. It mainly depends on how often aura changes related to the
female citizen aura happen.
This was SVN commit r16055.
2014-12-21 01:44:00 +00:00
a9c6b7080a
Fixes intermittent error messages caused by uninitialized variable
...
This was SVN commit r16049.
2014-12-14 17:43:40 +00:00
add113a2a1
Remove duplicated layers of unescaping which required multiple escapes in some places.
...
This was SVN commit r16043.
2014-12-13 01:08:29 +00:00
eb8a6c9427
Explictly use GMT when displaying a localized time that is not a date. Patch by lafferjm. Fixes #2938 .
...
Also make some parameters const references.
This was SVN commit r16037.
2014-12-12 01:11:00 +00:00
622614de02
Allow nesting repeat tags in the GUI.
...
This was SVN commit r16034.
2014-12-10 20:10:02 +00:00
fd93e4ae74
Remove testing of some special templates. We need to find a good way to generate template subsets, refs #2951 .
...
This fixes the tests fail introduced in b05879e151
.
This was SVN commit r16033.
2014-12-09 23:20:31 +00:00
f80adad667
Fixes some inconsistent line endings and EOL-related SVN properties.
...
This was SVN commit r16024.
2014-12-06 12:11:42 +00:00
b05879e151
Move template items GetRetainInFog and AlwaysVisible from Vision to Visibility.
...
Refs #2913
This was SVN commit r16022.
2014-12-05 18:33:59 +00:00
7e0e566346
Fix typo in include. Refs #2086 .
...
This was SVN commit r16018.
2014-12-03 16:43:51 +00:00
3c45599be5
fix default ai difficulty when using autostart, was easy since f90841cf78
...
This was SVN commit r16015.
2014-11-30 16:35:32 +00:00
1cc19e9176
Specify that my templatesanalyzer tool is distributed under the MIT license. Thanks to leper for noticing that it was currently unspecified.
...
This was SVN commit r16014.
2014-11-30 16:28:04 +00:00
759a6701f6
Fix test build.
...
The parser that extracts the methods to call does not care about
defines.
This was SVN commit r16013.
2014-11-29 21:26:01 +00:00
1430efa9d6
Properly handle auto-research promotion techs at game start.
...
This was SVN commit r16009.
2014-11-25 22:47:02 +00:00
87d5d37488
Some source string fixes.
...
This was SVN commit r16002.
2014-11-22 22:21:54 +00:00
c385a88c88
Remove unused overload of GetSavedGameData
...
This was SVN commit r16001.
2014-11-22 19:46:24 +00:00
504e23acb8
Make some things static.
...
This was SVN commit r15997.
2014-11-20 22:19:33 +00:00
335ac3d0cb
Query /proc for the executable path on Linux. Patch by starslayer. Refs #2086 .
...
Factor out unix_ExecutablePathname() which is used by BSDs and Linux (as
a fallback).
This was SVN commit r15996.
2014-11-20 22:19:21 +00:00
8a66a732c7
Add "Copy" and "Paste" entries to the Atlas "Edit" menu. Patch by stilz_, fixes #2642 .
...
This was SVN commit r15994.
2014-11-20 20:52:32 +00:00
1abd5669c9
Replace spaces in source file paths with non-breaking spaces. Refs #2539 .
...
This way our map file paths are not split due to word wrapping in the po
files.
This was SVN commit r15993.
2014-11-19 23:10:51 +00:00
f90841cf78
add a very-easy level for AI, addresses #2899
...
This was SVN commit r15990.
2014-11-18 21:21:21 +00:00
3589aa39b9
Update documentation on how to generate the entity component documentation.
...
This was SVN commit r15987.
2014-11-18 03:57:21 +00:00
afecbf02f3
Extend the config parser to support ini-style config files. Refs #1810 .
...
Config settings in a section are stored as "sectionname.setting"
internally.
Do not write section headers when writing config files as we would need
to write
settings without a dot first or ignore them. This can be changed once
all settings
belong to a section.
This was SVN commit r15986.
2014-11-18 03:57:07 +00:00
73de625089
Also change GameSetup.cpp.
...
This was SVN commit r15985.
2014-11-18 00:24:29 +00:00
9407dbe45e
Remove useless parameter from CFG_GET_VALUE.
...
This was SVN commit r15984.
2014-11-17 23:29:49 +00:00
6695f1a3e8
Remove CParser. Fixes #2589 .
...
This was SVN commit r15981.
2014-11-17 01:04:24 +00:00
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