1
0
forked from mirrors/0ad

Compare commits

...

618 Commits

Author SHA1 Message Date
historic_bruno 9c92f45c61 Fixes typo in OS X bundle build script.
Changes SDL2 version in build-osx-libs.sh to Hg snapshot SDL-2.0.4-9134,
refs #2852

This was SVN commit r15849.
2014-10-06 23:45:34 +00:00
historic_bruno 0b0184af1d Removes SDL1 from OS X libraries build script
This was SVN commit r15848.
2014-10-06 01:05:46 +00:00
Itms a028027f75 Fix previous commit.
This was SVN commit r15847.
2014-10-05 22:46:24 +00:00
Itms 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
Itms 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
Itms 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
mimo 2af4272c07 allow war dogs to garrison in ships
This was SVN commit r15840.
2014-10-05 19:25:27 +00:00
mimo 807fd8c236 fix bonus caption display, thanks to Polakrity
This was SVN commit r15839.
2014-10-05 13:57:59 +00:00
leper 642011e6c0 Fixes tests broken in e91215d5c9.
This was SVN commit r15838.
2014-10-04 15:37:33 +00:00
scythetwirler 90c0957cef Fixes cavalry upgrade inconsistencies.
This was SVN commit r15837.
2014-10-04 14:13:14 +00:00
mimo e91215d5c9 improve gui performance, refs #2179 comment 21
This was SVN commit r15836.
2014-10-04 11:40:53 +00:00
scythetwirler 8a3435915b Slightly buffs swordsmen and fixes a couple inconsistencies.
This was SVN commit r15835.
2014-10-04 05:31:29 +00:00
scythetwirler 54bc1c7173 Fixes #2831. Patch by prodigalson.
This was SVN commit r15834.
2014-10-04 05:17:36 +00:00
historic_bruno 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
Yves 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
historic_bruno 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
mimo 5c97a681d4 fix typo in Petra, thanks niektb for noticing
This was SVN commit r15829.
2014-10-02 19:01:26 +00:00
historic_bruno a86231240d Fixes some bugs in OS X bundle build script.
Logs most build output to file using simple redirects for now.
Hides output of pushd/popd commands

This was SVN commit r15828.
2014-09-29 04:33:51 +00:00
historic_bruno 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
leper 2afeec0c01 Unify removal of incomplete translations in packaging scripts. Fixes #2825.
This was SVN commit r15826.
2014-09-28 21:51:48 +00:00
historic_bruno 436eb18397 Updates precompiled win32 gloox lib to 1.0.11 and rebuilt glooxwrapper with VC++ 2010. Note: gloox 1.0.3 and later changed the license from GPL v2 to v3.
Updates LICENSE.txt accordingly.

This was SVN commit r15825.
2014-09-28 21:44:48 +00:00
historic_bruno db71b74d7d Clarifies some license versions in LICENSE.txt and makes formatting more consistent
This was SVN commit r15824.
2014-09-28 21:37:03 +00:00
historic_bruno 001f32e080 Removes lib path for cxxtest from extern_libs4.lua, to avoid clang linker warning
This was SVN commit r15823.
2014-09-28 21:18:44 +00:00
Itms a18107aa7c Fix placing of some entities in various maps, refs #2560.
This was SVN commit r15822.
2014-09-28 16:53:19 +00:00
historic_bruno 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
historic_bruno 9148e5609f Updates library LICENSE.txt for new cxxtest version and addition of SDL2
This was SVN commit r15820.
2014-09-28 01:58:37 +00:00
leper 857698e231 Fix memory leak when loading mods from config.
This was SVN commit r15818.
2014-09-28 00:13:55 +00:00
scythetwirler e07305fd9f Buffs melee cavalry attack by 20% and overall cavalry speed by 2.0.
This was SVN commit r15817.
2014-09-27 22:01:50 +00:00
historic_bruno 0caab0429f Fixes Reset Water Data button position in Atlas, fixes #2820
This was SVN commit r15815.
2014-09-27 02:42:42 +00:00
historic_bruno ea2db5386b Fixes water rendering and crashes on GPUs without FBO support, fixes #2667
This was SVN commit r15814.
2014-09-27 01:32:03 +00:00
scythetwirler 2f8ed7980d Makes the bot more lenient on case sensitivity due to inconsistencies in case between Windows and Unix.
This was SVN commit r15813.
2014-09-27 01:06:28 +00:00
mimo b524f59657 check ResourceGatherer interface before trying to gather, fixes #2801
This was SVN commit r15812.
2014-09-26 21:23:32 +00:00
mimo 119aad9da9 fix a debug message
This was SVN commit r15811.
2014-09-26 17:07:17 +00:00
leper 20956c94b0 Update some strings.
This was SVN commit r15809.
2014-09-26 14:26:21 +00:00
historic_bruno 8f039bfb44 Fixes translation inclusion regex for build-osx-bundle.sh, fixes #2764
This was SVN commit r15808.
2014-09-26 01:06:21 +00:00
leper 7ca08e2485 Fix type errors in cmpAttack by switching parameter and object.
This was SVN commit r15805.
2014-09-25 16:33:38 +00:00
Itms eda8f3cc18 Tweak some strings, addressing concerns pointed out by translators on Transifex.
This was SVN commit r15804.
2014-09-25 15:36:18 +00:00
leper fe30c0e6a1 Switch to ErrorPrinter on Windows. Refs #2488.
This was SVN commit r15803.
2014-09-25 15:17:30 +00:00
Itms d7d1607021 Fix GUI errors when a client joins a multiplayer game setup room.
Based on a patch by cwprogger, fixes #2779

This was SVN commit r15802.
2014-09-25 15:05:10 +00:00
historic_bruno b155d4f7e3 Updates OS X bundle build script. Adds --release flag which can be used to build a proper release bundle, including SVN export, at the expense of time and disk space. Moves SVN-specific logic to this mode, otherwise the script works with git or no source control at all.
Removes obsolete instructions for building a 32-bit 10.5 bundle.

This was SVN commit r15801.
2014-09-25 02:18:19 +00:00
historic_bruno d1a31b3f54 Fixes regex for excluding translations from release packages, refs #2494
This was SVN commit r15800.
2014-09-25 02:07:46 +00:00
historic_bruno 5ad07045e2 Sets OS X build to use SDL2 by default, refs #2041
This was SVN commit r15799.
2014-09-25 01:54:58 +00:00
scythetwirler a815ca0de9 Nerfs sele hero aura, transitions a tech, and fix spaces.
This was SVN commit r15798.
2014-09-25 00:53:48 +00:00
leper d67ffa039c Handle an error of no suitable tiles being found gracefully in Schwarzwald RMS. Fixes #2787.
This was SVN commit r15797.
2014-09-24 20:48:19 +00:00
leper 533fb6f7bc Load the public mod by default. Fixes #2754.
This was SVN commit r15796.
2014-09-24 17:49:22 +00:00
leper 4753a0c1c2 Replace usage of "GUIs" in cxxtest with the command line,
and extend that to support -libdir <dir> and -disabled. Fixes #2488.

This was SVN commit r15795.
2014-09-24 15:35:31 +00:00
leper 29effb5089 Build fixes and improvements for BSDs. Fixes #2804.
This was SVN commit r15793.
2014-09-24 14:11:13 +00:00
leper d6709d3e08 Ignore mods (in the modmod) that do not specify required properties. Fixes #2822. Refs #2794.
Fixes description display if filters are used.

This was SVN commit r15792.
2014-09-24 01:36:57 +00:00
leper 091b958344 Fix an issue with filters and translations in the modmod.
This was SVN commit r15791.
2014-09-24 00:26:13 +00:00
historic_bruno b5a0e2ec5c Updates OS X DMG background image, by He who must not be named
This was SVN commit r15790.
2014-09-23 02:48:23 +00:00
historic_bruno 1a2c9835c9 Adds patch for wxWidgets build on OS X, fixes Atlas crash on VMs with software rendering.
Cleans up wxWidgets config flags

This was SVN commit r15788.
2014-09-23 00:33:14 +00:00
Yves 3b49576fa6 Tunes GC scheduling a bit to reduce memory usage.
The main problem was that GC was only called from the simulation before
this patch. This means when you were waiting in the multiplayer lobby or
just had the GUI open, it only called GC when getting close to the JS
runtime size limit (I assume). Another problem was the Net Server
runtime which didn't GC either. Here the runtime size limit is 16 MB
though, so it's not too terrible. These issues have both been addressed
and GC has been given a bit more time per incremental slice to make sure
it gets done in time. It's still far from perfect, but there are too
many changes in SpiderMonkey related to GC, so I don't want to spend too
much time on this yet.

Refs #2808

This was SVN commit r15787.
2014-09-22 20:13:04 +00:00
historic_bruno 3f75e5db0e Adds --sdl2 flag to update-workspaces.bat, making SDL2 the default on Windows, refs #2041
This was SVN commit r15786.
2014-09-22 19:42:55 +00:00
historic_bruno 5593f573f4 Cleans up handling of SDL2 text input events, no behavior change expected.
Implements SDL2 text editing handler for input fields, this is for IME
support, so users entering CJK text can see what they're composing
before committing it. Should have no effect on SDL1 or normal text
input.

This was SVN commit r15785.
2014-09-22 19:00:20 +00:00
mimo 03dd6908ec Petra: decreases size of attacking armies in easy level
This was SVN commit r15784.
2014-09-22 18:53:54 +00:00
historic_bruno 9592c59704 Fixes crash in Atlas color picker tool, noticeable with wxWidgets 3.0. Colors returned by wxColourData::GetCustomColour aren't always valid, so we have to test them with IsOk() before accessing them. Fixes #2805
This was SVN commit r15782.
2014-09-21 21:25:51 +00:00
Yves a89d0190bd Use ES6 Maps in the AI API for applying tech and aura modification to entity templates.
This should improve performance a bit (check the ticket for details).

Refs #2475

This was SVN commit r15781.
2014-09-21 21:02:15 +00:00
Itms b1ca37eead Extend visibility update to all tiles around LoS vertices. Incidentally prevent an issue from arising on square maps. Also improve a code comment.
This should be enough to fix #2760.

This was SVN commit r15779.
2014-09-21 20:29:54 +00:00
mimo bce96c99bb small fixes/improvments to the AI
This was SVN commit r15776.
2014-09-21 12:02:33 +00:00
Itms 357fa957c8 Add a translation comment for "Join Game" buttons in the main menu and the lobby, to clarify the translation context.
Fixes #2548

This was SVN commit r15775.
2014-09-21 08:35:21 +00:00
historic_bruno 8f61e36352 Adds SDL2 to build-osx-libs.sh, but leave SDL1 as the default while we test, refs #2041.
Note: SDL2_CONFIG is now the variable to override the path to
sdl2-config, SDL_CONFIG remains to override the path to sdl-config

This was SVN commit r15774.
2014-09-20 19:02:24 +00:00
Yves a8d8c6d101 Reverts the use of Set in f5336c42b8.
Sets don't support multiple elements with the same key which is required
here to fire timers multiple times per turn.
Refs #2475

This was SVN commit r15773.
2014-09-20 18:48:12 +00:00
Yves f5336c42b8 Adds Serialization support for ES6 Maps.
Also includes the patch from Sanderd17 to use Maps and Sets for the
Timer components. Sets can't be serialized yet, but in this case they
don't require serialization.
Refs #2475

This was SVN commit r15770.
2014-09-20 17:14:53 +00:00
scythetwirler 6b2677a3fd Adds profiles to the multiplayer lobby. Fixes #2504.
This was SVN commit r15768.
2014-09-20 15:35:26 +00:00
historic_bruno d62e3729d5 Improves SDL2 support, includes patch by yashi and fabio, refs #2041:
* Adds SDL color cursor implementation
* Adds config option for choosing preferred display in multimonitor
setup
* Uses text input API to better handle CJK input
* Fixes various hotkey and input bugs

SDL 1.2 is still the default and recommended, to test experimental SDL2
support, pass the --sdl2 flag to update-workspaces

This was SVN commit r15767.
2014-09-20 12:12:35 +00:00
Itms 801d13aa8b Address some possible causes of bad handling of visibility updates. Also includes a little code tweaking allowing the global update of all visibility data.
Refs #2760

This was SVN commit r15765.
2014-09-20 08:26:45 +00:00
scythetwirler 55b12857b3 Buffs ranged units slightly as massing melee units was slightly overpowered.
This was SVN commit r15764.
2014-09-19 03:39:24 +00:00
scythetwirler 6999295b7e Fixes #2768.
This was SVN commit r15763.
2014-09-19 03:14:46 +00:00
historic_bruno aa5fded9ae This was SVN commit r15762. 2014-09-17 23:22:20 +00:00
historic_bruno c56407a1f8 Fixes autostart init of player data, patch by mimo, fixes #2798.
Cleans up some of the autostart logic, removes and renames a few options
for clarity.
Updates readme.txt to reflect these changes and include some examples

This was SVN commit r15761.
2014-09-17 01:15:03 +00:00
Itms b5f32e720f Rename the Briton hero Cynvelin to Cunobelin, which is a more common appellation, and is coherent with the historical data of the game. Also fix some typos by this mean.
Fixes #2639

This was SVN commit r15759.
2014-09-16 09:13:26 +00:00
historic_bruno 809189d953 Fixes "quit" command and GUI notification for AI debugging, fixes #2755
This was SVN commit r15758.
2014-09-16 02:50:49 +00:00
mimo b2a479cc74 reset some map attribute, addresses #2803
This was SVN commit r15757.
2014-09-15 21:59:51 +00:00
mimo 3f1db1ef01 remove aegis bot
This was SVN commit r15756.
2014-09-15 20:19:00 +00:00
leper 66a2fe6308 Unload hotkeys on shutdown.
Fixes double registration of hotkeys on engine restart.

