0c04b90a2d
Fixed the extraction of messages with leading spaces from plain text files
...
This was SVN commit r14987.
2014-04-25 01:55:43 +00:00
0c88edc2f2
Internationalized rank names
...
In order to do so, I had to extend the XML message extractor to support
using XML tags as context.
This is because one of the ranks is “Advanced”, which is a pretty common
string.
This was SVN commit r14986.
2014-04-25 01:47:42 +00:00
bc1ed335e2
Fix GCC warning on “source/gui/scripting/ScriptFunctions.cpp”
...
Reported by JoshuaJB at Github: https://github.com/leper/0ad/issues/27
Fix provided by l777 (who I believe to be leper but I don’t really know)
on IRC.
This was SVN commit r14985.
2014-04-25 00:38:30 +00:00
fd3d335265
Sacrifices a goat to the gods of insanity.
...
Fixes random crashes on Windows due to differences of STL types on the
binary level between different static libraries.
The differences are caused by the definition of _HAS_ITERATOR_DEBUGGING
and _SECURE_SCL in lib/precompiled.h.
All our engine static libs use precompiled headers but we didn't use
them for tinygettext because they aren't needed (except for these two
defines).
I've decided to add precompiled headers to tinygettext too instead of
just copying these defines. That should cause less headaches in the
future.
This was SVN commit r14983.
2014-04-24 20:05:48 +00:00
73470a3610
Remove all references to serif fonts in the GUI files (see cde72788a2
)
...
Rebuild the sans fonts to include the missing glyph character (fixes
#2483 )
Update the pot files
This was SVN commit r14980.
2014-04-24 13:33:15 +00:00
92f2a16a88
Suppresses MSVC warning C4005 'macro redefinition' from SpiderMonkey upgrade
...
This was SVN commit r14975.
2014-04-23 21:12:28 +00:00
9b9a96382c
Fix boolean type
...
This was SVN commit r14971.
2014-04-22 12:52:49 +00:00
21362de6ac
Add workaround for testing long strings with the separate po. ICU wouldn't accept a non-existing language.
...
This was SVN commit r14969.
2014-04-22 11:38:15 +00:00
9dd4e71f1d
Internationalized some messages
...
• You can now translate “The production queue is full”.
• Internationalized the “Pause” and “Resume” buttons. Only the initial
label was internationalized, it would switch to English as soon as you
pause the game for the first time.
• Internationalized the “Screenshot written to” message in the engine.
This was SVN commit r14968.
2014-04-22 06:35:51 +00:00
5a8bc1158a
Add some more GUI graphics settings while fixing some persistence issues. Refs #2310
...
This was SVN commit r14967.
2014-04-22 05:09:31 +00:00
510ad15e6c
Adds missing libs, fixes some svn properties and a build-problem on Windows.
...
In 1b3261b8f4
empty text files were committed instead of the libs.
The text files had svn:eol-style properties set and the mime-type was
text.
This removes the eol-style properties, changes the mime type and addes
the content of the files.
This was SVN commit r14959.
2014-04-20 23:47:52 +00:00
64d204228a
Message extraction and localization
...
It includes the translation template files (POT) as well as translation
files
(PO) developer through the Transifex platform by our awesome
translators.
It also includes tools to generate the translation template files,
generate a
special translation file with the longest strigns of all translations,
and a
tool to download translations from Transifex into the right game folders
automatically.
Fixes #67
This was SVN commit r14955.
2014-04-20 21:48:23 +00:00
e05c8263c5
Internationalization of the public mod (JavaScript and GUI XML side)
...
It includes a marvelous language selection menu developed by Yves.
It also includes the introduction of a sprintf implementation for
JavaScript, as well as
translation helper functions that use JavaScript-side translation
caching.
This patch includes code by Yves, sanderd17, leper and Gallaecio.
Ref #67
This was SVN commit r14954.
2014-04-20 20:51:48 +00:00
d6db5a466d
Internationalization of the C++ side
...
Provides the logic to detect the system language, load translations, and
use
loaded translations both in the C++ and the JavaScript side.
This patch includes code by Yves, sanderd17, leper, historic_bruno and
Gallaecio. It’s worth noting that Yves and historic_bruno were also the
main
contributors behind the changes in 1b3261b8f4
as well.
This was SVN commit r14953.
2014-04-20 20:03:57 +00:00
1b3261b8f4
Added third-party libraries for internationalization and localization: ICU and tinygettext
...
This was SVN commit r14951.
2014-04-20 19:17:32 +00:00
9e2d0b9506
Fix #2404 . Rating auto-configure TODO (eg 2v2 games do not automatically show as being unrated). See #2276 .
...
This was SVN commit r14934.
2014-04-16 06:03:49 +00:00
e1488fee56
Add an 'explore map' option to the game setup.
...
This was SVN commit r14931.
2014-04-14 19:52:49 +00:00
bb71823aee
Make the actor tech-modifiable. Fixes #2243
...
This was SVN commit r14928.
2014-04-14 15:00:49 +00:00
180aa5c60d
Makes the moderator prefix visible in the chatbox.
...
This was SVN commit r14922.
2014-04-12 23:40:36 +00:00
833c2bac7a
save/restore camera position and orientation in saved games, fixes #2354
...
This was SVN commit r14905.
2014-04-06 16:27:57 +00:00
a7b2f6ba47
Fix more then one observer by allowing a game to have multiple players with the -1 ID.
...
This was SVN commit r14885.
2014-03-29 15:09:42 +00:00
e9e05f4efc
Second (main) commit for the SpiderMonkey upgrade.
...
This commit contains all the required changes to our source files and
build scripts (hopefully).
A next commit will remove the old stuff of SpiderMonkey 1.8.5.
Spcial thanks to:
- H4writer who helped a lot mainly with the performance issues we
had/have, but also with other problems or questions.
- Leper for the review.
- Historic_bruno for implementing the build scripts on Mac OS X and
testing on the Mac.
- The people from the #jsapi channel and from
mozilla.dev.tech.js-engine who answered a lot of questions and helped
solving problems.
- All the other people who helped
Refs #1886
Fixes #2442
Fixes #2416
This was SVN commit r14877.
2014-03-28 20:26:32 +00:00
0d9a7dab6b
Works around infinite recursion problem.
...
This problems occurs with the new SpiderMonkey in debug mode, but it's
not a SpiderMonkey issue.
Unfortunately I couldn't find a clean solution, so I just documented the
problem in an extensive comment block and applied a workaround.
A clean solution would probably require changing the approach for
counting allocations completely.
This was SVN commit r14874.
2014-03-28 11:33:37 +00:00
5c4282a21c
Fixes a small memory leak in the profiler shutdown code.
...
This was SVN commit r14854.
2014-03-17 21:16:38 +00:00
cde72788a2
* Add support for fallback fonts in the font builder.
...
* Replace DejaVu with Biolinium for the existign sans-styles.
* Add additional sans-styles using Biolinum.
* Update the GUI style definitions to use the sans-styles instead of
serif styles.
(Wait with updating custom defined fonts in strings, as it will cause a
mess with the internationalisation that's about to be included)
* Add fonts from the quite complete FreeFont family as fallback fonts.
* Render all glyphs supported by the different fonts to support as many
scripts as possible.
* Fixes #2457 .
(Now hope I included all needed files)
This was SVN commit r14853.
2014-03-17 10:13:49 +00:00
883f307b40
Implement a basic observer mode. Any player which joins a multiplayer game but is not assigned a player slot automatically becomes an observer. Refs #69
...
This was SVN commit r14849.
2014-03-16 23:29:27 +00:00
ffe0faeca4
Move the skybox up per Mythos' ruler recommendation. This should probably be a map setting.
...
This was SVN commit r14844.
2014-03-15 21:07:02 +00:00
6ab578a6eb
Fix out of date comments in Tex and ITexCodec, Fixes #2458 .
...
This was SVN commit r14838.
2014-03-13 19:00:22 +00:00
ef888367aa
Cleanup tex_codec, fixes #2456 , patch by IronNerd.
...
This was SVN commit r14836.
2014-03-13 04:16:20 +00:00
a5639631ee
Texture system refactoring and cleanup, fixes #2455 , patch by IronNerd.
...
This was SVN commit r14835.
2014-03-13 02:37:05 +00:00
0e7c92e1e6
Fixes behaviour change in Atlas' JSON serialization after the switch to JSON Spirit ( #2434 ).
...
This caused problems setting the starting camera.
Refs #2434
This was SVN commit r14827.
2014-03-09 17:55:54 +00:00
fb65288463
Fix hover effect not regenerating after mousedown events, minor GUI code cleanup, and fix #2414
...
This was SVN commit r14819.
2014-03-07 22:43:57 +00:00
29f94a759c
Fix an issue with lobby registration and a minor wording tweak.
...
This was SVN commit r14813.
2014-03-07 01:52:06 +00:00
8f30e722ab
Some inconsequential style adjustments.
...
This was SVN commit r14809.
2014-03-06 02:24:06 +00:00
f3714a7075
Fix invalid count for entityMaps
...
Improve error reporting on failed deserializations
Fixes #2328
This was SVN commit r14806.
2014-03-05 14:58:17 +00:00
02024370d8
Fix a warning in Visual Studio 2010 related to some of my recent changes.
...
This was SVN commit r14805.
2014-03-05 01:06:13 +00:00
e290abc40f
Should fix the Atlas build issues with the autobuilder.
...
For some reason the autobuilder does not know uint32_t but my Windows
system with VC2010 and my Linux system both do.
Refs #2434
This was SVN commit r14797.
2014-03-01 14:41:32 +00:00
4e5eeba27b
Fix the skybox.
...
This was SVN commit r14792.
2014-02-28 18:23:24 +00:00
02860690eb
fix unused parameter warning.
...
This was SVN commit r14789.
2014-02-26 19:16:44 +00:00
3f78042f45
Fix tests and C++11 build.
...
This was SVN commit r14788.
2014-02-26 19:08:03 +00:00
e2f4379e9a
Fix an issue with corruption of water data when the actor editor opened in Atlas.
...
Potential marginal optimizations to the water data creation code.
This was SVN commit r14784.
2014-02-25 06:27:15 +00:00
17f8f09399
Removes the ScriptInterface and SpiderMonkey dependencies from Atlas.
...
Replaces the code for JSON parsing and writing with an implementation
using the JSON Spirit library.
Fixes #2434
Refs #1886
This was SVN commit r14783.
2014-02-24 20:22:02 +00:00
43377fdc5e
Fixes an assertion when DEBUG_SERIALIZER_ANNOTATE is set to 1 and you click on "Host Game" from the main menu.
...
The reason was that CSimulationMessage uses the CBufferBinarySerializer
which did not add debugging annotations and deserialized the created
data with the CStdDeserializer which expects these annotations.
I did not fix the tests which remain broken as before this patch when
annotation is enabled.
This was SVN commit r14775.
2014-02-22 14:30:29 +00:00
c44b48bd59
Fix Atlas lag due to Position component that listens to the territoriesChanged message
...
This was SVN commit r14768.
2014-02-21 13:42:46 +00:00
a725266337
Slightly better options menu.
...
This was SVN commit r14766.
2014-02-20 22:45:43 +00:00
e182b4ddd2
Fix a valgrind warning about uninitilized variables in the scrollbar code and some comment/style fixes.
...
This was SVN commit r14764.
2014-02-19 21:59:07 +00:00
2429f1e93c
Displays ratings on the gamesetup page and formats ratings less than 1000 correctly.
...
This was SVN commit r14762.
2014-02-19 00:40:35 +00:00
19965ce37a
Fix missing territory decay when moving out of territory without changing the actual territory. Add possibility to check movement over territory boders in the JS simulation part. Based on patch by niektb
...
This was SVN commit r14754.
2014-02-16 15:22:11 +00:00
f92a46330d
Anti-disconnect addition to the gamesetup screen. Also fixes typo in the lobby bot README.
...
This was SVN commit r14753.
2014-02-16 06:22:16 +00:00
be881dc420
Reformat the database to accept the additional summary counters as well as adding a couple summary counters. Also deletes unnecessary welcome message and deletes whitespace. Refs #686 .
...
This was SVN commit r14752.
2014-02-16 06:06:16 +00:00
9780d7177d
Adds some missing vars.
...
This was SVN commit r14742.
2014-02-09 16:04:30 +00:00
31e98e5c03
Reverts f25edfd8f1
. Structured clones don't support cyclic references in SpiderMonkey v1.8.5.
...
SpiderMonkey v24 supports it and I'll add this change to #1886 instead.
Refs #2416
Refs #2415
Refs #1886
This was SVN commit r14733.
2014-02-06 13:32:09 +00:00
fa85527baf
Send messages in queue before closing connection, patch by boeseRaupe. Fixes #2420
...
This was SVN commit r14732.
2014-02-05 02:44:25 +00:00
035078c317
Disables checks in os_cpu_LargePageSize Windows implementation, since they failed on Vista SP2 with old Xeon CPU, fixes #2346
...
This was SVN commit r14731.
2014-02-04 22:30:29 +00:00
72d306873f
Correctly handle the keypad enter in CInput.cpp and make the return key case catch SDLK_RETURN instead of '/r' for consistancy and readability.
...
This was SVN commit r14730.
2014-02-03 21:46:27 +00:00
4be80f9322
Improves error handling in sound manager. Fixes some crashes and errors that could occur when OpenAL failed to init properly, fixes #2183 , #2345
...
This was SVN commit r14725.
2014-02-02 05:58:27 +00:00
f25edfd8f1
Removes ValueCloner.
...
Fixes #2416
Refs #2415
Refs #1886
This was SVN commit r14724.
2014-02-01 20:37:33 +00:00
0157e640cc
Make my last commit C++98 compatible.
...
This was SVN commit r14709.
2014-01-31 01:26:08 +00:00
ff4ed09b6f
Backend for special formatting of moderaters in the lobby userlist.
...
This was SVN commit r14706.
2014-01-30 15:46:19 +00:00
bab3a08643
Fixes a crash introduced in fd187f466f
by ensuring that the CScriptValRooted values are destroyed before calling JS_DestroyContext.
...
I've tested the performance on Combat Demo (Huge) again with the code
from #2394 .
It's very close but probably a little bit lower (hard to tell because
it's so close).
Closes #2408
Refs #2394
This was SVN commit r14705.
2014-01-30 13:21:36 +00:00
7bcdb9f46d
Remove two un-needed string initilizations from my earlier changes.
...
This was SVN commit r14692.
2014-01-27 05:46:21 +00:00
78ff9a8480
Fix compilation failures with wxWidgets 3.0. Fixes #2375 .
...
This was SVN commit r14691.
2014-01-27 00:02:03 +00:00
0406c89908
Implements GetMonitorSize for OS X, patch by Echelon9, fixes #2390
...
This was SVN commit r14690.
2014-01-26 23:03:45 +00:00
c61badb04c
Fix typo.
...
This was SVN commit r14688.
2014-01-26 19:29:21 +00:00
2a1240008c
Make my previous changes < C++11 compatible.
...
This was SVN commit r14687.
2014-01-26 19:23:50 +00:00
5e70bd3628
Fix and cleanup my recent changes.
...
This was SVN commit r14686.
2014-01-26 19:01:21 +00:00
39fef5c299
Add the ability to display chat messages when joining the lobby and quickly mostly update the options window to the new UI style.
...
This was SVN commit r14679.
2014-01-26 05:39:55 +00:00
041c6ab1b3
More lobby cleanup.
...
This was SVN commit r14677.
2014-01-26 04:25:35 +00:00
937ee8f77c
Fixes clang "hidden overloaded virtual function" warning, patch by Echelon9, fixes #2388
...
This was SVN commit r14674.
2014-01-26 01:20:34 +00:00
41a7c78e62
Fix some stuff in XmppClient.cpp on leper's recommendation.
...
This was SVN commit r14670.
2014-01-25 20:49:48 +00:00
69991cd110
Deletes extra whitespace from last commit.
...
This was SVN commit r14668.
2014-01-25 19:00:22 +00:00
e183e87333
Adds a message that is triggered whenever the bot's name is mentioned when a user doesn't recognize the bot isn't human (which happens quite a lot)
...
This was SVN commit r14667.
2014-01-25 18:57:28 +00:00
12a691edc2
Make my previous changes support < C++11 and Windows.
...
This was SVN commit r14661.
2014-01-24 20:31:39 +00:00
b46a6de335
Allow using the XMPP room subject to display lobby information to user, make the lobby GUI code more readable, and cleanup the modern styles.
...
This was SVN commit r14656.
2014-01-24 18:20:15 +00:00
dd274113bc
Fix #2403
...
This was SVN commit r14655.
2014-01-24 18:15:42 +00:00
f94a1aeac0
Checks for game end after toggling diplomacy. Also adds a comment for clarification to the lobby bot. Refs #2402 .
...
This was SVN commit r14652.
2014-01-24 00:38:08 +00:00
53900c082b
Added some criteria for rated games. Fixes #2402 .
...
This was SVN commit r14651.
2014-01-24 00:22:50 +00:00
e5e634f768
Displays ratings in the userlist. Fixes #2371 .
...
This was SVN commit r14650.
2014-01-23 23:13:13 +00:00
fd187f466f
Add vector prototype to vector-like return values from C++ to JS. Fixes #2394 .
...
This was SVN commit r14645.
2014-01-23 11:32:08 +00:00
41d3366f6a
check version and mods before loading a file, fixes #2361 and #2385 .
...
This was SVN commit r14630.
2014-01-21 22:49:42 +00:00
29a8df5029
Change the licence of sha.h to match the licence of sha.cpp. Refs #2308
...
This was SVN commit r14602.
2014-01-18 13:12:29 +00:00
94822b791f
Remove automatically generated test .cpp files.
...
This was SVN commit r14596.
2014-01-17 20:17:56 +00:00
32258b2ba3
Move lobby encryption code to third_party/encryption and add tests. Fixes #2308
...
This was SVN commit r14595.
2014-01-17 20:14:41 +00:00
377c780ddd
Fixes the problem that functions in globalscripts aren't available from GUI scripts anymore since 4b1297b328
.
...
Refs #2241
This was SVN commit r14592.
2014-01-17 18:21:27 +00:00
c094e72ede
Fixes scoping for icons in GUI text, instead of using only the top page on the stack, which caused errors when dialog boxes popped up over text containing icons
...
This was SVN commit r14591.
2014-01-17 02:54:57 +00:00
c39b541714
Fixes some typoes in the bot README
...
This was SVN commit r14590.
2014-01-16 23:22:14 +00:00
c1e86161b5
AIs now properly receive aura and technology updates. Fixes #2377 , Refs #1520 . Consequently reimplement repairing for AIs.
...
Fix a few style issues and a bug with the gatherer count.
Still need to fix the entity.js file to handle properly some things as
this uses raw templates values.
Cache the AIinterface in AIProxy.js, please report if this works
properly.
This was SVN commit r14588.
2014-01-16 20:32:44 +00:00
8195e767ef
Fixes an occasional crash when hotloading GUI files.
...
Refs #2241
This was SVN commit r14573.
2014-01-11 20:53:01 +00:00
9f243a3372
Disabling the OFFSET_LINE doesn't change any functionality as far as seen, while it fixes #2368 .
...
This was SVN commit r14563.
2014-01-10 19:56:36 +00:00
cbc0650a79
Removes some unused files
...
This was SVN commit r14561.
2014-01-10 19:38:34 +00:00
bd22432fe8
Rename common-api-v3 to common-api.
...
Fix warnings with the new AI.
Fix an error with the per-player gatherer counts.
This was SVN commit r14559.
2014-01-10 17:46:48 +00:00
ec36222b20
add more flexibility to eject units when garrisonHolder is destroyed, fixes #2242
...
This was SVN commit r14550.
2014-01-08 18:27:58 +00:00
2d806f81f0
If at first you don't succeed…
...
Refs #2359
This was SVN commit r14549.
2014-01-08 18:18:52 +00:00
7e87211d91
Attempts to fix crash reported on OS X Mavericks by not calling SDL_SetGamma in that case (this patch was included in the A15 bundles), refs #2272
...
This was SVN commit r14540.
2014-01-08 01:29:04 +00:00
0482038af2
Another go at #2359
...
This was SVN commit r14539.
2014-01-08 00:06:26 +00:00
ad6ed949ee
Fixes unreferenced formal parameter warning in MSVC
...
This was SVN commit r14538.
2014-01-07 23:10:06 +00:00
83c5d40cfb
fix compiling problem caused by 8226d75715
...
This was SVN commit r14535.
2014-01-07 14:37:02 +00:00
8226d75715
Make PickEntitiesAtPoint faster yielding 1-3% overall performance improvement. Fixes #2358 . Also removes some trailing whitespace.
...
This was SVN commit r14532.
2014-01-07 04:05:10 +00:00
729a795a44
of course, 7a3b1fe47e
can be simplified
...
This was SVN commit r14531.
2014-01-06 23:23:18 +00:00
7a3b1fe47e
Improve speed of territory computation, fixes #2360
...
This was SVN commit r14530.
2014-01-06 22:49:57 +00:00
d0e57cb0ff
Change a few things to avoid warnings with gcc. Should fix #2359
...
This was SVN commit r14529.
2014-01-06 22:14:27 +00:00
9ccaa42a54
Fixes MSVC warning C4706: assignment within conditional expression
...
This was SVN commit r14519.
2014-01-06 02:16:09 +00:00
aa0d485d72
Fix improper disabling of waves.
...
This was SVN commit r14515.
2014-01-05 16:41:50 +00:00
15ec863aec
Substantial speed-up of the foam generation code.
...
Remove waves for now as they were unsatisfactory.
Removes "shininess" as a water parameter as it was basically useless.
Add a button in Atlas to recompute water parameters so you can now see
fog in Atlas.
Fixes #1743 , #1803 (invalid)
Refs #1875 , #2114 , #48 .
This was SVN commit r14514.
2014-01-05 16:15:20 +00:00
7193e29961
Adds precompiled.h include because Visual Studio checks for that even though the file only contains comments.
...
Thanks to boeseRaupe for reporting.
Refs #2348
This was SVN commit r14512.
2014-01-05 13:58:38 +00:00
b20955436b
I completely missed the header files when disabling the JS debugger.
...
Refs #2348
This was SVN commit r14511.
2014-01-05 10:26:27 +00:00
6ca6a5f779
The patch in 4b65f77438
seems to have fixed the crash, but the initData value doesn't match the JSContext's compartment, so it's theoretically wrong.
...
This should fix it correctly.
#Refs 2241
This was SVN commit r14508.
2014-01-04 21:49:36 +00:00
4b65f77438
Fixes an occasional crash introduced in #2241 (hopefully).
...
Refs #2241
This was SVN commit r14507.
2014-01-04 21:36:12 +00:00
7d516e7e7a
Disables the JS debugger.
...
It's completely broken since 4b1297b328
and will have to be updated for
the new SpiderMonkey API.
I only uncomment it at the moment because I plan to fix/reimplement it
soon after the upgrade.
Closes #2348
Refs #2241
Refs #1886
This was SVN commit r14506.
2014-01-04 20:47:56 +00:00
d4b2c1285c
add the ability to exclude props from the selection size + add aura visualisation rings again
...
This was SVN commit r14497.
2014-01-04 10:41:32 +00:00
4b1297b328
Removes g_ScriptingHost and implements global to compartment 1 to 1 relation.
...
Each GUI Page gets its own compartment and all ScriptInterfaces in the
same thread should now use the same JS Runtime.
This is required for the SpiderMonkey upgrade.
Check the ticket for details.
Closes #2241
Refs #1886
Refs #1966
This was SVN commit r14496.
2014-01-04 10:14:53 +00:00
fb8032043b
Use pointers instead of copying sprites in the GUI. Fixes #1984 . Patch by jP_wanN.
...
This was SVN commit r14493.
2014-01-03 20:19:43 +00:00
b1422137e5
Cleanup GUI Checkbox C++ code by removing broken, non-obvious internal text rendering.
...
This was SVN commit r14476.
2014-01-02 03:28:15 +00:00
67570be8fa
Make GUI button-based objects to behave more expectedly when doubleclicked, also some style tweaks.
...
This was SVN commit r14468.
2014-01-01 06:05:41 +00:00
1e522f9b2c
Fix bug with rating in lobby bot, remove superfluous GUI typedef, and change the lobby chat autocompletion to use tab.
...
This was SVN commit r14467.
2014-01-01 00:23:18 +00:00
9d9361ae44
Why you should test your code before committing, exhibit A.
...
This was SVN commit r14466.
2013-12-31 21:45:11 +00:00
a7cafe75aa
"Reveal all player" id back to -1, add some "ensure" to catch invalid player ids and be safer.
...
This was SVN commit r14465.
2013-12-31 21:30:48 +00:00
fe2a97b0c9
Change some useless std::map into std::vector for LOS. Player "0" now reveals the LOS for all.
...
This was SVN commit r14463.
2013-12-31 16:38:11 +00:00
c0472f0de5
Fix trivial comment typo caught by wraitii.
...
This was SVN commit r14460.
2013-12-31 11:06:00 +00:00
c7ff0bb486
Tweak some lobby login UI bits, rework scrollbar mousewheel handling, add ability to scroll through closed dropdowns with scrollwheel, general C++ GUI cleanup, and fix broken random map script 'Unknown Nomad'.
...
This was SVN commit r14458.
2013-12-31 04:54:16 +00:00
2008ebc9d6
Use ACLs in the ipstamp module to support multiple lobby bots.
...
This was SVN commit r14456.
2013-12-31 00:25:33 +00:00
e21464d960
Try to fix some errors in the bot by checking a player id's validity before using it as an index.
...
This was SVN commit r14454.
2013-12-30 20:48:15 +00:00
dddc9bab7f
Fix tests.
...
This was SVN commit r14452.
2013-12-30 18:55:37 +00:00
298115f4c5
Fix units chasing each other. Fixes #1537
...
This was SVN commit r14449.
2013-12-30 16:07:19 +00:00
08b44fe647
Fix water rendering (transparent objects now appear correctly when underwater/in reflections)
...
Add a new config option (renderactors) that, if set to false, will
prevent actors from rendering in-game (grass…)
This was SVN commit r14447.
2013-12-30 15:52:42 +00:00
3362c591f5
Moves AI players to one global using the module pattern.
...
This avoids wrapping overhead that would otherwise be required because
multiple globals per compartment aren't supported anymore in newer
versions of SpiderMonkey.
Check the ticket for a detailed explanation.
Closes #2322
Refs #2241
Refs #1886
This was SVN commit r14441.
2013-12-30 10:04:59 +00:00
5e23445339
Make ConfigDB properly thread-safe.
...
Replace CreateValue with SetValueString so we don't pass pointers to
internal
ConfigDB structures around. Refs #1810 .
Remove some splash screen related functions since we can achieve the
same
with the ConfigDB functions exposed to scripts.
This was SVN commit r14437.
2013-12-29 23:56:18 +00:00
92fba32c5e
Some more C++ GUI cleanup.
...
This was SVN commit r14436.
2013-12-29 20:46:02 +00:00
e729f46789
Make button-type GUI elements more responsive and cleanup in IGUIButtonBehavior.cpp
...
This was SVN commit r14435.
2013-12-29 19:31:48 +00:00
d756e8d70e
Add proper licences to lobby bot files. Also remove extranious config file.
...
This was SVN commit r14434.
2013-12-29 18:46:00 +00:00
3746690f82
Define GLX_MESA_query_renderer functions unconditionally. Fixes #2325 .
...
This was SVN commit r14432.
2013-12-29 17:13:55 +00:00
bf58f04511
add wonder victory condition. Refs #1649
...
This was SVN commit r14418.
2013-12-28 13:40:39 +00:00
f254478d1b
Revert accidentily committed changes.
...
This was SVN commit r14415.
2013-12-28 03:34:40 +00:00
177a7cd99d
Make uninitilized players not show in the lobby leaderboard.
...
This was SVN commit r14414.
2013-12-28 03:32:31 +00:00
7688e9c93e
Properly round rating calculation in the lobby bot to an integer.
...
This was SVN commit r14398.
2013-12-26 20:16:43 +00:00
4ac5aacc87
Strip some trailing spaces in the lobby bot.
...
This was SVN commit r14397.
2013-12-26 19:52:07 +00:00
ad0d81cb8a
Various lobby changes and some optimizations in the lobby bot by scythetwirler.
...
This was SVN commit r14396.
2013-12-26 19:45:20 +00:00
9dcc3ee89e
fix always picking the same processor core on some systems. Based on code hits by Philip
...
This was SVN commit r14391.
2013-12-26 10:05:44 +00:00
f7e68a4d4c
Bot optimizations by scythetwirler.
...
This was SVN commit r14387.
2013-12-25 15:13:58 +00:00
42bc5165ab
Add compile time flag to disable use of miniupnpc.
...
This was SVN commit r14384.
2013-12-18 16:08:56 +00:00
c6d454ff2d
Make ConfigDB threadsafe.
...
This was SVN commit r14373.
2013-12-17 19:58:39 +00:00
e83f24e3a6
Move UPnP port forwarding to a thread.
...
Fix some typos.
Do not return the result, as we would need to allocate it, but we never
use it.
This was SVN commit r14372.
2013-12-17 17:03:49 +00:00
4df4c0dec0
Try to actually do the threading my previous commit said it did.
...
This was SVN commit r14371.
2013-12-17 14:57:26 +00:00
0ba25e9968
Cache UPnP root URL to try to avoid searching each time. Also make searching asyncronous with the GUI to avoid hanging.
...
This was SVN commit r14370.
2013-12-17 14:21:49 +00:00
d2e671392b
Fix bug in ipstamp module.
...
Sync with server. Refs #2307 .
This was SVN commit r14363.
2013-12-15 18:33:01 +00:00
62a10ab938
Fixes Windows build.
...
Fixes UPnP error handling to be more correct and conventional, refs
#2305
This was SVN commit r14352.
2013-12-15 01:02:26 +00:00
f890856c6d
Seperate differently licenced portions of sha.cpp/h into pkcs5_pdkdf2.cpp/h and remove some extra std includes in sha.cpp. Refs #2308
...
This was SVN commit r14350.
2013-12-14 16:58:21 +00:00
bf97148ddc
Add proper licence header and remove tyedefs in sha.cpp/h. Refs #2308
...
This was SVN commit r14349.
2013-12-14 16:22:48 +00:00
5876ec38d1
Make sure we properly free some UPnP-related variables.
...
This was SVN commit r14348.
2013-12-14 03:21:21 +00:00
551eb3919d
Change UPnP lease duration to 0 (permanent) and update comments.
...
This was SVN commit r14347.
2013-12-14 03:03:22 +00:00
667537ee49
UPnP-based automatic port-forwarding using miniupnpc. Breaks windows build at the moment. Refs #2305
...
This was SVN commit r14332.
2013-12-13 02:23:02 +00:00
1efd47c1ad
Fix errors when loading a saved game with Aegis by making sure the AI re-inits properly. Still no real saved game support.
...
This was SVN commit r14329.
2013-12-11 17:10:14 +00:00
8db3ada87f
Improves debugging output to help troubleshoot some WSDL bugs, refs #2146 , #1733
...
This was SVN commit r14325.
2013-12-10 18:54:18 +00:00
f9bee5d3ec
Slight de-obfuscation of the AI code.
...
This was SVN commit r14317.
2013-12-09 14:20:11 +00:00
966f7c7145
Removes some duplicated code.
...
This was SVN commit r14311.
2013-12-08 19:23:09 +00:00
b1c081e36d
Set svn:eol-style=native, fix some inconsistent line endings
...
This was SVN commit r14299.
2013-12-06 00:42:50 +00:00
4062e2011f
fix tests
...
This was SVN commit r14288.
2013-12-05 08:53:40 +00:00
0ef6397545
Optimize the "Move()" function by removing unnecessary message broadcast. Fixes #2094
...
This was SVN commit r14287.
2013-12-04 17:38:46 +00:00
5f8b6be833
Some additions to the particle system:
...
This was SVN commit r14286.
2013-12-04 17:21:59 +00:00
189ef85538
Fix AI errors on skirmish maps.
...
This was SVN commit r14285.
2013-12-04 16:52:44 +00:00
60c986c135
* Add method to rangemanager to query around a position instead of an entity
...
* Use that method in the splash damage calculation
Fixes #2285
This was SVN commit r14283.
2013-12-04 15:30:01 +00:00
68880ca5d5
Make atlas player assignment apply to all of the currently selected units
...
This was SVN commit r14273.
2013-12-02 22:46:33 +00:00
351468dbe5
fix initialisation of developper overlay for saved games
...
This was SVN commit r14240.
2013-11-28 18:08:41 +00:00
acf1c420c1
Moves management of GL viewports to CRenderer, letting it store the current viewport; calling code can retrieve and restore it later (instead of using deprecated glPush/PopAttrib, previously removed for GLES compatibility by 7dec618898
)
...
This was SVN commit r14235.
2013-11-28 00:57:39 +00:00
7345d27c84
Summon planes back from the emptyness
...
This was SVN commit r14230.
2013-11-26 15:12:16 +00:00
433b32bdcd
Various XpartaMuPP cleanup.
...
This was SVN commit r14229.
2013-11-25 04:05:41 +00:00
c3ebb50711
Fix ratings and print rating changes in the lobby.
...
Fix game listings.
Fix non-hosts unregistering games.
Patch by scythetwirler.
This was SVN commit r14228.
2013-11-25 02:55:47 +00:00
5da63764e0
Fix compilation with wxWidgets 3.0.
...
This was SVN commit r14215.
2013-11-20 19:29:10 +00:00
5ce8de1f0a
Removes unused var from JS debugger, from patch by Markus. Fixes #1852
...
This was SVN commit r14211.
2013-11-17 23:41:19 +00:00
6fba293088
In #2241 I'm going to change the GUI to have one ScriptInterface for each GUI page because that will be required for the Spidermonkey upgrade ( #1886 ).
...
The Multiplayer lobby needs some changes to avoid compartment
mismatches. Instead of initializing it with a ScriptInterface and
storing script values at different locations, it takes a ScriptInterface
argument in the functions that really need to read or write some script
values and avoids storing values as script values with an associated
compartment where possible.
The scripting interface of the lobby is also adjusted to use
JSInterface_Lobby.h/cpp files as other components instead of adding all
functions to ScriptFunctions.cpp. This makes it a bit more clearly
arranged IMO.
Fixes #2267
Refs #2241
Refs #1886
This was SVN commit r14199.
2013-11-16 18:38:40 +00:00
47b26e56d3
Remove unused VideoRecorder from Atlas.
...
This was SVN commit r14181.
2013-11-14 23:05:07 +00:00
8ecfbd0899
Remove unused includes of tr1/unordered_map etc.
...
They cause build errors with libc++, and we always use
boost::unordered_map instead.
This was SVN commit r14177.
2013-11-14 20:47:59 +00:00
0170db4a53
Adding advanced graphical features into random maps. Fixes #2262 .
...
This was SVN commit r14170.
2013-11-14 14:33:55 +00:00
321e61617b
Improve MoveToTarget when the target is moving, fixes #2253
...
This was SVN commit r14168.
2013-11-14 07:25:56 +00:00
4915116ccc
Fix glooxwrapper build on gcc 4.2 and warning on clang.
...
This was SVN commit r14167.
2013-11-14 00:32:28 +00:00
4c395f4bf2
Remove Trigger and Cinematic sections from Atlas.
...
This was SVN commit r14166.
2013-11-14 00:10:04 +00:00
e58fa107cc
Fix skeleton caching.
...
This was SVN commit r14163.
2013-11-13 20:05:57 +00:00
7cb4c0dcfc
Partial fix of minimap rendering for GLES.
...
Replaces glBegin/End with glDrawArrays, GL_QUADS with GL_TRIANGLES, and
modifies shaders as needed.
This was SVN commit r14153.
2013-11-12 01:31:52 +00:00
7dec618898
Some attempts to fix GLES build in smooth LOS and post proc manager.
...
Replaces glBegin/End with glDrawArrays, GL_QUADS with GL_TRIANGLES, and
replaces glPush/PopAttrib by resetting the viewport manually.
Adjusts GLSL shaders for these changes.
This was SVN commit r14152.
2013-11-12 01:30:17 +00:00
f1613a3c90
Fixes fancy waves build on GLES (replaces GL_QUADS with GL_TRIANGLES)
...
This was SVN commit r14151.
2013-11-12 01:25:32 +00:00
81eabfc934
Fixes basic water rendering on GLES (replaces GL_QUADS with GL_TRIANGLES).
...
Sets SDL2 to use correct profile for GLES.
Cleans up some old SDL 1.3 version checks.
This was SVN commit r14150.
2013-11-12 01:24:04 +00:00
5771bee032
First pass at fixing GLES build - more to come
...
This was SVN commit r14149.
2013-11-12 01:17:16 +00:00
0682c23fe3
Replaces BGRA textures with RGBA textures supported by GLES
...
This was SVN commit r14148.
2013-11-12 01:11:08 +00:00
45a7f577d3
A bunch of OS X SDK-related fixes.
...
Adds runtime support for 10.5 APIs: display modes, bundle paths, system
paths, pasteboards. Previously this was compile-time support only, which
prevented building on later SDKs while targeting earlier APIs.
Adds hardcoded version for pre-10.6 builds, to avoid messing with
deprecated Gestalt or having to add a 10.5 non-dispatch singleton (Grand
Central Dispatch didn't exist in 10.5)
This was SVN commit r14140.
2013-11-11 00:11:25 +00:00
011cbb5725
Fixes OS X STL incompatibilities when building against later SDKs and targeting 10.5 (fixes stringstream build errors in these conditions)
...
This was SVN commit r14139.
2013-11-11 00:09:16 +00:00
a96ed190a5
Add GLX_MESA_query_renderer support to hwdetect
...
This was SVN commit r14130.
2013-11-10 16:24:03 +00:00
d178f32698
Fix Unicode in JS print() on Linux
...
This was SVN commit r14129.
2013-11-10 16:13:40 +00:00
c27c663697
Print a traceback after an exception in the bot.
...
This was SVN commit r14128.
2013-11-10 04:28:18 +00:00
d7ec8c47a6
Fix Unicode support in lobby.
...
Fix EncryptPassword being called with the wrong argument order, and
encrypting username instead of password. (This will break all existing
lobby accounts.)
Fix EncryptPassword not using all of salt_base.
This was SVN commit r14123.
2013-11-09 23:26:17 +00:00
35d48d2fe8
...and increase HDATA_USER_SIZE so OglTex actually fits
...
This was SVN commit r14122.
2013-11-09 18:49:35 +00:00
1ad9d5424a
Fix error at startup on 64-bit builds.
...
OglTex had a size_t added, which pushed it over HDATA_USER_SIZE.
Use u32 instead to minimise the difference between platforms.
This was SVN commit r14121.
2013-11-09 18:39:45 +00:00
9cc172b164
Fixes --without-lobby for MSVC and clang, refs #2249 .
...
Cleans up some whitespace.
Removes obsolete PCH files.
This was SVN commit r14117.
2013-11-09 02:57:10 +00:00
3c47b12cbe
Display texture memory usage in profiler's renderer stats
...
This was SVN commit r14116.
2013-11-09 01:03:23 +00:00
5dfc3746e3
Remove old and unused archive stats.
...
This was SVN commit r14114.
2013-11-08 17:27:21 +00:00
81cf02cc13
Fix building with --without-lobby. Fixes #2249 .
...
This was SVN commit r14113.
2013-11-08 15:28:44 +00:00
f53bd8974c
Add autobuilder support for glooxwrapper
...
This was SVN commit r14103.
2013-11-07 21:45:59 +00:00
93cffe9deb
Remove the old and no longer used archive builder that rebuilt the archive while the game is running.
...
This approach isn't used anymore. Now we start the archive building with
parameters to pyrogeneis.
Refs #2241 (the code used g_ScriptingHost which is going to be removed)
This was SVN commit r14102.
2013-11-07 21:06:18 +00:00
87e9c5694e
Change the LOGWARNING when a config setting doesn't exist to a LOGMESSAGE.
...
This was SVN commit r14101.
2013-11-07 21:02:22 +00:00
bffe917914
Multiplayer lobby based on the XmPP protocol. Special thanks to Philip, alpha123, scythetwirler, and anyone else who has helped build, debug or test the lobby.
...
This was SVN commit r14098.
2013-11-07 20:07:24 +00:00
d7121f4f55
glooxwrapper by Philip to support building gloox on Windows.
...
This was SVN commit r14097.
2013-11-07 19:38:09 +00:00