Commit Graph

18416 Commits

Author SHA1 Message Date
elexis f1b6aaeabc Don't place trees inside civic centers on tiny Corsica vs Sardinia.
This was SVN commit r21091.
2018-01-31 19:54:40 +00:00
elexis a6e4c5142a On Persian Highlands, allow players to chose the summer or spring variant in the gamesetup, refs #4954.
Add Hannibal_Barca's biome descriptions on Gulf Of Bothnia and Persian
Highlands.

This was SVN commit r21090.
2018-01-31 19:51:23 +00:00
elexis 7723256248 Fix obligatorily broken translation of the new map-specific biome directory structure in 626d89a726, refs #4954.
This was SVN commit r21089.
2018-01-31 19:47:45 +00:00
elexis 399e40d8d9 Accelerate Danubius map generation performance, from 90 seconds to 15 seconds, refs #5011.
Use the non-deprecated createObjectGroups variants, so that one doesn't
have to do 10 million placement attempts...
Mark the area (land, water, island) and only chose random locations from
these areas using createObjectGroupsByAreas.
Don't ignore the map border for siege engine patrol points, because
AvoidClassesConstraint is very slow for large radiuses.

This was SVN commit r21088.
2018-01-31 18:31:11 +00:00
mimo 5f8148e1dd petra: improve capture of gaia relics
This was SVN commit r21087.
2018-01-31 18:22:59 +00:00
elexis d7d9539f2d Allow passing no painters to createArea and MultiPainter, similar to 495f83663e for Constraints.
This was SVN commit r21086.
2018-01-31 18:20:40 +00:00
elexis 24388f781e Implement rmgen SlopeConstraint which is met if the elevation difference is within the given range, fixes #5004.
Add NearTileClassesConstraint that is satisfied when there is a tile
marked with the given class in the given range.
Use it for the grass and mountain terrain painting on Pyrenean Sierra.

This was SVN commit r21085.
2018-01-31 16:42:19 +00:00
elexis 906c23c54b Implement a ConvexPolygonPlacer that returns all points in the convex hull of some given points.
Implements the Gift-Wrapping algorithm to compute the convex hull.

Replace the latter half of the pathplacer with this new placer, refs
#892.
Improves the performance a bit, refs #5011.

Use the new placer on Kerala and Hyrcanian Shores to replace the
workaround from 903e094f62, refs #4855
(the area is not supposed to be parallel to the meandering river).

This was SVN commit r21082.
2018-01-31 04:20:32 +00:00
elexis bb5fe743ec Rename some variables of the pathplacer and use JSdoc, refs #892, #4831.
This was SVN commit r21081.
2018-01-31 04:02:59 +00:00
elexis 57f8e04e58 Implement getBoundingBox and getPointsInBoundingBox rmgen helper.
Removes the according duplication in placers and makes the loops over
these points onedimensional, refs #4805.
JSdoc for centric placers, refs #4831.

This was SVN commit r21080.
2018-01-31 03:58:33 +00:00
elexis 2059117ed9 Scythian Rivulet random map script by Hannibal Barca, fixes #4956.
Differential Revision: https://code.wildfiregames.com/D1233
This was SVN commit r21079.
2018-01-30 23:16:21 +00:00
elexis 7cc3091c65 On DeepForest and Schwarzwald, don't abuse the RectPlacer (nor formally ClumpPlacer) to just paint on a single tile, refs 83422923aa, 49194819f6.
This was SVN commit r21078.
2018-01-30 22:12:54 +00:00
mimo 9be3fd2bf4 petra: fix target choice in some attacks
This was SVN commit r21077.
2018-01-30 18:07:53 +00:00
Imarok 776899c254 Show rank icon above status bars
Reviewed by: bb
Fixes: #5005
Differential Revision: https://code.wildfiregames.com/D717
This was SVN commit r21076.
2018-01-30 15:10:20 +00:00
Itms 2bfb580415 Fix non-PCH build by adding an explicit include.
This used to build so the include of CStr.h disappeared from the include
chain at some point. PCH builds kept working because this file is
included in precompiled.h for the engine project.

Differential Revision: https://code.wildfiregames.com/D1273
Reviewed By: Imarok
This was SVN commit r21075.
2018-01-30 07:20:49 +00:00
temple 37d317e01a Remove the alert status on units
Differential Revision: https://code.wildfiregames.com/D681
Reviewed by: causative
Fixes: #4185, #4656