This was SVN commit r15755.
2014-09-15 01:27:06 +00:00
scythetwirler 28c0b00b2e Sorts games in gamesList by status, then name. Refs #2463, #2448.
This was SVN commit r15754.
2014-09-14 22:11:03 +00:00
scythetwirler 7b80c86645 Updates a comment forgotten in 113f72a503. Refs #2463, #2448.
This was SVN commit r15753.
2014-09-14 21:23:49 +00:00
historic_bruno 16a99e5ad3 Fixes some untranslated text in the multiplayer lobby (map name, type, and description), refs #2547
This was SVN commit r15752.
2014-09-14 21:10:49 +00:00
scythetwirler 113f72a503 Makes running games visible in the lobby. These will be colored in red. Refs #2463, #2448.
This was SVN commit r15751.
2014-09-14 20:59:35 +00:00
mimo 67c3a80c42 reset the trigger script when changing map, fix #2793
This was SVN commit r15750.
2014-09-14 16:52:33 +00:00
mimo 4f7a935f44 fix a rare case where a Petra attack would not know its target is already destroyed
This was SVN commit r15749.
2014-09-14 13:43:11 +00:00
historic_bruno 0f0f4f7b03 Fixes crash on OS X if dir_watch_Poll is called during init before dir_watch_Add, refs #2427, #2650
This was SVN commit r15748.
2014-09-14 00:27:38 +00:00
Itms 0605232aaf Updated the welcome screen to inform players about the temporary removal of formations.
This was SVN commit r15747.
2014-09-13 20:34:27 +00:00
historic_bruno 60d92b643d Fixes some unused variables in Atlas
This was SVN commit r15746.
2014-09-13 19:34:04 +00:00
historic_bruno 01395ce96d Fixes clang warning about hidden overloaded virtual function
This was SVN commit r15745.
2014-09-13 19:06:55 +00:00
mimo fe381158fb fix ptol_trader camel sounds, patch by thamlett
This was SVN commit r15744.
2014-09-13 17:54:40 +00:00
mimo 2acfbb04a5 fix a stupid typo, fixes #2797
This was SVN commit r15743.
2014-09-13 17:25:33 +00:00
historic_bruno 70d81040cb Fixes Atlas copy/paste not copying actor seeds, patch by trompetin17, fixes #2791
This was SVN commit r15742.
2014-09-13 16:53:43 +00:00
Itms ab4a1952f5 Small tweak for the options page, requesting game restart when enabling postproc effects.
This was SVN commit r15740.
2014-09-13 10:13:48 +00:00
mimo b0c14154ee prevent a warning message of undefined variable
This was SVN commit r15739.
2014-09-13 09:57:12 +00:00
scythetwirler 8c5470daf1 Fixes #2795. Refs #2792
This was SVN commit r15738.
2014-09-13 00:39:56 +00:00
leper acd86047dc Only split strings if they are non-empty. Fixes previous commit.
This was SVN commit r15737.
2014-09-12 23:11:03 +00:00
mimo dd6b6779af trained animals in corral should not respond to alert, adresses #2792
This was SVN commit r15736.
2014-09-12 22:01:21 +00:00
leper 134e3c84b0 Clean up some code.
Fixes linker error on OSX.

This was SVN commit r15735.
2014-09-12 21:45:30 +00:00
Itms a8189f89e5 Stop music when resetting the simulation test mode in Atlas.
Patch by trompetin17, fixes #1712

This was SVN commit r15734.
2014-09-12 21:38:10 +00:00
leper 83dda90662 Remove last traces of removed persian background images. Patch by dan@sstrev.com. Fixes #2777.
This was SVN commit r15733.
2014-09-12 21:14:07 +00:00
leper d0abd6628b Add messages.json file to the modmod. Fixes #2790.
This was SVN commit r15732.
2014-09-12 20:08:38 +00:00
mimo 87e0d9e6c1 Petra: some tunings in tech research following the merge of balance branch
This was SVN commit r15728.
2014-09-10 17:56:19 +00:00
mimo 9ba74f5b5f fix heal_barracks tech
This was SVN commit r15727.
2014-09-10 17:51:51 +00:00
historic_bruno e4d7586cdd Sets default compiler for OS X build to clang, using hack that should be replaced if we upgrade premake.
Fixes linking error in ICU build from build-osx-libs.sh (it was setting
the C++ compiler to clang, which is the C compiler, so it wouldn't
automatically link to the c++ lib). Now build-osx-libs.sh and the game
should use clang and whichever c++ lib is the default

This was SVN commit r15725.
2014-09-09 23:56:39 +00:00
Itms 7ada7dd2a8 Some tweaks to profiler2:
* separate the HTTP profiling server from the on-screen profiler
* allow shutting down the HTTP profiler
* print messages when enabling/disabling HTTP and GPU profilers

Patch by kingbasil, fixes #1862

This was SVN commit r15723.
2014-09-09 18:17:08 +00:00
mimo bdd8bc1f44 update the in-game hotkeys page following 2f1d143dc2
This was SVN commit r15722.
2014-09-09 17:22:13 +00:00
historic_bruno fee304d789 Fixes crash from 41b98a6f12 where a VBChunk* was released but not set to NULL
This was SVN commit r15721.
2014-09-09 04:13:50 +00:00
mimo 7b3476e104 fix #2783
This was SVN commit r15720.
2014-09-08 20:37:04 +00:00
historic_bruno 9c683af1e4 Fixes undefined property reference in Atlas after generating random map.
Fixes crash after failed random map generation in Atlas

This was SVN commit r15719.
2014-09-08 03:48:24 +00:00
historic_bruno 881ad4090b Fixes weird unconventional use of logical not operator that also triggered a warning in clang
This was SVN commit r15717.
2014-09-08 00:19:35 +00:00
historic_bruno 3d1cd08a4c Suppresses noisy clang/libc++ warnings from SpiderMonkey headers on OS X
This was SVN commit r15716.
2014-09-07 23:58:22 +00:00
historic_bruno 41b98a6f12 Fixes incorrect reuse of a member variable in WaterManager, caused a crash when starting a new map in Atlas after loading a water map. Fixes #2784.
Fixes likely mem leaks from not cleaning up vertex buffer allocations

This was SVN commit r15715.
2014-09-07 23:49:24 +00:00
historic_bruno e027981f95 Fixes missing functions_utility_list.js in initial mod selector screen
This was SVN commit r15714.
2014-09-07 23:29:33 +00:00
scythetwirler 13b229d503 Gameplay rebalance after a long period of testing and rebalancing. See https://github.com/scythetwirler/0ad for details on changes.
This was SVN commit r15713.
2014-09-07 21:47:26 +00:00
mimo 7ce9097d1c small cleaning of d0472b021b
This was SVN commit r15710.
2014-09-07 10:28:18 +00:00
Itms 640f898377 Move some animals outside of deep water in the skirmish map "Watering Holes (4)".
Fixes #2013

This was SVN commit r15709.
2014-09-07 09:27:36 +00:00
OmriLahav 5b51ca862f 2014 remake (A17)
This was SVN commit r15708.
2014-09-06 23:21:06 +00:00
Itms be98e31de2 Improve the description of the British hero Kunobelinos in the History panel.
New text by Haommin, fixes #2639.

This was SVN commit r15706.
2014-09-06 20:09:07 +00:00
Itms d0472b021b Supersede the "Reveal all" flag when displaying mirages, to avoid seeing other players' mirages. This is especially problematic when switching perspective to an AI player.
Fixes #2712, thanks mimo for the report and for having looked into the
related code.

This was SVN commit r15705.
2014-09-06 19:59:49 +00:00
Itms 76a5be4c4c Fix previous commit.
This was SVN commit r15704.
2014-09-06 15:31:36 +00:00
Itms 2b1efa5035 Revert an unoptimized GUI update from f7e591c9f2. Instead, notify directly the GUI in case of miraged entities, and treat them the same way we treat renamed entities.
Fixes #2778

This was SVN commit r15703.
2014-09-06 13:34:54 +00:00
Enrique 001e6f6ca3 Fixed iberian fortress garrison flag and smooth groups. Patch by stanislas69. Removed kennel mud mesh. Fixes #2765
This was SVN commit r15702.
2014-09-05 15:59:36 +00:00
Enrique 72ee7a12de fixed kennel crash. Patch by stanislas69. Fixes #2766
This was SVN commit r15701.
2014-09-05 15:37:44 +00:00
Pureon bafb300bf8 Updated Persian Civic structure. Fixes #2630
This was SVN commit r15700.
2014-09-03 21:27:55 +00:00
Itms c56089a082 Reference a missing script file in the mod selector.
Reported and patched by Radagast, fixes #2762

This was SVN commit r15699.
2014-09-03 16:58:08 +00:00
historic_bruno 69bd930219 Excludes debug DLLs from Windows installer, fixes #855
This was SVN commit r15697.
2014-09-01 01:44:10 +00:00
historic_bruno 8034a677e5 Fixes build-osx-libs.sh to rebuild SpiderMonkey when its README.txt changes, fixes #2551
This was SVN commit r15696.
2014-08-31 04:19:13 +00:00
mimo 032d031729 Petra: revisit the attacks + several bugfixes + add some more debug printouts
This was SVN commit r15695.
2014-08-30 20:06:48 +00:00
mimo 611d20016a fixes error with GetPosition2D called while out of world
This was SVN commit r15694.
2014-08-30 17:03:04 +00:00
Itms 5bfe2a4b65 Don't call miraging codes while iterating through the range manager's entities map.
I already had made that mistake when working on the fogging system so I
documented it in the code.

Fixes #2756

This was SVN commit r15692.
2014-08-29 09:01:08 +00:00
mimo c069a6555c prevent js error
This was SVN commit r15691.
2014-08-28 08:59:45 +00:00
mimo 52e9551957 Petra: prevent infinite loop in mods where units are their own promotion
This was SVN commit r15690.
2014-08-28 08:01:25 +00:00
Itms c0621ee28f Stop updating some data after the end of a game.
This prevents game music from being played again, just after
defeat/victory.

Fixes #2714, #2744

This was SVN commit r15689.
2014-08-27 18:37:20 +00:00
Itms 30b5fb6c41 Pass map settings also to Scenario games, including in particular trigger scripts for victory conditions.
Fixes #2715

