vladislavbelov
38d09ce35c
Adds a perspective matrix, refracts a matrix projection setup to prepare for an isometric view.
...
Reviewed By: wraitii
Differential Revision: https://code.wildfiregames.com/D971
This was SVN commit r20377.
2017-10-29 23:41:59 +00:00
elexis
7b93690c76
Fix few typos found with the Debian lintian tool.
...
Differential Revision: https://code.wildfiregames.com/D973
Differential Revision: https://code.wildfiregames.com/D974
Differential Revision: https://code.wildfiregames.com/D975
Patch By: LudovicRousseau
Reviewed By: Dunedan, bb
This was SVN commit r20369.
2017-10-28 22:34:57 +00:00
elexis
c136848b74
Fix lineendings of new files and the ones in source/ that didn't receive the eol property yet.
...
To confirm, use svn diff -r 20355:20356 -x "-w --ignore-eol-style"
--ignore-properties | less
This was SVN commit r20356.
2017-10-26 17:03:29 +00:00
Imarok
66a357f286
The server should choose the guid
...
Reviewed by: elexis
Differential Revision: https://code.wildfiregames.com/D943
This was SVN commit r20341.
2017-10-24 22:05:24 +00:00
vladislavbelov
67e27ed7ea
Atlas: Cleanup horizontal alignment flags being ignored, fix warnings on a start.
...
Fix #3824
Patch by: Clockwork-Muse.
Reviewed by: vladislavbelov.
Differential Revision: https://code.wildfiregames.com/D824
This was SVN commit r20327.
2017-10-22 20:09:28 +00:00
fatherbushido
ad7d7ec1e9
Fix a disabled template manager test.
...
Fix #4522
Patch by: Sandarac.
Reviewed by: elexis.
Differential Revision: https://code.wildfiregames.com/D968
This was SVN commit r20326.
2017-10-22 15:39:50 +00:00
Imarok
5f0a0fbbef
Add id for IQ stanzas
...
Patch by: Dunedan
Differential Revision: https://code.wildfiregames.com/D899
This was SVN commit r20321.
2017-10-21 14:11:25 +00:00
bb
5b72870745
Enlarge default sidebar size, so everything is visible by default
...
Accepted By: elexis
Differential Revision: https://code.wildfiregames.com/D855
This was SVN commit r20305.
2017-10-16 13:07:07 +00:00
elexis
8dc6ed427d
Fix string format of the JS test assertion failure following 7c2e9027c2 (cxxtest expects a char* instead of a std::wstring, so newlines were printed as \n characters).
...
Differential Revision: https://code.wildfiregames.com/D952
Fixes #4807
This was SVN commit r20292.
2017-10-13 21:56:45 +00:00
fatherbushido
49b7d6fb95
Test integer validation.
...
Reviewed By: leper
Differential Revision: https://code.wildfiregames.com/D947
This was SVN commit r20274.
2017-10-09 07:00:31 +00:00
mimo
b5e3b83c9e
Add a TerritoryDecayManager component to update territoryMap with the blinking state when territories are recomputed. That's needed by the AI which was up to now not aware of blinking cells.
...
Differential Revision: https://code.wildfiregames.com/D910
This was SVN commit r20268.
2017-10-07 08:42:39 +00:00
elexis
1fcdc3d7f4
Deepfreeze the map settings object (created from g_GameAttributes.settings by the gamesetup extending the map JSON data) to prevent random map scripts from unintentionally modifying that, refs #4257 .
...
This was SVN commit r20265.
2017-10-06 18:53:24 +00:00
mimo
35af7390c0
Fix Hierarchical Pathfinder out of bounds bug
...
Patch by temple
Reviewed By: mimo
Differential Revision: https://code.wildfiregames.com/D926
This was SVN commit r20256.
2017-10-02 17:44:23 +00:00
Imarok
7a5c5100c0
Allow command line options to start with - or --
...
Reviewed by: mimo
Differential Revision: https://code.wildfiregames.com/D883
This was SVN commit r20249.
2017-09-30 16:12:18 +00:00
leper
8629b83ed9
Remove unneeded include.
...
That was a leftover from a previous iteration of the code.
This was SVN commit r20247.
2017-09-30 15:29:13 +00:00
leper
84674911cc
Switch back to an unplaceable filter for templates.
...
This removes FindAllPlaceableTemplates, replaces the few uses of it by
FindAllTemplates,
and makes that ignore all templates starting with special/ in addition
to those starting
with template_.
Now modders can use entirely different template organization schemes
(more folders, different
folders, etc) without having to edit a file that was never well
documented.
In conjunction with a few of the template moving patches preceding this
rubble/ and other/catafalque
are now placeable. The former now does not decay anymore and users that
want that should use the
decay| filter, the latter will be taken care of in #4762 .
Return to making FindAllTemplates return all placeable templates again
(switch to unplaceable filter).
To reiterate the main point: Only templates starting with special/ or
template_ will not show up as
placeable in Atlas (or show up to code querying for all (placeable)
templates. If you want to add more
of those use one of these naming schemes (and possibly subfolders in
special/).
Reviewed By: fatherbushido
Differential Revision: https://code.wildfiregames.com/D935
This was SVN commit r20246.
2017-09-30 15:22:51 +00:00
leper
ff7511d9fc
Move special_filter/ templates to special/filter/.
...
This should help with simplifying the (un)placeable filtering again.
Reviewed By: fatherbushido
Differential Revision: https://code.wildfiregames.com/D934
This was SVN commit r20242.
2017-09-30 07:14:35 +00:00
fatherbushido
b1d71bfb43
Add a new function to emit a sound from a position not attached to an entity. Use it to improve the attack impact sound code and allow to emit that sound even if the attacker died meanwhile. Use the sound provided by Pureon for catapult. Fix #4779 .
...
Patch By: Mate-86
Differential Revision: https://code.wildfiregames.com/D921
This was SVN commit r20236.
2017-09-28 19:26:07 +00:00
leper
1c47c5ad44
Rename cmpPosition's IsFloating to CanFloat.
...
Reviewed By: fatherbushido
Differential Revision: https://code.wildfiregames.com/D916
This was SVN commit r20201.
2017-09-18 09:54:54 +00:00
fatherbushido
6ecba5025b
Add test for height and water logic in Position component. Refs 38cca12ec6.
...
Reviewed By: leper
Differential Revision: https://code.wildfiregames.com/D915
This was SVN commit r20199.
2017-09-18 08:46:11 +00:00
leper
38cca12ec6
Add float depth support to cmpPosition.
...
This allows for amphibious units (swimming animals, tanks, etc).
The specified depth is the distance from the water surface where the
unit will start to float. Should most likely be a little less than
the height of the actor.
Reviewed By: fatherbushido
Differential Revision: https://code.wildfiregames.com/D842
This was SVN commit r20196.
2017-09-18 03:55:33 +00:00
fatherbushido
b3db71aa63
Fix an issue with tests. Allow to mock several components for the system entity. Reviewed by leper.
...
Differential Revision: https://code.wildfiregames.com/D848
This was SVN commit r20194.
2017-09-17 07:06:09 +00:00
fatherbushido
455ab4b9e2
Fix some format specifiers in debug strings. Reviewed by leper.
...
Differential Revision: https://code.wildfiregames.com/D909
This was SVN commit r20190.
2017-09-16 15:28:01 +00:00
leper
189da09a7e
Make FromJSProperty actually part of ScriptInterface.
...
Reviewed By: Imarok
Differential Revision: https://code.wildfiregames.com/D876
This was SVN commit r20179.
2017-09-12 22:52:15 +00:00
leper
2534010d0f
Fix build without precompiled headers.
...
Refs 21f69ef574 .
This was SVN commit r20177.
2017-09-12 22:18:39 +00:00
elexis
486aec18d4
Move Main ScriptFunctions to a new JS Interface, refs #4772 .
...
This was SVN commit r20172.
2017-09-12 03:11:33 +00:00
elexis
d6cb9c845b
Move Debugging ScriptFunctions to a new JS Interface, refs #4772 .
...
This was SVN commit r20171.
2017-09-12 02:25:28 +00:00
elexis
921c5515a6
Move Simulation GUI ScriptFunctions to a new JS Interface, refs #4772 .
...
This was SVN commit r20170.
2017-09-12 01:53:46 +00:00
elexis
5f8be8e0c6
Move Game ScriptFunctions to a new JS Interface, refs #4772 .
...
This was SVN commit r20169.
2017-09-12 01:38:46 +00:00
elexis
fa54a8cd65
Move GUI Manager ScriptFunctions to a new JS Interface, refs #4772 .
...
This was SVN commit r20168.
2017-09-12 00:54:49 +00:00
elexis
21f69ef574
Move networking ScriptFunctions to a new JS Interface, refs #4772 .
...
This was SVN commit r20167.
2017-09-12 00:29:10 +00:00
elexis
0e3a6d811c
Move SavedGame ScriptFunctions to a new JS Interface, refs #4772 .
...
This was SVN commit r20166.
2017-09-11 23:22:28 +00:00
elexis
f1cc54cc18
Move GameView ScriptFunctions to its JS Interface, refs #4772 .
...
Use early returns as initialization checks.
This was SVN commit r20165.
2017-09-11 23:03:27 +00:00
elexis
4d931b57e9
Move ReadJSONFile and WriteJSONFile GUI ScriptFunctions that only handle VFS paths to the VFS JS Interface.
...
This was SVN commit r20164.
2017-09-11 22:21:34 +00:00
elexis
e69a0fb9db
Remove unused clumsy JS GUI ScriptFunctions debug timer from ed7b4b5fca.
...
GetMicroseconds from 7a91d330d3 provides microsecond precise timing.
Refs #4772 .
This was SVN commit r20163.
2017-09-11 22:08:54 +00:00
Imarok
ab7089ad61
Command line option for pid+timestamp in OOS dump, mainlog and interestinglog
...
Reviewed by: elexis Fixes #3339
Differential Revision: https://code.wildfiregames.com/D51
This was SVN commit r20141.
2017-09-09 13:16:05 +00:00
elexis
1cdc8f1356
Mark simulation component template and entity properties as read-only in simulation tests (as they are in actual games).
...
Thus throw errors if a simulation test tries to alternate the template
instead of silently passing tests with wrong values (as happened tests
fixed by ff90bb8490 ).
Remove the two clones from simulation components that were only relevant
for that test.
Add test to test the test.
Differential Revision: https://code.wildfiregames.com/D871
Fixes #4759
setup.js and setup_test.js Reviewed By: leper
This was SVN commit r20134.
2017-09-08 04:22:53 +00:00
elexis
eb4e66aab3
Move VFS GUI script function registration to its interface file.
...
This was SVN commit r20133.
2017-09-08 04:01:26 +00:00
elexis
871ed04521
Move biome definitions to JSON and JS files, so that mods can easily remove or add new biomes, refs cc0d4f25da.
...
Move environment biome constants from JS to JSON.
This was SVN commit r20129.
2017-09-08 02:15:54 +00:00
elexis
e95f4e9744
Unify deepcopy and clone.
...
Delete clone globalscripts function introduced by 9f47ed536d .
Rename the better supported deepcopy function to clone.
Delete unused Vector2D and Vector3D clone prototype functions that can
just use clone if needed.
Differential Revision: https://code.wildfiregames.com/D870
Reviewed By: leper
This was SVN commit r20125.
2017-09-06 20:58:27 +00:00
leper
38865845d3
Stop using postfix increment in a few places.
...
Pointed out by cppcheck.
Reviewed By: vladislavbelov
Differential Revision: https://code.wildfiregames.com/D414
This was SVN commit r20113.
2017-09-04 22:00:04 +00:00
elexis
9cb0a60d73
Deepfreeze Aura, Technology and Resource Templates, Simulation states, GameAttributes and few other JS objects.
...
This reveals unintentional modifications to these objects which would
most often imply hidden bugs.
Differential Revision: https://code.wildfiregames.com/D829
Fixes #4257
Refs #3647
This was SVN commit r20100.
2017-09-03 16:37:09 +00:00
elexis
1b47451d32
Add deepfreeze function to recursively mark JS Objects as read-only.
...
Refs #4257 , D829
Proofread By: leper
This was SVN commit r20099.
2017-09-03 12:50:45 +00:00
leper
5c01b50ca4
Add FALLTHROUGH, which in the best case is just [[fallthrough]].
...
Note that this does not fix the warnings in AtlasObjectXML, someone
interested
in fixing those should check whether using ICU would be a nicer
solution.
Reviewed By: echotangoecho
Differential Revision: https://code.wildfiregames.com/D740
This was SVN commit r20095.
2017-09-01 20:04:53 +00:00
elexis
7a157faf3c
Allow the GUI to subscribe to text edit events to redeem three workarounds in the options page.
...
Differential Revision: https://code.wildfiregames.com/D860
Refs #2451 , #3511 , 5c61f68600 (registerChanges), 7fa2962c45
(onMouseLeave), e909567004 (onPress)
Reviewed By: Vladislav
This was SVN commit r20091.
2017-09-01 12:06:18 +00:00
elexis
2cb6139761
Fix typo in f8d53d8f7b / D786 and some whitespace in CInput.cpp
...
This was SVN commit r20088.
2017-09-01 01:51:48 +00:00
mimo
6ed9017253
fix typo in LongPathfinder
...
Reviewed By: fatherbushido
Differential Revision: https://code.wildfiregames.com/D847
This was SVN commit r20082.
2017-08-30 16:41:10 +00:00
elexis
a5c60619e2
Input GUI object cleanup.
...
Remove redundant if-statement following 5593f573f4 as reported by
Vladislav.
Use switch-statement in ManuallyHandleEvent.
This was SVN commit r20078.
2017-08-30 12:01:17 +00:00
elexis
ee38f0db37
Implement readonly Input GUI objects and use it in the file location indicator in the replay menu,
...
so that the user can copy the file path.
Fixes #4225
Refs D763
Patch By: Vladislav
This was SVN commit r20075.
2017-08-29 23:53:23 +00:00
elexis
23118ba847
Split the Input GUI object key processing into two methods (methods changing the text and methods not changing it).
...
Patch By: Vladislav
Refs #4225 , D763
Also use SDL_Keycode instead of int, remove an outdated history lookup
comment and some other unneeded comments.
This was SVN commit r20074.
2017-08-29 23:29:29 +00:00