Commit Graph

18098 Commits

Author SHA1 Message Date
elexis bc2c9c1939 JS GUI session cleanup.
Load technologies through the globalscript from D1108 / c90d72deb5
rather than querying the simulation for that.
Same can be done for auras afterwards.

This was SVN commit r20756.
2018-01-02 21:50:41 +00:00
Stan 56f4e13c9d Fix previous commit (Whiteline in XML)
Move headband to the new folder, and fix its position on the head
to better fit new heads.

This was SVN commit r20755.
2018-01-02 18:26:44 +00:00
Stan 4b0ee4dd86 New variant for the kausia cap:
Discussion here :
https://wildfiregames.com/forum/index.php?/topic/21084-committed-kausia-cap/
Discussion about other units that should get it here :
https://wildfiregames.com/forum/index.php?/topic/23634-task-new-persian-equipment/&tab=comments#comment-345401
Remove a cape frome a unit.

This was SVN commit r20754.
2018-01-02 18:16:19 +00:00
elexis c0dd4795ca Fix oversight in 83ee8cd62e / D827.
This was SVN commit r20753.
2018-01-02 17:49:20 +00:00
elexis efabf76364 Small JS GUI settings simplification using 58b2e2baf4 / D1107, refs D1189.
This was SVN commit r20752.
2018-01-02 17:10:04 +00:00
fabio 75eb8a8004 Add 8-bit easteregg music track.
Music by Omri Lahav.

Coded with oggenc -q -2 (32kbps) using aoTuV Beta6.03 from the wav in
[[SVN:19890]].

Fixes: #4677
Differential Revision: https://code.wildfiregames.com/D1097
This was SVN commit r20751.
2018-01-02 15:27:06 +00:00
s0600204 f6b5488a24 Move unravelPhases function from structree to globalscripts for use in AI init.
Reviewed By: mimo
Differential Revision: https://code.wildfiregames.com/D1183
This was SVN commit r20750.
2018-01-02 06:38:09 +00:00
s0600204 00b05fd9f7 Use phase techs to determine phase order in structure tree.
(Instead of non-phase techs which is what it was using up to now.)


Reviewed/accepted by: mimo
Changes agreed (but not tested/formally proven) by: elexis

Differential Revision: https://code.wildfiregames.com/D1181
This was SVN commit r20749.
2018-01-02 06:23:33 +00:00
s0600204 f4bbf9be5f Fix sound inheritance from template_unit_hero.xml
Patch by: Grugnas
Reviewed by: s0600204
Discussed with: Stan, fatherbushido

Differential Revision: https://code.wildfiregames.com/D747
Refs: #4678

This was SVN commit r20748.
2018-01-02 05:43:46 +00:00
Stan 95e48e64aa New illyrian helmet and textures.
Discussion here:
​​https://wildfiregames.com/forum/index.php?/topic/21546-enhancement-macedonian-helmets/&page=2
Reviewed by LordGood?
Helmet 03/12
Remove now unused meshes as new ones are basically higher resolution
versions.
Update actors accordingly to make use of them.

This was SVN commit r20747.
2018-01-01 18:33:10 +00:00
bb c9295a0f59 Nuke missleading non-existing spearman/sword(s)man classname references.
Reviewed By: wraitii
Differential Revision: https://code.wildfiregames.com/D1173
This was SVN commit r20746.
2018-01-01 15:06:52 +00:00
bb 938a95b060 Fix a missed icon move in c67bd74008
Spotted By: Lion Kanzen
Patch By: Nescio
This was SVN commit r20745.
2018-01-01 14:59:55 +00:00
Stan 8866cd3f99 Improved texture for hele archers
Discussion here:
https://wildfiregames.com/forum/index.php?/topic/21546-enhancement-macedonian-helmets/&page=2
Approved by Enrique before he left

