Ykkrosh
310f3466a8
# Hotloading of actor XML files.
...
Stop ignoring actor XML animation speeds.
Add decentralised registration of hotloaders.
Move player ID storage into CModel, to simplify CUnit.
Remove obsolete unit ID allocation code.
Remove some material junk.
This was SVN commit r7605.
2010-06-03 01:29:43 +00:00
Ykkrosh
11a20e1bcf
# Handle terrain passability and movement costs in pathfinder.
...
Simplify terrain code (remove Handle indirection).
Delete unused terrain properties.
This was SVN commit r7590.
2010-05-27 23:31:03 +00:00
Ykkrosh
828400d82e
# Support floating units in new simulation system.
...
Fix rendering of underwater lines.
Fix rendering of unit selection outlines in Atlas.
Remove some obsolete hotkeys.
This was SVN commit r7589.
2010-05-27 23:23:53 +00:00
Ykkrosh
ff17691d4f
Add STL-compatible pool allocator.
...
Use pool allocator in serialization code.
This was SVN commit r7584.
2010-05-25 19:24:14 +00:00
Ykkrosh
1e40c8c776
MSVC warning fixes
...
This was SVN commit r7583.
2010-05-25 19:12:00 +00:00
Ykkrosh
01bec7a454
Convert serialization code to use less virtuals and allow more inlining.
...
This was SVN commit r7582.
2010-05-25 19:01:30 +00:00
Ykkrosh
5ce9acc263
MSVC warning fixes
...
This was SVN commit r7580.
2010-05-25 18:44:33 +00:00
Ykkrosh
47a03c3397
Replace JS_Enumerate with manual enumeration, to avoid its memory allocations.
...
Use LookupProperty to avoid having to check for getters.
Add a quicker method of rooting many script values.
This was SVN commit r7579.
2010-05-25 18:24:12 +00:00
Ykkrosh
121d1ead20
Avoid some redundant HasProperty calls.
...
This was SVN commit r7578.
2010-05-25 18:18:32 +00:00
Ykkrosh
6fdb947ff0
Convert CCmpTemplateManager to use ASCII strings internally, to save memory and serialisation cost.
...
This was SVN commit r7577.
2010-05-25 18:17:12 +00:00
Ykkrosh
a9963dee56
Serialize JS strings as UTF-16(ish), to avoid the cost of UTF-8 conversion.
...
This was SVN commit r7576.
2010-05-25 18:07:41 +00:00
Ykkrosh
fd1f864cde
Avoid unreliable float conversions when loading old maps.
...
Use debug_printf in performance test, to work better on Windows.
This was SVN commit r7575.
2010-05-25 17:55:41 +00:00
Ykkrosh
64a610baab
Add some code for rough testing of state hashing performance.
...
Simplify the code needed for tests based on real maps.
This was SVN commit r7574.
2010-05-25 17:28:26 +00:00
Ykkrosh
be4e355ef3
VC2005 build fix
...
This was SVN commit r7572.
2010-05-22 23:12:12 +00:00
Ykkrosh
5c3a59234c
Fix OOS errors when placing buildings.
...
Allow script components to supply custom serialization objects.
This was SVN commit r7571.
2010-05-22 23:02:07 +00:00
Ykkrosh
0fa4bc9b21
Add some (disabled) code to help debug OOS
...
This was SVN commit r7569.
2010-05-22 16:58:08 +00:00
Ykkrosh
4e661a205d
Serialize RNG state
...
This was SVN commit r7564.
2010-05-22 01:32:11 +00:00
Ykkrosh
386f322b1c
Make Math.random() more deterministic
...
This was SVN commit r7563.
2010-05-22 00:38:33 +00:00
Ykkrosh
cf85004f61
Windows build fixes.
...
Remove unused function.
This was SVN commit r7557.
2010-05-20 20:05:38 +00:00
Ykkrosh
56bb858802
# Delete a lot of obsolete simulation code.
...
This was SVN commit r7555.
2010-05-20 18:09:23 +00:00
Ykkrosh
c684c211a2
# Basic experimental multiplayer integration with new simulation system.
...
Add new turn manager that should be more correct and potentially more
efficient.
Remove evil CNetServer/CNetClient multiple inheritance of CTurnManager.
Add multiplayer autostart.
Various minor cleanups.
This was SVN commit r7551.
2010-05-20 00:59:01 +00:00
Ykkrosh
cdcee291cf
Convert all remaining entity template data to new file format.
...
Add dummy component implementations for new data.
Partly support multiple weapons for a single unit.
This was SVN commit r7547.
2010-05-15 21:07:52 +00:00
Ykkrosh
ae08adc55d
# Fix possible GC crash bugs
...
This was SVN commit r7546.
2010-05-15 11:21:40 +00:00
Ykkrosh
434248167b
Fix warnings in tests
...
This was SVN commit r7535.
2010-05-10 09:52:35 +00:00
Ykkrosh
037770a2a3
Fix use of 'undefined' sound group on death.
...
Warn about implicit script/native type conversions.
This was SVN commit r7527.
2010-05-09 13:56:06 +00:00
Ykkrosh
dc53d739b8
Make tests clean up after themselves
...
This was SVN commit r7508.
2010-05-07 17:50:38 +00:00
Ykkrosh
93c30810c8
Fix tests. Tidy up some old files.
...
This was SVN commit r7507.
2010-05-07 16:32:33 +00:00
Ykkrosh
40f2cfd809
Skip component script tests when the mods/public/ directory is unavailable (see #490 ).
...
Report errors ealier when test data directories are missing.
This was SVN commit r7506.
2010-05-07 15:59:23 +00:00
Ykkrosh
d0599f4c7a
Share component template scripts to save some memory.
...
This was SVN commit r7504.
2010-05-07 00:24:22 +00:00
Ykkrosh
fe53bce3b1
Rewrite the clone-object-between-JS-contexts code (for GUI<->simulation interface) to be more efficient.
...
Delete unnecessary unused incomplete profiler scripting support.
Clean up some JSAPI code to use newer features.
Display simulation script functions in the profiler.
This was SVN commit r7503.
2010-05-05 22:36:35 +00:00
Ykkrosh
04018773fd
Fix fixed overflow when pathfinding across smallish maps
...
This was SVN commit r7500.
2010-05-03 19:12:42 +00:00
Ykkrosh
646c218b2e
Reduce the likelihood of units getting stuck when walking
...
This was SVN commit r7499.
2010-05-03 16:46:14 +00:00
Ykkrosh
f33706bf8b
Switch everything to 15.16-bit precision fixeds, to allow more accurate unit vectors and angles.
...
This was SVN commit r7497.
2010-05-02 20:32:37 +00:00
Ykkrosh
d485ecafdc
Optimise pathfinder tile storage a bit (improves speed by maybe 10%).
...
Increase the maximum search tile limit (reduces worst-case speed by
lots).
This was SVN commit r7495.
2010-05-02 20:14:09 +00:00
Ykkrosh
e140aa7baf
Avoid running the old simulation code in the background when it's not needed.
...
Optimise GUI updates to only occur when necessary.
Switch to more peaceful music after starting the game.
This was SVN commit r7492.
2010-05-01 16:20:58 +00:00
Ykkrosh
4fe991074f
Expose Footprint::GetShape and TemplateManager::FindAllTemplates to scripts.
...
Make CSimContext accessible to all component code, so they don't all
have to save their own copies of it.
This was SVN commit r7490.
2010-05-01 09:48:39 +00:00
Ykkrosh
cfae58928f
# New unit movement system, which does a far better job of approaching targets and avoiding obstacles.
...
Add short-range vertex-based pathfinder.
Integrate new pathfinder into unit motion code.
Change obstruction system to get rid of circles, and differentiate
structures from units.
Make PositionChanged messages synchronous.
Try to prevent some accidental float->int conversions.
This was SVN commit r7484.
2010-04-29 23:36:05 +00:00
Ykkrosh
5daac34ef9
Support startup scripts in map files, for testing.
...
Support CDATA sections when writing XML.
This was SVN commit r7483.
2010-04-29 23:22:18 +00:00
Ykkrosh
f4ad5906c9
# Display units on the minimap
...
This was SVN commit r7480.
2010-04-23 18:36:48 +00:00
Ykkrosh
29b458da40
# Use the footprint shape when rendering unit selection outlines
...
This was SVN commit r7479.
2010-04-23 16:57:18 +00:00
Ykkrosh
dd809f83e8
# Add documentation of the entity template XML file format.
...
Simplify the format a bit.
Use less <interleave> in the RNG so that error reports become
understandable.
Fixes #491 .
This was SVN commit r7478.
2010-04-23 16:09:03 +00:00
Ykkrosh
08db7ebe13
# Support training units in buildings.
...
Includes basic batch training (see #298 ).
This was SVN commit r7469.
2010-04-19 19:47:23 +00:00
Ykkrosh
9f1d904278
# Fix use-of-freed-memory bug.
...
Don't call xmlCleanupParser after parsing documents.
("This function name is somewhat misleading. It does not clean up parser
state, it cleans up memory allocated by the library itself.")
This was SVN commit r7465.
2010-04-18 16:35:06 +00:00
Ykkrosh
0547757a30
Make CUnit::GetModel return a reference so it's clear it can never be NULL.
...
This was SVN commit r7464.
2010-04-17 11:44:08 +00:00
Ykkrosh
6a9de50692
# Use the correct projectile models.
...
Fixes #470 .
Make CUnit::GetObject return a reference so it's clear it can never be
NULL.
This was SVN commit r7463.
2010-04-17 11:34:40 +00:00
Ykkrosh
d6ab843f9d
# Documentation updates
...
This was SVN commit r7457.
2010-04-15 19:59:07 +00:00
Ykkrosh
3117f52d7c
# Automatic runtime validation of entity template files.
...
Fixes #413 .
This was SVN commit r7455.
2010-04-14 17:22:32 +00:00
Ykkrosh
40688ec5df
# Initial support for automatic validation of entity template XML.
...
Add RelaxNG schemas for all current components.
Add -dumpSchema command-line option to dump the combined entity schema.
Add a Perl script to validate entity templates against the schema.
See #413 .
This was SVN commit r7452.
2010-04-09 19:02:39 +00:00
Ykkrosh
1fa8052cbe
Support 'replace' attribute in entity template inheritance.
...
Escape whitespace when emitting XML, to avoid attribute-value
normalization.
This was SVN commit r7448.
2010-04-09 18:43:50 +00:00
Ykkrosh
2f34e5fbc6
Fix #472 (fixed-point CTerrain::GetExactGroundLevel), based on patch from JubJub
...
This was SVN commit r7443.
2010-04-06 17:31:38 +00:00