Commit Graph

18744 Commits

Author SHA1 Message Date
Stan a787471f56 Move unused celt building prop meshes to the old public
Found by checkref.pl

This was SVN commit r21455.
2018-03-06 21:59:38 +00:00
Stan f83a56287c Move some old trees to old public. Found with checkrefs.pl
They are too low poly to be used sadly.

This was SVN commit r21454.
2018-03-06 21:19:25 +00:00
Stan 408a8d55c4 Remove unused/old meshes found by checkref.pl
This was SVN commit r21453.
2018-03-06 21:08:17 +00:00
mimo 0ffb130744 petra: cleanup following eslint continuation
This was SVN commit r21452.
2018-03-06 19:39:13 +00:00
mimo 307e395012 petra: more cleanups following eslint
This was SVN commit r21451.
2018-03-06 19:15:31 +00:00
Stan 46dadfb386 Rename missing hero in 6fd60ff14a
Refs: 097c19a6a0

This was SVN commit r21450.
2018-03-06 18:59:46 +00:00
Stan 6fd60ff14a Rename some heroes using the common scheme.
Those heroes were introduced in 097c19a6a0
The new convention from now on will be civ_hero_name(_type(_weapontype))
where parenthesis are optionnal.
However it would be nice to when a infantry hero is added for instance,
than the other one specify it's cavalry
Since it requires map changes, it will be up to the person introducing
it.

This was SVN commit r21449.
2018-03-06 18:50:44 +00:00
mimo 06c64bd8da petra (partial) cleanup following eslint
This was SVN commit r21448.
2018-03-06 18:47:33 +00:00
mimo 4ded9cbec2 ai: cleanup of common-api following eslint
This was SVN commit r21447.
2018-03-06 18:34:33 +00:00
elexis d3fd524f88 Remove _unpacked from rome_mechanical_siege_onager since it doesn't have a Pack component, refs 9fd718186d.
Fix lineendings.

This was SVN commit r21446.
2018-03-06 13:58:07 +00:00
elexis 6113edd746 Refactor and move random template composition triggerscript code used for gaia attacker waves from Danubius (026dcf10eb / D204) and Survival Of The Fittest (18e7d8a518 / D145) to the TriggerHelper.
Eases implementation of new maps with diverse scripted attackers, refs
#5040, D11 and  map difficulties, refs #4963, D1189.
Replaces hardcoded templatenames with calls to a new TriggerHelper
function to query template names, given Classes, Civ, Rank or Packed
state.
Removes the duplicated template counting logic, that was intertwined
with map specific unit classes balancing logic, refs #4805.

Use mimos garrison function from e29dfb7000 / D1146 to support
doubleclicking on garrisoned gaia heroes on Danubius, fixing the bug
described in comment:10 of #4291.
Fix wrong (Trigger) prototype reference in ce65af8dcb.

This was SVN commit r21445.
2018-03-06 13:31:34 +00:00
elexis d8b5439956 Small map cleanup and performance improvements.
This was SVN commit r21444.
2018-03-06 11:44:20 +00:00
Stan b5ad56a83d Unify variants a bit, boost healer idle speed.
Add a third variant for male healers.

This was SVN commit r21443.
2018-03-05 21:03:48 +00:00
Stan 460dc0b2f2 Fix uterly slow animation for skirmishers.
Use inheritance for both files, as they are the same. Eventually we
should have different anims for heavy skirmishers.
EOL Properties and EOF for all fix inconsistent indent.
Noticed by: elexis
Introduced by: 83680b0dee
This was SVN commit r21442.
2018-03-05 20:48:41 +00:00
bb d86148defc Create winning teams for relic and wonder victory instead of letting all allies of a player win.
Create a getNonGaia function
Reset counters on playerDefeat
MarkPlayersAsWon function
Rename MarkPlayerAsWon to MarkPlayerAndAlliesAsWon
Stop letting winningplayers in relic depend on PlayerID

Comments By and Discussion With: elexis
Reviewed By: temple
Differential Revision: https://code.wildfiregames.com/D972
fixes #4648

This was SVN commit r21441.
2018-03-05 18:02:27 +00:00
elexis 9886a4fc15 Fix trees on hills on Survival Of The Fittest following f7a2c3d02c / D145.
Use the StaticConstraint to reduce map generation time by 50%, refs
#5011.