This was SVN commit r20744.
2018-01-01 12:11:25 +00:00
Stan 48b574c459 Change frequency of the variant files to allow a more uniform distribution of helmets,
and fix a bug due to inheritance that would make them appear more than
they should
because the frequency tag was not correctly overrode by the files using
them as they
were before and not after the variant file.

Patch by wowgetoffyourcellphone

Discussion here
:https://wildfiregames.com/forum/index.php?/topic/21546-enhancement-macedonian-helmets/&page=3

This was SVN commit r20743.
2018-01-01 11:25:25 +00:00
Gallaecio 4842b2158b [i18n] Normalized female citizen references, updated POT and PO files.
This was SVN commit r20742.
2017-12-31 21:30:27 +00:00
Stan e18ac19e58 New chalcidean helmet and textures.
Discussion here:
​https://wildfiregames.com/forum/index.php?/topic/21546-enhancement-macedonian-helmets/&page=2
Reviewed by LordGood
Helmet 03/12

Remove now unused meshes as new ones are basically higher resolution
versions.
Update actors accordingly to make use of them.

This was SVN commit r20741.
2017-12-31 17:44:37 +00:00
Stan 6f5abb3821 Use Lordgood's texture as a variant for the cataphract's mask.
This was SVN commit r20740.
2017-12-31 17:14:52 +00:00
elexis 15eedd2461 Use a helper variable and fix some whitespace in shaders as recommended by Vladislav in 2c8b78ddaa.
Differential Revision: https://code.wildfiregames.com/D1144
Comments By: wraitii
This was SVN commit r20738.
2017-12-31 01:34:22 +00:00
elexis c90d72deb5 Replace DataTemplateManager simulation component with a globalscript, refs #4868.
Removes the serialization of JSON files, shrinking savegame files and
rejoin states sent across the network, refs #3834, #4239, #3909,
f24523dc8f.
Removes the AI C++ code to read JSON files from e33d4a52e9 since the AI
can now use the globalscript.
Allows the AI to read Aura templates and removal of GUIInterface code to
improve performance.
Serialization of the JSON objects in other simulation components was
removed in 9c0e37f2c0 / D1109, a6f14f5631 / D1130.

Serialization removal planned by sanderd17
AI part proofread by mimo
Simulation part proofread by bb
Discussed with Itms on irc

Differential Revision: https://code.wildfiregames.com/D1108
This was SVN commit r20737.
2017-12-31 01:02:21 +00:00
elexis 1162eefdc2 Non-military unit selection filter.
Differential Revision: https://code.wildfiregames.com/D1056
Patch By: fpre / ffffffff
Reviewed By: temple
This was SVN commit r20736.
2017-12-30 18:20:43 +00:00
elexis d18374bffe Fix ugly font rendering using GL linear interpolation if the UI scale was changed.
Patch By: Dariost
Refs D332

This was SVN commit r20735.
2017-12-30 17:56:07 +00:00
elexis a62690c65a Add cheat code to play arbitrary music playlists, by default the 8-bit retro easteregg track from [[SVN:19890]] (yet to be committed to the public mod).
Fixes #4677.
Differential Revision: https://code.wildfiregames.com/D1097
Patch By: PingvinBetyar
This was SVN commit r20734.
2017-12-30 17:42:43 +00:00
elexis 669db62c5f Allow cheats to pass negative numeric arguments and default parameters for cheat arguments that are strings, refs D1097.
This was SVN commit r20733.
2017-12-30 17:38:01 +00:00
elexis 0c70fb3036 Deobfuscate, deduplicate and fix Corsica vs. Sardinia and Pyrenean Sierra, refs 9016b8d866, a796800bb1.
Use vector algebra instead of adding one equation for each dimension
everywhere, refs #4845.
Add common createPassage terrain helper function to unify
straightPassageMaker and the modified copy PassMaker, refs #4805.

On Corsica vs Sardinia:

Comfort island shaping by
not hardcoding and not hiding magic numbers behind magic equations,
not specifying areas and deriving the radius from the disk area,
but always refer to newly introduced radius globals and compute the area
using diskArea from 1a896f531a.

