1
0
forked from 0ad/0ad
Commit Graph

14092 Commits

Author SHA1 Message Date
feda708d5d Fix formations not queueing orders properly.
Formation controllers were not always waiting on their members correctly
because the "finishedOrder" check was being reset in the wrong place.
This happened particularly with queued orders.

This merges the "finishedOrder" and the "InPosition" logic.

Reported by: elexis
Based on a patch by: Freagarach
Tested by: Freagarach
Reviewed By: Angen
Fixes #3274

Differential Revision: https://code.wildfiregames.com/D2702
This was SVN commit r23744.
2020-06-06 16:07:01 +00:00
759bc754c3 Fix arrow count not being properly calculated when autogarrisoning.
423b3cbcaa Moved the message sent that an entity garrisons from
`PerformGarrison` to `Garrison`. However, when an entity is
autogarrisoned from `ProductionQueue` `PerformGarrison` is called thus
not triggering the message. When ejecting the entity from the structure
there is a message sent that the entity is removed, thus allowing for a
negative amount of archers/arrows in `BuildingAI` (see
423b3cbcaa#42654).

Note that `PerformGarrison` was explicitly split in 2102648f7c when
introducing autogarrisoning. It probably has something to do with the
position, since that was split. But I couldn't find any reason why it
cannot be used now.

A side effect of this is that when autogarrisoning an entity with
visible garrison points those will be occupied as well now.

Reviewed By: wraitii
Differential Revision: https://code.wildfiregames.com/D2790
This was SVN commit r23743.
2020-06-06 10:19:42 +00:00
4588ee3bbc Trigger an exit-reentry when the target entity of an order is renamed
This lets unitAI FSM states correctly handle target entity renaming by
processing a message when that happens. The default behaviour is to
leave-reenter the state, which re-runs sanity checks and optionally
picks a better behaviour.

UnitMotion is still not made aware of entity renaming, as the
leave-enter makes it irrelevant in practice. It still may be a good idea
to implement that someday.

Fixes the concern raised at de1bb8a766.
Fixes #5584

Comments by: bb, Freagarach
Tested by: Freagarach
Reported by: minohaka, bb, Freagarach, gameboy (error in the original
commit)

Differential Revision: https://code.wildfiregames.com/D2735
This was SVN commit r23742.
2020-06-06 06:19:15 +00:00
371299f244 Reduce alarm sound intensity:
Thread:
https://wildfiregames.com/forum/index.php?/topic/27207-committedpoll-alarm-sound/page/2/&tab=comments#comment-398144

This was SVN commit r23741.
2020-06-05 21:34:22 +00:00
8339c6da79 Fix heroes not attacking on elephants
This was SVN commit r23740.
2020-06-05 21:28:18 +00:00
a7cc40524c Fix spear orientations for infantry spearmen units when attacking and capturing.
Thread:
https://wildfiregames.com/forum/index.php?/topic/28301-seleucid-thureos-shields-attack-with-butt-of-spear/&tab=comments#comment-398078

This was SVN commit r23739.
2020-06-05 20:57:19 +00:00
f6977b64db Use IID_Health in test_Damage after 16b452cf91.
The wrong components were mocked, but the test did not fail as the
asserts were not called.
Add a check that tests are indeed called here.

Patch by: Freagarach
Reviewed by: wraitii
Differential Revision: https://code.wildfiregames.com/D2787
This was SVN commit r23738.
2020-06-05 17:14:04 +00:00
829567c304 Unify Cavalry walk speeds across citizen/champion/hero variants.
Citizen, Champion and Hero cavalry now have the same 2x walk speed
multiplier.
Speed difference between cavalry type unchanged.

Patch by: Nescio
Approved by: borg-, ValihrAnt, wraitii
Differential Revision: https://code.wildfiregames.com/D2596
This was SVN commit r23737.
2020-06-05 16:58:18 +00:00
21a1ba4e5a New alarm/alarmattackplayer_1.ogg sound
Thread:
https://wildfiregames.com/forum/index.php?/topic/27053-request-battle-sounds/
Thread:
https://wildfiregames.com/forum/index.php?/topic/27207-feedback-wanted-alarm-sound/

Patch by: @Samulis
This was SVN commit r23736.
2020-06-05 08:09:58 +00:00
4812844c33 Look for foundations near the target, not the entity.
Entities should look for a new foundation near the targeted one, not
near themselves, when they cannot proceed with constructing the original
target.
This behaviour matches expectations from players better, since the
entity will go closer to where the player intended.

It also rejoins behaviour when gathering introduced in 7d53fb19a2.

For now, keep looking near the entity too if there are no obvious picks
at the destination, but this could be done only within a certain range
(see D2525).


Comments by: Angen
Differential Revision: https://code.wildfiregames.com/D2753
This was SVN commit r23734.
2020-06-04 11:06:27 +00:00
cdfa6cb8b4 Make CommitResources accept a target, not a type.
This moves some resource committing logic from `UnitAI` to
`ResourceGatherer`.
Allows easier modification by modders, and cleaner separation of
concerns.

Check if the carried resources actually changed before sending the
message.

Make all paths through Repair.ConstructionFinished return resources.

Patch by: Freagarach
Reviewed By: wraitii
Differential Revision: https://code.wildfiregames.com/D2664
This was SVN commit r23733.
2020-06-04 11:01:06 +00:00
7440523ade Enable garrisoning on gates / fix movement of units with visible garrison points (2nd commit)
This is the same commit as 2abd9cead2 / D1418, fixing noted issues.

This addresses two related issues:
- Units visibly garrisoned on gates keep the gate open.
- Units visibly garrisoned on entities keep their pathfinding blocker
flags.

De-activate the obstruction of visibly-garrisoned entities, fixing the
2nd issue.
Keep a list of entities that cannot move and thus should not count
towards gate-opening logic.

Packing logic is kept separate: it is more related to entities having
'alternate forms' with different capabilities than being currently
incapable of moving.

Based on work by temple

Fixes #2679.
Fixes #5151.

Differential Revision: https://code.wildfiregames.com/D2775
This was SVN commit r23731.
2020-06-02 11:40:29 +00:00
c2b73e7874 Remove inaccurate howdah from the carthaginian champion elephant.
Patch by: @Nescio
Comment by: @wowgetoffyourcellphone
Thread:
https://wildfiregames.com/forum/index.php?/topic/28168-war-elephants/page/2/&tab=comments#comment-396952

Differential Revision: https://code.wildfiregames.com/D2779
This was SVN commit r23730.
2020-06-02 08:02:09 +00:00
aad8aa9a3e Make elephants more interesting by reducing their cost.
Reviewed by: @borg-
Patch by: @ValihrAnt, @Nescio

Differential Revision: https://code.wildfiregames.com/D2575
This was SVN commit r23728.
2020-06-01 16:53:01 +00:00
bb
37980a3e48 Move all session hotkeys under session in default.cfg
This appears to comply with "This can be changed once all settings
belong to a section." from afecbf02f3 which did not set these hotkeys
under session.

Patch By: Nescio
Differential Revision: D2616
This was SVN commit r23726.
2020-06-01 15:11:26 +00:00
bb
95cc785865 Also fix 6 player skirmish maps
refs D1042 29098b456b

This was SVN commit r23725.
2020-06-01 14:35:25 +00:00
945ac4fc3b Do not change the gamma of the display on startup.
Added in df6fceba62 to (most likely) have some control over brightness,
this conflicted with dimming utilities and would not play nice with
starting 0 A.D. in windowed mode.

If gamma handling were to be reintroduced later, it should only affect
the 0 A.D. window.

Reviewed By: vladislavbelov
Differential Revision: https://code.wildfiregames.com/D1976
This was SVN commit r23722.
2020-06-01 05:12:51 +00:00
bb
27311ec62e Correct tooltips of gamesetupSettingsTabs
Introduced in 34138a7764

Patch By: Nescio
Agreed By: elexis
Differential Revision: D2615
This was SVN commit r23721.
2020-05-31 21:17:16 +00:00
bb
74a02d232e Allow a garrisonholder to not have health.
Patch by: Freagarach
Adaptation by: wraitii
Differential Revision: D2375
This was SVN commit r23720.
2020-05-31 19:40:54 +00:00
bb
29098b456b Remove all spaces, caps, parentheses and hyphens from map file names.
PersistMatchSettings are broken by this commit.

Comments By: leper, itms, Stan, vladislav, elexis
Patch By: Nescio
Differential Revision: D1042
This was SVN commit r23719.
2020-05-31 19:10:15 +00:00
6a29c46b5f Fix Gaul trader offset. Refs https://code.wildfiregames.com/D2640
This was SVN commit r23718.
2020-05-31 16:21:42 +00:00
bb
82c2de90fd Replace the Flight_demo map from 2c58b07223 with Flight_demo_2 from a64f1356cb. Adding a runway on a cliff to the latter, so all functionalities are kept.
While at it remove the cap from the name, according to the art naming
conventions.

Noticed and proposed by Nescio in D1042
Comments by: elexis, stan, vladislav
This was SVN commit r23717.
2020-05-31 15:55:21 +00:00
bb
743443977b Rename brit_champion_cavalry* to brit_champion_chariot*
Patch By: Nescio
Comments By: Stan
Differential Revision: https://code.wildfiregames.com/D2529
This was SVN commit r23716.
2020-05-31 14:16:23 +00:00
Angen
10fb4822df [gameplay-a24] Allow training all barracks champions at captured barracks.
Before this change, civilisation could train champions in captured
barracks only if captured barracks allowed to train that unit, what was
not always the case so some champions were allowed to be trained in
captured barracks and some was not.

Differential Revision: https://code.wildfiregames.com/D2547
Patch by: Nescio
Reviewed by: ValihrAnt
This was SVN commit r23715.
2020-05-31 10:12:02 +00:00
531dcf40c3 Revert 0363202a20, 2abd9cead2 and b4144dc2c3
Player-testing has revealed QA issues, so reverting these for now.

Differential Revision: https://code.wildfiregames.com/D2773
This was SVN commit r23714.
2020-05-31 10:06:39 +00:00
0cde295654 Make wall segment cost proportional.
Patch by: @Nescio.
Reviewed by: @ValihrAnt
Differential Revision: https://code.wildfiregames.com/D2611
This was SVN commit r23713.
2020-05-31 07:29:26 +00:00
b4144dc2c3 Hotfix for 2abd9cead2 - remove the OnEntityRenamed handling.
0363202a20 actually fixed the particular issue of upgrading a long-wall
to a gate by correctly handling it in UnitAI, so this code, which didn't
work, is no longer needed anyways.

Noticed by running units_demo which seems to have skirmish replacer
placeholders.

This was SVN commit r23711.
2020-05-30 14:26:33 +00:00
2abd9cead2 Enable garrisoning on gates / fix movement of units with visible garrison points
This addresses two related issues:
- Units visibly garrisoned on gates keep the gate open.
- Units visibly garrisoned on entities keep their pathfinding blocker
flags.

Remove the block-movement flag from visibly garrisoned entities.
Keep a list of entities that cannot move and thus should not count
towards gate-opening logic.

Packing logic is kept separate: it is more related to entities having
'alternate forms' with different capabilities than being currently
incapable of moving.

Based on work by temple

Comments by: Freagarach
Tested by: Nescio
Fixes #2679
Fixes #5151

Differential Revision: https://code.wildfiregames.com/D1418
This was SVN commit r23710.
2020-05-30 09:18:33 +00:00
ed2ae1d283 Do not compute capture points for the invalid player on player defeat
Reviewed By: Freagarach
Refs #5745

Differential Revision: https://code.wildfiregames.com/D2748
This was SVN commit r23709.
2020-05-30 06:25:10 +00:00
0363202a20 Trigger an exit-reentry when the target entity of an order is renamed
This lets sunit AI FSM states correctly handle target entity renaming by
processing a message when that happens. The default behaviour is to
leave-reenter the state, which re-runs sanity checks and optionally
picks a better behaviour.

UnitMotion is still not made aware of entity renaming, as the
leave-enter makes it irrelevant in practice. It still may be a good idea
to implement that someday.

Fixes the concern raised at de1bb8a766.
Fixes #5584

Comments by: bb, Freagarach
Reported by: minohaka, bb, Freagarach
Differential Revision: https://code.wildfiregames.com/D2735
This was SVN commit r23708.
2020-05-29 17:00:50 +00:00
131590927f Remove the old, broken colosseum and the version that was made for Delenda Est introduced in 83680b0dee which was completely unused and did not provide actors. They belong to 0 A.D: Empire Besieged.
This was SVN commit r23707.
2020-05-29 14:11:26 +00:00
cdade0af30 Reorganize selection textures by size instead of by shapes. Optimize templates to reduce duplication
Patch by: @Nescio
Differential Revision: https://code.wildfiregames.com/D2503
This was SVN commit r23703.
2020-05-28 18:05:05 +00:00
bb
5cfce692e7 Implement keyDown event
Change HotkeyPress event to be non-repeating (HotkeyDown to replace the
repeating case)
Fix shiftlag
Make toggle hotkeys only respond to the first SDL event.

Many iterations of review by: elexis
Test done by: Imarok
Comments By: vladislav, Stan
Reviewed By: wraitii
Fixes: #5055
Differential Revision: https://code.wildfiregames.com/D1398
This was SVN commit r23701.
2020-05-26 21:47:03 +00:00
d68b3bb098 Do not send Attacked message on entities that have no attack effects receiver
Since 16b452cf91, it is possible for units to be sent "Attacked"
messages even though they cannot be attacked
(e.g. a non-capturable being the target of a Capture attack effect).
These messages are spurious and should not be sent.

Reported By: Angen
Differential Revision: https://code.wildfiregames.com/D2758
This was SVN commit r23698.
2020-05-25 19:14:46 +00:00
28f591ad1e Add slaughter animations to most units.
Discussed briefly with @fatherbushido
Thread:
https://wildfiregames.com/forum/index.php?/topic/27974-slaughter-attack-in-actors-templates/&tab=comments#comment-394851

Differential Revision: https://code.wildfiregames.com/D2708
This was SVN commit r23697.
2020-05-25 10:07:20 +00:00
Angen
9f6d44feb8 Remove some variables from serialisation and update this.animations name to reflect what it actually holds [Formations.js]
Needs ReviewPublic

Differential Revision: https://code.wildfiregames.com/D2707
Comments by: elexis, Stan, wraitii, bb
Remove variables were not needed to be serialised or stored inside
component
Create `variablesToSerialize` to hold list of variables, that need to be
Serialized.
Rename `this.template.Animations` to `this.template.AnimationVariants`
(and anything related) as it does not hold animation names but names of
animation variants what is misleading.
Do not create timer when deserializing as that would cause oos and timer
already exists.
this.Init has to be called from Deserialize because it is not called by
default

This was SVN commit r23694.
2020-05-23 13:03:34 +00:00
Angen
21e3eedd2f Fix computation of clusters and var->let
Compare matrix values against `undefined` instead of relying on `||`
because `||` does not work as intended when distance is `0`.

Differential Revision: https://code.wildfiregames.com/D2761
Fixes: #5761

This was SVN commit r23693.
2020-05-23 12:53:11 +00:00
9034335d22 Correct WallPiece schema help comments
(Fairly sure I've got them right this time.)

Refs: #2944, D900, da35f63279

This was SVN commit r23687.
2020-05-21 19:11:00 +00:00
da35f63279 Add help comments to WallPiece component schema
Also resolves whitespace issue in WallSet component breaking structree
and rmgen
wallbuilder when wall curve pieces are listed separated with newlines (&
tabs)
instead of single spaces.

Requested by: Nescio
Refs: #2944, D900

This was SVN commit r23684.
2020-05-21 04:34:13 +00:00
bb
b8be438472 Invert a case in 585f9e76a5
This was SVN commit r23683.
2020-05-20 19:47:40 +00:00
bb
585f9e76a5 Create unitAI function to match a target's speed.
Patch By: Freagarach
Differential Revision: D2731
This was SVN commit r23682.
2020-05-20 19:39:36 +00:00
c1ddc0c4b9 Internationalise Damage Types and Status Effects using (optional) JSON files.
.json files in simulation/data/template/helpers/damage_types and
status_effects will be used to internationalise damage types and status
effects, as well as share common text.
Fixes the order of damage types being inconsistent.

Add the possibility for i10n xml extractor to set a custom context.

Fixes #4801
Related to D2296.

Featuring work from: Freagarach

Differential Revision: https://code.wildfiregames.com/D2337
This was SVN commit r23681.
2020-05-20 17:26:37 +00:00
441f17cbeb Fix EntitiesNearPoint range query
Use a fixed range delta around the missile hit-location for neighboring
entities to damage.
Use a common query for GAIA and non-GAIA entities.
Do not presume attackable entities have Health.
Fix an issue where gaia entities were returned twice.

This fixes concerns reported by elexis at 38b2e37a61 and by Freagarach
at 16b452cf91.

Differential Revision: https://code.wildfiregames.com/D2738
This was SVN commit r23680.
2020-05-20 17:03:33 +00:00
Angen
d113a94d4d Add missing .(dot) in tooltip in maur_defense_tower.xml
Reported by GunChleoc on transifex.
Introduced in 14bd613288

This was SVN commit r23679.
2020-05-20 16:50:40 +00:00
bb
3f3a699b9e Allow timers to update their interval.
Patch By: Freagarach
Differential Revision: https://code.wildfiregames.com/D2666
This was SVN commit r23678.
2020-05-19 15:42:57 +00:00
c9d9b7be83 macOS build fixes and Jenkins pipelines.
This includes:
- some build fixes
- Jenkins pipelines, in use since January
- a revamped DMG build script, including dmgbuild configuration by Tobbi
and a tweak by norsnor (D2650)

Differential Revision: https://code.wildfiregames.com/D2523
This was SVN commit r23676.
2020-05-17 14:12:53 +00:00
4eac7b6958 Rename the Seleucid citizen pikeman to ϕαλαγγίτης phalangitēs / phalangite
Corrects the name of the Seleucid champion pikeman: “silver shields” is
the name of their corps, they fought as phalangites, thus there is no
need to specify that.

Patch by: @Nescio
Comments by: @wowgetoffyourcellphone
Differential Revision: https://code.wildfiregames.com/D2736
This was SVN commit r23674.
2020-05-16 21:14:52 +00:00
5f38609350 Cleanup Timer.js
Reviewed by: @bb
Comments by: @elexis, @Freagarach, @Polakrity
Differential Revision: https://code.wildfiregames.com/D1776
This was SVN commit r23673.
2020-05-16 17:41:07 +00:00
wackyserious
2f5c4999fe Add missing file reported in: https://wildfiregames.com/forum/index.php?/topic/28160-error-after-revision-23670/
This was SVN commit r23672.
2020-05-16 06:23:50 +00:00
40f77d0f0f Rename civinfo page from "History" to "Civilization Overview"
Patch by: Nescio
Accepted by: s0600204
Differential Revision: https://code.wildfiregames.com/D2722
This was SVN commit r23671.
2020-05-15 21:27:35 +00:00
wackyserious
77f901266b Texture Update: Arab Javelineer and Nabatean Camel Archer
Thread:
https://wildfiregames.com/forum/index.php?/topic/25200-committed-arab-javelineer-and-nabatean-archer-unit-texture/

Reviewed by: Sundiata, Alexandermb and Nescio
This was SVN commit r23670.
2020-05-15 10:19:18 +00:00
wackyserious
d6dcb558ca Texture Update: Seleucid Thorakites (by wowgetoffyourcellphone)
Thread:
https://wildfiregames.com/forum/index.php?/topic/28150-committed-seleucid-thorakites-unit-texture/

Reviewed by: Stan, Lion.kanzen and wackyserious
This was SVN commit r23669.
2020-05-15 09:25:42 +00:00
wackyserious
f864aa5a15 Texture Update: New (and updated) Persian Unit Textures
-Sardian auxillary
-Sogdian archer (basic)
-Hyrcanian cavalry

Thread:
https://wildfiregames.com/forum/index.php?/topic/23634-committed-persian-unit-texture-upgrade/&do=findComment&comment=390782

Feedback by: Nescio
This was SVN commit r23668.
2020-05-15 08:51:22 +00:00
Alexandermb
1491837208 New macedonian aspis.
New roster and cleaner gorgon shield for spartan champion.

Reflective metal for basic athen shields.

This was SVN commit r23666.
2020-05-14 20:13:51 +00:00
bb
b109a127e5 Add XPtrickle test after d392472d44, cleanup promotion test.
Patch By: Freagarach
Differentital Revision: https://code.wildfiregames.com/D2670

This was SVN commit r23665.
2020-05-14 15:07:33 +00:00
Alexandermb
9953e2ca85 Upload hele_crest_hair_06.xml actor wich wasn't uploaded on latest committ and replace hele_crest_thracian_hair_p3.xml actor on hair slot.
This was SVN commit r23664.
2020-05-13 14:01:32 +00:00
Alexandermb
f6a77a9d7d Fix Seleucid thracian helmets crest to new one and delete unused crest's.
This was SVN commit r23663.
2020-05-12 20:40:09 +00:00
Alexandermb
baf5af5a23 Seleucid shields cleaning and new thespian variants.
This was SVN commit r23662.
2020-05-12 19:32:58 +00:00
f2d30ed94d Rename test_resources.js to test_Resources.js for consistency.
Reviewed by: @bb
Differential Revision: https://code.wildfiregames.com/D2730
This was SVN commit r23661.
2020-05-12 17:22:44 +00:00
c08016d950 Optimize GetIdentityClasses in Templates.js
Add unit tests.

Reviewed by: @bb
Differential Revision: https://code.wildfiregames.com/D2404
This was SVN commit r23660.
2020-05-12 15:24:59 +00:00
Alexandermb
b61b21afb7 Spartan Dokana shield.
Resize of a helmet/cart_helmet_01_bronze.png

Fix aspis_athen_m.xml variant name

This was SVN commit r23659.
2020-05-11 19:13:46 +00:00
Alexandermb
de54570b12 Fix error on aspis_back mesh and delete unused actors
This was SVN commit r23658.
2020-05-11 17:14:35 +00:00
d2d2f1ad2c Fix linting errors in UnitMotionFlying.
Reviewed by: @bb
Comments by: @Angen
Differential Revision: https://code.wildfiregames.com/D2457
This was SVN commit r23657.
2020-05-11 08:19:23 +00:00
bb
74459adfb0 Move canheal function from unitAI to heal component.
Add tests for this function

Patch mostly By: Freagarach
Differential Revision: https://code.wildfiregames.com/D2403
This was SVN commit r23654.
2020-05-10 21:54:39 +00:00
20ea4b1329 Enable preSelectedi actions on the minimap
Quickly tested by: Stan
Differential Revision: https://code.wildfiregames.com/D2728
This was SVN commit r23653.
2020-05-10 14:22:39 +00:00
8e916489d6 Allow "orderone"-hotkey for preselected actions.
Patch By: Freagarach
Refs #5750
Differential Revision: https://code.wildfiregames.com/D2729
This was SVN commit r23651.
2020-05-10 11:11:37 +00:00
Alexandermb
70dfac10ff Rename Athen lambda to Athen Alpha Following @wowgetoffyourcellphone suggestion for consistency.
Replace temporary quinquereme shields with carthage aspis while a shield
texture package is done for better performance.

This was SVN commit r23650.
2020-05-09 20:50:13 +00:00
Alexandermb
839af11abc Remove unused carthage shields.
This was SVN commit r23649.
2020-05-09 18:51:15 +00:00
Alexandermb
6a9fd32754 More unused actors cleaning and some corrections following last committ.
This was SVN commit r23648.
2020-05-09 18:47:17 +00:00
Alexandermb
a6401d930b Replace themistocles shields variant to the Owl as it was before (Wrong variant being used, pegasus still waiting for cleaning till the pattern is found)
This was SVN commit r23647.
2020-05-09 18:28:21 +00:00
Alexandermb
b9bb46e006 Shields texture folder cleaning and shield actors being unused due to new ones.
Fixed hand position on infantry pikeman.

Adjusted Shield position in some howdah.

Replaced Shield cloak on an outdated (to be updated) shield

This was SVN commit r23646.
2020-05-09 17:25:56 +00:00
Alexandermb
70cf017fe6 Correction of 4 aspis with the Lambda or "A" letter with a modern representation instead of a historically accurate one.
Commented by @Nescio

This was SVN commit r23645.
2020-05-09 15:45:41 +00:00
d995dcebfa Reduce areas players can't place buildings on due to high inclination/bumpiness on random map Wild Lake.
Reported by OptimusShepard at https://code.wildfiregames.com/D1624

Tested by: FeXoR
This was SVN commit r23642.
2020-05-08 18:14:44 +00:00
5159fe3fa4 Add some new selection textures by Nescio
Refs: https://code.wildfiregames.com/D2503

This was SVN commit r23638.
2020-05-07 18:43:08 +00:00
Angen
093285bf35 Do not stack fleeing orders.
Differential Revision: https://code.wildfiregames.com/D2162
Patch by: Freagarach
Replace current fleeing order with new fleeing order instead adding new
one on top of current fleeing order, what was causing fleeing unit to
move further away as it should.

This was SVN commit r23637.
2020-05-07 17:29:35 +00:00
5fcade9ffd Improved selection shapes by @Nescio.
Refs: https://code.wildfiregames.com/D2503

This was SVN commit r23636.
2020-05-07 17:22:59 +00:00
Angen
d52328f520 Fix typo in 118ebc810c
This was SVN commit r23635.
2020-05-07 17:03:44 +00:00
Angen
118ebc810c Fix Capture points not initialised properly.
Differential Revision: https://code.wildfiregames.com/D2706
Fixes: #5712

Correctly check for timer when regeneration rate is affected by
modifications but not capture points.
Move frequently affected values with modifications called by timer to
prototype.
Recompute all cached values affected by modifications when ownership is
transfered.
Recompute cached values before initialising capture points first time
fixing e16c4c4800.

This was SVN commit r23633.
2020-05-07 16:46:03 +00:00
027659b7f8 Fix a233b04c57 commit unintentional removal in unit_actions.js.
Noticed by: @Freagarach
This was SVN commit r23632.
2020-05-07 16:05:41 +00:00
a233b04c57 New streamlined icons for the GUI. Add a back to work icon.
Fixes #2296
Fixes #4019
Thread:
https://wildfiregames.com/forum/index.php?/topic/27738-experimenting-with-icons/&tab=comments#comment-393054

This was SVN commit r23631.
2020-05-07 15:37:52 +00:00
423b3cbcaa Allow specific garrison points to receive only specific units, for instance catapults on ships, or having both visible garrison points for fortresses and garrisonning elephants.
Reviewed by: @Freagarach,
Comments by: @elexis, @Angen
Fixes #3488

This was SVN commit r23630.
2020-05-07 15:03:18 +00:00
Alexandermb
20c0f986b3 Adjust some animations of the elephant with a blender addon to make it look more smooth.
Fixed unsync on aspis cloak for swordsman due to idle animations being
24 FPS while the shield cloaks was 30 FPS

This was SVN commit r23628.
2020-05-05 19:06:54 +00:00
Alexandermb
fd4e23ce29 Fix incorrect stretching on the aspis cloak while capturing and walking (hoplite)
This was SVN commit r23627.
2020-05-05 14:28:13 +00:00
Alexandermb
08c432d126 Fix missing stuff from the latest committ and delete unused variants.
@Stan Checkref

This was SVN commit r23626.
2020-05-05 13:44:22 +00:00
Alexandermb
f558dbbd6f Aspis update V2
Cleaned some textures using new blender 2.81 Feature Denoiser, while
also replacing material from High poly to low poly baking to Direct
Rendering.

Added some new variants and improved patterns with the help of @Lion and
@Stan.

Both @Stan and i handled the baking of the shields.

Including some animations corrections.

Renamed shields from Basic, Elite, Advanced rank to _## following a
better naming schema on the textures.

*New:

Added aprons (Aspis shield hellenic faction cloaks).

17 new variants, after this committ cleaning of the old aprons will be
done deleting old unuseable dds files and meshes.

Baked using direct render and the new alpha material.

Animated mesh for use with both Hoplite and Swordsman (Relax/Ready
variants)

Let me know if there's any issue.

Will continue adding/cleaning the rest of the aspis in the meantime.

This was SVN commit r23623.
2020-05-05 03:02:16 +00:00
7c218ab079 New gaul wonder, pattern by @GunChleoc & Lion.Kanzen, statue by @Basshunter, template adjustements by @Nescio, historical resources by @Genava55
This was SVN commit r23621.
2020-05-03 19:35:50 +00:00
Angen
b7db808b1f Disable attack as formation for anti_cavalry.xml following ac3c02b4d4 fixing 06e01ef944
Range check for members attacking as formation is broken. For more
details see
D2709 04aba0e41a and #4951.

This was SVN commit r23620.
2020-05-03 12:05:52 +00:00
9306d84905 Show correct action cursor over minimap
Refs: #1847
Differential Revision: https://code.wildfiregames.com/D2718
This was SVN commit r23619.
2020-05-03 10:32:33 +00:00
3d306f4760 Minimap → MiniMap and consistent return
Previous version reviewed by: Nescio
Differential Revision: https://code.wildfiregames.com/D2719
This was SVN commit r23616.
2020-05-02 21:04:19 +00:00
bb
3e315c0ef0 Tweak 2 heights missed in 934025b2fb
This was SVN commit r23615.
2020-05-02 17:02:46 +00:00
bb
8158fe7b23 Show 2 decimals for gather rates in gui.
Patch By: Nescio
Differential Revision: https://code.wildfiregames.com/D2594
Extremely far away ref: #4099

This was SVN commit r23614.
2020-05-01 16:39:48 +00:00
Angen
23111ab427 Actually do not use sorting order for forced columnar formation
f19a8d6b41 moved sorting classes to template and according to lines 561
and 574 in that commit, it was intended to not use sorting in case of
forced columnar formation.

Fixing oversight at lines 660 and 662 in that commit by removing this.
word so cavalry will be put to the front always.

Noticed in D2707 after @elexis mentioned behaviour change on unused
variable.

Differential Revision: https://code.wildfiregames.com/D2711
This was SVN commit r23613.
2020-05-01 09:44:14 +00:00
bb
115215c627 Remove useless food.meat from some animal templates, since the parent already has it.
Patch By: Nescio
Differential Revision: D2714
This was SVN commit r23610.
2020-04-29 21:42:38 +00:00
bb
934025b2fb Resize walls.
Align footprints/obstruction/visual garrison spots/statusbar height with
the visual actors in use.
Gate doors got a little wider (since their visual actors allows that),
so this might help pathing a little.

Patch By: Nescio
Differential Revision: https://code.wildfiregames.com/D2502
This was SVN commit r23609.
2020-04-29 21:21:49 +00:00
bb
7357656df2 Anchor correct templates.
Reduce the number of Position/Anchor entries by setting "pitch" in
template_unit instead
pitch Elephants, traders and some cows
pitch-roll catafalques

The solution is not ideal for catafalques, traders and chariots, since
they consist of different parts that want different values. Probably
needs subunits to fix.

Patch By: Nescio
Differential Revision: D2705
This was SVN commit r23607.
2020-04-28 18:35:40 +00:00
e0b183a54a Fixes FXAA on some platforms with broken GL drivers.
Replaces texture2DLod (deprecated in 1.30, but available in 1.20) by
textureLod and updates the shader version to 1.30. texture2DLod was
added in 113b1c49b9 as the part of FXAA.

Tested By: Imarok, OptimusShepard
Differential Revision: https://code.wildfiregames.com/D2699
This was SVN commit r23606.
2020-04-27 00:05:27 +00:00
Alexandermb
bc4373b738 Scale up hippopotamus
This was SVN commit r23605.
2020-04-26 13:56:23 +00:00
789117ef17 Fix the hippopotamus template in 1ca8c78014. For some reason I forgot to apply it on mine.
Patch by: @Nescio
This was SVN commit r23604.
2020-04-26 06:45:21 +00:00
1ca8c78014 Hippopotamus model by @Micket, animations by @Alexandermb, textures by @Stan based on CC-BY-SA textures, see credits and thread for links.
Fixes: #1969

Comments by: @Nescio, @wowgetoffyourcellphone.
This was SVN commit r23603.
2020-04-25 21:34:24 +00:00
Angen
98d3b6cca0 Cache keys of g_UnitActions sorted instead of computing it every tick.
Sort keys from g_UnitActions once and store in global variable saving
around 40 microseconds in every tick and mouse event required to
determine action of unit.

Differential Revision: https://code.wildfiregames.com/D2637
Patch by: Freagarach
Reviewed by: Angen
Comments by: elexis
This was SVN commit r23602.
2020-04-25 18:07:53 +00:00
bb
98098c821c Make units really remain if they have the remain death type. Let hunt have corpse deathtype, which creates the resource.
Patch By: Freagarach
Differential Revision: https://code.wildfiregames.com/D2656
This was SVN commit r23601.
2020-04-25 16:41:05 +00:00
Alexandermb
9686ec1a33 Elephant new attacking melee animations And Infant elephant animations.
Adjusted mesh of the elephants to match the new howdwah and cushion
variants
Moved howdah and renamed properly to keep the props in a single folder.
Added new turret pikeman animations while attacking melee.
Added Infant elephant animations.
Replaced Hannibal turret mesh with a new howdah with same shields.

This was SVN commit r23597.
2020-04-22 22:29:13 +00:00
Angen
4eda561d34 [PetraAI] - Only try to subtract resource gift from "waitingfortribute" if gift contains required resource.
Check for existance of requested type in event message, since 6814a983e1
stoped sending resource codes with 0 tribute and that was not even
guaranteed to get before through another options how to trigger tribute
event.

Differential Revision: https://code.wildfiregames.com/D2703
Patch by: Freagarach
Reviewed by: Angen
Comments by: elexis
This was SVN commit r23596.
2020-04-22 18:19:38 +00:00
Angen
173d05588a Fix more cape attack animations
Use Archer-Fem for female variants because there were two Archer-Relax
variants with different animation sets introduced in d3cc5523ae.
Fix cape attack animation for classic archer variant following
676bc42647, introduced by not updating in 61b8a32ad5.

Differential Revision: https://code.wildfiregames.com/D2701
Reviewed by: Stan
This was SVN commit r23595.
2020-04-22 18:02:17 +00:00
ccc34ecfb1 Improve the gaul tile normal map.
This was SVN commit r23593.
2020-04-21 21:51:37 +00:00
0ad79096bd Add a C++ interface for CCmpAttack.
This allows Atlas not to rely on eval() to get access to the attack
component.
Add a quick test for the added method.
This fixes the animation speed matching that of the actor instead of the
template.
Remove some dead code after af2abb8cbf
Fixes: #5129
Reviewed by: @Angen
Comments by: @elexis
Differential Revision: https://code.wildfiregames.com/D2464
This was SVN commit r23592.
2020-04-21 21:44:05 +00:00
2c1f1ebe31 Fix a typo in variants that caused broken animation in the actor viewer with the champion iberian cavalry (The unit would not fallback to idle)
Introduced by 61b8a32ad5

Thread:
https://wildfiregames.com/forum/index.php?/topic/27969-iberian-champion-cavalry-actor-viewer-atlas/&tab=comments#comment-394522

This was SVN commit r23591.
2020-04-21 12:42:13 +00:00
Angen
3ad1e47e7e Fix typo in startingStrategy.js
This was SVN commit r23588.
2020-04-19 12:07:26 +00:00
Angen
c47496cf18 Cleanup ResearchTechnology function
Remove unused variable since e16c4c4800 and call for ranged manager.
Transform comment to javadoc.
var -> let

Differential Revision: https://code.wildfiregames.com/D2631
Patch by: Freagarach
Reviewed by: Angen
This was SVN commit r23587.
2020-04-15 21:26:25 +00:00
676bc42647 Fix issues with capes reported by @wowgetoffyourcellphone and @hidan
This was SVN commit r23586.
2020-04-15 11:57:04 +00:00
Angen
3d5b766687 Syntax cleanup of GuiInterface and test.
Remove redundant comments.
var -> let
quote object properties
fix intendation
fix some spacing
use javadoc for function description
remove one line brackets

Differential Revision: https://code.wildfiregames.com/D2069
Patch by: Freagarach
Reviewed by: Angen
Comments by: elexis, Nescio, Stan
This was SVN commit r23584.
2020-04-13 07:47:55 +00:00
Angen
ff74a26865 Fix handling events with undefined message in _petrabot Serialization [Petra]
Check for undefined messages when Serializing events.

Differential Revision: https://code.wildfiregames.com/D2695
Reported by: DangerousI (
https://wildfiregames.com/forum/index.php?/topic/24727-javascript-error-petrabot-typeerror/)
Reviewed by: Freagarach
Tested by: gameboy
Fixes: #5282

This was SVN commit r23583.
2020-04-12 13:26:11 +00:00
Angen
46a9160d12 Use formation controller as target when formation reaches another formation
When a formation that is given the order to attack another formation is
already in range the formation controller of the target is passed as the
target for its members.

Use same behaviour when formation walks into another formation`s range.

Differential Revision: https://code.wildfiregames.com/D2692
Patch by: Freagarach
Reviewed by: Angen
This was SVN commit r23582.
2020-04-12 10:37:41 +00:00
Angen
448592b3c5 Colorize username in chat when user changes ready status or leaves match
Remove regression after 34138a7764.
Make ready status message bold as any other system messages are bold.

Differential Revision: https://code.wildfiregames.com/D2663
Reviewed by: elexis
Comments by: nani, Freagarach
This was SVN commit r23581.
2020-04-12 10:19:20 +00:00
Angen
9a1052a93c [gameplay-a24] Structure selection groups
This patch sets selection groups for all shared structures in the
generic parent templates of structures.

Clicking behaviour:
single click: select the clicked structure
double click: select all structures of the same selection group within
view that are owned by this player (e.g. all owned barracks across
civilisations)
triple click: select all structures of exactly the same file within view
that are owned by this player (e. g. all owned barracks of the same
civilisation)

Differential Revision: https://code.wildfiregames.com/D2675
Patch by: Nescio
Reviewed by: ValihrAnt
This was SVN commit r23580.
2020-04-12 10:09:03 +00:00
Angen
ded0598950 [gameplay-a24] give worker elephants an aura
Remove builder component from worker elephant as it was not able to
place any foundation.
Add aura, that speeds up builder rate for all workers by 25% inside 15
range.

Differential Revision: https://code.wildfiregames.com/D2511
Patch by: Nescio
Reviewed by: Feldfeld
Comments by: elexis, Stan
This was SVN commit r23579.
2020-04-12 09:58:48 +00:00
e76742bb77 Improved icons by @wowgetoffyourcellphone.
Remove trailing zeroes.
Rename fauna_bear to fauna_bear_brown for consistency.
Delete a unused icon.

This was SVN commit r23578.
2020-04-11 23:34:37 +00:00
3d29f9ab66 Add missing foundation for the mausoleum.xml introduced in 2bf78288f4:
This was SVN commit r23577.
2020-04-11 23:03:10 +00:00
f21bf3565e Fix incorrect animation for viridomarus
Discussed with: @Alexandermb

This was SVN commit r23576.
2020-04-11 16:32:48 +00:00
2bf78288f4 Add the mausoleum at Halicarnassus to the game as an eyecandy building.
Thread:
https://wildfiregames.com/forum/index.php?/topic/20820-macedonian-wonder/page/2/
Feedback by: @wowgetoffyourcellphone, @Nescio
This was SVN commit r23575.
2020-04-11 13:34:15 +00:00
Alexandermb
693a2dcd90 Adjust the UV mapping of the "elephant_african_forest.dae" Mesh
Due to recent Elephant update for having the blend file of the whole
elephants and have the proper workspace for animating riders it was
updated in a recent commit. However the african forest elephant mesh
wasn't properly adapting to the new UV mapping since it wasn't properly
alligned.

Thread:
https://wildfiregames.com/forum/index.php?/topic/27906-elephant-uv-mapping/&tab=comments#comment-393918

This was SVN commit r23574.
2020-04-10 15:39:49 +00:00
ee033b6268 Rename the Carthaginian “mausoleum” to “cenotaph”.
Patch by: @Nescio
Differential Revision: https://code.wildfiregames.com/D2694
This was SVN commit r23572.
2020-04-08 13:45:58 +00:00
Angen
8354d511dc Add formation CheckTarget-/MoveToTargetRange-functions.
Use `CheckFormationTargetAttackRange` instead `CheckTargetAttackRange`
for formations to not use that ugly workaround with passing `target,
target`.

Use `MoveFormationToTargetAttackRange` to achieve better looking
behaviour when moving formation to target range.

Differential Revision: https://code.wildfiregames.com/D2015
Patch by: Freagarach
Reviewed by: Angen
This was SVN commit r23571.
2020-04-07 17:35:25 +00:00
Angen
3bcc5ab0ab Selection groups for support units
Merge selection group for women.
Merge selection group for healers.
Add selection group for merchant ship and fishing ship.
Add selection group for trader and slave as well.

Differential Revision: https://code.wildfiregames.com/D2677
Patch by: Nescio
Reviewed by: Freagarach
This was SVN commit r23570.
2020-04-07 17:28:10 +00:00
Angen
36ea0b14cd React to target death properly when chasing
Differential Revision: https://code.wildfiregames.com/D2517
Reviewed by: Freagarach
Comments by: elexis, Stan
Fixes: #5610 #5656

Introduce likelyFailure check in the movementupdate for chasing state
missing since 32e8ed51aa.
Use new order and substate for Chasing to get into the wanted range and
avoid that way issue with running - walking tracking or animation
variants.

Fixing issue when attacker would not react to the death of the target
while chasing it in stances where results for abandoning chasing are
always false and also do not rely on timer ending chasing for the rest
of stances.

This was SVN commit r23566.
2020-04-03 18:08:45 +00:00
Angen
c968154934 Explicitly return "undefined" when requesting Splash data in Attack.js
Compared to other occurrences in code base, it makes sense to return
undefined rather then just empty return.

Differential Revision: https://code.wildfiregames.com/D2665
Patch by: Freagarach
This was SVN commit r23563.
2020-04-01 18:17:48 +00:00
32a105d6f8 Update cppformat from v0.11.0 to v1.1.0, fixes #5646, refs #3190.
Use the opportunity to rename the lib from cppformat to fmt, refs #4148.

Patch By: adrian
Rebased By: s0600204
Differential Revision: https://code.wildfiregames.com/D2613
This was SVN commit r23562.
2020-04-01 07:29:33 +00:00
5a4a935e3b Fix missing <group> tag in 36f9648ba7
Noticed by: @Angen
This was SVN commit r23560.
2020-03-27 20:32:00 +00:00
Angen
54f9848ad7 [gameplay-a24] Standardize structure loot to 20%
Structure loot is standardized to 20% of cost.
Loot is provided from resources that were required for constructing.
Exception is field, which costs wood but grants food as loot.
Removed not needed elements.
Related D2605

Differential Revision: https://code.wildfiregames.com/D2659
Patch by: Nescio
Reviewed by: ValihrAnt
This was SVN commit r23559.
2020-03-27 20:14:22 +00:00
36f9648ba7 Remove deprecated variants from Brit structures actors.
Patch by: @Nescio
Differential Revision: https://code.wildfiregames.com/D2633
This was SVN commit r23558.
2020-03-27 20:03:36 +00:00
Angen
d8ddfd73b4 Remove unnecessary arguments in Pack.js
Remove argument passed to timer, which was not used.
Remove 4-th argument passed into SelectAnimation, that takes only 3
arguments.

Differential Revision: https://code.wildfiregames.com/D2679
Patch by: Freagarach
This was SVN commit r23557.
2020-03-27 20:00:39 +00:00
Angen
6cfb4e5df8 Standardizes formating style of aura json files
Use tabs for intendation.
Remove trailing zeroes.
Alphabetize modifications, except for damage types and resources, which
have a fixed order (hack, pierce, crush and food, wood, stone, metal,
respectively).

Differential Revision: https://code.wildfiregames.com/D2000
Patch by: Nescio
Reviewed by: Freagarach
Comments by: elexis, Stan
This was SVN commit r23556.
2020-03-27 19:54:53 +00:00
5063adb30f Move Persian cavalry to the persian folder.
Use the Persian cavalry for pers as well (Currently only used by
Seleucids)
Move the chariot to an unused unit
Fix the specicif names,
Move the icon from sele_ to pers_

Patch by: @Nescio
Differential Revision: https://code.wildfiregames.com/D2530
This was SVN commit r23553.
2020-03-27 08:29:39 +00:00
7d6238692c Move iberian cavalry swordsman actors to the iberian folder.
Patch by: @Nescio
Accepted by: @Alexandermb, @Stan
Differential Revision:  https://code.wildfiregames.com/D2636
This was SVN commit r23552.
2020-03-25 23:05:50 +00:00
Alexandermb
6c0f2ac579 Adjust helmet mesh to avoid clipping and reduce unnecesary vertex.
Added double face's on cheecks due to helmet shape for avoid
transparency.

This was SVN commit r23551.
2020-03-25 19:37:40 +00:00
Alexandermb
37c59909dc Fix some issues mentioned by @Nescio in the next thread:
https://wildfiregames.com/forum/index.php?/topic/27756-unit-actor-mistakes/&tab=comments#comment-393370

This was SVN commit r23550.
2020-03-25 19:36:52 +00:00
4757d0bbe0 Use chariot unit instead of foot soldier for Amanirenas
Patch by: @Nescio
Reviewed by: @Stockfish0ad, ValihrAnt
Suggested by: @Sundiata
Thread:
https://wildfiregames.com/forum/index.php?/topic/21602-the-kingdom-of-kush-a-proper-introduction-illustrated/page/37/&tab=comments#comment-392079

Differential Revision: https://code.wildfiregames.com/D2622
This was SVN commit r23549.
2020-03-25 15:50:54 +00:00
2725279bf9 Display Civic Center before houses
Patch by: @Nescio
Reviewed by: @ValihrAnt, @Stockfish0ad
Differential Revision: https://code.wildfiregames.com/D2580
This was SVN commit r23548.
2020-03-25 11:42:45 +00:00
Angen
c13faea0f3 [gameplay-a24] Reduce Blemmye and Nuba camp building time
Reduce buildtime of kush_blemmye_camp and kush_nuba_village to 150.
Remove not needed BuildTime element from cart_embassy.

Differential Revision: https://code.wildfiregames.com/D1863
Patch by: Nescio
Reviewed by: Feldfeld
This was SVN commit r23547.
2020-03-23 18:49:15 +00:00
Alexandermb
99b2f4ebfd Fix of trader, catafalque and packed siege engines horses being unsync with horse assets.
This was SVN commit r23545.
2020-03-22 21:25:31 +00:00
5a9fd3e7eb Enable archery tradition for kush. It is historically correct and will buff Kushites a little bit.
Patch by: @Nescio
Reviewed by: @Feldfeld
Differential Revision: https://code.wildfiregames.com/D2022
This was SVN commit r23544.
2020-03-22 09:56:54 +00:00
Angen
04660d594b [gameplay-a24] Balance ranged infantry citizen soldiers
Buffs archers (+0.7 Pierce)
Nerfs slingers. (-0.3 Pierce,-0.1 Crush,+0.5 Spread)

Differential Revision: https://code.wildfiregames.com/D2612
Patch by: ValihrAnt
Reviewed by: elexis
Comments by: badosu, Feldfeld
This was SVN commit r23543.
2020-03-21 22:03:10 +00:00
7aa6cd4215 New bear model with animations.
Model by @Stan and @Alexandermb
Animations by @Alexandermb
Textures by @Stan

Thread:
https://wildfiregames.com/forum/index.php?/topic/23595-task-bear/

Fixes #1981

This was SVN commit r23542.
2020-03-21 17:00:31 +00:00
Angen
d392472d44 Experience trickle
Implement support for experience trickle. Provide 1 experience trickle
when unit is garrisoned in barracks.

Differential Revision: https://code.wildfiregames.com/D1245
Patch by: @temple
Reviewed by: @wraitii
Comments by: mimo, elexis, Freagarach, Stan
This was SVN commit r23541.
2020-03-21 15:54:45 +00:00
Angen
f5589fe1a9 Check for UnitMotion component [UnitAI]
This was SVN commit r23540.
2020-03-20 20:12:09 +00:00
c351a48351 Fix cape going out of sync when approaching resources.
This was SVN commit r23538.
2020-03-18 15:29:39 +00:00
b9e06fc449 Remove the obelisk as it is not historically accurate.
Patch by: @Nescio

Differential Revision: https://code.wildfiregames.com/D2653
This was SVN commit r23537.
2020-03-18 10:36:32 +00:00
Angen
ba8acb1bf2 Remove duplication in AttackPlan [Petra]
Move duplicating code to functions.
Cleaner, nicer, easier to extend.

Differential Revision: https://code.wildfiregames.com/D2655
This was SVN commit r23536.
2020-03-17 19:30:15 +00:00
b6cb89bf8c Fix incorrect color tone for gather-meat icon
This was SVN commit r23535.
2020-03-17 18:47:55 +00:00
d8511dd7a0 Delete unused GUI textures.
This was SVN commit r23534.
2020-03-17 18:11:01 +00:00