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
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
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
Yves
7acdde5c86
Changes tests to use global g_ScriptRuntime instead of creating a new JSRuntime for each test.
...
The tests crashed on my Debian systems but not on my Ubuntu system.
The crash happened in line 142 of SpiderMonkey's ThreadLocal.h.
I know that I had to use a workarounnd for contexts to avoid destroying
the context that was created first. I also had in mind that in newer
versions a JS_Init function got introduced which presumably solves this
kind of issues.
Based on this experience I assumed runtimes could have a similar problem
and this patch indeed fixes the issues.
Unfortunately the correct usage of JSRuntimes in that regard is not
documented.
There's only a rater misterious comment in JSAPI.h which hasn't been
cleared up so far and is most likely completely outdated
(https://bugzilla.mozilla.org/show_bug.cgi?id=992641 ).
This was SVN commit r14995.
2014-04-25 21:19:51 +00:00
sanderd17
e1488fee56
Add an 'explore map' option to the game setup.
...
This was SVN commit r14931.
2014-04-14 19:52:49 +00:00
sanderd17
bb71823aee
Make the actor tech-modifiable. Fixes #2243
...
This was SVN commit r14928.
2014-04-14 15:00:49 +00:00
Yves
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
JoshuaJB
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
JoshuaJB
ef888367aa
Cleanup tex_codec, fixes #2456 , patch by IronNerd.
...
This was SVN commit r14836.
2014-03-13 04:16:20 +00:00
JoshuaJB
a5639631ee
Texture system refactoring and cleanup, fixes #2455 , patch by IronNerd.
...
This was SVN commit r14835.
2014-03-13 02:37:05 +00:00
wraitii
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
sanderd17
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
sanderd17
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
wraitii
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
wraitii
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
mimo
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
JoshuaJB
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
mimo
7a3b1fe47e
Improve speed of territory computation, fixes #2360
...
This was SVN commit r14530.
2014-01-06 22:49:57 +00:00
wraitii
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
Yves
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
wraitii
9d9361ae44
Why you should test your code before committing, exhibit A.
...
This was SVN commit r14466.
2013-12-31 21:45:11 +00:00
wraitii
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
wraitii
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
sanderd17
298115f4c5
Fix units chasing each other. Fixes #1537
...
This was SVN commit r14449.
2013-12-30 16:07:19 +00:00
wraitii
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
Yves
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
wraitii
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
wraitii
f9bee5d3ec
Slight de-obfuscation of the AI code.
...
This was SVN commit r14317.
2013-12-09 14:20:11 +00:00
Yves
966f7c7145
Removes some duplicated code.
...
This was SVN commit r14311.
2013-12-08 19:23:09 +00:00
historic_bruno
b1c081e36d
Set svn:eol-style=native, fix some inconsistent line endings
...
This was SVN commit r14299.
2013-12-06 00:42:50 +00:00
sanderd17
4062e2011f
fix tests
...
This was SVN commit r14288.
2013-12-05 08:53:40 +00:00
wraitii
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
wraitii
189ef85538
Fix AI errors on skirmish maps.
...
This was SVN commit r14285.
2013-12-04 16:52:44 +00:00
sanderd17
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
mimo
351468dbe5
fix initialisation of developper overlay for saved games
...
This was SVN commit r14240.
2013-11-28 18:08:41 +00:00
sanderd17
7345d27c84
Summon planes back from the emptyness
...
This was SVN commit r14230.
2013-11-26 15:12:16 +00:00
mimo
321e61617b
Improve MoveToTarget when the target is moving, fixes #2253
...
This was SVN commit r14168.
2013-11-14 07:25:56 +00:00
sanderd17
60fb5ed1c3
- Fix garisson and formation aura types
...
- Implement tech mods for UnitMotion speeds, Fixes #1958 , based on patch
by wraitii
- Implement athen_hero_themistocles ship speed aura as a test
This was SVN commit r14058.
2013-10-30 16:12:53 +00:00
Ykkrosh
ac335f37c8
Fix some Clang warnings about unused private members
...
This was SVN commit r14023.
2013-10-19 00:53:58 +00:00
sanderd17
e6d9094c98
Remove InitSavedGame, but keep the rallypoint problem it solved. Fixes #1762 , Patch by mimo.
...
This was SVN commit r14010.
2013-10-16 17:58:12 +00:00
sanderd17
5f5eedc513
Rename technology related files, methods and messages so their names represent the shared data flow between technologies and auras (and maybe future components). Implement the C++ part of auras through these generalised files. Fixes #2154
...
This was SVN commit r14001.
2013-10-15 10:05:08 +00:00
historic_bruno
754e794f9b
Implements attack notifications based on patch by madmax and zoot, fixes #1719
...
This was SVN commit r13951.
2013-10-06 04:49:38 +00:00
leper
85253ca3c8
Let corpses cast shadows again. Refs #1771 .
...
This was SVN commit r13945.
2013-10-05 16:22:46 +00:00
historic_bruno
7901ed51d4
Implements skirmish maps, based on patch by sanderd17, fixes #1198 . Skirmish maps are like scenarios, except the player can choose their civ during match setup. To create a skirmish map: place some skirmish entities for each player in Atlas (see templates/skirmish/* for examples), uncheck the player's civ in Atlas' player panel if desired, and save in the maps/skirmishes directory. The map will appear in match setup under the "Skirmish" match type.
...
Implements custom, VFS-based map load/save dialogs for Atlas (replaces
broken native file dialogs), fixes #631 , #889 .
Fixes map loading/saving to handle arbitrary subdirectories for better
organization.
Adds default settings to Atlas player panel, fixes #1872 . Each setting
now has a checkbox to choose whether it should be saved with the map
(avoids writing lots of useless default data for each map).
Adds map preview setting to Atlas, refs #1745 .
Cleans up and simplifies some duplicate code.
Fixes optional serialization performance test.
This was SVN commit r13938.
2013-10-04 02:29:16 +00:00
Ykkrosh
9f5635085e
Fix #1833 : animals spin around needlessly while roaming.
...
Patch from mimo.
This was SVN commit r13924.
2013-09-30 23:52:22 +00:00
sanderd17
e370af8d4e
Fix rally point rendering on saved games. Fixes #1762 . Patch by mimo
...
This was SVN commit r13897.
2013-09-24 20:27:18 +00:00
Ykkrosh
d252e245ef
Optimise fixed multiplies on MSVC x86
...
On MSVC, casting i32 to i64 then multiplying gets compiled into a call
to __allmul, which is slow. Use the __emul intrinsic instead.
GCC 4.6+ appears optimise this case automatically and doesn't need any
special handling.
This reduces the cost of ComputeShortPath by about 50% (testing AI vs AI
on Oasis 01).
This was SVN commit r13873.
2013-09-20 20:17:54 +00:00
RedFox
1b6a5fa802
This was SVN commit r13861.
2013-09-15 21:37:05 +00:00
RedFox
2a5ec404d1
Further reverted RangeManager sorting to stable_sort, since possibly with different STL implementations, the order of entities might change and cause OOS.
...
Overflowing elements in SpatialQueryArray are now reported with
debug_warn, but can be ignored and the program will continue working,
but further entities will be truncated.
This was SVN commit r13860.
2013-09-15 21:11:20 +00:00
RedFox
9694eec8b8
As per ticket #1707 . Some minor improvements to spatial subdivision. Makes way for future changes in RangeManager.
...
Right now merely improves memory usage.
This was SVN commit r13854.
2013-09-15 14:03:53 +00:00
Ykkrosh
05422ad545
Avoid slightly-expensive QueryInterface() calls
...
Add CEntityHandle which wraps an entity_id_t and also has a pointer to a
per-entity array of IComponents. QueryInterface/CmpPtr on a handle just
involve a couple of pointer dereferences instead of a map lookup.
This requires sizeof(void*) per registered interface type per entity,
which is currently ~0.5KB per entity, which shouldn't be a problem.
This was SVN commit r13825.
2013-09-11 20:41:53 +00:00
stwf
b1bd61938e
add file notification to Mac ticket 514, also change name of class FileInfo to CFileInfo to ease Mac development
...
This was SVN commit r13821.
2013-09-10 14:17:04 +00:00
historic_bruno
b770c41f0b
Removes shadow casting and receiving on preview entities, patch started by ericb, fixes #1771
...
This was SVN commit r13706.
2013-08-18 22:17:57 +00:00
Ykkrosh
0888cf6c23
Fix Linux build
...
This was SVN commit r13701.
2013-08-18 11:28:52 +00:00
wraitii
a4707bcc16
Change the water manager so incremental updates to the water information is possible. Streamline a few things (and removes a not-really-used calculation to speed things up further). Fixes #2063 , refs #1743 .
...
This was SVN commit r13698.
2013-08-18 09:27:11 +00:00
sanderd17
d66edf5958
fix a bug that ignored resetting XZ rotation to zero, reported by sythetwirler
...
This was SVN commit r13668.
2013-08-15 22:16:51 +00:00
sanderd17
675b3c40be
fix bouncing projectiles, patch by Markus. Fixes #769
...
This was SVN commit r13664.
2013-08-15 19:01:10 +00:00
sanderd17
6b316f6ce1
fix tests breaking caused by 4421787281. Refs #2062
...
This was SVN commit r13661.
2013-08-15 08:56:14 +00:00
sanderd17
4421787281
interpollate y offset for smooth climbing and landing of flying objects. refs #2062
...
This was SVN commit r13660.
2013-08-15 08:44:06 +00:00
alpha123
8c74df2acd
Give an elevation advantage to ranged units. Patch by sanderd17. Fix #1960 .
...
This was SVN commit r13626.
2013-08-03 19:20:20 +00:00
wraitii
1f55280fa2
AI-related changes to the AI interface and Command.js, to facilitate debugging of upcoming new version of Aegis.
...
This was SVN commit r13592.
2013-07-25 08:57:07 +00:00
wraitii
d01d58f70f
Fake randomization of the ship sinking animation to make it look better with ship formations. Refs #1921
...
This was SVN commit r13584.
2013-07-22 10:17:00 +00:00
historic_bruno
f5e60157bf
Optimizes GetPercentMapExplored by caching explored vertices per player, patch by scroogie, fixes #2012
...
This was SVN commit r13576.
2013-07-20 00:50:40 +00:00
historic_bruno
39c0498811
Changes terrain anchoring to use faster CalcExactNormal instead of CalcNormalFixed, refs #1988 , #2039
...
This was SVN commit r13571.
2013-07-17 05:42:16 +00:00
historic_bruno
f302faf8e4
Implements entity terrain anchoring as a visual effect, based on patch by sanderd17, fixes #1988 .
...
Sets cavalry and quadrupedal animals to 'pitch' anchoring. Cleans up
mine templates.
This was SVN commit r13565.
2013-07-16 03:46:30 +00:00
alpha123
041855e547
Allow building walls along the shore. Patch by sanderd17. Fix #1610 .
...
This was SVN commit r13542.
2013-07-07 22:44:47 +00:00
historic_bruno
49b3b0ee9a
Reverts interpolation changes from a7bc7ab50c, 71ae5a19d8, 1778e685ac, c6043779f6, 8777f68aa0, 21f13f9683. Refs #1846 , #1858 , #1865 , #1906
...
This was SVN commit r13500.
2013-06-25 01:09:43 +00:00
historic_bruno
ce8457e195
Fixes map name in pathfinder performance test
...
This was SVN commit r13497.
2013-06-23 00:50:24 +00:00
historic_bruno
a7bc7ab50c
Fixes units not rotating correctly during e.g. attacks, patch by sbte, fixes #1906
...
This was SVN commit r13489.
2013-06-18 03:42:06 +00:00
stwf
36dec0e789
add restricted flag to SoundGroup xml for sounds thatonly the owning player should hear
...
This was SVN commit r13486.
2013-06-17 02:30:40 +00:00
historic_bruno
5f90371a1c
Cleans up some float constants and math from #1921
...
This was SVN commit r13482.
2013-06-15 00:42:07 +00:00
alpha123
9d27cccbcd
Fix Visual Studio build issues.
...
This was SVN commit r13481.
2013-06-15 00:20:40 +00:00
alpha123
98cac1a10f
Improve ship sinking. Patch by wraitii. Fix #1921
...
This was SVN commit r13478.
2013-06-14 19:19:13 +00:00
stwf
bcf99e2a13
make sound code return faster, code cleaner
...
This was SVN commit r13476.
2013-06-14 16:05:57 +00:00
stwf
da17e4329b
cleanup SOundManaer component
...
This was SVN commit r13475.
2013-06-14 00:24:51 +00:00
stwf
26dbac8d57
fixes to SoundManager external interface, clean up ifdef situation, and SoundGroup playin
...
This was SVN commit r13474.
2013-06-13 12:12:44 +00:00
leper
b3391ebe39
Fix build warnings. Patch by Markus. Refs #1851 .
...
This was SVN commit r13469.
2013-06-11 00:05:57 +00:00
leper
29549561e1
Add flag to VisualActor for entities that should only be visible in Atlas. Patch by KareemErgawy. Fixes #1411 .
...
This was SVN commit r13465.
2013-06-09 23:18:21 +00:00
stwf
71b25d5bd4
big SoundManager checkin,futureproof javascript interface, isolate external calls to remove OpenAL references
...
This was SVN commit r13455.
2013-06-06 11:13:57 +00:00
historic_bruno
88c4e5bdd0
Extends binary serializer to support some standard JS classes: Number, String, Boolean. Fixes #406 .
...
Extends binary serializer to support typed arrays.
Extends binary serializer to support custom JS prototype objects in AIs,
fixes #407 .
Allows full serialization of AIs (not yet implemented). Refs #1089 ,
#1886
Increases binary serializer script backref arena from 8 MB to 16 MB,
refs #1842
This was SVN commit r13429.
2013-05-26 21:57:24 +00:00
leper
3f00d4d997
Change some size() > 0 to Based on patches by kuranes and Markus. Refs #1852 , #1923 .
...
This was SVN commit r13413.
2013-05-21 22:11:47 +00:00
leper
0d09f290d9
Allow setting rally points for foundations. Patch by Josh. Fixes #902 .
...
This was SVN commit r13390.
2013-05-02 20:29:22 +00:00
wraitii
4233acfa36
Slight clean up of the water code. Uses vertex data instead of a texture for foam. Should be faster to generate and render. Still no Atlas support.
...
This was SVN commit r13374.
2013-04-27 12:20:42 +00:00
historic_bruno
c2ca0209fa
Fixes multiplayer crash when host disconnects while clients are still loading.
...
Improves client disconnect handling slightly.
This was SVN commit r13327.
2013-03-25 05:01:36 +00:00
wraitii
475c722327
Fix serialization issues with Aegis.
...
This was SVN commit r13326.
2013-03-24 09:10:32 +00:00
historic_bruno
71ae5a19d8
Fixes visual actor interpolation, handling position changes more cleanly, based on patch by sbte.
...
Fixes rally point lines not updating, fixes #1865
This was SVN commit r13323.
2013-03-23 17:59:54 +00:00
wraitii
25293ce0cc
Many small bugfixes for AIs. Adds support for difficulty (and along with that, some behind-the-door architecture for a handicap system).
...
Adds -autostart-aidiff to set the difficulty from the command line from
testing.
This was SVN commit r13278.
2013-03-13 20:44:48 +00:00
wraitii
9b1b8cc8fd
A few bugfixes, slight change in logic for smoother play. Makes Aegis gather with cavalry. Allows it to send chat messages to warn about attacks.
...
This was SVN commit r13266.
2013-03-11 19:58:29 +00:00
wraitii
eda2802f6d
Simplify construction of the transformation matrix in GetInterpolatedTransform. Patch by sbte. Fixes #1854
...
This was SVN commit r13252.
2013-03-10 20:31:53 +00:00
wraitii
1778e685ac
Improve detection of when a component needs to be interpolated. Patch by sbte. Fixes #1858 .
...
This was SVN commit r13251.
2013-03-10 20:28:01 +00:00
wraitii
2c17ab70ac
Add support for -autostart-civ to set civilizations when quickstarting.
...
Put the AI memory heap back to 32 MB to avoid OOM errors with numerous
AIs in late game.
Fix a bug that made ProductionQueue not broadcast progress.
Fix many issues with Aegis in defense, pathfinding, foundation
construction, training building choice, strength calculations, building
placement and mostly attack. Aegis should be much more aggressive.
This was SVN commit r13247.
2013-03-09 14:09:06 +00:00
quantumstate
c6043779f6
Better fix for the angle interolation issue. Thanks sbte for spotting it. Refs #1846 .
...
This was SVN commit r13244.
2013-03-08 20:01:12 +00:00
quantumstate
8777f68aa0
Fix rotation interpolation. Refs #1846 .
...
This was SVN commit r13243.
2013-03-08 19:34:55 +00:00
wraitii
081721c679
Fix the build and stops the AI from creating tons of AI dump images for no good reason.
...
This was SVN commit r13231.
2013-03-06 14:33:15 +00:00
wraitii
a45a926aeb
Fix an issue that caused a crash on serialization. Prepare the AI manager a little more for serialization.
...
Fix bugs with tests. Fix some other issues in the AI (attack plans deal
with walls better, choose better paths, target selection is better. Dock
building won't be tried hundreds of times if it fails.)
Changes the Oasis random map to only put a path in the middle 50% of the
time.
This was SVN commit r13230.
2013-03-06 11:52:41 +00:00
wraitii
e33d4a52e9
AI API V3 along with a new version of Aegis. Support for a JS shared component that can be used or not for each AI.
...
This was SVN commit r13225.
2013-03-05 22:52:48 +00:00
quantumstate
21f13f9683
Only use interpolation for moving objects in VisualActor. Patch by sbte. Fixes #1846 .
...
This was SVN commit r13223.
2013-03-05 20:02:16 +00:00