This was SVN commit r21074.
2018-01-30 01:47:12 +00:00
elexis b5b384da48 Implement rmgen JS logger that measures the time for each procedure and prints logmessages to stdout, fixes #4950.
Allows to identify performance bottlenecks quickly and provides a better
sense of progress when viewing stdout.

This was SVN commit r21073.
2018-01-30 00:11:11 +00:00
temple 1ba1e86c5e Use a countdown rather than a tooltip for displaying construction progress
Change the time to completion to a countdown and remove the tooltip on
the health bar.
Move the number of builders to the time speed-up tooltip.
Remove the build rate tooltip.

Differential Revision: https://code.wildfiregames.com/D572
Early review by: wraitii
Comments by: bb
This was SVN commit r21072.
2018-01-30 00:02:10 +00:00
bb 7e14a33411 Make the resource/pop tooltips sortable
Patch By: ffffffff
Differential Revision: https://code.wildfiregames.com/D1113
This was SVN commit r21071.
2018-01-29 23:12:12 +00:00
mimo 99dc7c8f1c petra cleanup
This was SVN commit r21070.
2018-01-29 18:36:06 +00:00
elexis 78ce731fc5 rmgen random placement and Entity instantiation refactoring, fixes #4992.
ChainPlacer, ClumpPlacer, SimpleObject receive the vectors that are in
place everywhere already, refs #4845.
Add public setCenterPosition to CenteredPlacer and Group rather than
writing private properties of the prototypes.
ChainPlacer and ClumpPlacer simplifications, deduplication and renames,
refs #4805.

Replace placeObject global with RandomMap placeEntity members, refs
#4804.
Split to placeEntityPassable / placeEntityAnywhere, as well as
validTilePassable / validTileAnywhere to more cleanly distinguish actor
and casual entity placement.
No more does SimpleObject create Entity instances and register entityIDs
if they are never placed.
Removes the map global reference from the Entity constructor, refs
#4964.
By definition of what is passed to the engine, an Entity has an ID and
position, so keep it impossible to create Entities without IDs.

Implement randomPositionOnTile so that there aren't different
implementations thereof, including unintented ones as in
ardennes_forest.js in 2f7610160f.
On Caledonian Meadows, remove unused pathplacing code, to be superseded
by #4368.
On Schwarzwald, delete unused startLocations following b180ad3e5d.
On Latium, replace complicated duplicated hardcoded fish location
computation with a simple HeightConstraint, refs #4960.

This was SVN commit r21069.
2018-01-29 16:20:14 +00:00
Stan f3d1d3120c Fix sounds path broken in previous commit
This was SVN commit r21068.
2018-01-29 13:23:09 +00:00
Stan edbaec24a1 Delete camel sound file that is not death and is unused.
Move goat death sounds to the death folder, and use every one of them.

This was SVN commit r21067.
2018-01-29 12:54:55 +00:00
Stan 3da24fbb89 Remove some progress bar duplication
This was SVN commit r21066.
2018-01-29 12:38:49 +00:00
Stan b55096853e Use the icon for the 300 version of Leonidas.
This was SVN commit r21065.
2018-01-29 12:24:55 +00:00
elexis e185820e10 Implement TS_ASSERT_NUMBER as a future precaution of the integer epsilon slip in 30fe33bb0b.
Add another vector rotation test.

This was SVN commit r21064.
2018-01-29 11:55:43 +00:00
elexis 65c62c0862 Fix inclusionCount reference in the heightmap library / Wild Lake map following 2ac7d4fd32.
Delete clPath there altogether because it's never written to, nor
terrain textures painted.
Replace other inclusionCount references with common avoidClasses
constraints.
Remove now unneeded undefined checks.
Make nomad units on Wild Lake avoid gaia camps.

This was SVN commit r21063.
2018-01-29 10:47:23 +00:00
elexis 30fe33bb0b Add another Vector2D rotation test (illustrating the most common rmgen rotation transformation).
TS_ASSERT_EQUALS_APPROX must not silently pass if epsilon wasn't given.
Sort Vector2D.rotate summands by component rather than saving one
character.

This was SVN commit r21062.
2018-01-29 09:51:20 +00:00
Stan 2fa34e129d New celt hero icon by wowgetoffyourcellphone
Reviewed by : Stan.

