Commit Graph

18026 Commits

Author SHA1 Message Date
95c03dcc64 Let the template define the actor used for the projectile. Also let projectiles have an impact animation (such as an explosion).
This will enable us in the future to have technologies that change
projectiles.
This is also somewhat of a refactoring.

Patch By: Mate-86
Reviewed By: wraitii
Trac Tickets: #1909

Differential Revision: https://code.wildfiregames.com/D945
This was SVN commit r20676.
2017-12-23 09:27:19 +00:00
bb
7d7a4a6b14 Use an object in splitRatingFromNick instead of an array and some cleanups
Patch By: ffffffff
Differential Revision: https://code.wildfiregames.com/D1087
This was SVN commit r20675.
2017-12-22 19:20:03 +00:00
e0bd348bce some petra cleanup
This was SVN commit r20673.
2017-12-21 19:01:55 +00:00
3319c69d97 Choose AI behavior in gamesetup
Original patch from Sandarac, reworked by elexis and finalized by mimo

Discussed with elexis

Differential Revision: https://code.wildfiregames.com/D1159
This was SVN commit r20671.
2017-12-20 22:02:15 +00:00
c0c046c273 petra: fix an inverted ternary (and tune a bit the values used)
This was SVN commit r20670.
2017-12-20 17:59:43 +00:00
2c243b701e Reorder some summary entries and set default charts to economy & total score.
Reviewed by: Imarok
Differential Revision: https://code.wildfiregames.com/D1110
This was SVN commit r20669.
2017-12-20 11:05:48 +00:00
749ce0c894 Move a sheep texture to the correct folder and make use of it.
Only trainable sheep have the player colored collar.

This was SVN commit r20667.
2017-12-19 23:19:33 +00:00
13bfcb150a New rabbit.
Animations by AlexanderMB
Textures by myself + some fixes to the armature not to break when
exporting from the blend
Remove old texture and mesh.

This was SVN commit r20666.
2017-12-19 22:48:58 +00:00
5df1f4ec4c add allowCapture argument to moveAttack (and patrol) commands
Discussed with elexis

Differential Revision: https://code.wildfiregames.com/D1150
This was SVN commit r20665.
2017-12-19 19:24:48 +00:00
d2238ece6d Update Chariot anims to be compatible with blender and add a source file if modification is ever needed
Add a death anim.

This was SVN commit r20664.
2017-12-18 23:44:51 +00:00
1df50d9a07 New Zebu anims and armature. I made Idle, Walk, and used Alexandermb's work to make death variants.
Skeleton was generated using the python script I wrote some time ago.