Don't give some players 10% more map area and place all circular island
parts at the same center location in the map corner.
Don't place trees and mines into passages.
Simplify and order numbers, increase fail fractions from 4 to 10.
Use mapCenter getter from refs #4854.

This was SVN commit r20732.
2017-12-30 16:17:54 +00:00
Stan 279cad48e7 Use helmet prop points for helmets
Use the new head mesh for the new units
Found using : props/units/heads/(?!new/).*" attachpoint="head"

This was SVN commit r20731.
2017-12-30 15:58:53 +00:00
Stan 615403594b Following the inclusion of new horses units now use smaller heads.
Adapt the cataphract helmet to the new heads and move its position to
the helmet prop point
Move it to the new helmet folder

This was SVN commit r20730.
2017-12-30 15:31:55 +00:00
elexis 5500a96751 Delete Savegame format version, refs 7064565ff6.
It is unneeded because we won't add backwards compatibility for previous
formats and
because the engine version check from 94302a4149 is sufficient and more
accurate in testing compatibility of savegames of different releases.
The simpler code allows unifying the savegame version check with the
check used by the replay menu (to be used in multiplayer gamesetups).

Differential Revision: https://code.wildfiregames.com/D1131
Reviewed By: wraitii
Agreed with: Imarok
Discussed with: Philip

This was SVN commit r20729.
2017-12-30 14:54:13 +00:00
Stan 23ece1d627 New pilos helmet and textures.
Discussion here:
https://wildfiregames.com/forum/index.php?/topic/21546-enhancement-macedonian-helmets/&page=2

Move the affected helmets files to the new subdirectory, update all
concerned actors,
Create variant files for the pilos helmet, as a Poc for future commits
and also for the game.
Create a variant folder for the helmets files

This was SVN commit r20728.
2017-12-30 14:24:51 +00:00
Stan 512e8a269c Update the rnc file and compile it with trang to allow variant inheritance. This already worked, without the game even complaining, but the validator.pl would complained (as it should have).
This will be useful to avoid helmet code duplication, see next commit.

This was SVN commit r20727.
2017-12-30 14:21:28 +00:00
elexis b8216a9164 Let Atlas provide a default AI seed.
This addresses the Simulation2 warning about a gamesetup mechanism not
having decided explicitly about the RNG.

Differential Revision: https://code.wildfiregames.com/D1187
Reviewed By: mimo
Refs #4917, 7e05d7edc9 / D1178

This was SVN commit r20726.
2017-12-30 14:02:09 +00:00
mimo 4055c564e9 add a hotkey to toggle tutorial panel + add hotkey parameters to tutorial messages
Discussed with elexis

Differential Revision: https://code.wildfiregames.com/D1184
This was SVN commit r20725.
2017-12-30 13:31:14 +00:00
Stan d0fc111e54 Remove a useless actor now that new horses are committed
Add two dogs as fauna, in case people want to use them for scenarios

This was SVN commit r20724.
2017-12-29 16:36:01 +00:00
elexis fd08061ab6 Allow Vectors to be rounded.
For instance useful when working with location vectors on arrays, such
as terrain generation in random map scripts, refs #4845.

This was SVN commit r20723.
2017-12-29 15:37:16 +00:00
mimo 05f0fadd16 petra: remove a useless break
This was SVN commit r20722.
2017-12-29 14:37:53 +00:00
Stan 094d408fa4 Set some units to the relax stance so they don't look weird,
Use the new spear for greeks

This was SVN commit r20720.
2017-12-29 06:22:33 +00:00
Stan 0b3c1f9e83 Add a missing '/' fixes the previous commits
This was SVN commit r20719.
2017-12-29 06:02:58 +00:00
Stan 8f38f163e0 Fix a missing variant to Leonidas
This was SVN commit r20718.
2017-12-29 02:02:52 +00:00
Stan cacd13879b New horses commit part 08
Big cleanup, remove all the now unused files and some more.
https://wildfiregames.com/forum/index.php?/topic/23012-horse-animations-actors-update/&page=10&tab=comments&failedReply=1

