Itms
e1d4c10f13
Recompute the number of LoS tiles whenever these tiles are reset (especially when loading serialized data).
...
Also add a verification about LoS tiles in the tests.
Fixes #2678
Refs #599
This was SVN commit r15538.
2014-07-17 19:08:06 +00:00
mimo
98281689f2
Petra: fix a rare bug where the AI would never attack + some attack tunings
...
This was SVN commit r15537.
2014-07-17 17:04:13 +00:00
mimo
de9ae66326
Petra: improve support for wonder games
...
This was SVN commit r15535.
2014-07-15 19:07:11 +00:00
Yves
52f4cda439
Changes ToJSVal to take JS::MutableHandleValue instead of JS::Value&.
...
JS::MutableHandleValue is similar to JS::HandleValue, but the whole
JS::Value it points to can be replaced.
This change is needed for support of exact stack rooting and moving GC.
Contains a few other trivial API adjustments and style improvements too.
Refs #2462
Refs #2415
This was SVN commit r15534.
2014-07-14 19:52:35 +00:00
JoshuaJB
17634d7507
Move the minimap to only use the shader pipeline. Should make it OpenGL ES compatible (untested).
...
This was SVN commit r15533.
2014-07-14 17:15:22 +00:00
wraitii
47426b2dad
Per scythetwirler's suggestion, add some tables on my template analyzer script to compare units to their parent template.
...
This was SVN commit r15532.
2014-07-14 16:25:39 +00:00
Yves
09e04cb741
Adds missing request (fixes tests in debug mode).
...
This was SVN commit r15530.
2014-07-13 22:08:29 +00:00
historic_bruno
882f3406e3
Syncs _test.sim required simulation data with public mod, copies RelaxNG schemas for future use
...
This was SVN commit r15528.
2014-07-13 21:29:30 +00:00
historic_bruno
a47dda7d66
Disables MSVC CRT deprecation warnings when building Atlas w/ wxWidgets 3.0
...
This was SVN commit r15527.
2014-07-13 21:19:30 +00:00
historic_bruno
a82d32bd3c
Fixes MSVC warning C4189: 'componentManager' : local variable is initialized but not referenced (Script_RegisterComponentType_Common is a static member function, so an instance of CComponentManager isn't needed)
...
This was SVN commit r15526.
2014-07-13 20:38:34 +00:00
historic_bruno
7b15b526ac
Fixes tests.
...
Changes direct access of EndGameManager.gameType to getter function, by
convention
This was SVN commit r15525.
2014-07-13 19:45:44 +00:00
Yves
1b5ab8142e
Makes custom JS objects compatible with SpiderMonkey ESR31.
...
In v24 you called JS_InitClass and passed in a definition of JSNative
functions. Later you could call JS_NewObject with this class and the
object would get a prototype with the specified JSNative functions.
In ESR31 you now have to explicitly store the prototype object returned
by JS_InitClass and pass it as prototype argument to JS_NewObject to
achieve the same.
This change modifies our existing ScriptInterface implementation for
custom object types a bit and uses it at places where the JSAPI was used
directly before.
Refs #2462
This was SVN commit r15524.
2014-07-13 15:31:48 +00:00
wraitii
f4949c82ff
Fix how the template analyzer scripts takes walkspeed into account to some extent for ranged units, add a new script to create a RM to check balance using triggers, and add a readme file to try and explain the outputs and parameters better.
...
This was SVN commit r15523.
2014-07-13 14:22:32 +00:00
wraitii
0cf5f57a68
Update of the template analyzer tool with more parameters and probably a more accurate representation of civs (with the right settings).
...
This was SVN commit r15522.
2014-07-13 10:20:35 +00:00
sanderd17
83d37f7857
Re-allow placing skirmish entities in Atlas. Refs #1696
...
This was SVN commit r15521.
2014-07-13 09:35:00 +00:00
sanderd17
7531a417e5
Fix re-garrisoning on visible garrison points after killing the units on that spot. Issue found by Stan.
...
This was SVN commit r15520.
2014-07-12 21:38:10 +00:00
sanderd17
eebc2f07bb
Move some trees to accessible locations. Issue found by willsmith182.
...
This was SVN commit r15519.
2014-07-12 20:08:43 +00:00
Yves
5a3f07b3d9
Forgot to use excnObj in db9c20e0a9. Also roots an additional jsval.
...
This was SVN commit r15518.
2014-07-12 19:46:12 +00:00
Yves
db9c20e0a9
Changes FromJSVal to take a JS::HandleValue instead of JS::Value.
...
JS::HandleValue is basically a wrapper around a JS::Value that is safe
for exact stack rooting and moving GC.
I've tried to keep this changeset rather small and isolated and
therefore create additional JS::Rooted<T> values at some places where
the function should eventually directly take a JS::Handle<T>.
The functions "CallFunction" and "CallFunctionVoid" put their arguments
inside a JS::AutoValueVector because this will be passed directly to
"CallFunction_" with ESR31.
Refs #2462
Refs #2415
This was SVN commit r15517.
2014-07-12 19:08:39 +00:00
Yves
cfa59fc4e1
Changes our JSNative functions to use JS::CallReceiver/JS::CallArgs.
...
This is the new way for working with arguments in JSNative functions.
JS_THIS_VALUE, JS_ARGV, JS_SET_RVAL and direct access to vp or argc are
deprecated and will probably be removed in future versions of
SpiderMonkey.
CallArgs also takes care of proper rooting and you can get the values as
Handles or MutableHandles. The interface changes a little bit for ESR
31, but commiting this now still makes it easier and the changes shout
be straigtforward (search and replace more or less).
Refs #2462
Refs #2415
This was SVN commit r15516.
2014-07-12 16:55:09 +00:00
wraitii
7a1b92bffc
Update my "Template Analyzer" script to have output about civ too. Try to guess if they are balanced against each other.
...
This was SVN commit r15515.
2014-07-12 16:08:35 +00:00
Itms
319cf16b5a
Small cleanup, including a correction in the templates documentation, and the removal of residues from the culling changes.
...
This was SVN commit r15514.
2014-07-12 16:03:37 +00:00
wraitii
5279f9625e
Add a new tool to make some quick template analysis to try and detect imbalances or see if our balancing works. WIP.
...
This was SVN commit r15513.
2014-07-11 22:24:58 +00:00
Itms
42591ef4cb
Fix previous commit, refs #1257
...
This was SVN commit r15512.
2014-07-11 18:29:18 +00:00
Itms
f5cc99f78b
Fix OOS problems caused by an unwanted modification of the simulation state by the GUI.
...
Refs #1257
This was SVN commit r15511.
2014-07-11 18:11:32 +00:00
sanderd17
a4e3422a22
Fix the hero flickering overlay after healing. Fixes #2666 . Patch by Adrian
...
This was SVN commit r15510.
2014-07-11 17:48:01 +00:00
Itms
2174eaaeee
Add a VisibilityChanged message sent by the range manager whenever an entity changes visibility for any player.
...
This will be necessary for hiding buildings/trees/etc in fog-of-war, and
may be useful for AIs and for UnitAI.
Refs #599 .
This was SVN commit r15508.
2014-07-10 20:51:39 +00:00
sanderd17
9d335f2e22
Fix typos found by FalseVision
...
This was SVN commit r15507.
2014-07-10 19:17:45 +00:00
mimo
255ab52725
fix previous commit
...
This was SVN commit r15506.
2014-07-10 06:30:08 +00:00
mimo
e2d893103b
make the AI aware of the game type and start interfacing with wonder victory condition + some fixes
...
This was SVN commit r15505.
2014-07-09 21:41:14 +00:00
leper
689272d4bd
Remove collision in global namespace.
...
Fixes config/vfs deadlocks on OSX.
This was SVN commit r15504.
2014-07-09 19:16:03 +00:00
mimo
77e9e58a32
Petra: fixes + changes on the attack management
...
This was SVN commit r15503.
2014-07-08 19:01:27 +00:00
wraitii
7e81f4f52a
Update the "number of builders" tooltip to be slightly more helpful.
...
This was SVN commit r15502.
2014-07-08 18:48:08 +00:00
wraitii
3ba325f9e8
Remove the HQDOF since it did not really work properly and we already have DOF. Fixes #2111
...
This was SVN commit r15501.
2014-07-08 18:23:53 +00:00
sanderd17
56bcbd59a0
Fix allied garrison issue.
...
This was SVN commit r15500.
2014-07-07 09:28:34 +00:00
mimo
27c700ce3a
Petra: various small tunings or fixes
...
This was SVN commit r15499.
2014-07-06 17:31:02 +00:00
leper
8b45f453e5
Fix non-PCH build.
...
This was SVN commit r15498.
2014-07-06 16:35:41 +00:00
wraitii
62c1ac310d
It would appear like I inadvertently committed a version of the water with some debug information in that made it look black.
...
This was SVN commit r15497.
2014-07-06 15:22:44 +00:00
Yves
334ba4b740
SpiderMonkey now supports default parameters!
...
I've just modified those places with TODO comments, but there are most
likely others that could benefit of the feature to make the code a bit
cleaner and easier to understand.
Thanks to Fabio for pointing it out.
Refs #1886
This was SVN commit r15496.
2014-07-05 13:58:51 +00:00
Yves
8b493c2739
Revert obsolete workaround for structured clones.
...
Reverts 8195e767ef because that workaround isn't needed anymore with
SpiderMonkey 24 (and 31).
Refs #2241
Refs #1886
This was SVN commit r15495.
2014-07-05 11:35:00 +00:00
Yves
de6823d23f
Makes tinygettext handle missing plural forms more sanely.
...
Print an error to the console and return the original (untranslated)
string instead of triggering an assertion in debug builds or a crash and
memory corruption in release builds.
Works around a crash on the history screen. Why the plural form is
missing is another topic and will have to be solved separately.
This was SVN commit r15493.
2014-07-05 10:29:24 +00:00
wraitii
5571f7a7f9
Fix "Wind Angle" parameter not working properly. Add a precomputed "wind strength" variable so that waves look smaller behind islands. Some tweaks. Refs #48 as usual.
...
This was SVN commit r15492.
2014-07-05 10:20:30 +00:00
wraitii
aa99f98fce
Fix rmgen for my changes, I had missed that, thanks mimo.
...
This was SVN commit r15491.
2014-07-04 18:24:39 +00:00
mimo
4852fad86a
Petra: adapt the AI to gaia now able to launch attacks (with triggers) + cleaning of unused functions
...
This was SVN commit r15490.
2014-07-04 16:12:09 +00:00
wraitii
9d4665248b
Check water FBOs creation correctly to detect some errors. Use two depth textures since I have a hunch the issues people encounter are caused by my using only one.
...
This was SVN commit r15488.
2014-07-04 10:14:35 +00:00
wraitii
991d5bbd63
Fix random maps for my water changes. Fix the replay mode after I had broken it. Fix an occasional crash (that might have crashed Atlas, need someone to check).
...
Improve debugging slightly in case of framebuffer errors. Fix a few
style issues.
This was SVN commit r15486.
2014-07-04 09:03:21 +00:00
wraitii
326290463e
Further WIP water improvements. Add 3 different textures for different looks. Update some oasis maps for that. Streamline water settings (some removed, some added). Update Atlas for those (needs to be tested). Fix an issue with HQ water effects.
...
Please report any issue and/or crash. Those will get fixed in commits to
come. Refs #48 .
This was SVN commit r15484.
2014-07-03 20:07:15 +00:00
Ykkrosh
eb7955599a
Optimise silhouette rendering.
...
Do some intersection tests on the CPU so that the silhouette render
passes only have to draw models/patches that might actually contribute
to silhouettes, saving the CPU and GPU cost of rendering more objects
than necessary.
This was SVN commit r15483.
2014-07-03 01:00:25 +00:00
leper
ffd6e10edf
Make CGUIManager register a callback function for hotloading instead of specifically calling it.
...
This was SVN commit r15482.
2014-07-02 23:44:39 +00:00
Ykkrosh
30e851ab90
Forward-declare CShaderProgramPtr, to avoid pulling in more headers than necessary and to hypothetically reduce build times by a minuscule amount.
...
This was SVN commit r15481.
2014-07-02 22:36:45 +00:00