7339a346e3
Renderer simplification: Remove fixed-function shadowing. Remove now-unused diffuse-only model lighting mode.
...
This was SVN commit r9187.
2011-04-06 22:07:13 +00:00
8753f881ee
Renderer simplification: Remove old vertexshader path.
...
This was SVN commit r9186.
2011-04-06 22:02:05 +00:00
06903af31f
Fixes build warning in C/C++ preprocessor (moves initialization outside test expression)
...
This was SVN commit r9185.
2011-04-06 21:47:42 +00:00
a122f55bde
Avoid hardcoding the actor entity template details.
...
This was SVN commit r9183.
2011-04-06 21:01:00 +00:00
df4b74ccf6
Render animationless skeletal meshes in their bind pose at their current position, instead of rendering at the world's origin.
...
This was SVN commit r9182.
2011-04-06 13:49:05 +00:00
3fb9d9e5f6
Fix tests
...
This was SVN commit r9178.
2011-04-06 00:53:35 +00:00
e9cc697c2b
Animate particles in the default editor view
...
This was SVN commit r9177.
2011-04-06 00:22:07 +00:00
d03559f2c9
Add dust particles on under-construction buildings, varying based on number of active builders.
...
This was SVN commit r9175.
2011-04-06 00:11:40 +00:00
2fd4c62cbb
Remove some unused variable declarations
...
This was SVN commit r9174.
2011-04-06 00:04:35 +00:00
29dd635d3b
Fix decals and LOS texture in Actor Viewer, by slightly reducing use of globals.
...
Fix particles in Actor Viewer.
Expand terrain in Actor Viewer.
Change background to black so it blends with the LOS texture more
nicely.
This was SVN commit r9172.
2011-04-05 20:32:03 +00:00
329d044a9e
64-bit gcc warning fix
...
This was SVN commit r9171.
2011-04-05 19:49:04 +00:00
dcde67038f
ICC compile fixes (VC's overload resolution is apparently quite different)
...
This was SVN commit r9169.
2011-04-05 17:45:47 +00:00
1c2e410b7d
final smbios improvements.
...
add comments
add support for bit flags
use wrapper classes and SFINAE instead of flags to detect enums / sizes
/ handles
avoid potential truncation of byte sizes
avoid displaying numeric_limits::min values ("unknown")
This was SVN commit r9168.
2011-04-05 17:14:18 +00:00
d3ba9a24d3
Fix GCC build errors ("explicit template specialization cannot have a storage class",
...
"need 'typename' before 'static_assert_<...>::type' because
'static_assert_<...>' is a dependent scope").
Fixes #767 .
This was SVN commit r9167.
2011-04-05 17:07:06 +00:00
3dbb29d665
smbios improvements: add specializations for bool/Handle (no longer requires a flag); omit empty/meaningless fields
...
convert remaining enumerators to ENUM, lowercase them to avoid conflicts
with macros, wrap them in struct to allow identical enumerator names
This was SVN commit r9165.
2011-04-05 09:52:57 +00:00
f35da41a0c
smbios: minor fixes, add partial support for displaying enumerator names, move visitors to .cpp, use pragma pack regardless of compiler
...
This was SVN commit r9163.
2011-04-04 17:44:36 +00:00
68bc0a5651
smbios: add support for stringizing the structures
...
This was SVN commit r9162.
2011-04-04 16:50:02 +00:00
a2bad46f27
smbios fixes:
...
- memmove all bytes in the table, not just 8
- end pointer was off by 4
- add support for structures 8,10,22,26,27,28
This was SVN commit r9161.
2011-04-04 15:01:40 +00:00
6beb1ea89b
Exclude FCollada tests from Unix releases, since they rely on non-free data file Eagle.DAE
...
This was SVN commit r9160.
2011-04-04 14:20:16 +00:00
1abbf8b64b
Old changes to compress releases better
...
This was SVN commit r9159.
2011-04-04 14:17:39 +00:00
0ddf2b0f34
Fix build on VC2008
...
This was SVN commit r9157.
2011-04-03 21:41:17 +00:00
66807d40c1
windows build fix: use arb names/function pointers; +noncopyable/struct vs. class warning fix
...
This was SVN commit r9156.
2011-04-03 20:45:43 +00:00
3d21cf98f9
better aio error checking / avoid unnecessary repeated calls to aio_error (investigated on the occasion of the recent Linux aio trouble)
...
This was SVN commit r9155.
2011-04-03 20:07:55 +00:00
231387d2da
linux compile fix (explicit instantiation must be at namespace scope), adjust end pointer to match 8 bytes removed in workaround
...
This was SVN commit r9153.
2011-04-03 19:29:16 +00:00
823e63a93b
# Initial version of new particle system.
...
This was SVN commit r9151.
2011-04-03 19:15:15 +00:00
01a0825c94
disable aio on linux until the glibc aio implementation and/or kernel is fixed (see http://www.wildfiregames.com/forum/index.php?showtopic=14561&pid=217711&st=0&#entry217711 )
...
This was SVN commit r9150.
2011-04-03 19:07:35 +00:00
253efdad57
Delete non-working particle system code
...
This was SVN commit r9147.
2011-04-03 18:49:48 +00:00
09413d940c
Delete an obsolete particle system editor
...
This was SVN commit r9145.
2011-04-03 18:44:20 +00:00
2c72e1f364
(requires update-workspaces)
...
add initial SMBIOS implementation for retrieving system information
wacpi -> wfirmware (now also used to retrieve SMBIOS table)
This was SVN commit r9144.
2011-04-03 15:38:48 +00:00
1a072a3f37
Use a predictable RNG seed for random actor variations, so they are consistent between runs of the game.
...
This was SVN commit r9143.
2011-04-02 12:51:42 +00:00
97c934ad1c
Apply unit shading colour in shader renderpath.
...
Don't adjust the shading colour of units in FoW (the shading comes from
the LOS texture instead).
This was SVN commit r9142.
2011-04-02 12:04:19 +00:00
012c47057a
Optimise some matrix operations, based on patch from ortalo.
...
Fixes #750 .
This was SVN commit r9141.
2011-04-01 18:33:47 +00:00
ce85f4e825
Fix minimap ignoring GUI z-ordering.
...
This was SVN commit r9139.
2011-04-01 17:58:33 +00:00
5b7a23f75c
Make ResetCameraTarget more sensible if the camera was rotated.
...
This was SVN commit r9138.
2011-04-01 17:57:04 +00:00
6026330fce
updated version of Aken that includes support for MSR and static validation (-> .c instead of .cpp)
...
closes #754 (please re-open if not)
This was SVN commit r9137.
2011-04-01 15:06:52 +00:00
d5b3201bfe
noted while checking MSR prerequisites that the previous HasNehalem is inaccurate. PLATFORM_INFO is also supported by newer processors (e.g. Sandy Bridge), whereas UNCORE_* are tied to Nehalem and Westmere => split up HasNehalem into HasPlatformInfo and HasUncore. (the latter has been replaced by a "system agent" in newer designs)
...
refs #754
This was SVN commit r9136.
2011-03-31 21:30:42 +00:00
1014da1f88
Use pool allocator to avoid apparently expensive dynamic allocations when rendering terrain.
...
Add function to get pool usage, for debugging.
This was SVN commit r9132.
2011-03-30 21:42:35 +00:00
fb872e0bd5
fix: update all pool freelist initializations to reflect the new invariant (prevents null-pointer dereference crash)
...
This was SVN commit r9129.
2011-03-28 21:10:41 +00:00
c396997009
fixes from work: avoid potential 0-pointer dereference in freelist, also avoid branching in freelist functions via sentinel
...
wdll_main.h: avoid warning for DLLs using TLS
file_system_util.h: export functions
This was SVN commit r9128.
2011-03-28 12:28:29 +00:00
53f522d220
Fix warning
...
This was SVN commit r9124.
2011-03-26 20:38:42 +00:00
d295dacb9b
# Add new renderer mode based on GL_ARB_fragment_program.
...
Change lighting model for new maps to allow better overbrightness.
Cache player colours instead of loading from scripts every time the
renderer wants them.
This was SVN commit r9123.
2011-03-26 20:17:21 +00:00
8b11b73226
Tweak OGRE preprocessor to fit in our code, and fix bug with #define inside #ifdef.
...
This was SVN commit r9122.
2011-03-26 20:09:54 +00:00
d1241cd6e9
Import original OgreGLSLProcessor from OGRE 1.7.2
...
This was SVN commit r9121.
2011-03-26 20:07:57 +00:00
afbfca17ce
Fix silhouettes being displayed for some models that always stick into the ground
...
This was SVN commit r9117.
2011-03-24 23:54:08 +00:00
1eb5eeb225
minor fixes from integration with working copy at work.
...
This was SVN commit r9116.
2011-03-24 09:05:06 +00:00
9193ba56f9
Build fixes and whatnot
...
This was SVN commit r9115.
2011-03-23 21:15:22 +00:00
1f7e8d7194
per discussion with Philip, remove STL_HASH_MAP etc. because they're ugly, rarely used and superseded by boost::unordered*
...
This was SVN commit r9111.
2011-03-23 16:56:27 +00:00
588bfa11bf
remove unnecessary utf8 includes
...
This was SVN commit r9110.
2011-03-23 16:32:44 +00:00
0999ba0941
refactoring:
...
- simplify sys_get_executable_name interface - return OsPath directly,
rename to sys_ExecutablePathname
- add validation of path components in GetDirectoryEntries
- replace multiple calls to GetModuleFileNameW with
sys_ExecutablePathname
- lift nearly all MAX_PATH limitations (required at work)
This was SVN commit r9109.
2011-03-23 16:14:47 +00:00
64a02932e3
refactor headers: path_util -> path, native_path -> os_path, remove where unnecessary
...
This was SVN commit r9108.
2011-03-23 14:43:35 +00:00
dcd192cb60
refactor path interface:
...
- use wrapper class instead of std::wstring (reduces mixing of
strings/paths; allows safe+easy join via operator/ and convenient
case-insensitive comparison via operator==, avoids NativePathFromString,
similar to boost::filesystem)
- NativePath -> OsPath
- add hash and To/FromJSVal for Path
- add TS_ASSERT_PATH_EQUALS
- replace _wfopen_s with sys_OpenFile
- remove obsolete SortFiles/Directories
This was SVN commit r9107.
2011-03-23 13:36:20 +00:00
f618605477
Changes default random map sizes.
...
Tweaks random map resources.
Adds support for circular maps to rmgen library.
Various fixes in map generator.
On Miletus map, change player 2 civ, as Romans are not fully implemented
(fixes #758 )
This was SVN commit r9104.
2011-03-23 08:12:04 +00:00
575e3b0a69
Don't enable JITs when they can interfere with profiling.
...
Fix dangerous trailing slashes.
This was SVN commit r9103.
2011-03-23 00:36:34 +00:00
e825a98671
Fix flag filtering of transparent models
...
This was SVN commit r9102.
2011-03-22 23:09:38 +00:00
c4cd85bb98
Build fixes
...
This was SVN commit r9100.
2011-03-22 18:46:39 +00:00
0e0ed94926
Implements random map system, fixes #6 .
...
Includes default library "rmgen" w/ API based on rmgen tool.
Modifies rmgen scripts Cantabrian Highlands, Neareastern Badlands, and
Latium.
Old map support dropped from MapReader.
Fixes a few bugs in existing game setup and initialization scripts.
This was SVN commit r9096.
2011-03-22 01:34:45 +00:00
c0a105432e
Use path types and conversions more consistently.
...
This was SVN commit r9094.
2011-03-21 22:59:00 +00:00
5b7ea2371f
Fix some line endings.
...
This was SVN commit r9093.
2011-03-21 22:47:02 +00:00
83271ec816
Fix build errors.
...
Fix VFS root directory failing IsDirectory, which breaks the search for
textures.xml.
Fix incompatible change to loose cache name determination.
This was SVN commit r9092.
2011-03-21 21:06:08 +00:00
c3405e6f50
path improvements/fixes:
...
- replace more std::wstring with Native or VfsPath; wstring_from_utf8 ->
NativePathFromString
- replace sequences of Join(Path(), Basename+extension) with
ChangeExtension in wsdl, CacheLoader
- add Path::IsDirectory to replace .empty() / path_is_dir_sep(.back()).
also changed behavior to reflect the fact that "" is the VFS root
_directory_
- Path::Join now allows 2 identical path types (e.g. VfsPath) or one
char* literal (prevents inadvertently introducing non-safe characters).
to convert from wstring or wchar_t, use an explicit ctor (e.g.
VfsPath(wchar_t_string))
This was SVN commit r9091.
2011-03-21 19:54:08 +00:00
6d25329412
# towards locale-independent pathnames on Linux
...
c.f.
http://www.wildfiregames.com/forum/index.php?showtopic=14541&st=0&p=217250&#entry217250
and 2011-03-19 meeting
This was SVN commit r9090.
2011-03-21 17:53:13 +00:00
9a22dc1351
warning fixes
...
This was SVN commit r9088.
2011-03-21 11:55:49 +00:00
cec05f02ea
fix insidious OpenAL issue: the spec doesn't guarantee 0 isn't a valid source name => we need to use an out-of-band mechanism for specifying whether the source is valid.
...
refs #557
This was SVN commit r9087.
2011-03-20 16:40:36 +00:00
2392eb6720
Skip reporting caches that were initialised but never filled in
...
This was SVN commit r9086.
2011-03-19 15:17:14 +00:00
44e1a863e1
Fix cache detection assertion failure
...
This was SVN commit r9085.
2011-03-19 15:16:14 +00:00
0af8cdc54a
Fix likely cache table typos, based on Intel Software Developer's Manual.
...
This was SVN commit r9084.
2011-03-19 15:03:25 +00:00
fb499ff0d0
further refactoring of new cache detect code
...
- add invariant - level/type are always valid, numEntries indicates
whether the cache is actually present and not disabled
- handle pseudo-descriptors 0xF0 and F1 (avoids warning)
This was SVN commit r9083.
2011-03-19 12:48:56 +00:00
89b7b6b52d
Avoid divide-by-zero on AMDs with missing caches
...
This was SVN commit r9081.
2011-03-18 19:48:54 +00:00
25524dc99f
Fix tests
...
This was SVN commit r9080.
2011-03-18 19:35:31 +00:00
22a651bb86
Fix assertion failure when no L3 cache.
...
Fix typo.
This was SVN commit r9078.
2011-03-18 18:42:10 +00:00
ecbd0ae31b
Fix Windows build.
...
Improve compatibility with GL1.3.
This was SVN commit r9077.
2011-03-18 18:07:18 +00:00
d805e764c5
# Render unit silhouettes when behind buildings.
...
Fixes #144 .
Start using stencil buffer.
Simplify materials a little.
This was SVN commit r9076.
2011-03-18 16:57:54 +00:00
5b91e2d7ab
move cache detection into separate file.
...
add support for CPUID.2 cache descriptors (many Bothans died to bring us
this information)
simplify the API - use one structure to describe cache and TLB; only one
accessor for both.
HWDetect: version change, since dtlbs and itlbs are no longer
distinguished
fixes #752
This was SVN commit r9074.
2011-03-18 16:44:03 +00:00
9659ec298b
Fix off-by-one error in date logging, and rearrange to standard format.
...
This was SVN commit r9065.
2011-03-15 20:29:29 +00:00
e70fae8d80
Stop using glMultiDrawElements since it's too buggy
...
This was SVN commit r9064.
2011-03-14 21:57:09 +00:00
099dbdb24a
Fix use of uninitialised variable
...
This was SVN commit r9063.
2011-03-14 21:54:44 +00:00
5fa577ea25
Attempt to fix shadowAlphaFix to generate FBOs in a more widely supported format
...
This was SVN commit r9062.
2011-03-14 02:50:43 +00:00
612539f109
Don't bother creating shadow textures if shadows are disabled
...
This was SVN commit r9061.
2011-03-14 02:49:53 +00:00
8bb5f2e480
Add missed file
...
This was SVN commit r9057.
2011-03-13 19:44:06 +00:00
d24c93237c
# Initial version of terrain decal textures.
...
Rejig CModel to support non-mesh-based props.
Avoid redundant recomputation for non-moving CRenderableObjects.
This was SVN commit r9055.
2011-03-13 19:22:05 +00:00
ba8163e248
# Explicitly triangulate terrain tiles.
...
Store blend splats as indexed triangles.
Remove unnecessary copy of vertex data.
Fixes #169 .
This was SVN commit r9054.
2011-03-13 19:10:38 +00:00
fc2c54c39f
# Optimise terrain renderer.
...
Batch patch splats by texture match.
Use VBOs for patch indices.
Fixes #722 .
This was SVN commit r9053.
2011-03-13 19:06:33 +00:00
2f28b07356
Support storing index data in VBOs.
...
Use index VBOs in model renderers, for performance.
Be more explicit about static/dynamic VBOs.
Add VBO usage to renderer stats.
Clean up some obsolete unused code.
This was SVN commit r9052.
2011-03-13 18:58:09 +00:00
b70a0a5b5a
Latest version of user-report server code
...
This was SVN commit r9051.
2011-03-12 02:36:20 +00:00
a0a245d0ec
sync with work. add u8_from_larger, sys_IsDebuggerPresent, wdll_main.h;
...
robustify waio file mode and remove a safety check (since
OVERLAPPED.Internal is documented to be subject to change)
This was SVN commit r9050.
2011-03-11 16:29:27 +00:00
51b58328f7
Fix negative 'unlogged' time in profiler at start of game.
...
Remove redundant Reset call.
This was SVN commit r9047.
2011-03-08 16:58:07 +00:00
18f44bebbc
Add workaround for missing tree shadows on certain graphics drivers
...
This was SVN commit r9042.
2011-03-07 00:34:03 +00:00
b4d9ab336b
Simplify hiding of system cursor on non-Windows.
...
Fixes #683 .
This was SVN commit r9038.
2011-03-06 00:48:26 +00:00
7d6cfe58de
Fix non-PCH build
...
This was SVN commit r9037.
2011-03-06 00:01:23 +00:00
6f9da85d9f
Improve performance of full state hash computation, by skipping script components that are known to have no data.
...
Switch to much quicker (and less comprehensive) per-turn hashing in
multiplayer games.
This was SVN commit r9036.
2011-03-05 22:30:32 +00:00
18cdbd9eab
Increase tile-based pathfinder maximum search range, so it's at least enough to reach from one side of Acropolis to the other
...
This was SVN commit r9026.
2011-03-05 14:38:08 +00:00
d3929b6af1
Actually, delete the cpuid() inline asm entirely since it still causes various problems in various compilers
...
This was SVN commit r9024.
2011-03-05 14:11:57 +00:00
712a92caa1
Save PIC register in cpuid() to fix "can't find a register in class 'BREG'" error in some versions of GCC
...
This was SVN commit r9023.
2011-03-05 13:53:02 +00:00
18798c3f8d
OS X build fix
...
This was SVN commit r9022.
2011-03-05 13:49:36 +00:00
e608d9269a
Load entity templates for the AI via the progressive loader.
...
Display message while loading the map list for the setup screen.
This was SVN commit r9019.
2011-03-05 01:56:59 +00:00
2229c10e05
Delete rint/rintf emulation for Windows, since it got broken (the tests fail) and we don't use it any more
...
This was SVN commit r9015.
2011-03-04 23:16:04 +00:00
3a5ca7fdbc
Improve camera restraints at edge of map to be independent of zoom, and to work on circular maps.
...
Fixes #573 .
This was SVN commit r9011.
2011-03-04 20:02:05 +00:00
bec4c6437b
Make non-combat units flee when under melee attack, and not attack enemies automatically.
...
Fixes #703 .
This was SVN commit r9010.
2011-03-04 14:36:41 +00:00
2ef1b9a867
Make projectiles that miss their target continue until hitting the terrain.
...
Fixes #706 .
This was SVN commit r9008.
2011-03-04 00:43:48 +00:00
6bcce22a88
Tell the profiler about a few more bits of code
...
This was SVN commit r9007.
2011-03-03 22:38:01 +00:00
58ae08522f
Let local.cfg override the hardware-dependent defaults set by hwdetect
...
This was SVN commit r9005.
2011-03-03 01:49:49 +00:00
1c1564daaf
Make profiler JSON output much more concise.
...
Right-align values in in-game profile viewer.
Add alternating row shading in profile viewer, to make it easier to
read.
This was SVN commit r9004.
2011-03-03 01:09:19 +00:00
16a4eb36dd
Various minor optimisations.
...
Enable SpiderMonkey method JIT in Release mode.
Add Engine.ProfileStart/Engine.ProfileStop functions for scripts.
Fix AI to clone initial entity data and shared metadata.
This was SVN commit r9003.
2011-03-03 00:16:14 +00:00
8d2d4a8505
Fix profile parser
...
This was SVN commit r9002.
2011-03-03 00:14:23 +00:00
dbc6d27411
Optimise obstruction grid updates in the common case when terrain hasn't changed
...
This was SVN commit r9001.
2011-02-28 01:24:12 +00:00
794584ea11
Optimise tile-based pathfinder, particularly for large maps.
...
This was SVN commit r9000.
2011-02-28 00:35:53 +00:00
cb0e322a61
# Minor AI fixes.
...
Avoid script errors on Miletus.
Use pre-existing female citizens as workers.
Fix autostart.
This was SVN commit r8999.
2011-02-27 19:20:36 +00:00
d045258c29
Let exceptions in GUI script events triggered by script setters propagate out of the setter, so error messages aren't useless.
...
This was SVN commit r8997.
2011-02-27 17:57:32 +00:00
eb163c8d24
Improve reporting of extensions promoted into GL 1.2
...
This was SVN commit r8996.
2011-02-27 14:25:04 +00:00
407b1ef80f
Bump hwdetect version, to identify reports that include recent bugfixes
...
This was SVN commit r8992.
2011-02-26 19:41:01 +00:00
bb562ce179
fixes:
...
avoid reporting a (not-present) third-level cache for Athlon X2 that
don't have one
add better documentation of cache information
ensure we're running on the same CPU while retrieving cache/TLB
descriptors
wgfx: always check all known graphics driver names (more robust in the
face of changing gfx_card strings), correct the intel driver name
This was SVN commit r8991.
2011-02-26 19:22:02 +00:00
567a698628
check all file names known to belong to a GPU's drivers instead of trying to rule out 32/64 bit variants
...
fixes #737
This was SVN commit r8990.
2011-02-26 17:10:09 +00:00
6d7c27edfe
Fix occasionally rendering just terrain and no models when starting a game
...
This was SVN commit r8988.
2011-02-26 00:07:16 +00:00
92e84a9112
Fix keys like F11 triggering two events when sent from Atlas to the game engine
...
This was SVN commit r8987.
2011-02-25 23:53:09 +00:00
f0ea32cb8d
Import user-report server side code
...
This was SVN commit r8986.
2011-02-25 19:46:01 +00:00
4e8c305c6e
sync with work - export app_hooks_update; add boost replacement FileExists and FileSize; avoid conflict with stdint.h;
...
remove asm rintf implementation (sse is faster); avoid the need for an
external 64-bit asm file with vc2008/vc2010; allow arbitrarily long
command line args
This was SVN commit r8985.
2011-02-25 16:31:42 +00:00
d805ef356e
FileExists -> VfsFileExists (see next commit)
...
scriptInterface: fix bool cast warning
This was SVN commit r8984.
2011-02-25 16:30:55 +00:00
77fe5c9e40
Disable shadows and fancy-water by default on some slower graphics devices.
...
See #623 .
This was SVN commit r8983.
2011-02-25 02:00:57 +00:00
a903b4c9d3
Fix #684 (disable S3TC on R600 drivers).
...
Clean up hwdetect a tiny bit.
This was SVN commit r8982.
2011-02-25 01:31:00 +00:00
0378500bdc
Fix #712 (remove S3TC warning).
...
Add timer to S3TC decoder so it's still easy to determine if it was
used.
This was SVN commit r8981.
2011-02-25 01:28:46 +00:00
f4f36af852
Block new buildings being placed on top of existing not-yet-started foundations. Fixes #740 .
...
This was SVN commit r8980.
2011-02-24 21:49:24 +00:00
e16681f0e5
Fix destruction queue warnings when using some GUI features with time-warp enabled
...
This was SVN commit r8976.
2011-02-24 02:05:06 +00:00
f6c1d98c9a
Fix #739 (test failures).
...
Use JSON in debug serializer output unless it fails due to e.g. cyclic
values, in which case use toSource.
Disable file stats code by default, since its output isn't used.
This was SVN commit r8975.
2011-02-24 00:32:38 +00:00
059a53dd37
Fix startup hang on OS X, caused by using timers before initialising them
...
This was SVN commit r8974.
2011-02-23 09:19:41 +00:00
6b783aebd6
Try to fix build errors
...
This was SVN commit r8973.
2011-02-22 21:50:26 +00:00
0c1e05d672
Fix typo
...
This was SVN commit r8972.
2011-02-22 20:15:59 +00:00
e370223d1d
Fix register handle leak
...
This was SVN commit r8971.
2011-02-21 22:25:51 +00:00
abe07e096a
Build fix
...
This was SVN commit r8970.
2011-02-21 22:22:49 +00:00
9bbda8b80b
HTTP proxy discovery for Windows
...
This was SVN commit r8969.
2011-02-21 21:54:47 +00:00
25039d3aff
Fix build errors with old glext.h.
...
Report full cache details, and lsb-release when available.
This was SVN commit r8968.
2011-02-21 18:56:23 +00:00
ee8b193cdb
Fix profiler crash differently
...
This was SVN commit r8967.
2011-02-21 11:57:01 +00:00
a155809447
avoid crash due to null pointer in profiler (triggered by returning from the root node)
...
This was SVN commit r8966.
2011-02-21 09:41:11 +00:00
8f59d52697
sync with work; fix compile error due to lack of boost/serialization in 0ad svn
...
This was SVN commit r8965.
2011-02-21 09:23:51 +00:00
d75d9c3b75
Make the script profiler more useful, by giving the filename/line for anonymous functions.
...
Fix the turn-based profiler a bit.
This was SVN commit r8964.
2011-02-21 02:16:12 +00:00
807663cd54
Fix uninitialised value
...
This was SVN commit r8961.
2011-02-20 20:52:35 +00:00
d7a243343d
Add per-turn counts to profiler, as well as per-frame.
...
Remove percent-of-parent and percent-of-frame timings since they're not
particularly useful.
Simplify profiler update code by using RingBuf.
Handle profiler keys via character codes rather than keysyms, to
hopefully work with different keyboard layouts.
Make console intercept all keys, to stop digits, shift-D, etc having
unexpected side-effects.
Disable console copy/paste when console is inactive.
This was SVN commit r8960.
2011-02-20 20:50:26 +00:00
b24396740c
Disable XML validation when loading templates for AI, to save startup time
...
This was SVN commit r8959.
2011-02-20 20:45:39 +00:00
6ba12dd2ff
Pretty-print JS values in debug serializer
...
This was SVN commit r8958.
2011-02-20 20:44:36 +00:00
720bb3c87d
Remove unnecessary rooting
...
This was SVN commit r8957.
2011-02-20 20:44:13 +00:00
e8a650bc30
Const-correctness
...
This was SVN commit r8956.
2011-02-20 20:42:54 +00:00
5f64937d02
Skip detecting some not-very-useful GL values that cause errors in some drivers
...
This was SVN commit r8953.
2011-02-20 11:46:48 +00:00
c29f2d26b3
Add some more stuff to hwdetect, because there can never be too much
...
This was SVN commit r8951.
2011-02-20 00:54:36 +00:00
e91434a23d
Extend isImplementedInCore up to GL 3.0
...
This was SVN commit r8950.
2011-02-20 00:52:50 +00:00
b2f5dd1b62
Non-PCH build fixes
...
This was SVN commit r8949.
2011-02-19 22:30:34 +00:00
1a2a7677fd
replace set/map with boost::unordered_* to reduce the number of expensive filesystem::basic_path::operator< calls based on a patch by ortalo (thanks!)
...
This was SVN commit r8947.
2011-02-19 21:24:39 +00:00
a02a5d8e5e
refactor graphics driver detect code, ensure both variants return name.dll(version)
...
This was SVN commit r8945.
2011-02-19 20:46:43 +00:00
83569c8f13
detect when detecting OpenGL driver version failed because the driver didn't describe itself in the registry;
...
fall back to detecting the version of the driver DLL (whose name we
guess)
This was SVN commit r8944.
2011-02-19 20:24:38 +00:00
7445342b61
wdll_ver: avoid errors while reading DLL version due to (lack of) FS redirection
...
UserReport: avoid windows iterator debugging warning due to invalid
operator[]
This was SVN commit r8942.
2011-02-19 19:15:00 +00:00
1b1230ca3e
wgl compile fix: add types required by new wglext.h
...
wutsname fix (noticed by Philip from hwdetect information, thanks!):
uname.release wasn't always set.
BinarySerializer.h: warning fix
This was SVN commit r8940.
2011-02-19 18:00:09 +00:00
f3372bf11d
Add some rough performance reporting.
...
Make the profiler converge a bit faster.
This was SVN commit r8939.
2011-02-19 03:14:37 +00:00
3e13c300cc
Fix non-PCH build error
...
This was SVN commit r8938.
2011-02-19 00:46:14 +00:00
ceb4bc9b94
Report more hardware details
...
This was SVN commit r8937.
2011-02-19 00:39:32 +00:00
3e1f09a58f
Fix missing newline in GL error reporting
...
This was SVN commit r8936.
2011-02-19 00:38:08 +00:00
c7f647ae73
Don't bother initialising shadow map textures with data that will never be used.
...
Add some profiling in the shadow rendering code.
This was SVN commit r8934.
2011-02-18 23:41:27 +00:00
04dcbd294c
Push the near clip plane further out, to reduce z-fighting
...
This was SVN commit r8933.
2011-02-18 23:38:28 +00:00
d600a400fe
Fix GUI text input box scrollbars not moving when the window is resized.
...
This was SVN commit r8932.
2011-02-18 22:49:24 +00:00
387b801aed
Fix tooltip crash/corruption, caused by inconsistently changing types.
...
This was SVN commit r8931.
2011-02-18 22:36:39 +00:00
1c7e33b528
Remove a load of implicit CStr type conversions, since they're error-prone and can cause silent data loss.
...
Handle most CStr8/CStrW conversions via UTF-8 instead of effectively
assuming Latin-1.
Return UTF-8 strings from Xeromyces API.
This was SVN commit r8929.
2011-02-17 20:08:20 +00:00
4f724056d5
Remove some unused bits from CRenderer
...
This was SVN commit r8927.
2011-02-16 22:40:15 +00:00
3d997365d8
Fix CStr numeric constructors on 32-bit platforms.
...
Remove unnecessary assignment operators.
This was SVN commit r8926.
2011-02-16 21:14:08 +00:00
0da7e822ff
# Add opt-in automatic feedback system.
...
Add GL implementation limits to hwdetect.
Make the in-game manual support multiple text files.
Remove unnecessary instruction on how to close the manual window.
Make guitextobject.caption return the original value without stripping
formatting tags.
Remove unused non-VFS support from config system.
Support writing config files back to their original path.
Remove unnecessary user profile directory; use normal config directory.
This was SVN commit r8925.
2011-02-16 20:40:15 +00:00
1c3c962ea1
Import libcurl for Windows
...
This was SVN commit r8924.
2011-02-16 11:22:34 +00:00
3d992ffea6
GCC build fix
...
This was SVN commit r8923.
2011-02-15 16:40:23 +00:00
ddba0cc311
topology.cpp: fix for non-contiguous APIC IDs
...
wcpu: avoid undefined shift right on 64-CPU systems (caught via
assertion)
filesystem: add wrename
path_util: add std::wstring variants of common boost::filesystem
routines
This was SVN commit r8922.
2011-02-15 10:38:11 +00:00
fca69efd76
Fix build for GCC 4.5
...
This was SVN commit r8920.
2011-02-13 18:38:22 +00:00
11837204b6
Fix archive builder to not compress the recently-renamed terrain blend textures
...
This was SVN commit r8919.
2011-02-13 17:37:33 +00:00
dbd3de82ff
Fix #705 (tooltips go off screen when displayed near a corner), based on patch from Leonard
...
This was SVN commit r8916.
2011-02-13 12:16:31 +00:00
c7056490b2
Restrict the initial window size to the screen size (hopefully fixes #532 ).
...
This was SVN commit r8915.
2011-02-12 21:21:07 +00:00
eb074ba28c
Fix #495 (warn when locale is bogus), based on patch from darrenhoffman and sergiovier
...
This was SVN commit r8913.
2011-02-12 00:19:59 +00:00
aa8c3a9ea9
Fixed #582 (add camera reset command in Atlas), based on patch from stilz
...
This was SVN commit r8911.
2011-02-11 23:56:55 +00:00
9b25df5958
Fix #591 (Disable sounds for units in FoW/SoD), based on patch from Bogi
...
This was SVN commit r8910.
2011-02-11 23:02:19 +00:00
804e817cf5
Fix rendering of main menu buttons after leaving a game
...
This was SVN commit r8907.
2011-02-10 23:58:33 +00:00
11bc751fd3
Save replay log's commands.txt in new locations when playing multiple games in a single session
...
This was SVN commit r8906.
2011-02-10 23:57:19 +00:00
b73c544f2a
Fix warning
...
This was SVN commit r8903.
2011-02-10 22:55:41 +00:00
b8925fbbc9
# Support AI construction of buildings.
...
Pass terrain passability data to AI scripts.
Expand pathfinder passability data to 16 bits per tile, to allow more
classes.
Support 16-bit ints in serializer.
Partially support JS typed arrays.
Allow foundations to be placed on top of units (fixes #499 ).
Stop farms and fishes blocking movement (fixes #534 ).
Add obstruction flags to allow finer control over what they block.
Associate entity IDs with obstruction shapes, to allow finding colliding
entities.
Support moving to the edge of a target entity with inactive obstruction.
Support foundation entities in AI.
Support playing as non-hele civs.
This was SVN commit r8899.
2011-02-10 16:06:28 +00:00
64f02d5b47
Remove misleadingly obsolete package scripts
...
This was SVN commit r8895.
2011-02-09 16:36:08 +00:00
66f2bc6d57
Flip iteration order in LOS texture blur to improve performance
...
This was SVN commit r8892.
2011-02-06 11:39:06 +00:00
57e5bb878a
Initial terrible AI player scripts.
...
This was SVN commit r8891.
2011-02-05 20:35:34 +00:00
aa1fcfd20c
Change fog-of-war blur to use a better filter.
...
This was SVN commit r8889.
2011-02-05 18:19:28 +00:00
bf3d5c75f0
Be more robust to broken terrain property files.
...
This was SVN commit r8888.
2011-02-05 13:13:57 +00:00
caad072347
Expand pathfinder boundaries to stop units disappearing off the edge of the visible map.
...
This was SVN commit r8887.
2011-02-03 19:40:41 +00:00
02e7eb69ff
# Add solid black sides to the map, to hide underwater terrain.
...
This was SVN commit r8886.
2011-02-03 14:36:54 +00:00
c710e718aa
Windows fixes
...
This was SVN commit r8884.
2011-02-03 02:33:37 +00:00
cb78822f19
Delete some unused bits.
...
This was SVN commit r8883.
2011-02-03 01:17:16 +00:00
fe21c5e023
# Rewrite fog-of-war rendering.
...
Disable shadows when only 2 TMUs available.
Clean up some other rendering code.
This was SVN commit r8882.
2011-02-03 01:12:24 +00:00
1e02fe70a7
Add texture limits to hwdetect
...
This was SVN commit r8881.
2011-01-31 18:59:37 +00:00
18189ef4fc
Simplify terrain blend rendering to use non-indexed arrays
...
This was SVN commit r8878.
2011-01-30 14:43:35 +00:00
566bbf0fa0
Fix assertion failure when running pre-game GUI
...
This was SVN commit r8877.
2011-01-30 02:14:44 +00:00
5e618e1526
Remove redundant bounds check
...
This was SVN commit r8875.
2011-01-29 21:14:49 +00:00
6af877a1cb
Fix Windows crash caused by calling js_free (which calls free from the wrong CRT).
...
Fix some warnings.
This was SVN commit r8873.
2011-01-29 17:50:42 +00:00
03c75100ab
# Fix terrain blending logic.
...
Add terrain priority rendering mode in Atlas.
Fix terrain painting in Atlas to be less profligate with priority
values.
Support hotloading of blend textures.
Clean up some trivial things.
This was SVN commit r8872.
2011-01-29 16:31:48 +00:00
63bd39d4a5
Fix perspective calculation in CCamera::GetScreenCoordinates.
...
Fixes #99 .
This was SVN commit r8870.
2011-01-28 21:51:59 +00:00
fd46b9e370
fixes/improvements from work:
...
file/wfilesystem: avoid error dialog when opening a file that doesn't
exist
precompiled/pch_warnings: remove push/pop that prevented our warning
disables to applying to other code. update comments
topology: refactor APIC field access and add support for constructing
APIC ID from topology
waio: add file_attribute_normal
wsysdep: slightly safer sys_generate_random_bytes implementation
This was SVN commit r8869.
2011-01-28 13:40:07 +00:00
0d8ffa58dc
AoE3Ed build fixes
...
This was SVN commit r8868.
2011-01-17 13:29:45 +00:00
c3b734775b
Simplify component interface: remove explicit context parameter, use GetSimContext() instead.
...
This was SVN commit r8867.
2011-01-16 14:08:38 +00:00
f39f279132
Add AI script code to provide a cleaner API around the engine interface.
...
Handle AIProxy entirely through scripts.
Support structured clones of script values.
Improve performance.
Support multiple script contexts sharing a runtime.
Use a separate context per AI player.
This was SVN commit r8866.
2011-01-15 23:35:20 +00:00
dd501b2a5a
# Add initial basic player AI framework.
...
Support direct access to serializer streams, so serializers can be
nested.
Make component script "this.template" read-only.
Stop globally-subscribed component scripts receiving messages posted to
local components, to reduce out-of-sync risks.
Move pathfinder data out of entity template directory.
Fix GuiInterface deserialization.
This was SVN commit r8865.
2011-01-12 12:29:00 +00:00
d8cd31d4b6
Add probably-unnecessary script serialization test.
...
This was SVN commit r8862.
2011-01-12 12:13:11 +00:00
19548a7379
Fix use of uninitialised variable.
...
This was SVN commit r8861.
2011-01-12 12:11:31 +00:00
aaef1b0d74
Add script for generating mostly-useless component interaction graphs.
...
Fix some components to use more standard syntax.
This was SVN commit r8857.
2011-01-07 20:31:48 +00:00
002e3f5606
minor fixes from work; also add sys_WideFromArgv
...
This was SVN commit r8856.
2011-01-04 19:53:38 +00:00
2fa3c554de
Windows build fixes
...
This was SVN commit r8845.
2010-12-30 20:10:04 +00:00
40933c06e1
Primitive support for gamepad camera movement
...
This was SVN commit r8844.
2010-12-30 19:45:13 +00:00
5e3049f6b2
BuildLimits. Needs some configuration changes to work
...
This was SVN commit r8836.
2010-12-11 23:19:17 +00:00
2fd6e2e8cc
Fix some more warnings
...
This was SVN commit r8835.
2010-12-11 12:35:50 +00:00
802f22485b
Fix some warnings on Windows
...
This was SVN commit r8834.
2010-12-11 12:33:02 +00:00
ad3f33dd27
Build fix for very old SDL
...
This was SVN commit r8833.
2010-12-11 02:25:21 +00:00
ba2a9d7af3
improvements from work: [update-workspaces required]
...
- split precompiled.h into several headers (simplifies reuse)
- enable additional warnings not in W4
- split ErrorReaction into ErrorReactionInternal - clarifies which
values can actually be returned by debug_DisplayError
- wsdl: slightly safer HDC usage via CS_OWNDC, avoid dipping into DC
cache via ValidateRect instead of BeginPaint; remove unused thread
create
- StdDeserializer - wasn't including byte_order => BYTE_ORDER was
undefined
- wsysdep: clean up error dialog message handling
This was SVN commit r8828.
2010-12-09 11:16:21 +00:00
2540e17f45
Fix non-PCH builds
...
This was SVN commit r8816.
2010-12-08 18:54:05 +00:00
f04c2561b7
Various resource shuttling improvements. Fixes #672 .
...
This was SVN commit r8811.
2010-12-08 16:12:04 +00:00
0b0b11d2e0
Fix occasional assertion failure in time warp mode
...
This was SVN commit r8810.
2010-12-08 16:09:53 +00:00
8ddef2fee0
Add fast-forward/rewind commands, to help with testing.
...
This was SVN commit r8803.
2010-12-06 19:58:06 +00:00
1201956b93
Additional cleaning up of logging: removed LOG_CATEGORY macro definitions.
...
This was SVN commit r8792.
2010-12-05 08:50:33 +00:00
19dbbb816d
Changed all references from old CLogger API to use the new API. Removed old API. Fixes #247
...
This was SVN commit r8791.
2010-12-05 08:41:55 +00:00
95da3789cd
Handle SDL_ACTIVEEVENT which notifies us of mouse focus change. If mouse focus is lost don't render cursor, reverting back to OS style. When focus is regained, render cursor again. Fixes #626
...
This was SVN commit r8789.
2010-12-05 05:17:28 +00:00
819bacd538
Automatically disable audio on OS X since it's stupid and broken.
...
This was SVN commit r8788.
2010-12-04 19:42:50 +00:00
5df240d97d
Disable broken GUI error reporter on OS X
...
This was SVN commit r8787.
2010-12-04 19:09:41 +00:00
53b1447007
Fix what looks like miscompilation with GCC 4.0 on OS X
...
This was SVN commit r8786.
2010-12-04 19:06:13 +00:00
4575c26616
Disable compression of public.zip ( fixes #671 ).
...
This was SVN commit r8785.
2010-12-04 15:57:55 +00:00
4b37898ab9
Fix tests.
...
This was SVN commit r8784.
2010-12-04 15:08:18 +00:00
74114bf09a
Handle XMB caching with the same system as texture caching.
...
Fixes #694 .
This was SVN commit r8782.
2010-12-04 00:08:26 +00:00
ead65712eb
Delete obsolete archbuild tool
...
This was SVN commit r8761.
2010-12-02 18:05:16 +00:00
6b4478209b
Fix accidental use of hard-coded constant.
...
Don't bother recomputing terrain speeds multiple times per turn.
This was SVN commit r8753.
2010-11-30 14:48:04 +00:00
ab186c2b16
Update UnitMotion logic, to partially simplify it.
...
Do all pathfinding asynchronously.
Recalculate paths when the target has moved.
Fix vertex pathfinder start point heuristic, to avoid finding
zero-length paths.
When units fail to reach a resource to gather, look for another resource
of the same type.
This was SVN commit r8751.
2010-11-30 12:31:54 +00:00
3b405efc6b
Increase serializer reserved buffer space to cope with huge maps.
...
This was SVN commit r8748.
2010-11-30 12:24:46 +00:00
f959390d0b
Mostly fix hypothetical thread/fork interaction dangers
...
This was SVN commit r8689.
2010-11-25 16:11:16 +00:00
404f7d4caa
Don't put 64-bit OS X code in the 32-bit-only file. Do put it in the 64-bit-only file.
...
This was SVN commit r8687.
2010-11-24 17:08:00 +00:00
94dca529b1
Fix OS X build errors
...
This was SVN commit r8684.
2010-11-23 19:20:03 +00:00
f378a63d94
Add some tests for UnitAI.
...
Fix said tests for UnitAI.
Hopefully fix #647 too.
Document HFSM interface a bit.
Add Engine.DumpSimState() console command for debugging.
This was SVN commit r8681.
2010-11-22 20:12:04 +00:00
e4d356c3bf
Map exploration counter for summary screen
...
This was SVN commit r8679.
2010-11-21 19:42:26 +00:00
47246c8155
Fixes #572 . Changed MoveCameraToTarget so that for minimap scrolling it will ignore changes in Y position, to maintain previous zoom level as expected (constraint keeps the new view from being inappropriate)
...
This was SVN commit r8676.
2010-11-21 04:59:59 +00:00
2963422173
Add screenshot location logging w/ rendered console message. Rendered messages are hidden before screenshot is taken. Fixes #675
...
This was SVN commit r8675.
2010-11-21 01:25:16 +00:00
80888a7325
Avoid buffer overflow assertion failures when dumping stack trace on Windows.
...
Try to be marginally less likely to get stuck in infinite recursion.
This was SVN commit r8669.
2010-11-20 21:26:22 +00:00
1d8972a540
Add automatic 'root' prop point when loading old PMDs
...
This was SVN commit r8666.
2010-11-20 20:16:06 +00:00
c36fc2b8d7
Add script-based system for doing messy stuff based on system configuration.
...
Display warning for certain broken NVIDIA drivers.
This was SVN commit r8663.
2010-11-20 19:46:49 +00:00
74c19b5015
Add xmessage-based GUI dialog box for debug messages on Linux ( fixes #663 ).
...
Switch out of fullscreen before displaying dialog boxes.
Add Engine.DebugWarn for testing.
This was SVN commit r8661.
2010-11-20 17:14:45 +00:00
64bd264fc0
Attempt to fix GUI script interaction with JITs.
...
Simplify some other GUI script interface code.
This was SVN commit r8657.
2010-11-20 00:45:58 +00:00
2c8e683214
Fix toString on non-loaded sounds
...
This was SVN commit r8656.
2010-11-20 00:44:35 +00:00
f0476b61fb
Fix #476 (Use JS_New for ScriptInterface::CallConstructor)
...
This was SVN commit r8638.
2010-11-17 16:56:11 +00:00
404456ee8e
Fix int8_t redefinition errors in VC2010
...
This was SVN commit r8635.
2010-11-17 03:02:04 +00:00
f286ce0b13
Fix crash when loading zero-length config files
...
This was SVN commit r8634.
2010-11-17 01:39:14 +00:00
bd3bd084c0
Support new SpiderMonkey API.
...
wposix: Define int8_t compatibly with SpiderMonkey.
Remove unused camera, lightenv JS interfaces.
Remove most of vector JS interface.
Remove some of the redundant JS string conversion functions.
Remove unneeded vmem, _lodBias functions.
Clean up some formatting.
This was SVN commit r8629.
2010-11-16 23:00:52 +00:00
9c521ceb3b
Add minimum range to range queries
...
This was SVN commit r8627.
2010-11-16 20:43:15 +00:00
13d2e44ff5
Run GC frequently in the simulation script context, to keep memory usage down
...
This was SVN commit r8622.
2010-11-15 15:03:40 +00:00
6a74b798ab
Support prop_ prefix in Collada files, as well as prop-
...
This was SVN commit r8616.
2010-11-15 02:18:49 +00:00
816c810791
Windows fix
...
This was SVN commit r8614.
2010-11-15 00:48:34 +00:00
4a1bc8e11a
Optimise LOS visibility updates
...
This was SVN commit r8613.
2010-11-15 00:36:15 +00:00
293e5e33ec
Changed GUI mouse event handling so that button events use the mouse position at the time of the button state change. Fixed minimap message handling to respect out-of-order events. Fixes #669
...
This was SVN commit r8610.
2010-11-14 22:47:39 +00:00
042972e298
Renamed "session_new" to "session"
...
This was SVN commit r8608.
2010-11-14 20:32:38 +00:00
58b33af168
Support X mouse buttons on Windows
...
This was SVN commit r8591.
2010-11-13 19:51:15 +00:00