This was SVN commit r20717.
2017-12-29 02:02:17 +00:00
Stan 881798caf1 New horses commit part 07
Add elephant files
https://wildfiregames.com/forum/index.php?/topic/23012-horse-animations-actors-update/&page=10&tab=comments&failedReply=1

This was SVN commit r20716.
2017-12-29 02:00:39 +00:00
Stan 9c51b8a337 New horses commit part 06
Add new horses and update the actors accordingly.
https://wildfiregames.com/forum/index.php?/topic/23012-horse-animations-actors-update/&page=10&tab=comments&failedReply=1

This was SVN commit r20715.
2017-12-29 01:58:56 +00:00
Stan 9fa5b52218 New horses commit part 05
Missing pony file
And new capes
https://wildfiregames.com/forum/index.php?/topic/23012-horse-animations-actors-update/&page=10&tab=comments&failedReply=1

This was SVN commit r20714.
2017-12-29 01:39:06 +00:00
Stan 216ac6632b New horses commit part 03
Move the animations of the camel cavalry to a variant file for
easier edition if/when they are replaced
https://wildfiregames.com/forum/index.php?/topic/23012-horse-animations-actors-update/&page=10&tab=comments&failedReply=1

This was SVN commit r20712.
2017-12-29 01:34:27 +00:00
Stan 808ff546d8 New horses commit part 02
New pony meshes by AlexanderMb
Discussion here
https://wildfiregames.com/forum/index.php?/topic/23012-horse-animations-actors-update/&page=10&tab=comments&failedReply=1

This was SVN commit r20711.
2017-12-29 01:31:19 +00:00
Stan ea1a4b5d7d New horses commit part 01
New seleucid chariot, using the new horses
Accepted by Enrique
Discussed here
https://wildfiregames.com/forum/index.php?/topic/21393-task-seleucid-champion-chariot/&page=2&tab=comments#comment-343097

This was SVN commit r20710.
2017-12-29 01:24:35 +00:00
elexis 1b641789b3 Add painter definition in Ardennes Forest missing in 9272153ee7.
This was SVN commit r20709.
2017-12-28 20:39:00 +00:00
bb e2fdad61e0 Let scrolling up go a tab up instead of down, fixes 8ae67ed15f/9ae7c4d810
Reported By: elexis
This was SVN commit r20708.
2017-12-28 11:40:43 +00:00
elexis 774a049cdd Vector cleanup.
Improve some of the comments mentioned by fatherbushido in b3dbcc457b.
Rename avg to average and test it.
Inline constructor defaults.
Don't use array functions nor for...of loops here to maximize the
performance, refs c751500907.

This was SVN commit r20706.
2017-12-28 01:54:56 +00:00
elexis 5e19b88f89 Display AI behavior, difficulty and name in the tooltip in the diplomacy and summary screen.
Unify the string parsing in D746 / D1159.

Differential Revision: https://code.wildfiregames.com/D1145
This was SVN commit r20705.
2017-12-28 01:31:48 +00:00
elexis ce1cac92f6 Pyrenean Sierra terrain painting cleanup, refs a796800bb1.
Remove redundant heightchecking conditions, unify place calls and use
ternaries, equal to 6273d111fe, refs #4805.

This was SVN commit r20704.
2017-12-28 01:21:33 +00:00
elexis 6c34e27334 Add rmgen playerPlacementCustomAngle helper function for random maps that are gulfs or place players on a circle with a non-uniform distribution.
Remove ocean duplication on Pyrenean Sierra, fix sign of the removed
lololo variable and simplify the player angle equation, refs #4805,
a796800bb1.
Use mapCenter getter from #4854 on Gulf Of Bothnia, Pyrenean Sierra and
the Unknown gulf variant.

This was SVN commit r20703.
2017-12-28 00:39:54 +00:00