This was SVN commit r21059.
2018-01-29 03:20:50 +00:00
Stan eb9b7e21e6 Move some unused icons as they are only used in DE, or will be used for part II;
This was SVN commit r21058.
2018-01-29 03:17:13 +00:00
Stan 68e66681be Move an ancient placeholder siege tower to the public old folder.
This was SVN commit r21057.
2018-01-29 02:52:59 +00:00
Stan 05167fc24c Remove placeholder roof.
This was SVN commit r21056.
2018-01-29 02:43:22 +00:00
elexis e50cd13643 Fix camouflaged paintRiver sign error of doom in e596ef6011 that resulted in rivers always being parallel and Danubius placing "left" patrol trigger points on both riversides.
Add missing map rotation for Danubius shoreline triggerpoints in
3d65bfe555.

This was SVN commit r21055.
2018-01-29 00:58:00 +00:00
Stan 605bdb0480 Move unused buildings referenced by the script checkref.pl to a new folder where all the old stuff will be put.
Delete some of them as they are close copies of the existing ones.
Rename barracks to blacksmith, as it is in fact one.

This was SVN commit r21054.
2018-01-29 00:46:52 +00:00
Stan 767bb873f2 Delete a bunch of cubes that served as a blacksmith placeholder, and are now unused.
This was SVN commit r21053.
2018-01-29 00:26:02 +00:00
Stan ac6d775536 Move unused buildings referenced by the script checkref.pl to a new folder where all the old stuff will be put.
Those chinese were added at the time were terra magna could have been
part of the mod, I'm keeping a copy but they should probably be deleted.

This was SVN commit r21052.
2018-01-29 00:22:43 +00:00
Stan 1b9e19f12c Move unused buildings referenced by the script checkref.pl to a new folder where all the old stuff will be put.
This was SVN commit r21051.
2018-01-29 00:01:11 +00:00
Stan 3d004a379e Move unused buildings referenced by the script checkref.pl to a new folder where all the old stuff will be put.
This might become a mod and serve as a resource for modders. This will
also allow to reduce the public.zip file.

This was SVN commit r21050.
2018-01-28 23:12:27 +00:00
mimo f5fe19d2a2 petra: do not try to attack an invulnerable capturable target
This was SVN commit r21049.
2018-01-28 19:56:57 +00:00
mimo b611a2f4bf Make the ai aware of invulnerable entities
Commented by elexis

Differential Revision: https://code.wildfiregames.com/D1267
This was SVN commit r21048.
2018-01-28 19:53:29 +00:00
elexis 751edb43fc Fix wrong type in 8aaff7fc62 / D1232.
Differential Revision: https://code.wildfiregames.com/D1266
Patch By: Angen
This was SVN commit r21047.
2018-01-28 17:37:55 +00:00
Stan bd5fa08e73 Fix spear smoothing groups, they are now less shiny as a consequence though.
This was SVN commit r21046.
2018-01-28 13:55:02 +00:00
mimo 2fa7d05dc6 another fix of fe3668aebe
This was SVN commit r21045.
2018-01-28 13:45:17 +00:00
mimo 01587376d4 petra: add missing iterator from fe3668aebe
This was SVN commit r21044.
2018-01-28 09:49:16 +00:00
Gallaecio 17e0ee4a27 Fix bad plural reported by safaalfulaij at Transifex
This was SVN commit r21043.
2018-01-28 05:31:44 +00:00
temple ac3c02b4d4 Disable attack as formation
Differential Revision: https://code.wildfiregames.com/D1220
Reviewed by: wraitii
Refs: #4951

This was SVN commit r21042.
2018-01-28 01:32:26 +00:00
Stan effb1363c0 Fix an incorrect animation reference, and add the native keyword, noticed by checkref.pl refs #2524
This was SVN commit r21041.
2018-01-28 01:22:18 +00:00
Stan 0fb42ff234 Fix an incorrect prop reference. Noticed by checkrefs.pl, which should be fixed by the way.
This was SVN commit r21040.
2018-01-28 01:16:25 +00:00
Stan e413e54910 New completion sounds for archery range by Lion.Kanzen
Reviewed by : Omri, Stan
Thread:
https://wildfiregames.com/forum/index.php?/topic/23726-tasksound-archery-range-provisional-sound/&page=2&tab=comments#comment-347558

This was SVN commit r21039.
2018-01-28 01:15:19 +00:00
Stan 8967b82ca1 New Chamfrons for seleucid elite horses by Alexandermb
Thread :
https://wildfiregames.com/forum/index.php?/topic/21396-task-seleucid-units-textures/&page=4
Reviewed by : Stan
Feedback by : Sundiata

This was SVN commit r21038.
2018-01-28 00:52:09 +00:00