This was SVN commit r20663.
2017-12-18 23:37:58 +00:00
ccb7f6684f Update the barrel model with more polygons.
This was SVN commit r20662.
2017-12-18 23:31:58 +00:00
ef0b774321 cleanup VisionSharing tests
This was SVN commit r20661.
2017-12-18 17:55:25 +00:00
e29dfb7000 Provide a TriggerHelper function to spawn garrisoned entities
Differential Revision: https://code.wildfiregames.com/D1146
This was SVN commit r20659.
2017-12-17 17:17:00 +00:00
a5a1909bd3 petra: check not only the generic resource type but also the specific one when assigning a gatherer (useful for some mods)
This was SVN commit r20658.
2017-12-16 16:51:58 +00:00
93b777b9fe Use Array.from intead of the spread operator (that's more readable and more performant)
Patch by elexis

Reviewed and extended by mimo

Differential Revision: https://code.wildfiregames.com/D1135
This was SVN commit r20657.
2017-12-16 16:39:28 +00:00
adc2bb872d Fix three wrongly chosen variables in 71121b8a89 / D1093, a wrong case-insensitive implementation and extend the tests to catch that.
Differential Revision: https://code.wildfiregames.com/D1151
Reviewed By: mimo
This was SVN commit r20656.
2017-12-15 23:37:43 +00:00
571562d7d7 Revert 9c180f660f until there is someone maintaining AI behaviors, refs D746.
This was SVN commit r20654.
2017-12-14 13:31:00 +00:00
198c702e6a Fix missing conversion in 8f4363f146.
This was SVN commit r20653.
2017-12-14 13:25:49 +00:00
bb
dfa66fbc12 Cleanup getNumPlayers() calls
Do not check for system components,
Do not inline in loops for performance
Use QueryPlayerIDInterface instead of querying the playerEnt

Patch By: temple
Differential Revision: https://code.wildfiregames.com/D1137
This was SVN commit r20652.
2017-12-13 20:41:41 +00:00
02613bc142 Add Alexandermb's crocodile swim animation. (Unused for now) It will be used when when implement amphibious units.
Reviewed by : Stan, Wowgetoffyourcellphone, Sundiata.

This was SVN commit r20651.
2017-12-13 15:59:47 +00:00
bb
e534f59e01 Cleanup endGameManager win/defeat messages code
Patch By: temple
Differential Revision: https://code.wildfiregames.com/D1115
This was SVN commit r20650.
2017-12-12 22:30:20 +00:00
bb
5a5dcd2126 Make the kennel depend on military structures instead of special as stables have the same inheritance structure
Patch By: Nescio
Differential Revision: https://code.wildfiregames.com/D1035
This was SVN commit r20649.
2017-12-12 21:03:17 +00:00
c5deda556c Adds a skip for invalid files in the validator
Reviewed By: Itms
Differential Revision: https://code.wildfiregames.com/D1140
This was SVN commit r20648.
2017-12-12 20:23:26 +00:00
9c180f660f AI behavior gamesetup setting.
Based On Patch By: Sandarac
Differential Revision: https://code.wildfiregames.com/D746
Refs #812, #2550

This was SVN commit r20646.
2017-12-12 16:45:09 +00:00
16dab5a587 Hide the cancel button in the modmod of the mod mod and the quit button when called from the public mod.
Differential Revision: https://code.wildfiregames.com/D1141
Reviewed By: Grugnas
Refs #4890

This was SVN commit r20645.
2017-12-12 16:06:52 +00:00
bb
8ae67ed15f Implement hotkeys and mousescroll to change tabs in tabbed pages (credits, summary and options).
Save the latest page and graph in the summary screen
Implement a hotkey to open and close the summary screen for the
replaymenu and ingame.

Patch By: ffffffff
Comments By: elexis
Differential Revision: https://code.wildfiregames.com/D810
This was SVN commit r20644.
2017-12-11 22:16:01 +00:00
bb
3eef53b124 Fix missing i's in 1ca585ccf2
Spotted By: s0600402
Noticed in review by fatherbushido, but didn't came into patch by
Grugnas, and later forgotten to yell about again by bb when accepting.

This was SVN commit r20643.
2017-12-11 15:23:34 +00:00
60631b3949 Hotkey to select wounded units
Reviewed by: temple
Differential Revision: https://code.wildfiregames.com/D729
This was SVN commit r20642.
2017-12-11 12:47:56 +00:00
e5ce142cba Some tweaks to the gaul stable to make it adapt to the terrain better.
This was SVN commit r20640.
2017-12-10 19:17:51 +00:00
89e339dd16 Remove VFS cache, because it is less effective and less efficient than the OS cache (and partially redundant with higher level application caches).
Patch By: Sandarac
Discussed with: Philip, echotangoecho, Bezerra
Fixes #4072.
Differential Revision: https://code.wildfiregames.com/D587
This was SVN commit r20639.
2017-12-10 17:33:03 +00:00
3bfe10f63f Cleopatra anims cleanup.
Use the other prop point for the bow so animation is correct
Fix the broken quiver uncommited.
Remove one set of earings

This was SVN commit r20638.
2017-12-10 16:58:51 +00:00
71121b8a89 Define, document, validate and test validation of the format of mod.json files.
The mod "name" may only consist of alphanumeric characters, underscore
and dash, because it should be used for mod dependency checks.
Drop two special characters from the "version" property.

Differential Revision: https://code.wildfiregames.com/D1093
Res #4427, d3ce5289b6
Reviewed By: Itms
This was SVN commit r20637.
2017-12-10 16:13:18 +00:00
a82175b580 Use premake5 during automated testing, after a few weeks of use in production.
Refs #4846.

This was SVN commit r20635.
2017-12-10 14:26:53 +00:00
38d11a6fce Long range pathfinder cleanup
Remove ACCEPT_DIAGONAL_GAPS as it was unused and will not be used in the
future.
Use PASSABLE macro everywhere.
Simplify considerable OnTheWay as MakeGoalReachable returns a point
goal.

This doubles as a very slight optimisation, on the order of microseconds
per call.

Reviewed By: temple
Differential Revision: https://code.wildfiregames.com/D80
This was SVN commit r20634.
2017-12-10 14:23:16 +00:00
18b2906a9c Refactor the cxxtest premake module.
Properly fix the current issues with pre-build commands, improve the
documentation of known issues and re-design the module so it is easy to
extend it into a fully-fledged CxxTest module supporting all features of
the tool.

Reviewed By: wraitii
Tested By: elexis, bb, Imarok
Differential Revision: https://code.wildfiregames.com/D1092
This was SVN commit r20633.
2017-12-10 11:17:43 +00:00
b4a19bc44e Fix 8446b92f1b, where I missed adding a new file and accidentally invalidated Hero_cleopatra.
Reported by Imarok on IRC.

This was SVN commit r20632.
2017-12-10 11:15:22 +00:00
8446b92f1b Update all female_citizen actors so that idle animations properly show carried resources.
By refactoring unitAI slightly, we can easily improve our support for
running/walking/idle animations.
Other gatherer entities (and other entities with custom walking
animations for certain variants) will need to be updated individually at
a later point to support this feature.

Reviewed By: bb, fatherbushido (a while ago)
Differential Revision: https://code.wildfiregames.com/D311
This was SVN commit r20631.
2017-12-10 10:06:08 +00:00
f7aa7ac79e Optimise HierarchicalPathfinder::Update by speeding up the chunk dirtiness check.
By adding a custom function in Grid, the code gets vectorised on both
gcc and clang, resulting in much faster code and faster update times,
sometimes substantially (on giant maps or when few chunks must be
updated).

Reviewed By: mimo
Differential Revision: https://code.wildfiregames.com/D73
This was SVN commit r20630.
2017-12-10 08:59:43 +00:00
1933461009 Slight cleanup of Commands.js.
Removes data.playerEnt and data.cmpPlayerManager.

Patch By: temple
Differential Revision: https://code.wildfiregames.com/D1138
This was SVN commit r20629.
2017-12-10 04:05:43 +00:00
ad2e48da1e Fix broken infinity kill/death ratio summary screen translation comment in b5ea27904d.
Patch By: temple
Differential Revision: https://code.wildfiregames.com/D1133
This was SVN commit r20628.
2017-12-10 03:32:17 +00:00
40cc3aaa09 Rename RangeVisualization component from ee5bb1fd61 / D238 to RangeOverlayManager for consistency with the RangeOverlayRenderer from 5fbb224dc0 / D555.
Refs #4899, #3915

This was SVN commit r20627.
2017-12-10 03:28:38 +00:00
ddf868cfdc Update random maps that use rmgen wall-placement.
Reviewed By: FeXoR
Commented On By: elexis
Refs: #2944, D900

This was SVN commit r20626.
2017-12-10 03:14:00 +00:00
7aae697bc5 Remove civ-specific hardcoding in rmgen wall-placement script.
Original Patch By: FeXoR
Reviewed By: FeXoR
Commented On By: elexis
Refs #2944
Differential Revision: https://code.wildfiregames.com/D900
This was SVN commit r20625.
2017-12-10 03:12:54 +00:00
be06299e28 Use only one getter for range overlays instead of three to four in the Heal and Auras component.
Move default Heal range visualization texture properties to the template
and only display Heal ranges if the template was given.

Differential Revision: https://code.wildfiregames.com/D1128
Refs #3915, #4349, D238, D432, D568

This was SVN commit r20624.
2017-12-10 03:08:05 +00:00
5b6ac6deda Display attack range in building previews.
Patch By: Sandarac
Taken from D555
Refs #3915

This was SVN commit r20623.
2017-12-10 02:48:29 +00:00
5fbb224dc0 Render the range visualization of auras, heal and attack component in a separate RangeOverlayRenderer component instead of abusing Selectable for that.
This also allows non-selectable entities like building previews to cast
range visualizations.

Patch By: Sandarac
Differential Revision: https://code.wildfiregames.com/D555
Refs #3915, #4349, ee5bb1fd61 / D238.
Comments By: Vladislav
This was SVN commit r20622.
2017-12-10 02:41:08 +00:00
13ad114dd6 Move selection ring OverlayTexture code from CCmpSelectable::UpdateTexturedLineOverlay to the SOverlayTexturedLine struct in graphics/Overlay.cpp and SimRender in simulation2/helpers/Render.cpp.
This abstraction allows calling that code again from other simulation
components, like the RangeOverlayRenderer in D555.

Differential Revision: https://code.wildfiregames.com/D1139
Refs #3915, D555
Comments By: Vladislav, echotangoecho
This was SVN commit r20621.
2017-12-10 00:19:51 +00:00
bb
470e9fc8f1 Make houses conquestcritical, since the can train female
Patch By: temple
Differential Revision: https://code.wildfiregames.com/D1018
This was SVN commit r20620.
2017-12-09 20:28:59 +00:00
84e88edd36 Remove pairwise annihilating array constructor and spread operator in e4a5d5b4dd.
Differential Revision: https://code.wildfiregames.com/D1134
Reviewed By: bb
This was SVN commit r20619.
2017-12-09 20:25:23 +00:00