This was SVN commit r21440.
2018-03-05 14:38:00 +00:00
elexis 1b6407ac7e Rename some constraint arguments to constraints to reflect that one can pass an array too.
This was SVN commit r21439.
2018-03-05 14:35:46 +00:00
elexis ae4bc2c7b1 Add a PassableMapAreaConstraint so that createArea calls can be constrained in advance when the result is going to be used for entity placement.
Simplification in the Area prototype.

This was SVN commit r21436.
2018-03-04 22:34:30 +00:00
mimo 4bbb5cc8ef petra: refactor the base management to allow further extensions
This was SVN commit r21435.
2018-03-04 22:32:32 +00:00
elexis b5c43fc5f9 Remove some redundant random map logger ellipses.
This was SVN commit r21434.
2018-03-04 21:09:16 +00:00
elexis cabc9b4a69 Unify the two copies of the custom dock placement logic on Hellas and Pompeii, refs #4805.
Extend it to only place docks where the according body of water has a
minimum size, fixes #5065.
Compute the dock angle similar to GetDockAngle from Commands.js (as the
previous angle computation is wrong if the large body of water doesn't
lie in that direction).

This was SVN commit r21433.
2018-03-04 20:06:15 +00:00
temple b167c5f6ae Center starting entities
Differential Revision: https://code.wildfiregames.com/D1353
Reviewed by: elexis
This was SVN commit r21432.
2018-03-04 17:43:04 +00:00
mimo 55645b8bda petra: fix computation of accessibility for cart super_dock
This was SVN commit r21431.
2018-03-04 13:42:07 +00:00
mimo 0e8d47cdf7 petra: fix some (rare) cases where the ai would not build a market
This was SVN commit r21430.
2018-03-04 13:26:46 +00:00
vladislavbelov a1c4c23ce4 Adds axes to the CChart and the summary screen.
Comments By: elexis, Imarok
Reviewed By: s0600204
Trac Tickets: #4892
Differential Revision: https://code.wildfiregames.com/D474
This was SVN commit r21429.
2018-03-04 12:42:35 +00:00
mimo 5f92726fe7 petra: fix land attacks targeting ships
This was SVN commit r21428.
2018-03-03 18:46:06 +00:00
mimo fc66a2dec1 update the petra description following 5b314fc0ac, as suggested by imarok
This was SVN commit r21427.
2018-03-03 18:36:54 +00:00
elexis 6eb8a814ce Improve random map script performance by using squared distance where possible, refs #5011.
RandomPathPlacer.js diff proposed and reviewed by FeXoR

This was SVN commit r21425.
2018-03-03 13:46:57 +00:00
mimo 4392d73c5c petra: fasten late game by not waiting to have a huge army before attacking nearly defeated enemies
This was SVN commit r21424.
2018-03-03 10:37:54 +00:00
mimo 5b314fc0ac Add a time multiplier for AI levels
Differential Revision: https://code.wildfiregames.com/D1350
This was SVN commit r21423.
2018-03-03 10:05:04 +00:00
bb a8a29271ce Add a wrong indentation to avoid "unchanged" lines in D1240, #4014
Suggested By: elexis
This was SVN commit r21421.
2018-03-02 21:14:43 +00:00
elexis 148dbc2837 Egypt skirmish map by mimesot, refs #5032.
Forum thread:
https://wildfiregames.com/forum/index.php?/topic/23987-skirmish-map-egypt-condensed/
Still needs a map description.

This was SVN commit r21420.
2018-03-02 19:36:38 +00:00
elexis 1b743ee36f Always use the StaticConstraint for createPassage nomad player placement to improve the performance on some random maps slightly, refs #5011.
This was SVN commit r21419.
2018-03-02 18:53:53 +00:00
elexis e3f531384e Performance improvement for the StaticConstraint by not initializing the cache upon construction but filling it just-in-time, refs #5011.
This was SVN commit r21418.
2018-03-02 18:13:07 +00:00
temple f72e7bd626 Increase MaxSpawnDistance for ships
Differential Revision: https://code.wildfiregames.com/D1345
Reviewed by: elexis
This was SVN commit r21417.
2018-03-02 18:10:54 +00:00
elexis ce65af8dcb Move Danubius triggerscript function to compose random templates and garrison all entities of a given identity class to TriggerHelper.
Delete the copy thereof in Elephantine, refs #4805, #5040.
Use absolute paths for template names.