This was SVN commit r15688.
2014-08-27 15:25:16 +00:00
Yves 179162069e Updated cxxtestgen.exe for cxxtest4.4 (created as described in #2450).
This was SVN commit r15686.
2014-08-27 12:39:04 +00:00
Itms 6942edb788 Fix a misplaced block of code from ea78d97989 that caused Atlas to show errors at startup.
This was SVN commit r15685.
2014-08-27 12:30:29 +00:00
mimo a994053a6a Petra: fix for some units which stay idle when their base is destroyed
This was SVN commit r15684.
2014-08-27 12:21:13 +00:00
mimo b2d07d5e5a complete 2f1d143dc2 for moveAttack in rallyPoint + some cleaning
This was SVN commit r15682.
2014-08-26 19:35:43 +00:00
Itms ea78d97989 Explore the map inside a player's territory border at the beginning of a game.
Also handle properly the "Explore Map" option with the new fogging
system.

Fixes #2709

This was SVN commit r15681.
2014-08-26 10:01:04 +00:00
mimo 4cd7dd77c1 add missing files from dd189ffe1f
This was SVN commit r15680.
2014-08-26 09:53:29 +00:00
mimo dd189ffe1f fix #15678 when preferglsl=true
This was SVN commit r15679.
2014-08-26 09:41:14 +00:00
leper be2f0e69fc Make the modmod standalone.
Mount public in case we are starting Atlas and no mods are specified in
the config.
If users remove all mods and save this to the config and try to start
Atlas it will
crash, as it cannot find some needed files.

This was SVN commit r15678.
2014-08-25 16:38:54 +00:00
leper 64bfa089af Add mod selection mod.
Includes some contributions by rada and sanderd17.

This was SVN commit r15677.
2014-08-25 16:02:54 +00:00
leper 523d220ac5 Add engine support to load mods from config and restart into mods.
Restructure mod mounting code a bit to make it reusable, and use it for
replays. Fixes #2703.

This was SVN commit r15676.
2014-08-25 16:02:40 +00:00
mimo 09e6d5ae02 fix 2f1d143dc2, which fixes #2747
This was SVN commit r15674.
2014-08-24 19:56:50 +00:00
leper c5c394fd17 Fix some disabled tests.
This was SVN commit r15673.
2014-08-24 15:29:53 +00:00
leper 2b7e9728b6 Fix failure in TestNetComms::test_basic_DISABLED. Patch by Echelon9. Fixes #2426.
This was SVN commit r15672.
2014-08-24 12:02:52 +00:00
mimo 2f1d143dc2 give possibility to choose type of targets in moveAttack, fixes #2740
This was SVN commit r15671.
2014-08-24 11:51:03 +00:00
mimo ac9d4f1036 various small fixes and cleanings to Petra
This was SVN commit r15670.
2014-08-24 11:35:08 +00:00
leper 0e01f20d29 Upgrades cxxtest.
Replaces cxxtest-4.3 with cxxtest-4.4 (without .gitignore or .cvsignore
files) (see [[SVN:14817]]).
Applies the same changes as done in c8bdd993c0 to the new version.

This was SVN commit r15667.
2014-08-24 08:19:24 +00:00
leper da2050793d Fix some greek unit names. Patch by pstumpf2. Fixes #2746.
This was SVN commit r15666.
2014-08-24 07:04:39 +00:00
leper 057bef91f2 Fix undefined property warning. Fixes #2742.
This was SVN commit r15665.
2014-08-23 17:23:15 +00:00
mimo efe21b85da Garrison orders canceled in the ai were not properly canceled in the simulation. Fixes #2741 and #2743.
This was SVN commit r15664.
2014-08-23 13:40:56 +00:00
Spahbod 811e38a833 Fixes for survival of the fittest map.
This was SVN commit r15663.
2014-08-22 05:33:12 +00:00
mimo e4194af0c2 fixes some non-working techs (was in reverted 40365ee815)
This was SVN commit r15661.
2014-08-21 09:09:08 +00:00
mimo 5616221c99 improve comment, see #2737
This was SVN commit r15660.
2014-08-21 09:00:42 +00:00
mimo 6fe9af70cf remove debug output from previous commit
This was SVN commit r15659.
2014-08-19 09:41:38 +00:00
mimo 14b7472c15 petra: prevent JS errors when expected buildings do not exist (for mods)
This was SVN commit r15658.
2014-08-19 09:34:34 +00:00
LordGood 36d205035e New Iberian tower models
This was SVN commit r15657.
2014-08-18 19:30:56 +00:00
sanderd17 edcc4d3ec5 Change the vision range together with the attack range for some techs. Refs #2736. Patch by serveurix
This was SVN commit r15656.
2014-08-18 19:20:46 +00:00
wraitii d9fcebd433 Revert Surprise commits by Mythos_Ruler, 4f7549b4f8 and 40365ee815 following team decision. They will be put in a separate git branch. This is done to avoid conflict with scythetwirler's balance branch and potential other work in that area.
This was SVN commit r15655.
2014-08-18 10:35:30 +00:00
mimo f939f7953d petra: first step towards use of heroes
This was SVN commit r15654.
2014-08-18 09:44:32 +00:00
Enrique 6c8fd6b3dd Fix the rotary mill animation
This was SVN commit r15653.
2014-08-17 17:34:43 +00:00
LordGood d112902b99 fixing ngon glitch on iberian wonder
This was SVN commit r15651.
2014-08-17 13:53:01 +00:00
LordGood cb1612ad8a Iberian wonder
This was SVN commit r15650.
2014-08-17 13:19:27 +00:00
Mythos_Ruler 4f7549b4f8 fix'd attack elements in these templates
This was SVN commit r15647.
2014-08-16 02:32:58 +00:00
leper 12771edb0e Delete dynamic message subscriptions on simulation reset.
This was SVN commit r15646.
2014-08-16 01:23:50 +00:00
leper 422b9d79dc Fixes the cataphract helmet. Textures by stanislas69.
This was SVN commit r15645.
2014-08-15 23:54:09 +00:00
Mythos_Ruler 40365ee815 Surprise.
100% brand new rebalance for every unit in the game, after lengthy
discussion with Enrique.

Some updated portraits.

A couple new tips.

Stan's "cataphract" mask and helmet (the helmet needs a texture).

This was SVN commit r15644.
2014-08-15 23:10:44 +00:00
leper aa6de51793 Fix FPS, real time, and game time overlay hotkeys. Fixes 704d0f9511.
This was SVN commit r15643.
2014-08-15 22:03:12 +00:00
mimo 1a33003538 AI should not use EntityRenamed messages coming from mirages, addresses #2724
This was SVN commit r15642.
2014-08-15 16:18:57 +00:00
Enrique d5cacb027f Snow wolf. Texture edited by stanislas69
This was SVN commit r15641.
2014-08-15 12:14:45 +00:00
Enrique fef9b87381 Ptolemy I hero for ptolemaics by stanislas69
This was SVN commit r15640.
2014-08-15 12:04:52 +00:00
Enrique 302b67049c Gaul farmstead reshape (smaller) by stanislas69
This was SVN commit r15639.
2014-08-15 11:49:23 +00:00
Enrique 8c1a7d5d4c Ptolemaic blacksmith update by stanislas69
This was SVN commit r15638.
2014-08-15 11:35:07 +00:00
LordGood 4f44416bb0 New Iberian houses
This was SVN commit r15637.
2014-08-14 21:01:04 +00:00
Spahbod a4be909094 Temporary fixing the victory bug in survival of the fittest map. Refs #2721.
This was SVN commit r15636.
2014-08-14 09:50:51 +00:00
JoshuaJB b67a6f230b Fix typo from 704d0f9511.
This was SVN commit r15635.
2014-08-13 19:02:59 +00:00
JoshuaJB 704d0f9511 Add config settings for FPS, realtime, and gametime overlays.
This was SVN commit r15634.
2014-08-13 18:56:07 +00:00
LordGood c13547c9a0 Stan's rotary mill
This was SVN commit r15633.
2014-08-13 17:55:14 +00:00
wraitii a4df483f60 Forgot to make a variable unused.
This was SVN commit r15631.
2014-08-13 14:52:38 +00:00
JoshuaJB ada7691bce Add current time counter which can be triggered using Alt+T. Fixes #2718. Patch by thamlett.
This was SVN commit r15630.
2014-08-13 02:35:29 +00:00
mimo abef0673bd fixes some typos
This was SVN commit r15629.
2014-08-12 20:45:06 +00:00
wraitii 0b385384aa Fix terrain overlay rendering after water.
This was SVN commit r15628.
2014-08-12 15:58:03 +00:00
LordGood f7cab71243 Iberian barracks replacement
This was SVN commit r15627.
2014-08-12 03:42:59 +00:00
Yves 8593825eee Modifies 23c708f72a to use the NONCOPYABLE macro as suggested by leper.
This was SVN commit r15626.
2014-08-09 21:16:25 +00:00
Yves 23c708f72a Prevent copying of ScriptInterface objects.
Copying a ScriptInterface is not allowed. The destructor destroys the
JSContext and if there's a copy around that still uses it, that causes
crashes which can be quite hard to debug. This change prevents copying
by of ScriptInterface objects by making the copy constructor private,
which will reveal such errors at compile time.

This was SVN commit r15625.
2014-08-09 20:20:32 +00:00
Yves 83aa817f71 Exact stack rooting for simulation message type conversions.
Also replaces some deprecated API (jsval typedef and OBJECT_TO_JSVAL) in
that part of the code.

Refs #2415

This was SVN commit r15624.
2014-08-09 20:02:49 +00:00
Yves 8ce8e6ba9a Exact stack rooting for IGUIObject.
Refs #2415
Refs #2462

This was SVN commit r15623.
2014-08-08 13:41:47 +00:00
Yves 9872f5741f Exact stack rooting for ScriptInterface::FreezeObject.
Refs #2415

This was SVN commit r15622.
2014-08-08 11:59:49 +00:00
Spahbod 7471662ddc A small change that increases the performance of most random map generation noticeably.
This was SVN commit r15621.
2014-08-07 09:27:22 +00:00
wraitii 403b3b68af Fix some errors in WaterManager.
This was SVN commit r15620.
2014-08-06 15:24:38 +00:00
leper e578d215ea Fix free() of not allocated struct in the UPnP code. Patch by Echelon9. Fixes #2338, #2418.
This was SVN commit r15619.
2014-08-06 14:11:04 +00:00
leper 5ae040ea54 Fix non-PCH build.
This was SVN commit r15618.
2014-08-06 13:23:02 +00:00
wraitii e865dc797d Revert RedFox's changes to Spatial subdivisions in the simplest possible way (hopefully won't cause OOS, but at least we'll get reports). Fixes #2573, Refs #2430 . There probably are opportunities to remove more things.
This was SVN commit r15617.
2014-08-06 09:21:00 +00:00
Itms c0e7208130 Fixes 016d4599e1 by registering the new DisabledTemplatesChanged message.
Also fixes a typo.

This was SVN commit r15616.
2014-08-05 21:21:06 +00:00
Yves c662a4e9e9 Fixes #2713
This was SVN commit r15615.
2014-08-05 19:03:10 +00:00
Spahbod 016d4599e1 Added the ability to disable training/building of entities by triggers. Changes survival of the fittest random map to work with this. Refs #52
This was SVN commit r15614.
2014-08-05 12:49:12 +00:00
Itms f7e591c9f2 Hide changes to buildings in the fog-of-war.
To achieve this, mirage entities are created per player, to replace the
real entities when these ones fall into the fog-of-war. These mirage
entities are created on-the-fly, and destroyed when they get back in
sight.
This depends heavily on the VisibilityChanged message added in
2174eaaeee.

As a temporary adjustment, territories do not explore the map anymore
when their borders change. See #2709.

Fixes #599

This was SVN commit r15612.
2014-08-04 22:49:19 +00:00
Yves e41f010f91 Fixes crash when loading maps in Atlas.
The ScriptInterface pointer can be NULL there, so using it without
checking is not safe.
This fixes the problem by continuing with the exact stack rooting
changes, which makes the temporary solution unnecessary.

Fixes #2707
Refs #2415

This was SVN commit r15611.
2014-08-04 20:14:17 +00:00
JoshuaJB 30fa275f9d Fixed some keys not being recognized after a719696658. Refs #195.
This was SVN commit r15610.
2014-08-04 16:48:54 +00:00
JoshuaJB a719696658 Support more mouse buttons. Fixes #195. Patch by 01d55 with some minor cleanup.
This was SVN commit r15609.
2014-08-04 01:06:36 +00:00
JoshuaJB be9d69fd24 Link actor editor built in debug mode to debug version of atlasUI. Fixes #2655. Patch by Echelon9.
This was SVN commit r15608.
2014-08-03 22:46:20 +00:00
Yves efb889b79a Exact stack rooting for WriteStructuredClone and functions that use it.
Refs #2415

This was SVN commit r15607.
2014-08-03 19:32:39 +00:00
Yves f4d62152e7 Exact stack rooting for GetClass and GetPrivate.
Refs #2415

This was SVN commit r15606.
2014-08-03 17:53:21 +00:00
Yves 169174824f Exact stack rooting for ScriptInterface::ToString.
I had to change a few other functions to take JS::MutableHandleValue
because JS::Stringify takes a JS::MutableHandleValue as input parameter.
That seems a bit strange because it should not change that value.
I assume it has historical reasons.

Refs #2415
Refs #2462

This was SVN commit r15605.
2014-08-03 17:29:49 +00:00
wraitii 1561f55b27 Batch-change RM map water type and waviness settings. Again, this errs on the "not enough" side.
This was SVN commit r15604.
2014-08-03 11:01:41 +00:00
Yves a2bd44b23a Exact stack rooting for JSON related ScriptInterface functions.
Refs #2415
Refs #2462

This was SVN commit r15603.
2014-08-02 22:21:50 +00:00
wraitii 15fa9e2c2e (semi-auto) update scenarios and skirmishes water settings (type and waviness). Probably errs on the "not enough" side.
This was SVN commit r15602.
2014-08-02 17:08:42 +00:00
Yves c818b8e475 Exact rooting for CallConstructor.
Refs #2415
Refs #2462

This was SVN commit r15601.
2014-08-02 16:30:15 +00:00
Yves 736d934107 Removes an unused codepath for AI deserialization and related ScriptInterface code.
It might actually be needed again in the future, but I think even then
it would be easier to rewrite it than having to update the code in the
meantime.

Refs #2462

This was SVN commit r15600.
2014-08-02 13:22:02 +00:00
wraitii 4028cd425e Actually fix bugs on ATI cards. Switch reflection and refractions to use POT textures in an attempt to improve compatibility.
This was SVN commit r15598.
2014-08-02 12:54:45 +00:00
Yves 608c27fe10 Exact stack rooting for structured cloning functions.
Refs #2415
Refs #2462

This was SVN commit r15597.
2014-08-01 20:55:16 +00:00
mimo 7dbbb4e419 some cleaning of petra code
This was SVN commit r15596.
2014-08-01 14:32:31 +00:00
wraitii 2b0af756f6 Temporary reversion for a graphic problems with some ATI cards when disabling water reflections.
This was SVN commit r15595.
2014-08-01 13:26:45 +00:00
wraitii e50147fd96 Metaprogramming 9ce51f4357.
Change something on water shaders to see if it works better on ATI
cards.

This was SVN commit r15594.
2014-08-01 10:15:29 +00:00
mimo ec6b098dd4 Petra: some adjustements on naval transport
This was SVN commit r15593.
2014-07-31 21:35:28 +00:00
Yves 5c07a25ddc More exact stack rooting (CallFunction object).
Changes CallFunction and CallFunctionVoid to use a HandleValue as object
parameter. Also changes some JS serialization/deserialization functions
to only support the JSAPI rooted types (drop support for CScriptVal and
CScriptValRooted there). Some other functions got changed too because
they were closely related.

Refs #2415
Refs #2462

This was SVN commit r15592.
2014-07-31 19:18:40 +00:00
Yves d677a30c39 Adds support for passing JS::HandleValue and JS::RootedValue& to CallFunction.
Also adds tests for these cases.

Refs #2415

This was SVN commit r15591.
2014-07-31 16:34:15 +00:00
Itms af8b76e227 Avoids dividing by zero when generating Gulf of Bothnia random map with one player. Patch by FeXoR, fixes #2699.
This was SVN commit r15590.
2014-07-31 16:03:35 +00:00
Yves 2ae74221c7 Fixes saving/loading problems introduced in 28bdd8540f.
* CGameLoader created a new JS::Value when assigning to m_Metadata.
This means it didn't actually update metadata in SavedGames::Load. The
new approach solves this problem and should work well if
CScriptValRooted gets replaced in the future.
 * The cloning in ScriptFunctions.cpp was required. Removing it caused
compartment mismatches.
 * Now CGameLoader loads the metadata unconditinally because we didn't
actually use the option to not load load it.

Ref #2415

This was SVN commit r15589.
2014-07-31 14:44:51 +00:00
wraitii cf563657b6 Add some information about gathered resources to the multiple selection panel's tooltips. Refs #2695
This was SVN commit r15588.
2014-07-31 12:46:33 +00:00
mimo cf121baa1d Petra: small changes in naval transport to (hopefully) make it more robust
This was SVN commit r15587.
2014-07-30 21:36:48 +00:00
Itms f85272e3de Small code style fix, related to a typo in the documentation. Also updates the Example component's copyright to match the current year.
This was SVN commit r15586.
2014-07-30 17:34:40 +00:00
mimo 15e536dbb6 remove the hardcoded StartingCamera of player 3 which was pointing to player 1 location
This was SVN commit r15585.
2014-07-30 16:56:45 +00:00
Itms cd3b35ed52 Handle callback functions when using the "leave" hotkey (by default Esc) to close a message box.
Fixes #2635

This was SVN commit r15584.
2014-07-30 09:27:46 +00:00
mimo 707b255e2b Petra: prevent overseas attack to try to start before dock construction
This was SVN commit r15583.
2014-07-29 20:55:16 +00:00
mimo 58a19e8e30 Petra: prevent stuck units when a transport ship is destroyed
This was SVN commit r15582.
2014-07-29 17:32:59 +00:00
sanderd17 c2579c3c22 let allies build and repair stuff
This was SVN commit r15581.
2014-07-29 15:57:42 +00:00
wraitii 00b072ea14 Fix a UnitAI issue where a builder would become idle if, upon completion of a foundation, it was close enough to immediately start working on another foundation. This was particularly infuriating with palisades.
This was SVN commit r15580.
2014-07-29 11:34:58 +00:00
mimo a57747472c Petra: proper fix for the juggernaut limit reported by brian
This was SVN commit r15579.
2014-07-28 20:15:06 +00:00
mimo 3ed6681aa4 fix #2691, Petra should not try to unload allied garrisoned inside its buildings
This was SVN commit r15578.
2014-07-28 18:13:49 +00:00
wraitii 9ce51f4357 Commit coastal waves when activating fancy effects, and incidentally completely change how this effect work. Refs #48.
This was SVN commit r15576.
2014-07-28 10:14:00 +00:00
mimo 91ead32b1a petra: temporary fix, waiting to be able to deal with training restrictions
This was SVN commit r15575.
2014-07-27 21:48:02 +00:00
mimo afa769f873 fixes #2690 in Petra AI
This was SVN commit r15574.
2014-07-27 20:45:40 +00:00
Yves 2be86ef79e Fix crash when starting Atlas (introduced in 28bdd8540f).
This was SVN commit r15573.
2014-07-27 18:38:31 +00:00
Yves 07653c9a70 Fixes crash when generating random maps.
We must not be in a request when calling the ScriptInterface destructor.

This was SVN commit r15572.
2014-07-27 18:17:16 +00:00
Yves cef9e7d4f0 Fixes crash in replay mode introduced in 28bdd8540f.
This was SVN commit r15571.
2014-07-27 17:28:36 +00:00
mimo fe8e19ebfe Bunch of petra bug fixes: fixes #2685, #2686 and makes 074cf06803 really working
This was SVN commit r15570.
2014-07-27 15:25:26 +00:00
Yves 64efbfeae3 Fixes small memory leak introduced in 28bdd8540f.
Thanks to leper for pointing it out.

This was SVN commit r15569.
2014-07-26 23:09:24 +00:00
Yves 28bdd8540f Quite a lot of stack rooting related changes.
Changes GetProperty, SetProperty and HasProperty and a few other
functions to take handles. The conversions to CScriptVal or
CScriptValRooted at some places should be removed in the future. I've
done that to avoid an even larger patch.

Refs #2415
Refs #2462

This was SVN commit r15568.
2014-07-26 22:33:16 +00:00
Yves e818b08344 Better support for SpiderMonkey rooted types in the ScriptInterface.
* Adds additional overloads/specializations which are required when
passing JS::Handle<T>/JS::MutableHandle<T> types to different functions.
* Replaces GetPropertyJS with a GetProperty specialization.
* Allows us to avoid the implementation of ToJSVal specializations for
JS::Value and JS::HandleValue. Such conversions should only happen if
there's no way around it and if you are aware of it.
* Adds test to make sure that all potentially required specializations
with custom implementations are instantiated. This should help prevent
introducing bugs in temporarily unused code.

Refs #2415

This was SVN commit r15567.
2014-07-26 20:31:29 +00:00
sanderd17 30f7837c44 Should be workaround for issue #2684
This was SVN commit r15566.
2014-07-26 17:12:45 +00:00
sanderd17 9cd75067bc Workaround for issue #2486
This was SVN commit r15565.
2014-07-26 17:09:49 +00:00
Itms ea708e14bf Some changes on the VisibilityUpdate message system, aimed at correcting recent OOS problems.
I still experience troubles with serialization tests but I played a few
games without OOS. At least these changes will help us to debug more
efficiently the remaining problems.

Fixes initialization of visibility data and update order for LoS-related
systems (territory borders, etc).
Also removes a C-like array and fixes a player ID shifting.

Refs #599

This was SVN commit r15563.
2014-07-26 16:02:18 +00:00
Yves e3888448c4 Removes rooting test.
Rooting works different now and the CScriptVal types are going to be
removed. We will need rooting tests again, but they will have to work
completely different than this test implementation.

Refs #2415

This was SVN commit r15562.
2014-07-26 14:07:56 +00:00
Yves f41d4fa48e Fixes compartment mismatch introduced in a5ebd8dafd.
Also modifies some related functions to use SpiderMonkey stack rooting
types instead of CScriptValRooted.

Refs #2415

This was SVN commit r15561.
2014-07-26 10:58:24 +00:00
mimo 5c3f1b6dba fix previous commit
This was SVN commit r15560.
2014-07-25 21:24:05 +00:00
mimo 074cf06803 Petra: deals more efficiently with naval transport
This was SVN commit r15559.
2014-07-25 18:16:33 +00:00
leper 05de9def0b Remove unused --with-system-enet option (see 6bec648833) from premake.
Sort options in premake.

This was SVN commit r15558.
2014-07-25 13:50:59 +00:00
JoshuaJB f017922910 Update system icons to the newer logo and add higher resolution images to the ico/icns sets. (the OS X icon might need to be checked as I had to use an online converter to get that.)
This was SVN commit r15557.
2014-07-24 23:12:46 +00:00
leper 7c82e59ce5 Replace or remove uses of Engine.Console_Write. Patch by Adrian Fatol. Fixes #2141.
Cleans up list utility functions a bit.
Removes Engine.Console_Write.

This was SVN commit r15556.
2014-07-24 21:27:24 +00:00
mimo 4278e93b97 Petra: improve AI behaviour in scenarios without building possibility
This was SVN commit r15555.
2014-07-24 21:26:53 +00:00
mimo f8cbef8379 fix previous commit
This was SVN commit r15554.
2014-07-24 21:05:16 +00:00
mimo c5929ca7d5 make tooltip agree with buildrestrictions
This was SVN commit r15553.
2014-07-24 20:59:25 +00:00
mimo a574ca2e8f Petra: improve use of garrisoning for defense + some cleanings
This was SVN commit r15552.
2014-07-23 17:57:32 +00:00
mimo 2eb12c13ec give war ships at dock for carthage, for better balance of naval maps
This was SVN commit r15551.
2014-07-23 17:18:22 +00:00
wraitii 600e0a4081 Fix an oversight in CcmpPosition from the turret changes. Reported on IRC by Falsevision.
This was SVN commit r15550.
2014-07-23 13:02:42 +00:00
leper a5ebd8dafd Load trigger scripts in serialization test mode.
This was SVN commit r15549.
2014-07-22 23:30:27 +00:00
mimo bfe1e9f182 fix #2603
This was SVN commit r15548.
2014-07-22 21:23:25 +00:00
leper a7b18d02bf Add serialization test support for replays.
This was SVN commit r15547.
2014-07-22 19:41:49 +00:00
mimo b41289807a fix a rare JS warning
This was SVN commit r15546.
2014-07-22 18:20:47 +00:00
sanderd17 68121f387c Don't cache (and serialise) all technology templates multiple times. It's still cached once in the TechnologyTemplateManager.
This was SVN commit r15545.
2014-07-22 16:18:37 +00:00
mimo 9d505f2fd1 fixes petra javascript warnings
This was SVN commit r15543.
2014-07-21 16:19:59 +00:00
Yves a9048fa43d Adds support for passing JS::HandleValue to SetProperty and CallFunctionVoid without using ugly casing.
Also includes one little "demo-usecase", but additional code will be
changed to use that in future commits.

Refs #2415
Refs #2462

This was SVN commit r15542.
2014-07-20 19:45:18 +00:00
Yves 31f9ca9ebf Implements CallFunction with JS::MutableHandle<T> return type.
Changes the CallFunction implementation to use macros because otherwise
we'd have to write twice as many functions manually.
Adapts GetSavedGameData to use the new function template. Additional
callers will be changed in future commits.

Refs #2415
Refs #2462

This was SVN commit r15541.
2014-07-20 15:08:28 +00:00
mimo 3782857333 Petra: small fixes + reformat debug outputs
This was SVN commit r15540.
2014-07-19 16:17:09 +00:00
mimo 1d35d22a7b let the AI know when a building is decaying
This was SVN commit r15539.
2014-07-17 19:56:54 +00:00
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
sanderd17 404e808ed5 Add yes-no dialog and general dialog code to present choices to players. Can be used by triggers.
This was SVN commit r15480.
2014-07-02 14:48:22 +00:00
JoshuaJB c844589f48 Add missing translate() call.
This was SVN commit r15479.
2014-07-01 21:05:33 +00:00
mimo a5065b523d Petra: refrain AI to build/repair under enemy fire and few fixes on economy management
This was SVN commit r15478.
2014-07-01 19:48:38 +00:00
leper 343066040f Remove inconsistent checks for pSimulation2 when saving maps and ensure that it is set.
Remove commented out code writing triggers that has nothing to do with
the actual triggers implementation.
Free memory that was allocated for error reporting when when fork()
fails.
Remove dead initialization.

This was SVN commit r15477.
2014-07-01 19:00:41 +00:00
wraitii 89c6487ffe Forgot to remove my fake radiosity changes.
This was SVN commit r15476.
2014-07-01 16:53:13 +00:00
wraitii f8d53d9a1d Clean up of the last commit.
This was SVN commit r15474.
2014-07-01 16:15:03 +00:00
wraitii ab30e0d4fb Change the water texture to a new, bigger one, created in Blender (thanks to Enrique). Change settings so that they are more logical, yet allow reverting back to an even lower quality setting. Add a WIP high setting (with foam) which isn't finished yet.
Change the shader itself so that the effects look nicer and are more
consistent across settings.
Rework the water mesh generation (simpler system). Fix a few issues.

May work oddly with Atlas since I haven't been able to compile yet.

Refs #1875 (maybe fix), Fixes #2077 (I'll assume it does), Fixes #2114
(assumption again), refs #48.

This was SVN commit r15473.
2014-07-01 16:05:05 +00:00
sanderd17 0bde61fa5b Simplify 'survival of the fittest' map by using Gaia as attacker, and using the trigger point ownership to differentiate between different players, instead of hardcoding a list.
This was SVN commit r15471.
2014-07-01 09:29:45 +00:00
leper fa5b373698 Add some missing semicolons.
This was SVN commit r15470.
2014-06-30 21:38:45 +00:00
JoshuaJB 66485bcd17 Check that at least one assignment exists before tryintg to copy it.
This was SVN commit r15469.
2014-06-30 17:21:12 +00:00
Spahbod 00fa45161d Added "Survival of the Fittest", a demo random map with triggers. Refs #52
This was SVN commit r15468.
2014-06-30 13:59:34 +00:00
sanderd17 c339928c6f Disallow placing some special entities in Atlas. Fixes #1696. Patch by trompetin17
This was SVN commit r15467.
2014-06-30 10:20:20 +00:00
leper b4fc393f18 Change camera rotation in Atlas to be the same as in the game. Refs #1066.
This was SVN commit r15466.
2014-06-29 21:30:51 +00:00
mimo fd91398a95 Petra: fix the fix preventing the AI to be stuck trying to produce unavailable units
This was SVN commit r15465.
2014-06-29 19:16:18 +00:00
mimo 6ed07ef4d9 Petra: hopefully improve the gatherers management + some cleanings
This was SVN commit r15464.
2014-06-28 20:02:18 +00:00
mimo 97118f39b3 remove predefined AI in some skirmish maps, so that the default is taken
This was SVN commit r15463.
2014-06-28 19:46:10 +00:00
LordGood d90020e88e This was SVN commit r15462. 2014-06-28 11:01:59 +00:00
wraitii c626cf66f9 Fix build-osx-libs properly for mavericks after learning some Bash.
Fix a long-standing typo in TerrainRenderer for water rendering that
apparently had no effect.
Don't compress the water textures to make it look better. They will be
changed anyhow.

This was SVN commit r15461.
2014-06-28 08:54:59 +00:00
historic_bruno 789922b15a Updates LICENSE.txt files for recent changes
This was SVN commit r15459.
2014-06-28 06:21:27 +00:00
historic_bruno 59b2493990 Missed changes from 304a7c1201
This was SVN commit r15458.
2014-06-28 05:50:32 +00:00
historic_bruno 6bec648833 Removes bundled ENet source. NOTE: system libenet (1.3) is now required on *nix, see BuildInstructions for updates. This change requires running update-workspaces. Fixes #1568.
Updates update-workspaces.sh and build-osx-libs.sh for this change.
Updates precompiled win32 ENet to 1.3.12, built with VC++ 2010, and
moves it to libraries/win32, refs #864.

This was SVN commit r15457.
2014-06-28 05:48:51 +00:00
historic_bruno 304a7c1201 Updates precompiled win32 libpng to 1.6.12, built with VC++ 2010, refs #864.
Removes unused ffmpeg definition from extern_libs4.lua

This was SVN commit r15456.
2014-06-28 05:34:39 +00:00
JoshuaJB dd3fdf6800 Correct assignment dropdowns to always be adjustable by the game controller.
This was SVN commit r15454.
2014-06-28 05:02:29 +00:00
LordGood c2763dca24 This was SVN commit r15453. 2014-06-27 05:31:47 +00:00
mimo b1307c83be fix guard command broken in recent commits
This was SVN commit r15452.
2014-06-26 21:15:16 +00:00
mimo 58932825a6 Petra: some tunings and cleanings
This was SVN commit r15451.
2014-06-26 20:50:24 +00:00
Yves ae93c02ba8 Fixes a bug that caused script filenames to be defined as properties of the global object.
This was SVN commit r15450.
2014-06-26 17:08:46 +00:00
LordGood 217a399ee3 Carthaginian ballista
This was SVN commit r15449.
2014-06-26 12:10:36 +00:00
LordGood 05693744cc Hellenistic ranged siege animations commit
This was SVN commit r15448.
2014-06-26 06:37:08 +00:00
wraitii fd6b199606 Fix compiling on Mavericks. Users on older systems will need to change a few lines in either of those scripts, but it should not break their build. For now, I'm saying it Fixes #2304 .
This was SVN commit r15447.
2014-06-25 18:01:00 +00:00
fabio 3b35afeeee typo
This was SVN commit r15446.
2014-06-25 15:19:31 +00:00
Ykkrosh b1b96a89d6 Fix culling for shadows and reflections.
Previously we had a single culling frustum based on the main camera, and
any object outside the frustum would never get rendered, even if it
should actually contribute to shadows or reflections/refractions. This
caused ugly pop-in effects in the shadows and reflections while
scrolling.

Extend the renderer to support multiple cull groups, each with a
separate frustum and with separate lists of submitted objects, so that
shadows and reflections will render the correctly culled sets of
objects.

Update the shadow map generation to compute the (hopefully) correct
bounds and matrices for this new scheme.

Include terrain patches in the shadow bounds, so hills can cast shadows
correctly.

Remove the code that tried to render objects slightly outside the camera
frustum in order to reduce the pop-in effect, since that was a
workaround for the lack of a proper fix.

Remove the model/patch filtering code, which was used to cull objects
that were in the normal camera frustum but should be excluded from
reflections/refractions, since that's redundant now too.

Inline DistanceToPlane to save a few hundred usecs per frame inside
CCmpUnitRenderer::RenderSubmit.

Fixes #504, #579.

This was SVN commit r15445.
2014-06-25 01:11:10 +00:00
JoshuaJB bb4b911e99 Remove remaining warnings about AI naval map support. Also hide player assignment dropdowns on network clients.
This was SVN commit r15444.
2014-06-24 22:53:02 +00:00
mimo ec5215f843 Petra: avoid doing some unused stuff
This was SVN commit r15443.
2014-06-24 20:44:37 +00:00
Pureon 067a1d4829 Latin female sound files from Itms
This was SVN commit r15442.
2014-06-24 19:40:48 +00:00
wraitii 06c1f9f972 Fix canyon rms when you for some reason want to start as the only player.
This was SVN commit r15441.
2014-06-24 19:12:44 +00:00
mimo 3013b35c13 Petra fixes
This was SVN commit r15440.
2014-06-24 18:31:36 +00:00
sanderd17 be767e7983 Fix dog bark xml files
This was SVN commit r15439.
2014-06-24 11:14:13 +00:00
sanderd17 5509e8e51c This shouldn't have been comitted
This was SVN commit r15438.
2014-06-24 11:09:04 +00:00
sanderd17 006bf42809 Fix segmentation fault in the sound destructor. Happened when the sound file doesn't exist. Errors are shown by other code.
This was SVN commit r15437.
2014-06-24 11:07:39 +00:00
wraitii 7d8a4c3a88 Improve the hawk with a gliding animation and a better flapping animation.
This was SVN commit r15436.
2014-06-24 11:06:04 +00:00
Pureon 4ad2677920 Adding latin voice files by Itms
This was SVN commit r15435.
2014-06-23 23:41:23 +00:00
Pureon ed1fb3058f Small audio folder restructure and further deletes
This was SVN commit r15434.
2014-06-23 23:22:53 +00:00
Pureon a6e6fd6591 Removing redundant placeholder audio
This was SVN commit r15433.
2014-06-23 22:59:43 +00:00
Yves 3746d7c3d9 Adds a playable trigger demo mission for multiplayer and TreasureCollected events.
Search treasures on small islands and on water. Collect more treasures
than your opponent to win.
I've used the Cycladic Archipelago scenario map with some minor
adjustments, mainly treasure placement and civ preselection for even
chances (both need townphase to build trading boats that can collect
floating treasures).
There's still some room for improvement to make it more fun and add
additional triggers, but I'll leave that for modders. :)

This was SVN commit r15432.
2014-06-23 20:14:43 +00:00
Yves 7e9d6f8ebe Adds translation message extraction for map specific trigger scripts.
This was SVN commit r15431.
2014-06-23 19:59:37 +00:00
sanderd17 692cc8240d Remove empty comment + turn delay times into 0.
This was SVN commit r15430.
2014-06-23 18:25:19 +00:00
sanderd17 17c473f2f3 Add a trigger to the gallic fields map + fix a typo.
This was SVN commit r15429.
2014-06-23 18:12:51 +00:00
mimo fcc4d7433a Petra: fix a bug and some typos
This was SVN commit r15428.
2014-06-23 17:54:32 +00:00
sanderd17 8915037631 Turn victory conditions into trigger scripts. Gui needs to be updated to allow combining of different victory conditions + to allow different lists per map. So there are no specific missions yet.
This was SVN commit r15427.
2014-06-23 17:37:27 +00:00
sanderd17 b811066b85 Add ownership changed event to Triggers.
This was SVN commit r15426.
2014-06-23 16:32:44 +00:00
sanderd17 e33e70e626 Change trigger initialisation as it's not compatible with multiple trigger files (functions would overwrite each other)
This was SVN commit r15425.
2014-06-23 15:55:07 +00:00
sanderd17 49c7efad4f Add demo triggers map. Showing all triggers with a minimum amount of code.
This was SVN commit r15423.
2014-06-23 14:19:42 +00:00
sanderd17 f94491a1d1 Forgot to remove some debug info
This was SVN commit r15422.
2014-06-23 13:52:52 +00:00
sanderd17 9f47ed536d Add engine support to triggers + a component to provide an easy interface and to be extended by triggers. Thanks to SpahBod for the biggest part of the code, and Yves for the review.
This was SVN commit r15421.
2014-06-23 13:42:59 +00:00
historic_bruno 213732d5af Updates some precompiled win32 libraries with VC++ 2010 (note: requires update-workspaces), refs #864:
Updates libiconv to v1.14.
Updates libxml2 to v2.9.1.
Updates zlib to v1.2.8.
Rebuilds FCollada.
Updates libxml2 to use same libiconv as tinygettext.
Cleans up unneeded libiconv files.

This was SVN commit r15416.
2014-06-23 01:07:16 +00:00
historic_bruno 600e8bd226 Fixes MSVC warning about uninitialized playerId in Atlas entity pasting code (using 0 as a sensible default value), refs #96
This was SVN commit r15415.
2014-06-22 22:19:02 +00:00
leper 09637ea0cf Fix selection issue with mace champ cav.
This was SVN commit r15414.
2014-06-22 21:45:00 +00:00
sanderd17 7b781f82d3 Fix capitalisation issue
This was SVN commit r15413.
2014-06-22 20:35:16 +00:00
sanderd17 f1e077d7e9 Fix hero overlay by requiring at least one unit to be trained
This was SVN commit r15412.
2014-06-22 20:00:34 +00:00
mimo 144cb0e44a Petra: fix trying to barter while market is still a foundation
This was SVN commit r15411.
2014-06-22 12:10:51 +00:00
wraitii 0e6f6576dc Fix compilation on Mavericks when running build-osx-bundle.sh.
Fixes to build-osx-libs.sh.
Support gloox properly on OSX.
Refs #2304 (not fixed since afaik xCode still runs into some issues)

This was SVN commit r15410.
2014-06-22 08:27:58 +00:00
sanderd17 4e996de883 Fix UnitAI bug found by FalseVision
This was SVN commit r15409.
2014-06-21 21:03:44 +00:00
mimo 67d81996f6 petra: various (small) changes in attack and economic management + cleanings
This was SVN commit r15408.
2014-06-21 16:21:11 +00:00
sanderd17 8f0772034e Don't process tokens starting with a '-' into translatable strings.
This was SVN commit r15407.
2014-06-21 08:09:24 +00:00
JoshuaJB c793da5368 Don't allow changeing disabled dropdowns using the scrollwheel. Also corrects some things in b9a4af4cc6.
This was SVN commit r15406.
2014-06-21 00:25:12 +00:00
JoshuaJB b9a4af4cc6 Fix #2595 by validating cheats are disabled in rated games. Also forces locked teams in ranked games and adds a scrollbar to the lobby subject.
This was SVN commit r15405.
2014-06-20 23:59:04 +00:00
JoshuaJB 160a83b73f Bits of cleanup
This was SVN commit r15403.
2014-06-20 03:45:19 +00:00
JoshuaJB 1659a28aa0 Correctly remove players who cancel while rejoining. Fixes #2240
This was SVN commit r15402.
2014-06-20 03:22:40 +00:00
Ykkrosh 754e76e4a1 Fix non-PCH build
This was SVN commit r15401.
2014-06-19 23:36:09 +00:00
Ykkrosh d936bde74a Dynamic message subscriptions.
Allow components to individually subscribe/unsubscribe to messages,
instead of statically subscribing the entire component type. Use this
for most Interpolate/RenderSubmit messages, to avoid the performance
cost of passing those messages to a large number of components that will
just ignore them anyway.

On Azure Coast this reduces total time per frame by about 30% on a
CPU-bound system.

This was SVN commit r15400.
2014-06-19 23:20:12 +00:00
JoshuaJB ec7a452d4e Convert multiplayer connection dialog to only use 'modern' styles and make it larger for languge-friendliness and consistancy.
This was SVN commit r15399.
2014-06-19 19:22:31 +00:00
Yves bee865416b Fixes small issues in 81d1f5f71f.
This was SVN commit r15398.
2014-06-19 18:50:41 +00:00
Gallaecio b8078deea8 Splitted the PO and POT files
Fixes #2494

This was SVN commit r15397.
2014-06-19 18:45:11 +00:00
Yves 8817bd394b Fix the check if the script is beeing exectued as root for sh (== comparision seems to work for bash but not for sh).
This was SVN commit r15396.
2014-06-19 15:19:08 +00:00
sanderd17 e529e551d9 fix typo
This was SVN commit r15395.
2014-06-19 14:48:48 +00:00
sanderd17 81d1f5f71f Clean up notifications. Merge the timed and untimed text notifications, allow passing a list of players to all notifications, make modification types moddable. Refs #52
This was SVN commit r15394.
2014-06-19 14:37:08 +00:00
sanderd17 6d5039791f Fix barter panel. Reported by Gameboy
This was SVN commit r15393.
2014-06-19 12:34:52 +00:00
mimo 12c7fe2bc7 fix a bug in petra attack preparation
This was SVN commit r15392.
2014-06-18 20:22:18 +00:00
sanderd17 c9f2ac4b12 Fix giving foundations a population bonus after a tech research. Reported by bouke
This was SVN commit r15391.
2014-06-18 15:58:04 +00:00
sanderd17 a76364f825 fix previous commit
This was SVN commit r15390.
2014-06-18 15:42:19 +00:00
sanderd17 7baaf382ed Organise the session helper functions a bit per topic
This was SVN commit r15389.
2014-06-18 15:27:28 +00:00
sanderd17 1307a9038a Split the selection panels in session.xml into multiple xml files
This was SVN commit r15388.
2014-06-18 13:03:59 +00:00
sanderd17 7266ea681b Allow mixing the buttons for the right pane, so make it possible to have a structure that can pack and produce units. Refs #1919
This was SVN commit r15387.
2014-06-18 11:23:22 +00:00
sanderd17 054706a114 Allow showing the productionqueue for multiple selected buildings at once
This was SVN commit r15386.
2014-06-18 10:46:41 +00:00
historic_bruno 7d92890900 Updates wxWidgets to 3.0.1 in OS X libs build script (hopefully fixes the crash when starting Atlas), refs #2356
This was SVN commit r15385.
2014-06-18 01:32:39 +00:00
sanderd17 f1379a77b5 Fix build for wxWidgets version 2.8.10 and older.
This was SVN commit r15383.
2014-06-17 19:32:33 +00:00
sanderd17 94b49a01a9 Adapt the relaxNG files to new gui changes
This was SVN commit r15382.
2014-06-17 18:45:40 +00:00
sanderd17 7d265cec80 Add copy-paste (CTRL+C/V) to Atlas. Patch by trompetin17. Fixes #96
This was SVN commit r15381.
2014-06-17 13:14:25 +00:00
sanderd17 02fd235bbd Make hotkeys and top panel fully moddable by splitting up the xml file. Allow entire directories to be loaded via an 'include' to provide extra moddability (modders don't have to edit any files, they can just add new ones).
This was SVN commit r15380.
2014-06-17 13:03:55 +00:00
historic_bruno 8c547a3fad Fixes a few other invalid XML files reported by the validator script, refs #245
This was SVN commit r15379.
2014-06-17 03:53:13 +00:00
historic_bruno aa04b6d782 Fixes invalid actors reported by XML validator script. Some were only technically invalid but others were broken. Refs #245
This was SVN commit r15378.
2014-06-17 03:49:37 +00:00
historic_bruno 2c9939ac74 Adds Relax NG Compact syntax grammars for most of the XML formats in the engine.
Adds converted Relax NG XML grammars for each (Note: don't edit these
directly, modify the compact syntax .rnc files instead, then use a
conversion tool http://relaxng.org/#conversion to generate the .rng
files).
Adds Perl script to validate the XML files using the new grammars

This was SVN commit r15377.
2014-06-17 03:31:40 +00:00
mimo d11e48cd85 Petra: bugfixes + improved attack/defense behaviour
This was SVN commit r15376.
2014-06-16 22:03:30 +00:00
sanderd17 013ab4bda7 Make the barter panel uniform with the others, clean up more gui code.
This was SVN commit r15375.
2014-06-16 18:34:27 +00:00
mimo ce3b11a3fe fix the fix of setHeldPosition in b17ffaeb7e
This was SVN commit r15374.
2014-06-15 17:27:03 +00:00
leper 190f3b0ce1 Exclude .git dirs when adding subfolders to the VFS.
This was SVN commit r15373.
2014-06-15 17:06:24 +00:00
leper f115759901 Handle mods specified on the command line when using the archive builder.
This was SVN commit r15372.
2014-06-15 16:43:08 +00:00
mimo bec1e1edfd fix b17ffaeb7e + fixes from FalseVision on setHeldPosition
This was SVN commit r15371.
2014-06-15 16:41:01 +00:00
mimo 74e5c8ae26 fix e2b493bb67
This was SVN commit r15370.
2014-06-15 16:13:12 +00:00
sanderd17 519c00c1a6 Don't allow users to build workspaces as root user
This was SVN commit r15369.
2014-06-15 15:23:03 +00:00
sanderd17 86aa30e0d9 Remove useless line in UnitAI, found by FalseVision
This was SVN commit r15368.
2014-06-15 14:38:25 +00:00
sanderd17 1e38fa7b58 UnitAI fix by FalseVision
This was SVN commit r15367.
2014-06-15 14:23:49 +00:00
mimo ef7e19c13e reset petra debug left in previous commit
This was SVN commit r15365.
2014-06-15 12:59:19 +00:00
mimo b17ffaeb7e Petra: make better use of garrisoning when attacked
This was SVN commit r15364.
2014-06-15 12:57:12 +00:00
sanderd17 9a743d65fe Fix to unitAI by FalseVision + fix a mistake of my own
This was SVN commit r15363.
2014-06-15 12:43:52 +00:00
sanderd17 89f33e7579 Fix group number rendering
This was SVN commit r15362.
2014-06-15 12:08:58 +00:00
sanderd17 e042fa8768 Make trigger points templates
This was SVN commit r15361.
2014-06-15 11:25:25 +00:00
sanderd17 beaf3139c0 Move position calculation of buttons to something cleaner.
This was SVN commit r15360.
2014-06-15 09:56:54 +00:00
sanderd17 5064f2728f Fix tech pairing visuals + hiding
This was SVN commit r15359.
2014-06-15 07:56:40 +00:00
leper e12d4b880a Add XMB file format version to the XMB files and check it when loading a file.
This was SVN commit r15358.
2014-06-14 23:41:33 +00:00
leper f460057700 Fix error for entities that require a technology to be trainable.
This was SVN commit r15357.
2014-06-14 22:28:06 +00:00
Pureon 2766ae7eb5 Marker objects for Atlas
This was SVN commit r15356.
2014-06-14 18:44:18 +00:00
sanderd17 e152223a53 fix fix
This was SVN commit r15355.
2014-06-14 18:21:48 +00:00
leper b93877571f Add missing quotation mark to quote.
This was SVN commit r15354.
2014-06-14 17:20:09 +00:00
sanderd17 b469983c58 Fix for 89f5e7b260. Refs #2622
This was SVN commit r15353.
2014-06-14 16:12:41 +00:00
sanderd17 86ca3b2142 Small cleanup: i, numbButtons and numberOfItems all contain the same value anyway
This was SVN commit r15352.
2014-06-14 15:57:42 +00:00
sanderd17 7f172037ac Clean up a big part of unit_commands.js, and bring most data to a separate JS object (instead of having deep nests of switches and if-else structures)
This was SVN commit r15351.
2014-06-14 15:35:13 +00:00
mimo 5903935e4a let the AIs know when a training has started
This was SVN commit r15350.
2014-06-14 14:34:37 +00:00
mimo 4e6a21e9da fix promotion of autogarrisoned units (forgot in previous tag)
This was SVN commit r15349.
2014-06-14 14:26:51 +00:00
mimo e2b493bb67 fix double-click on a garrisoned hero button should select its holder, even if from autogarrison
This was SVN commit r15348.
2014-06-14 14:21:30 +00:00
mimo 7cf927baec fix typo from 2b8758745f
This was SVN commit r15347.
2014-06-14 14:14:33 +00:00
leper 8d164ca5d1 Add civ requirement to tech that was missed in the previous commit. Refs #2580.
This was SVN commit r15346.
2014-06-13 21:02:32 +00:00
leper 121f14d521 Add civ requirements to civ specific techs. Patch by s0600204. Refs #2580.
This was SVN commit r15345.
2014-06-13 16:16:31 +00:00
leper 1142fc55ca Clean up Commands.js a bit.
This was SVN commit r15344.
2014-06-13 16:16:25 +00:00
leper 58e628338c Also check if a technology was already researched when checking requirements. Fixes #2580.
This was SVN commit r15343.
2014-06-13 16:16:10 +00:00
leper 9990d4c885 Actually call the function instead of testing if it exists. Patch by falsevision. Fixes #2626.
This was SVN commit r15342.
2014-06-13 12:54:57 +00:00
sanderd17 55247e926a Remove legacy trading pane
This was SVN commit r15341.
2014-06-13 12:06:57 +00:00
sanderd17 2b8758745f put the unit commands in a JS object
This was SVN commit r15340.
2014-06-13 11:35:16 +00:00
sanderd17 2b408e766b Fix problem with setting up trade routes
This was SVN commit r15339.
2014-06-13 08:01:06 +00:00
mimo 350d4a6b7e add rally points for the AIs
This was SVN commit r15338.
2014-06-12 18:41:13 +00:00
mimo e3f3051b2a Petra: code cleaning and minor improvments
This was SVN commit r15337.
2014-06-12 16:47:43 +00:00
sanderd17 2e00628562 Take the action definitions out of input.js, and in a separate JS object that can be edited by other scripts. This makes it possible to easier add new actions by editing this new script, or (in mods) even by editing the object in other scripts.
This was SVN commit r15336.
2014-06-12 13:47:37 +00:00
fabio 2e4441b528 Minor typos in text strings
This was SVN commit r15335.
2014-06-12 13:24:36 +00:00
Ykkrosh 85e2e72eb7 Fix TestHeaderless failure on GCC 4.9.
Once 'delete' is called on an object, that object no longer exists, and
accessing its member variables is undefined behaviour. GCC 4.9's
optimiser recognises this, and eliminates any writes to member variables
inside the destructor, since it knows they cannot legally be read later.

BoundaryTagManager relied on ~FreedBlock resetting its memory to 0, so
this optimisation broke it. Replace the placement new/delete with plain
non-magic Setup/Reset functions, to avoid the optimisation.

Fixes #2481.

This was SVN commit r15334.
2014-06-11 19:50:38 +00:00
JoshuaJB 548f50b071 Give gaia back it's vision.
This was SVN commit r15332.
2014-06-11 18:20:02 +00:00
sanderd17 89f5e7b260 Improve gui moddability by allowing to load an entire directory of scripts at once, and being able to split up big gui XML files. Fixes #2622
This was SVN commit r15330.
2014-06-11 17:14:35 +00:00
sanderd17 791eba9451 Fix Splash damage calculation. Patch by falsevision. Fixes #2623
This was SVN commit r15329.
2014-06-11 14:02:02 +00:00
sanderd17 b289303c25 Fix setting rallypoint via the minimap + fix out-of-world problem when the targeted entity for a rallypoint disappeared
This was SVN commit r15328.
2014-06-11 13:36:12 +00:00
sanderd17 49194819f6 Schwarzwald random map. Script by niektb, with random terrain generation from FeXoR.
This was SVN commit r15327.
2014-06-10 19:59:17 +00:00
sanderd17 6d0df59697 Fix theatrons
This was SVN commit r15326.
2014-06-10 14:27:43 +00:00
mimo 8551a799d0 Petra: prevent gatherers to stay blocked when UnitAI make them return resource in an inaccessible dropsite, see #2563
This was SVN commit r15325.
2014-06-10 13:45:23 +00:00
mimo 57a7bbcb90 fix javascript warning
This was SVN commit r15324.
2014-06-10 13:34:49 +00:00
mimo 3b519b132a fix undefined variable in petra
This was SVN commit r15323.
2014-06-10 13:27:49 +00:00
sanderd17 60212b0418 Fix Iberian monument.
This was SVN commit r15322.
2014-06-10 13:18:33 +00:00
mimo 7cb6768132 fix productionTime computation on AI common-api
This was SVN commit r15321.
2014-06-10 12:59:42 +00:00
sanderd17 9723f73262 Fix tests
This was SVN commit r15320.
2014-06-09 18:13:29 +00:00
sanderd17 1d7001c8cd Fix walls + remove debug warning
This was SVN commit r15319.
2014-06-09 17:51:23 +00:00
sanderd17 2fb0262142 Futher clean up heroes tooltips + move auras to the templates. Hope they have a bigger chance of staying consistent now.
This was SVN commit r15318.
2014-06-09 17:35:37 +00:00
sanderd17 3a2670f7fa Take aura descriptions out of tooltip, let auras be defined in the entity template rather than in JSON files, as they can't be reused anyway. Fix tooltips and auras for all heroes from athen to gaul.
This was SVN commit r15317.
2014-06-09 14:15:05 +00:00
mimo d6b8f1989e Petra: complete and improve 2c0daaf80b
This was SVN commit r15316.
2014-06-09 13:30:41 +00:00
sanderd17 1776aa4750 Continue the transition to the usage of visible classes. Fix Hero inheritance for that.
This was SVN commit r15315.
2014-06-09 09:32:36 +00:00
mimo 2c0daaf80b Petra: improve choice of ships to train and some style cleaning
This was SVN commit r15314.
2014-06-09 07:54:59 +00:00
mimo 5f42834710 some aegis fixes, patch by falsevision, close #2617
This was SVN commit r15313.
2014-06-09 07:48:29 +00:00
mimo 91a511560c remove code dupplication for dock angle computation
This was SVN commit r15312.
2014-06-08 16:00:00 +00:00
sanderd17 049caba9f9 Let the timer hold the latest turnLength instead of the Attack component. Reduces a lot of messages
This was SVN commit r15311.
2014-06-08 09:39:57 +00:00
historic_bruno cb9d0733ef Changes XMB format to store UTF-8 strings and removes pointless UTF-16 conversions, refs #204, #244.
Bumps XMB version to 2.

This was SVN commit r15309.
2014-06-08 03:23:37 +00:00
historic_bruno 40b351a99a Fixes error in silhouettes hotkey handler
This was SVN commit r15308.
2014-06-08 02:04:29 +00:00
Mythos_Ruler 72706f708b Some unfinished maps for others to finish if they wish.
Tweaked Siwa Oasis.

This was SVN commit r15307.
2014-06-07 14:39:01 +00:00
sanderd17 567917bf41 Give RMS access to the simulation templates. Fixes #1589. Patch by Itms.
This was SVN commit r15306.
2014-06-07 12:12:53 +00:00
Mythos_Ruler 27ca5fe19d Iberians now have the Celtic war barge.
This was SVN commit r15304.
2014-06-07 11:21:42 +00:00
mimo 67a4af0fe0 fix typo from a4f2c2ac90
This was SVN commit r15303.
2014-06-05 18:29:11 +00:00
mimo a96953efea remove dupplicated (and buggy) line introduced in 0fcc074a65
This was SVN commit r15302.
2014-06-05 17:51:06 +00:00
leper 53ea269af0 Add the ability to specify a log level when using dlopen and change it to normal for Atlas.
This way we do not have two error messages when starting Atlas, but the
dynamic Atlas lib is not available.
Patch by Gallaecio. Fixes #1540.

This was SVN commit r15301.
2014-06-05 17:07:04 +00:00
JoshuaJB fd8ffb506b Remove commented out code and add licence headers to COList.cpp/.h.
This was SVN commit r15300.
2014-06-05 14:33:44 +00:00
leper c699409246 Add translation context to stances.
This was SVN commit r15299.
2014-06-05 14:06:15 +00:00
sanderd17 55760f6413 cache the affected players in order to remove the template bonuses given by auras from the right players before adding them again.
This was SVN commit r15298.
2014-06-05 11:24:31 +00:00
sanderd17 2d1f9c33dc Bring healable classes to the uniform class matching
This was SVN commit r15297.
2014-06-05 10:34:41 +00:00
leper 638123950c Check if the position changed before updating it for rally points set on entities. Refs #1257.
This was SVN commit r15296.
2014-06-05 10:27:40 +00:00
leper fd615c4c54 Round some alpha values for overlays.
This was SVN commit r15295.
2014-06-05 10:22:16 +00:00
sanderd17 a4f2c2ac90 Allow for unification in identity class matching + add the opportunity to combine with AND and OR. Fixes #2612
This was SVN commit r15294.
2014-06-05 09:39:36 +00:00
sanderd17 cbfbc72d36 Other auras fix
This was SVN commit r15293.
2014-06-05 07:57:05 +00:00
leper 02c68064ed Fix syntax errors in two auras.
Some code style cleanup in aura related files.

This was SVN commit r15290.
2014-06-04 22:27:36 +00:00
leper d5b4dbcb71 Retain corpses in FoW. Patch by Itms. Fixes #1366.
This was SVN commit r15289.
2014-06-04 22:13:47 +00:00
leper b09a702c60 Recompute rally point lines when the rally point is set on a moving unit.
Does not account for setting rally points on units that can move into
the FoW/SoD.
Recalculates paths even if the rally points are not displayed.
Refactors UpdateMarkers() to remove some indentation levels.
Based on patch by Itms. Fixes #1257.

This was SVN commit r15288.
2014-06-04 22:07:58 +00:00
mimo 6b015e935e remove a forgotten debug warning in petra
This was SVN commit r15287.
2014-06-04 20:52:21 +00:00
mimo 0fcc074a65 Petra: try to improve cart shipyard placement
This was SVN commit r15286.
2014-06-04 20:13:15 +00:00
sanderd17 d883fc332d Correct mime-types and end-of-lines for the XML files in simulation/templates
This was SVN commit r15285.
2014-06-04 17:21:24 +00:00
leper b67aca01c8 Fix color fade to not go beyond 255 and be integer.
This was SVN commit r15284.
2014-06-04 16:23:56 +00:00
Mythos_Ruler 8d2835d9e0 Fixed resource balance for players 3 and 4. (they didn't have chickens or huntable fauna before).
This was SVN commit r15283.
2014-06-04 15:59:43 +00:00
JoshuaJB 685d5e0197 Switch default AI to Petra and remove an old Aegis warning.
This was SVN commit r15282.
2014-06-04 15:29:20 +00:00
sanderd17 9a7984c544 Fix class checking for technologies
This was SVN commit r15281.
2014-06-04 12:07:35 +00:00
sanderd17 b6870bf415 Move the extraction of the classes from templates to the global scripts, and let the AI use it to reduce redundancy.
This was SVN commit r15280.
2014-06-04 08:42:48 +00:00
JoshuaJB c07d394999 Fix GCC build of 2c14d94559. Refs #2589
This was SVN commit r15279.
2014-06-04 03:03:58 +00:00
leper 2c14d94559 Replace usage of CParser for CColor.
Switches format to use integers only.
Adds logging if the string is invalid.
Refs #2589.

This was SVN commit r15278.
2014-06-04 00:58:05 +00:00
Ykkrosh db39d742f0 Fix units falling off the edge of the world.
I guess changes to the map loading sequence caused the TerrainChanged
message to be sent before the map was switched from square to circular
instead of after. The pathfinder didn't notice the switch, so it
continued treating the map as if it were square, allowing units to walk
into the permanent map-corner SOD and vanish, and allowing territories
to expand into the SOD.

Tell the pathfinder explicitly when the map shape changes, so it can
discard its cached data correctly.

This was SVN commit r15277.
2014-06-03 22:35:40 +00:00
mimo 0900005e5b fix #2605
This was SVN commit r15276.
2014-06-03 19:41:11 +00:00
mimo 86a99b745e Petra: code rearrangement + small improvments
This was SVN commit r15275.
2014-06-02 20:21:28 +00:00
leper 4f6afbc0bf Fix non-PCH build.
This was SVN commit r15274.
2014-06-02 20:06:27 +00:00
sanderd17 b4f3b503f2 code style cleanup
This was SVN commit r15273.
2014-06-02 15:48:37 +00:00
sanderd17 a500826ae4 Since the VFS logs the missing files now, there's no reason to crash on it.
This was SVN commit r15272.
2014-06-02 15:41:41 +00:00
sanderd17 49ca719049 Reinitialize music when hotloading. Fixes crash when hotloading GUI files.
This was SVN commit r15271.
2014-06-02 15:13:16 +00:00
historic_bruno a63ed4e4c4 Fixes rare crash in sound manager, due to worker thread dereferencing global pointer before it had been assigned. Fixes #2333, refs #2387, #2317.
Fixes potential infinite loop if worker thread was running but not
enabled.
Fixes apparent bug in fading sound smoothness.
Cleans up worker class slightly.
Cleans up weird and inconsistent whitespace.

This was SVN commit r15269.
2014-06-02 02:09:58 +00:00
Ykkrosh c17bf75cbb Fix bad merge.
This was SVN commit r15268.
2014-06-01 19:06:58 +00:00
Ykkrosh fb0b4572ab Fix Valgrind complaint about delete vs delete[].
This was SVN commit r15267.
2014-06-01 18:46:14 +00:00
Ykkrosh e6b8339103 Minor optimisation for non-animated units.
This was SVN commit r15266.
2014-06-01 18:25:20 +00:00
Ykkrosh 1882f28504 New unit renderer.
Instead of each CCmpVisualActor rendering itself individually, collect
all the units in a single CCmpUnitRenderer. This avoids the overhead of
doing Interpolate/RenderSubmit calls every frame for every object in the
world. It also allows more efficient culling.

CCmpUnitRenderer knows the positions of each object at the start and end
of each turn, and computes the bounding sphere of the object along that
path. That allows quick culling without recomputing the precise
interpolated transform every frame. (In the future it could be improved
much more.)

Clarify and clean up the sending of PositionChanged messages, and add
new InterpolatedPositionChanged.

Remove the forceFloating parameter from GetInterpolatedTransform, since
it doesn't fit the new design. Replace it with a (non-synchronised) flag
in CCmpPosition.

Move construction progress from CCmpVisualActor to CCmpPosition, so that
it consistently affects all position/transform computation.

Refs #2337.

This was SVN commit r15265.
2014-06-01 18:24:50 +00:00
Ykkrosh d117d96d22 Simplify component deserialization.
Deserialize SYSTEM_ENTITY before any other entities. This makes it safe
for Deserialize() methods to access system components (mirroring how
Init() can already access system components).

Add a Deserialized message, sent after all entities have been
deserialized, to help with some other sequencing problems.

This was SVN commit r15264.
2014-06-01 18:14:09 +00:00
Ykkrosh b30a9a6384 Remove m_NeedInitialXZRotation - not needed after changes to map loading order.
This was SVN commit r15263.
2014-06-01 18:10:00 +00:00
Ykkrosh ceb3c3d366 MapReader: Load terrain before entities.
This allows component Init functions to make use of the terrain
immediately, instead of delaying some computations until the first
frame.

This was SVN commit r15262.
2014-06-01 18:08:11 +00:00
Ykkrosh fe3315376c Add BoundingSphere, SOverlaySphere.
BoundingSphere is similar to a bounding box, but more spherical.

SOverlaySphere is useful for visualising BoundingSphere (it's quite
inefficient and should only be used for debug functionality).

Normalise the camera frustum clipping planes, so that IsSphereVisible
gives the correct result.

This was SVN commit r15261.
2014-06-01 18:05:46 +00:00
Mythos_Ruler 3b0fee9073 This was SVN commit r15260. 2014-06-01 13:15:16 +00:00
mimo ac925ed1b6 fix 8efc3b0241
This was SVN commit r15259.
2014-06-01 12:49:34 +00:00
mimo 8efc3b0241 code rearrangement
This was SVN commit r15258.
2014-06-01 09:47:12 +00:00
sanderd17 6f11097c00 Allow the CLI to load skirmish maps. From now on, the directory must be included in the map path to load any maps (see the readme). Patch by Teiresias. Fixes #2572
This was SVN commit r15257.
2014-06-01 08:18:46 +00:00
Mythos_Ruler 38130e5b94 Brit woman can build rotary mill now.
Spartan commando can build the Theatron now.

Sibylline Books tech from Roman Wonder to Roman Temple.

This was SVN commit r15256.
2014-06-01 04:13:19 +00:00
sanderd17 608ab456d5 fix tests
This was SVN commit r15255.
2014-05-31 14:57:14 +00:00
sanderd17 59c9ae670f Stop VFS from causing a crash when the AI player isn't found. Patch by Itms. Fixes #2558
This was SVN commit r15254.
2014-05-31 14:55:09 +00:00
sanderd17 bb16a8ee98 Fix ungarrisoning via ungarrisoning pane
This was SVN commit r15253.
2014-05-31 14:03:00 +00:00
sanderd17 17d83a8b4c Add ungarrison button to ungarrison specific entities
This was SVN commit r15252.
2014-05-31 13:58:16 +00:00
sanderd17 e2aa24fc9a Clean up the turret interface a bit + fix serialisation for turrets
This was SVN commit r15250.
2014-05-31 11:35:07 +00:00
sanderd17 8ef7278306 Add a bonus to units on walls + disable placing units on palisades (which was enabled by accident due to inheritance)
This was SVN commit r15249.
2014-05-31 11:02:58 +00:00
mimo f5c5bbe26d some fixes for Petra AI
This was SVN commit r15247.
2014-05-30 15:24:19 +00:00
sanderd17 cfec28e553 Add the Engine code for turrets + use them to get units on walls. The scripted TurretHolder isn't included due to lack of usability for now. Refs #2577
This was SVN commit r15246.
2014-05-30 14:46:06 +00:00
Mythos_Ruler d05bd656e7 Added Sibylline Books tech for Romans.
Tweaked Roman Logistics tech. Tweaked Siwa Oasis skirmish.

Balance changes: -5 attack, -4 range, -10 health for cavalry
skirmishers, after discussion with alpha123.

This was SVN commit r15245.
2014-05-30 04:18:05 +00:00
mimo 84d799ed9f Petra: reduce the CPU time for building placement
This was SVN commit r15244.
2014-05-29 20:39:09 +00:00
mimo 7105dabca7 fix failing unit training in Aegis and Petra
This was SVN commit r15243.
2014-05-29 20:18:29 +00:00
sanderd17 e0218fff8d New final fix?
This was SVN commit r15242.
2014-05-27 14:54:51 +00:00
sanderd17 7c39259ee5 Now I should get it right
This was SVN commit r15241.
2014-05-27 14:00:21 +00:00
sanderd17 5762721b09 Strange how I'm able to make that many mistakes
This was SVN commit r15240.
2014-05-27 13:42:04 +00:00
sanderd17 82db905b8e Fix previous commit
This was SVN commit r15239.
2014-05-27 12:32:57 +00:00
sanderd17 3413dc84a1 make it possible for mods to add new unit commands
This was SVN commit r15238.
2014-05-27 11:17:29 +00:00
sanderd17 b9f3a95e17 Make UnitAI moddable by exposing the FSM spec and calculated FSM as part of the prototype
This was SVN commit r15237.
2014-05-27 07:24:07 +00:00
JoshuaJB e4d3189494 Lots of GUI fixes to issues pointed out by alpha123 on IRC.
This was SVN commit r15235.
2014-05-27 05:34:28 +00:00
mimo a75342e2c7 minor changes in petra: cleanings and timing optimization
This was SVN commit r15234.
2014-05-26 19:52:51 +00:00
sanderd17 a0913cbc75 Fix the interpolation changes from the previous commit, as they weren't smooth
This was SVN commit r15232.
2014-05-26 17:12:05 +00:00
Ykkrosh 85a1f880ab Fix compatibility with LLVM libc++ (used on OS X).
libc++ vector asserts that allocator::value_type is correct, so we have
to pass in the correct types.

This was SVN commit r15231.
2014-05-26 16:48:28 +00:00
sanderd17 5ae9f678b0 Clean up position height methods + add new. Now we have the ability to losslessly read and write positions to entities from the scripts.
This was SVN commit r15230.
2014-05-26 16:23:46 +00:00
Ykkrosh c3a0ac43bf Broadcast TerrainChanged message, so CCmpSelectable can actually see it.
This was SVN commit r15229.
2014-05-26 15:44:35 +00:00
Ykkrosh 4ca40116ed Fix building selection rings not being recomputed when the terrain or water under them is changed.
This was SVN commit r15228.
2014-05-26 13:45:49 +00:00
Ykkrosh 1871daab0d Fix pathfinding and territories not being recomputed when water height changes.
This was SVN commit r15227.
2014-05-26 13:45:10 +00:00
Ykkrosh 41f62cd3ff Add WaterChanged message, for things that need to be recomputed when the water height changes.
This was SVN commit r15226.
2014-05-26 13:44:24 +00:00
Ykkrosh 6407b593d6 Make displayFrustum controllable from scripts.
This was SVN commit r15225.
2014-05-26 13:42:32 +00:00
Ykkrosh 1936abad98 Remove length limits on script output in console.
This was SVN commit r15224.
2014-05-26 13:39:45 +00:00
Ykkrosh b78c38b935 Disable GCC warning triggered by wxWidgets.
This was SVN commit r15223.
2014-05-26 13:38:09 +00:00
Mythos_Ruler b7281c629c Rocks -> Arrows. Fixes #2565.
This was SVN commit r15222.
2014-05-26 04:48:33 +00:00
Mythos_Ruler bc8792ba96 Proper double-click behavior for these champion units. Fixes #2586.
This was SVN commit r15221.
2014-05-26 04:41:35 +00:00
historic_bruno 39cfb6748d Fixes flickering in main menu backgrounds on old Intel GPUs, by manually setting the z-values for each layer, fixes #2143
This was SVN commit r15220.
2014-05-26 04:38:47 +00:00
Mythos_Ruler 4dd90a1ef3 A new skirmish map.
This was SVN commit r15219.
2014-05-26 04:23:10 +00:00
Mythos_Ruler d7f1427c9b Tweaked Ptolemies sandbox scenario.
This was SVN commit r15218.
2014-05-26 01:28:56 +00:00
Mythos_Ruler 7bc0f611b3 Auras for Roman heroes Marcellus and Maximus.
This was SVN commit r15217.
2014-05-26 01:26:53 +00:00
Ykkrosh e79adae921 Attempt to work around LOS texture alignment bug.
For unknown reasons, sometimes glTexSubImage2D acts as if
GL_UNPACK_ALIGNMENT = 2 or 4, instead of 1. This causes the odd-sized
array uploaded for the LOS texture to be interpreted incorrectly, and
the LOS texture gets rendered very incorrectly.

Pad the array to a multiple of 4 in all cases, so that
GL_UNPACK_ALIGNMENT shouldn't affect it.

Hopefully fixes #2594.

This was SVN commit r15216.
2014-05-25 13:30:39 +00:00
mimo 3d306702df Petra: recover some cases where units are blocked because of pathfinder
This was SVN commit r15215.
2014-05-25 10:00:55 +00:00
JoshuaJB 072e4a614e Bump lobby version string.
This was SVN commit r15214.
2014-05-25 03:21:32 +00:00
JoshuaJB 5ce12c2263 Start phasing out the use of CParser in the GUI. Makes GUI parsing generally faster and stricter while adding better tests and debug information.
This was SVN commit r15213.
2014-05-25 03:16:52 +00:00
mimo 9c908a5f46 improve 6764b15ae2 by allowing a selected button to be selected again
This was SVN commit r15212.
2014-05-24 16:23:11 +00:00
mimo 6764b15ae2 ease switch to 100% trade of one resource using Shift-click
This was SVN commit r15211.
2014-05-24 15:37:19 +00:00
mimo 874ceb76a5 fix JS warning in Petra
This was SVN commit r15210.
2014-05-24 14:52:05 +00:00
sanderd17 8589003ac6 Let for loop return early. Small code style fix.
This was SVN commit r15209.
2014-05-24 10:18:15 +00:00
sanderd17 7f5264d3be Fix test for unhealable and healable classes. Make healers able to heal again
This was SVN commit r15208.
2014-05-24 09:50:10 +00:00
sanderd17 1e3ba2d438 Let formations use the UnitAI.AddOrder method, instead of directly deciding if ReplaceOrder or PushOrder should be used. This replaces the expectedRoute, and might lead to units behaving more as demanded. Refs #2568
This was SVN commit r15207.
2014-05-24 09:40:21 +00:00
JoshuaJB 2fbc55ec96 Update lobby server README.
This was SVN commit r15206.
2014-05-23 15:52:29 +00:00
JoshuaJB 9ee17342b1 Change developer overlay to only be openable through Alt+D shortcut. Fixes #2569
This was SVN commit r15205.
2014-05-23 00:18:16 +00:00
mimo 84b53933ff fix the AIs broken after b55b6a9cf1
This was SVN commit r15204.
2014-05-22 20:40:14 +00:00
leper 27104a4f33 Remove MaxDistance from Roman merchant ship. See 1207b146bb.
This was SVN commit r15203.
2014-05-22 16:39:00 +00:00
leper 52e807a207 Healers should not heal animals.
If we want war dogs to be healable we should change the class to
Domestic.

This was SVN commit r15202.
2014-05-22 16:38:57 +00:00
sanderd17 ea334e3716 Fix class counting
This was SVN commit r15201.
2014-05-22 16:20:36 +00:00
mimo 41de9f6e84 Petra fixes for maps without cc
This was SVN commit r15200.
2014-05-22 15:09:42 +00:00
sanderd17 3fc2574ecf Disable syntagma and testudo for champion cavalry
This was SVN commit r15199.
2014-05-22 14:50:53 +00:00
sanderd17 d20e244a37 fix tests
This was SVN commit r15198.
2014-05-22 14:38:49 +00:00
sanderd17 16c5bc96dc Add ptol and sele hero auras. Fixes #2444. Patch by Silk.
This was SVN commit r15197.
2014-05-22 14:37:11 +00:00
sanderd17 b55b6a9cf1 Add visible class names to all common buildings
This was SVN commit r15196.
2014-05-22 14:31:48 +00:00
sanderd17 ac1a9bf8d1 Clean up class parsing + add visible classes to be displayed in the GUI without adding them separatedly to our tooltips
This was SVN commit r15195.
2014-05-22 10:20:02 +00:00
historic_bruno eaa382a60c This was SVN commit r15194. 2014-05-22 01:38:46 +00:00
historic_bruno ee50168096 Removes errant text from GUI XML files, fixes some untranslated text per [wiki:Internationalization]. Refs #2507
This was SVN commit r15193.
2014-05-22 01:36:45 +00:00
scythetwirler eae7978868 Makes a word consistent with American English
This was SVN commit r15192.
2014-05-21 20:24:37 +00:00
sanderd17 3e985225fc Remove remaining MaxDistance. See 1207b146bb
This was SVN commit r15191.
2014-05-21 14:20:00 +00:00
sanderd17 1207b146bb Let trading range depend on obstruction. Fixes #2556
This was SVN commit r15190.
2014-05-21 14:03:57 +00:00
sanderd17 0a3eb92d62 Add slower game options. Might be usefull for slow players or development. Fixes #2499. Patch by DanCar.
This was SVN commit r15189.
2014-05-21 13:46:42 +00:00
sanderd17 01777a7ade fix tests
This was SVN commit r15188.
2014-05-21 12:28:39 +00:00
mimo 2303ad97cf petra: test on cc existence before trying to build
This was SVN commit r15187.
2014-05-21 09:37:41 +00:00
scythetwirler e0fb1223d6 Put the colon inside the translate tag.
This was SVN commit r15186.
2014-05-21 03:02:54 +00:00
mimo 153b1162fb changes for the AI to deal with maps with celts and change comment on naval maps
This was SVN commit r15185.
2014-05-20 21:30:48 +00:00
Mythos_Ruler 5dbf7ffa1e Portraits for these two Ptol boats.
This was SVN commit r15184.
2014-05-20 21:09:25 +00:00
mimo 4707f11b07 Petra AI: fix a bug in naval transport and adapt strategy to initial available resources
This was SVN commit r15183.
2014-05-20 19:48:54 +00:00
sanderd17 99a7bc67ac Fix 672f5a8b11 when sloppyness is 0
This was SVN commit r15182.
2014-05-20 18:45:36 +00:00
sanderd17 317c6057ed Remove members from a formation when they garrison. Fixes #2545
This was SVN commit r15181.
2014-05-20 17:47:47 +00:00
sanderd17 672f5a8b11 Add sloppyness and separate icon path to formation templates (makes it possible to have multiple formation templates - like different settings for different civs - with only one icon file)
This was SVN commit r15180.
2014-05-20 17:18:40 +00:00
leper 4c9d99ff68 Add plural forms for Gaelic. Fixes #2575.
This was SVN commit r15179.
2014-05-20 17:11:47 +00:00
fabio 41bc9fa65e Remove a newline in a tooltip.
There is no need for it.
Some translations also add the newline that, due to different words
length, appears in an unwanted place.

This was SVN commit r15178.
2014-05-20 10:41:09 +00:00
historic_bruno d8dbd499f8 Probably fixes uninitialized variable warning in GLSL model shader on some drivers
This was SVN commit r15177.
2014-05-20 03:41:46 +00:00
mimo d0e18900ae avoid new harmless spidermonkey warnings
This was SVN commit r15176.
2014-05-19 22:09:44 +00:00
leper 2081c62ab4 Support newer version of miniupnpc api. Refs #2552.
This was SVN commit r15174.
2014-05-19 21:01:06 +00:00
leper 940868398c Use Boost.Signals2 for Atlas. Patch by fabio. Fixes #2469.
This was SVN commit r15173.
2014-05-19 21:01:02 +00:00
mimo 15472f7797 fix Petra not gathering already dead animals and remove forgotten debug printout
This was SVN commit r15172.
2014-05-19 19:45:08 +00:00
JoshuaJB dfc7567561 Fix multiple observers on multiplayer games to work more reliably. Fixes #2529
This was SVN commit r15171.
2014-05-19 16:02:42 +00:00
fabio f4edb8dce5 Simplify and improve x86/amd64 CPU build flag
On amd64 removes the "-msse" flag, which is already
enabled by default.

On x86 changes the flags from "-march=i686 -msse" to
"-march=pentium3 -mtune=generic". This should also enable
other CPU features like MMX, while keeping the same
minimun supported CPU (Intel Pentium3 or AMD Athlon 4)
previously required by "-msse".

Fixes #2329.

This was SVN commit r15170.
2014-05-19 12:18:55 +00:00
sanderd17 4a3df1c8c5 Add extra check so units can't attack entities out of range. Fixes #2570
This was SVN commit r15168.
2014-05-19 09:05:18 +00:00
sanderd17 196eebe803 Fix partial internationalisation of the limit changers
This was SVN commit r15167.
2014-05-19 08:22:20 +00:00
sanderd17 5ae4619b81 Internationalize the AllowedToCreate method from EntityLimits. Fixes #2546.
This was SVN commit r15165.
2014-05-19 07:35:05 +00:00
historic_bruno 81da366268 Deletes some obsolete and broken old art files, refs #2524
This was SVN commit r15164.
2014-05-19 01:47:22 +00:00
historic_bruno ae29becb37 Removes pointless minimap state change during attack notification, it broke synchronized simulation state and caused some OOS errors. Fixes #2525. Refs #1719, #2526.
This was SVN commit r15163.
2014-05-19 01:35:14 +00:00
scythetwirler e6d762882a Add the tooltip option to default.cfg. Refs #2549.
This was SVN commit r15162.
2014-05-19 01:00:30 +00:00
scythetwirler 61b6eba4c1 Adds a config option for more detailed tooltips. Fixes #2549.
This was SVN commit r15161.
2014-05-19 00:01:47 +00:00
mimo 8e6b624ea5 fix civ in template
This was SVN commit r15160.
2014-05-18 17:00:54 +00:00
sanderd17 bd7ebe268e Make skirmish entities better moddable. Fixes #2523. Patch by Idanwin.
This was SVN commit r15159.
2014-05-18 15:53:57 +00:00
sanderd17 7ff5fbda2b Allow system components to be registered on the scripting side (so mods can make their own system components).
This was SVN commit r15157.
2014-05-18 13:44:08 +00:00
leper 2b05a8d233 Reenable JS warnings that were disabled in db0376fdc2.
This was SVN commit r15156.
2014-05-18 13:25:08 +00:00
leper 1432e082bf Update room and bot name.
This was SVN commit r15155.
2014-05-18 13:25:00 +00:00
mimo 814d3dc0e8 fix previous commit
This was SVN commit r15154.
2014-05-18 12:39:58 +00:00
mimo 3273720776 major update of Petra AI with first version of naval map support
This was SVN commit r15153.
2014-05-18 11:34:36 +00:00
mimo 3596f1c341 modify AI common-api to allow fishing and minor fixes
This was SVN commit r15152.
2014-05-18 10:50:44 +00:00
sanderd17 b7f6c00c2b Mark all components as global variables and allow to re-register existing components to update their schema and/or message receiving methods.
This allows for components to be extended in other files, so mods don't
have to overwrite entire components.
Fixes #2517. Thanks to Rada for helping on this
(also fix some tests broken in the previous commit)

This was SVN commit r15150.
2014-05-18 08:20:02 +00:00
sanderd17 86196212e2 Improve navigation for ship formations by setting the formation controller to the right passability class
This was SVN commit r15149.
2014-05-18 07:59:43 +00:00
2393 changed files with 44882 additions and 35051 deletions
+3
View File
@@ -56,6 +56,9 @@ in particular, let us know and we can try to clarify it.
ISC (pkcs5_pbkdf2.cpp)
MIT (pkcs5_pbkdf2.h)
/source/third-party/jsonspirit
MIT
/source/third_party/mikktspace
zlib
+24 -10
View File
@@ -20,8 +20,12 @@
; Enable/disable windowed mode by default. (Use Alt+Enter to toggle in the game.)
windowed = false
; Show detailed tooltips (Unit stats)
showdetailedtooltips = false
; Enable/disable the splashscreen
splashscreendisable = false
; Splashscreen version (date of last modification). By default, 0 to force splashscreen to appear at first launch.
splashscreenversion = 0
@@ -43,18 +47,20 @@ yres = 0
; Force a non-standard bit depth (if 0 then use the current desktop bit depth)
bpp = 0
; Preferred display (for multidisplay setups, only works with SDL 2.0)
display = 0
; System settings:
; if false, actors won't be rendered but anything entity will be.
renderactors = true
waternormals = true
waterugly=false; Force usage of the fixed pipeline water. This is faster, but really, really ugly.
waterfancyeffects = false
waterrealdepth = true
waterfoam = false
watercoastalwaves = false
waterrefraction = true
waterreflection = true
watershadows = false
shadowsonwater = false
shadows = true
shadowpcf = true
@@ -275,6 +281,7 @@ hotkey.session.kill = Delete ; Destroy selected units
hotkey.session.stop = "H" ; Stop the current action
hotkey.session.attack = "Ctrl+Alt" ; Modifier to force attack instead of another action
hotkey.session.attackmove = Ctrl ; Modifier to attackmove when clicking on a point
hotkey.session.attackmoveUnit = "Ctrl+Q" ; Modifier to attackmove targeting only units when clicking on a point (should contain the attackmove keys)
hotkey.session.garrison = Ctrl ; Modifier to garrison when clicking on building
hotkey.session.autorallypoint = Ctrl ; Modifier to set the rally point on the building itself
hotkey.session.guard = "G" ; Modifier to escort/guard when clicking on unit/building
@@ -282,6 +289,7 @@ hotkey.session.queue = Shift ; Modifier to queue unit orders inst
hotkey.session.batchtrain = Shift ; Modifier to train units in batches
hotkey.session.massbarter = Shift ; Modifier to barter bunch of resources
hotkey.session.masstribute = Shift ; Modifier to tribute bunch of resources
hotkey.session.fulltradeswap = Shift ; Modifier to put the desired trade resource to 100%
hotkey.session.unloadtype = Shift ; Modifier to unload all units of type
hotkey.session.deselectgroup = Ctrl ; Modifier to deselect units when clicking group icon, instead of selecting
hotkey.session.rotate.cw = RightBracket ; Rotate building placement preview clockwise
@@ -301,6 +309,7 @@ hotkey.session.queueunit.8 = Comma ; add eighth unit type to queue
; > OVERLAY KEYS
hotkey.fps.toggle = "Alt+F" ; Toggle frame counter
hotkey.realtime.toggle = "Alt+T" ; Toggle current display of computer time
hotkey.session.devcommands.toggle = "Alt+D" ; Toggle developer commands panel
hotkey.session.gui.toggle = "Alt+G" ; Toggle visibility of session GUI
hotkey.menu.toggle = "F10" ; Toggle in-game menu
@@ -322,11 +331,10 @@ hotkey.text.move.right = "Ctrl+RightArrow" ; Move cursor to start of word to
; > PROFILER
hotkey.profile.toggle = "F11" ; Enable/disable real-time profiler
hotkey.profile.save = "Shift+F11" ; Save current profiler data to logs/profile.txt
hotkey.profile2.enable = "F11" ; Enable HTTP/GPU modes for new profiler
hotkey.profile2.toggle = "Ctrl+F11" ; Enable/disable HTTP/GPU modes for new profiler
profiler2.http.autoenable = false ; Enable HTTP server output at startup (default off for security/performance)
profiler2.autoenable = false ; Enable HTTP server output at startup (default off for security/performance)
profiler2.script.enable = false ; Enable Javascript profiling. Needs to be set before startup and can't be changed later. (default off for performance)
profiler2.gpu.autoenable = false ; Enable GPU timing at startup (default off for performance/compatibility)
profiler2.gpu.arb.enable = true ; Allow GL_ARB_timer_query timing mode when available
profiler2.gpu.ext.enable = true ; Allow GL_EXT_timer_query timing mode when available
profiler2.gpu.intel.enable = true ; Allow GL_INTEL_performance_queries timing mode when available
@@ -334,7 +342,6 @@ profiler2.gpu.intel.enable = true ; Allow GL_INTEL_performance_queries
; Developer options
jsdebugger.enable = false ; Enable Javascript debugging. The Debugger is currently broken and can't be enabled until the SpiderMonkey upgrade is done and the debugger is updated for the new API.
tinygettext.debug = false ; Enable Tinygettext debugging information. If true, Tinygettext prints error messages each time that a translation for an English string is not found.
developeroverlay.enable = false ; Enable in-game Developer Overlay.
; > QUICKSAVE
hotkey.quicksave = "Shift+F5"
@@ -361,7 +368,14 @@ gui.cursorblinkrate = 0.5 ; Cursor blink rate in seconds (0.0 to disabl
; Multiplayer lobby preferences
lobby.server = "lobby.wildfiregames.com" ; Address of lobby server
lobby.xpartamupp = "wfgbot16" ; Name of the server-side xmpp client that manage games
lobby.xpartamupp = "wfgbot17" ; Name of the server-side xmpp client that manage games
lobby.chattimestamp = false ; Show time chat message was posted
lobby.room = "arena16" ; Default MUC room to join
lobby.room = "arena17" ; Default MUC room to join
lobby.history = 0 ; Number of past messages to display on join
; Overlay Preferences
overlay.fps = "false" ; Show frames per second in top right corner
overlay.realtime = "false" ; Show current system time in top right corner
; MOD SETTINGS
mod.enabledmods = "mod public"
+3
View File
@@ -147,6 +147,9 @@ Right Mouse Button, MouseRight
Middle Mouse Button, MouseMiddle
Mouse Wheel Up, WheelUp
Mouse Wheel Down, WheelDown
MouseButtonX, MouseNX # where X is a number 1-255, for extra mouse buttons
## (note that some mice start numbering their buttons at higher numbers
## so the first extra button on your mouse might be #8 here)
## Special keys for international and non-QWERTY keyboards:
World0, W0
@@ -0,0 +1,81 @@
<?xml version="1.0" encoding="UTF-8"?>
<element name="Pathfinder" xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
<a:documentation/>
<!--
NOTE: To modify this Relax NG grammar, edit the Relax NG Compact (.rnc) file
and use a converter tool like trang to generate the Relax NG XML (.rng) file
-->
<a:documentation/>
<interleave>
<element name="MaxSameTurnMoves">
<data type="nonNegativeInteger"/>
</element>
<element name="PassabilityClasses">
<oneOrMore>
<element>
<anyName/>
<interleave>
<optional>
<element name="MinWaterDepth">
<data type="decimal"/>
</element>
</optional>
<optional>
<!-- TODO: fixed type -->
<element name="MaxWaterDepth">
<data type="decimal"/>
</element>
</optional>
<optional>
<element name="MaxTerrainSlope">
<data type="decimal"/>
</element>
</optional>
<optional>
<element name="MinShoreDistance">
<data type="decimal"/>
</element>
</optional>
<optional>
<element name="MaxShoreDistance">
<data type="decimal"/>
</element>
</optional>
</interleave>
</element>
</oneOrMore>
</element>
<element name="MovementClasses">
<oneOrMore>
<element>
<anyName/>
<interleave>
<attribute name="Speed">
<data type="decimal"/>
</attribute>
<attribute name="Cost">
<data type="decimal"/>
</attribute>
<optional>
<element name="UnitClasses">
<zeroOrMore>
<element>
<anyName/>
<interleave>
<attribute name="Speed">
<data type="decimal"/>
</attribute>
<attribute name="Cost">
<data type="decimal"/>
</attribute>
</interleave>
</element>
</zeroOrMore>
</element>
</optional>
</interleave>
</element>
</oneOrMore>
</element>
</interleave>
</element>
@@ -1,6 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<Pathfinder>
<!-- Sets limit on the number of same turns moves we will process -->
<!-- Setting the value to 0 disable this functionality -->
<MaxSameTurnMoves>64</MaxSameTurnMoves>
<PassabilityClasses>
<!-- Unit pathfinding classes: -->
<unrestricted/>
<default>
<MaxWaterDepth>2</MaxWaterDepth>
<MaxTerrainSlope>1.0</MaxTerrainSlope>
@@ -8,8 +15,37 @@
<ship>
<MinWaterDepth>1</MinWaterDepth>
</ship>
<!-- Building construction classes:
* Land is used for most buildings, which must be away
from water and not on cliffs or mountains.
* Shore is used for docks, which must be near water and
land, yet shallow enough for builders to approach.
-->
<building-land>
<MaxWaterDepth>0</MaxWaterDepth>
<MinShoreDistance>1.0</MinShoreDistance>
<MaxTerrainSlope>1.0</MaxTerrainSlope>
</building-land>
<building-shore>
<MaxShoreDistance>2.0</MaxShoreDistance>
<MaxTerrainSlope>1.25</MaxTerrainSlope>
</building-shore>
</PassabilityClasses>
<!--
Warning: Movement costs are a subtle tradeoff between
pathfinding accuracy and computation cost. Be extremely
careful if you change them.
(Speeds are safer to change, but ought to be kept roughly
in sync with costs.)
-->
<MovementClasses>
<default Speed="1.0" Cost="1.08"/>
<city Speed="1.0" Cost="1.0">
<UnitClasses>
<infantry Speed="1.4" Cost="0.6"/>
</UnitClasses>
</city>
</MovementClasses>
</Pathfinder>
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<element name="TerritoryManager" xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
<a:documentation/>
<!--
NOTE: To modify this Relax NG grammar, edit the Relax NG Compact (.rnc) file
and use a converter tool like trang to generate the Relax NG XML (.rng) file
-->
<a:documentation/>
<interleave>
<element name="ImpassableCost">
<data type="integer">
<param name="minInclusive">0</param>
<param name="maxInclusive">255</param>
</data>
</element>
<element name="BorderThickness">
<data type="decimal"/>
</element>
<element name="BorderSeparation">
<data type="decimal"/>
</element>
</interleave>
</element>
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<TerritoryManager>
<ImpassableCost>4</ImpassableCost>
<BorderThickness>0.5</BorderThickness>
<BorderSeparation>0.55</BorderSeparation>
<BorderThickness>0.75</BorderThickness>
<BorderSeparation>0.85</BorderSeparation>
</TerritoryManager>
+19
View File
@@ -0,0 +1,19 @@
The files in this directory are Copyright (C) 2014 Wildfire Games.
These files are licensed under the Creative Commons Attribution-Share Alike 3.0
(CC-by-sa) license, available at http://creativecommons.org/licenses/by-sa/3.0/
Briefly, this means:
* You may use, modify and distribute these files, for commercial and
non-commercial purposes.
* If you distribute one of these files, you must include attribution (e.g.
in the credits screen of a game or a video, or in a text file accompanying
the files). The attribution must include:
* A link to http://creativecommons.org/licenses/by-sa/3.0/
* The name "Wildfire Games" as the original author
* A link to http://www.wildfiregames.com/
* If you distribute one of these files, you must release it (and any
modifications you have made to it) under the CC-by-sa license.
@@ -0,0 +1,19 @@
namespace a = "http://relaxng.org/ns/compatibility/annotations/1.0"
##
# NOTE: To modify this Relax NG grammar, edit the Relax NG Compact (.rnc) file
# and use a converter tool like trang to generate the Relax NG XML (.rng) file
##
element Textures {
element File {
attribute pattern { text }? &
attribute format { "dxt1" | "dxt3" | "dxt5" | "rgba" | "alpha" }? &
attribute mipmap { "true" | "false" }? &
attribute normal { "true" | "false" }? &
attribute alpha { "none" | "player" | "transparency" }? &
attribute filter { "box" | "triangle" | "kaiser" }? &
attribute kaiserwidth { xsd:float }? &
attribute kaiseralpha { xsd:float }? &
attribute kaiserstretch { xsd:float }?
}*
}
@@ -0,0 +1,78 @@
<?xml version="1.0" encoding="UTF-8"?>
<element name="Textures" xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
<a:documentation/>
<!--
NOTE: To modify this Relax NG grammar, edit the Relax NG Compact (.rnc) file
and use a converter tool like trang to generate the Relax NG XML (.rng) file
-->
<a:documentation/>
<zeroOrMore>
<element name="File">
<interleave>
<optional>
<attribute name="pattern"/>
</optional>
<optional>
<attribute name="format">
<choice>
<value>dxt1</value>
<value>dxt3</value>
<value>dxt5</value>
<value>rgba</value>
<value>alpha</value>
</choice>
</attribute>
</optional>
<optional>
<attribute name="mipmap">
<choice>
<value>true</value>
<value>false</value>
</choice>
</attribute>
</optional>
<optional>
<attribute name="normal">
<choice>
<value>true</value>
<value>false</value>
</choice>
</attribute>
</optional>
<optional>
<attribute name="alpha">
<choice>
<value>none</value>
<value>player</value>
<value>transparency</value>
</choice>
</attribute>
</optional>
<optional>
<attribute name="filter">
<choice>
<value>box</value>
<value>triangle</value>
<value>kaiser</value>
</choice>
</attribute>
</optional>
<optional>
<attribute name="kaiserwidth">
<data type="float"/>
</attribute>
</optional>
<optional>
<attribute name="kaiseralpha">
<data type="float"/>
</attribute>
</optional>
<optional>
<attribute name="kaiserstretch">
<data type="float"/>
</attribute>
</optional>
</interleave>
</element>
</zeroOrMore>
</element>
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<Textures>
<File pattern="*" format="dxt5" mipmap="true" filter="box"/>
</Textures>
+19
View File
@@ -0,0 +1,19 @@
The files in this directory are Copyright (C) 2009 Wildfire Games.
These files are licensed under the Creative Commons Attribution-Share Alike 3.0
(CC-by-sa) license, available at http://creativecommons.org/licenses/by-sa/3.0/
Briefly, this means:
* You may use, modify and distribute these files, for commercial and
non-commercial purposes.
* If you distribute one of these files, you must include attribution (e.g.
in the credits screen of a game or a video, or in a text file accompanying
the files). The attribution must include:
* A link to http://creativecommons.org/licenses/by-sa/3.0/
* The name "Wildfire Games" as the original author
* A link to http://www.wildfiregames.com/
* If you distribute one of these files, you must release it (and any
modifications you have made to it) under the CC-by-sa license.

Some files were not shown because too many files have changed in this diff Show More