Commit Graph

18043 Commits

Author SHA1 Message Date
elexis 3cfb8730a8 Add helper function to apply arbitrary GUI tags (such as font and color).
This avoids the caller having to duplicate the GUI tag format over and
over again (equal to 54904b1750),
detects syntax errors at compile time and
applies the separation-of-concerns pattern (callers only have to specify
the tag value agnosticly of the tag format).

Differential Revision: https://code.wildfiregames.com/D1167
Patch By: fpre / ffffffff
Comments By: bb
Refs e1b13dead9

This was SVN commit r20697.
2017-12-27 13:36:28 +00:00
Stan e4cc4da1d2 Fix a bug with the gastaphrete mesh that will only show up when
gpuskinning was set to true in the game options. That experimental
features apparently requires that all meshes vertices be weighted
else it stretches it badly.

Add the fixed blendfile.

This was SVN commit r20696.
2017-12-27 13:00:18 +00:00
elexis b9c879c85f Remove duplication on Sahel Watering Holes using the modulo operator, refs #4805.
Use mapCenter getter from 5256d8497e / #4854 and
distributePointsOnCircle from 6fb6a65fc5 to shorten.

This was SVN commit r20693.
2017-12-27 00:51:11 +00:00
elexis 58b2e2baf4 JS file listing cleanup, refs #4868.
Add global filelisting helper.
Remove getXMLFileList and getJSONFileList from the unsorted
gui/common/functions_utility.js.
Make hidden maps prefix more transparent.
Remove hardcoded magic numbers that are string lengths.
Shorten loading screen code and separate pathnames from code.

Differential Revision: https://code.wildfiregames.com/D1107
Reviewed By: bb
This was SVN commit r20692.
2017-12-26 22:44:37 +00:00
elexis fb444d4165 Add GetGaiaAndNonGaiaEntities helper function in the RangeManager and use it in Extinct Volcano (D229).
Differential Revision: https://code.wildfiregames.com/D477
Reviewed By: bb
Proposed By: bb
Discussed with: fatherbushido

This was SVN commit r20691.
2017-12-26 22:03:25 +00:00
Stan 9106e66d98 Add gastaphretes as an atlas only unit for now
Accepted by Lordgood:
Thread :
https://wildfiregames.com/forum/index.php?/topic/22959-gastraphetes/&page=2&tab=comments#comment-343080

This was SVN commit r20690.
2017-12-26 21:48:29 +00:00
Stan 67d9bb6e36 New boeotian helmet for gastaphretes
Accepted by Lordgood
Discussion here :
https://wildfiregames.com/forum/index.php?/topic/21546-enhancement-macedonian-helmets/&page=2
and there
https://wildfiregames.com/forum/index.php?/topic/23049-help-needed-the-next-big-thing-helmets/

This was SVN commit r20689.
2017-12-26 21:41:08 +00:00
bb 5f9834ac8e Rename wolf_snow to arctic_wolf
Patch By: Phormio
Differential Revision: https://code.wildfiregames.com/D533
This was SVN commit r20688.
2017-12-26 21:16:26 +00:00
bb 7f4edf1926 Add support for diplomacy changes for wonder victory, make notifications more correct, add behaviour string to the gamedescription panel and on the fly cleanup
Reviewed By: elexis
Differential Revision: https://code.wildfiregames.com/D881
This was SVN commit r20687.
2017-12-26 12:59:27 +00:00
mimo dedc368519 allows Healers to be ejectedOnDestroy from ships
Reviewed By: bb
Differential Revision: https://code.wildfiregames.com/D1147
This was SVN commit r20686.
2017-12-26 10:39:28 +00:00
bb 868b389141 Make the steel_working tech really affect macemen, by adding a crush change refs D552 and D1036
Reviewed By: temple
Differential Revision: https://code.wildfiregames.com/D1174
This was SVN commit r20685.
2017-12-25 16:25:57 +00:00
bb 9ae7c4d810 Merge the two occurences of vertical tab in js and xml code
Agreed with and Comments by: elexis
Differential Revision: https://code.wildfiregames.com/D1175
This was SVN commit r20684.
2017-12-25 16:11:41 +00:00
bb 350c4580f8 Create a parent template for the maceman and add a maceman identity class.
Macemans and swordsman are different, and more civs than just maur might
get them (maybe in mods), so a parent template for them is good to have.
Updating the tech so it keeps affecting the same (but notice it doesn't
do anything with macemans).

Patch By: Nescio
Differential Revision: https://code.wildfiregames.com/D1036
This was SVN commit r20682.
2017-12-24 16:04:10 +00:00
bb a39af19c89 Let the embassy depend on military template instead of special, since that is what the name suggests and an embassy can be used for any civ.
Patch By: Nescio
Differential Revision: https://code.wildfiregames.com/D1006
This was SVN commit r20681.
2017-12-24 15:19:08 +00:00
mimo 31b1d8a996 petra: fix an inverted sign, plus some cleanup
This was SVN commit r20680.
2017-12-24 11:29:03 +00:00
bb 84dd34639d Remove duplicate check in the canAttack query between unitAI and attack, also remove the forceRespond relic, which allows units to attack neutral players.
Patch By: temple
Differential Revision: https://code.wildfiregames.com/D1099
This was SVN commit r20678.
2017-12-23 15:53:00 +00:00
bb c67bd74008 Make unit icon naming consistent
Use correct names (e.g. cart)
Specify civs when possible, also instead of culture

Patch By: Nescio
Differential Revision: https://code.wildfiregames.com/D985
This was SVN commit r20677.
2017-12-23 14:11:05 +00:00
wraitii 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
mimo e0bd348bce some petra cleanup
This was SVN commit r20673.
2017-12-21 19:01:55 +00:00
mimo 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
mimo 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
Imarok 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
Stan 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
Stan 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
mimo 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
Stan 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
Stan 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
Stan ccb7f6684f Update the barrel model with more polygons.
This was SVN commit r20662.
2017-12-18 23:31:58 +00:00
mimo ef0b774321 cleanup VisionSharing tests
This was SVN commit r20661.
2017-12-18 17:55:25 +00:00
mimo 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
mimo 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
mimo 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
elexis 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
elexis 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
elexis 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
Stan 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
vladislavbelov 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
elexis 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
elexis 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
Imarok 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
Stan 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
elexis 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
Stan 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
elexis 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