This was SVN commit r21416.
2018-03-02 16:32:10 +00:00
elexis 0ff518148e Forgotton file in previous commit 85a3a889e7 and change pathheight on danubius to be less than landheight.
This was SVN commit r21415.
2018-03-02 16:26:55 +00:00
elexis 85a3a889e7 Add "has" helper function to TileClass, so that one can find out if the given tile is marked with that class or not without having to fallback to Constraints.
Performance improvement for Ambush, refs #5011.

This was SVN commit r21414.
2018-03-02 16:16:45 +00:00
elexis e9fb0f62ed Add the avoidance of other Objects within the same Groups from 833ab874a9 to RandomObjects too, refs D189, #4338.
This was SVN commit r21413.
2018-03-02 15:58:02 +00:00
s0600204 9f47cc2403 Account for upgrade options of parent when determining base template for Template Viewer
Reported by: wowgetoffyourcellphone
Report:
https://wildfiregames.com/forum/index.php?/topic/24027-viewer/&do=findComment&comment=349110

Refs: D297, c8fda40b02

This was SVN commit r21410.
2018-03-01 23:50:27 +00:00
vladislavbelov 5352c0f84e Disables load/delete buttons for an empty savegames list. Fixes #5057.
Patch By: ztamas
Reviewed By: vladislavbelov
Trac Tickets: #5057
Differential Revision: https://code.wildfiregames.com/D1347
This was SVN commit r21409.
2018-03-01 20:50:41 +00:00
elexis ba1a03f3f8 Beat 24 LayeredPainters with identical neighboring layers for not doing anything but wasting performance and confusing developers, refs #4805.
Remove an unneeded else after break.

This was SVN commit r21408.
2018-03-01 19:50:09 +00:00
elexis 50dcddc0eb On Elephantine, use c214bbd1ec, c6af8b4e76 to place a path from the temple to the pyramid and replace the city patch workaround.
Place the Ptolemian wonder as recommended by Sundiata, refs #5040.
Use StaticConstraint from 99797313fe to save some seconds when placing
soldiers.

This was SVN commit r21407.
2018-03-01 19:40:00 +00:00
elexis c214bbd1ec Return the placed Groups (containing the Objects (containing Entities)) from the createObjectGroups (plural) functions, refs c6af8b4e76.
This way maps can further modify the terrain or place entities at the
resulting position.
Generalizes retryPlacing.

This was SVN commit r21406.
2018-03-01 18:34:48 +00:00
elexis c6af8b4e76 Fix createObjectGroup (singular) and SimpleGroup.prototype.place not returning an array of entities but an array of undefined following the SimpleGroup change in 78ce731fc5.
The bug was never noticeable because the return result was never read
from yet.

This was SVN commit r21405.
2018-03-01 17:48:13 +00:00
elexis 38aee6698d New mappreview images for Ambush and Stronghold, since the ugly circle patterns were removed in 774a626bb9, refs #4993.
Fix missing word in a map description, reported by Sundiata.

This was SVN commit r21404.
2018-03-01 16:26:26 +00:00
elexis 9bd9d16420 Add translateHeightmap function which allows repositioning of an imported heightmap before copying it to the map, refs #3764, #5018, #4816.
Inline some variables and return the heightmap in the heightmap library
functions, so that one can apply multiple transformations within the
same statement.

This was SVN commit r21403.
2018-03-01 14:39:17 +00:00
elexis c486ce7efe Aethiopia random map by (-_-) aka smiley.
Map description by Hannibal Barca.

Differential Revision: https://code.wildfiregames.com/D1336
Refs #5040

This was SVN commit r21402.
2018-03-01 13:07:30 +00:00
elexis 99797313fe Implement StaticConstraint, refs #5011.
This allows random map scripts to evaluate a set of slow constraints
once and then only access a cache of the results later,
rather than reevaluating the constraints for every randomized
coordinate.
Remove an unused comment following d35d6cc9f9.

This was SVN commit r21401.
2018-03-01 12:48:13 +00:00
elexis 2be4293dff Complain if an RMS tries to revert the loading progress.
Also increase estimated mapgen time, refs 942a45372c, 0e0ed94926.

Differential Revision: https://code.wildfiregames.com/D1341
Proposed By: Vladislav in D1340
This was SVN commit r21400.
2018-03-01 12:06:55 +00:00