1
0
forked from 0ad/0ad
Commit Graph

17902 Commits

Author SHA1 Message Date
6a10797355 gamesetup panel should indicate the AI level without having to open the AI-config panel
Reviewed By: elexis
Differential Revision: https://code.wildfiregames.com/D1066
This was SVN commit r20529.
2017-11-26 14:42:10 +00:00
89055ef858 Delete GetCivData from MapGeneratorWorker.cpp which is redundant with the ReadJSONFile from 871ed04521.
Unify civ file loading from gui/common/functions_civinfo.js and
rmgen/library.js in globalscripts/Templates.js.
Delete the two forgotton headers in 4275a8a33c.

Refs #4868, #4804, D900.
Differential Revision: https://code.wildfiregames.com/D1062
Discussed with: leper

This was SVN commit r20528.
2017-11-26 13:30:57 +00:00
ba8d1c6166 Fix Builder test following 3a5be78aa9, refs #4870.
Also fix confusion of playerID and playerEntityID in that test following
c14a7a0b0b.

Differential Revision: https://code.wildfiregames.com/D1067
Reviewed By: bb, Itms
Comments By: Stan
This was SVN commit r20527.
2017-11-26 11:51:59 +00:00
69b7f39bf1 Rename RMS to Engine.
This was SVN commit r20525.
2017-11-25 22:17:01 +00:00
bb
65fe9737b1 Enlarge dropdown size for the ingame gamespeed dropdown, so the scrollbar is hidden for replays.
Patch By: temple
Reviewed By: elexis, vladislavbelov
Differential Revision: https://code.wildfiregames.com/D1053
This was SVN commit r20524.
2017-11-25 19:01:42 +00:00
94db174b25 Fix the pkgconfig premake module when headers are force-included.
This fixes a bug with premake5 happening when using
--with-system-mozjs38.

Tested By: temple
Differential Revision: https://code.wildfiregames.com/D1028
This was SVN commit r20523.
2017-11-25 16:56:56 +00:00
3a5be78aa9 Units should only be able to build structures from their owner's civ, and not from their identity civ
Reviewed By: elexis
Trac Tickets: #4870

Differential Revision: https://code.wildfiregames.com/D1065
This was SVN commit r20521.
2017-11-25 16:22:03 +00:00
60ae523f92 Fix territory borders not showing up on OSX when compiled with the lastest xCode.
The bug came from inlining the copy constructor of Grid, which ended up
reading from un-initialized variables.

Discussed with leper who had a similar fix for a test failure locally.

Fixes #4859

Differential Revision: https://code.wildfiregames.com/D1048
This was SVN commit r20520.
2017-11-25 12:48:37 +00:00
f7206dc77d More ScriptInterface const.
Reviewed By: elexis; some comments by bb
Differential Revision: https://code.wildfiregames.com/D863
This was SVN commit r20519.
2017-11-25 06:49:58 +00:00
60801158b5 Remove +1 in getPlayerTeam and areAllies of rmgen/ and -1 in the calls to that following 8097eeb8ab.
This was SVN commit r20517.
2017-11-25 00:37:41 +00:00
993869ffb8 Remove getTeamsArray copy from Island Stronghold (875a774da9) following the introduction of rmgen2 in 6d52a71d4a (d8ed6d828a).
(Don't replace the starting base code of that map to a call to
placeStronghold because the code in this variant is the only one that
doesn't have resource collisions on tiny maps currently, refs #3851.)

This was SVN commit r20516.
2017-11-25 00:24:44 +00:00
bbe1ddc5cf Corsica & Sardinia player placement simplification, refs 9016b8d866.
The code intended to group players per team on a single island (even if
more than 4 players in one team).
But since it used sortAllPlayers playerIDs instead of onIsland, the
players were not actually grouped per team.
Drop the additional, slightly redundant complexity and just place at
most 4 players per side like the other naval maps do too.
If greater groups per side are wished, it can be changed later
consistently for all maps.

This was SVN commit r20515.
2017-11-25 00:09:33 +00:00
0146c705ce Adds basic tests for the CinemaManager component
Reviewed By: wraitii
Differential Revision: https://code.wildfiregames.com/D1013
This was SVN commit r20514.
2017-11-24 22:38:03 +00:00
713a26368e Remove +1 playerID offset in getCivCode and -1 offset in the calls to that following 8097eeb8ab.
This was SVN commit r20513.
2017-11-24 22:16:29 +00:00
446fef2b35 Delete FALLBACK_CIV "athen" and related code in rmgen/, refs #4034.
It was only triggered if a civ wasn't set in Atlas.
Because civs are expected to be well-defined everywhere, alwas set the
property in Atlas too, fixing the non-GUI part of #4869.
Use the existing player defaults value then instead of hardcoding a
fallback civ string.

This was SVN commit r20512.
2017-11-24 21:01:12 +00:00
817763f6ef petra: improve the way to detect that an ally is attacked
This was SVN commit r20511.
2017-11-24 20:08:04 +00:00
2662a0297a petra: decrease the number of trained siege units in easier difficulty levels
This was SVN commit r20510.
2017-11-24 19:58:55 +00:00
9687a7af1a AIManager: loads only the used templates when starting (or deserializing) a game
Discussed with leper

Differential Revision: https://code.wildfiregames.com/D1049
This was SVN commit r20509.
2017-11-24 19:13:28 +00:00
c0439d04a2 New gaul stable
Reviewed by Lordgood.

This was SVN commit r20508.
2017-11-24 17:27:12 +00:00
4275a8a33c Unify two rmgen and GUI JSON file loading script functions, refs #4868.
Revert the introduction of the exact copies of FileExists ReadJSONFile
functions in MapGenerator.cpp introduced by 871ed04521.
Include JSInterface_VFS.cpp from MapGenerator.cpp to remove that code
while gaining the other missing VFS file loading functions in rmgen/.
Split RegisterScriptFunctions of JSInterface_VFS.cpp from eb4e66aab3
into RegisterReadOnlyScriptFunctions and RegisterWriteScriptFunctions to
prevent unintentional write access.

This was SVN commit r20507.
2017-11-24 17:19:16 +00:00
7a17a3152c Pass the size in meters of a terrain grid tile from Terrain.h to the rmgen JS code to avoid hardcoding thereof.
Refs #4034, D900
Differential Revision: https://code.wildfiregames.com/D1059
Reviewed By: s0600204
This was SVN commit r20504.
2017-11-23 20:54:48 +00:00
4734997098 Always generate the island on Phoenician Levant (by using 100 intead of 10 retries).
Fix resource collisions on that island.
Incrase the radius, not the area of the island proportionally to the map
radius.
Prevent the island from becoming passable without ships.
Use the non-deprecated createObjectGroups variant.

This was SVN commit r20503.
2017-11-23 10:18:05 +00:00
bb
e6dff349bd Fix scrollbare edgy-case and off by 1's in dropdown
Reviewed By: Imarok
Comments By: elexis
Differential Revision: https://code.wildfiregames.com/D1030
This was SVN commit r20500.
2017-11-21 20:07:23 +00:00
bb
2fa4457453 Allow walls to have rally-points
While at it also nuking some duplicate template entries

Patch By: temple
Differential Revision: https://code.wildfiregames.com/D1038
This was SVN commit r20498.
2017-11-21 17:06:48 +00:00
235f452765 Let units face away from the building they were trained or ungarrisoned from.
Uses the vector functions from 8ee2a8aca2 and fixes the TODO from
08db7ebe13 / 0aaddf62aa.

Differential Revision: https://code.wildfiregames.com/D1037
Patch By: temple
This was SVN commit r20497.
2017-11-21 16:22:09 +00:00
8ee2a8aca2 Add Vector2D angleTo and Vector3D horizAngleTo function.
Use it to illustrate the building placement preview rotation and
focusing of attacked units.

Split from D1037
Patch By: temple
This was SVN commit r20496.
2017-11-21 16:17:30 +00:00
7e8849366b Remove useless ungiven specific names, add drop props for the briton workshop, and fixed a broken drop prop in the elephant stable that caused warnings. convert files from utf-8 with bom, to without. fixes 8ee600b979
This was SVN commit r20495.
2017-11-21 14:47:11 +00:00
70e7c5e806 Fix broken (as with wrong parent) template. noticed by Imarok
fixes c6356b41b4

This was SVN commit r20494.
2017-11-21 14:42:39 +00:00
c6356b41b4 mauryan range and workshop
This was SVN commit r20492.
2017-11-21 13:22:04 +00:00
4e8eac9857 Change onager footprint to better reflect its shape add player color and icon (Textures edited by WowGetOffYourCellPhone)
And change its specific name to onager

This was SVN commit r20491.
2017-11-21 09:23:32 +00:00
19c123b213 New tools made by Alexandermb + fix for the berry basket uv (UV was out of bounds, and since texture do not tile, it appeared stretched)
reviewed by Lordgood

This was SVN commit r20488.
2017-11-20 22:51:08 +00:00
f737bc4be0 put back a line removed unintentionally in 1af6ccbd41
This was SVN commit r20487.
2017-11-20 18:32:55 +00:00
2bde5874a7 fix an inconsistency in 3b6c612975, noticed by leper
This was SVN commit r20486.
2017-11-20 18:30:21 +00:00
9cdf20f123 New goat mesh, reviewed by Lordgood and Wowgetoffyourcellphone.
Made on fatherbushido's request.

This was SVN commit r20485.
2017-11-20 17:14:47 +00:00
b244e5db78 Fix broken fireraiser actor, and unify them. Use Alexandermb's units as placeholders for the time being.
This was SVN commit r20484.
2017-11-20 16:29:47 +00:00
23e750ac88 New siege fire animations for units, made by AlexanderMb and some cleanup in those files done by myself.
Reviewed by Lordgood

This was SVN commit r20483.
2017-11-20 16:28:45 +00:00
f132e1ca66 Add new textures for Pureon's onager, so it can be used as a unit, or as a prop.
This was SVN commit r20482.
2017-11-20 16:08:11 +00:00
3b6c612975 allow the ai to run without loading all templates at startup (not yet enabled).
This was SVN commit r20480.
2017-11-19 19:05:54 +00:00
1af6ccbd41 petra: a few tunings and add a protection in tradeRoute serialization in case a market was destroyed in the last few turns between AI running and serialization
This was SVN commit r20479.
2017-11-19 14:56:22 +00:00
cfa3f4a993 petra: cleanup of a142dfa2df (treat all events of hq and baseManager in a same place)
This was SVN commit r20478.
2017-11-19 14:43:41 +00:00
4aa1632365 Rename oWood to oWoodTreasure et cetera on random maps to prevent confusion with resource templates.
This was SVN commit r20477.
2017-11-18 15:43:24 +00:00
8f4363f146 Split uncommon random map playerbase terrain code from the common playerbase starting entities code.
This allows replacing the common code with a library call in only one or
two hunks each.

On Archipelago move the random resources closer to the playerbase to
make the map more enjoyable.
Use default/skirmish templates for the docks on Islands/Migration and
the market on Polar Sea while at it.
Abort map generation if the dock placement failed.
Remove clForest dummy variable on Polar Sea following the removal of
references to map defined tileclasses in the library following
822e37f70c.

This was SVN commit r20476.
2017-11-18 15:35:29 +00:00
46979b52a9 Fix units getting wet feet on Corinthian Isthmus due to an unrightful right angle in b0bd645fbb until rubber boots are implemented.
This was SVN commit r20475.
2017-11-18 15:25:59 +00:00
a142dfa2df petra: some tweaks for playing on nomad maps (mainly delaying some strategic choices after the cc is built)
This was SVN commit r20474.
2017-11-17 19:20:18 +00:00
b10f2b5a62 Move all units (which only is the Mustang plane) from the templates/other/ directory to the templates/units/ directory, refs #4770.
Differential Revision: https://code.wildfiregames.com/D1007
Patch By: Nescio
Comments By: fatherbushido, leper
This was SVN commit r20473.
2017-11-17 17:15:11 +00:00
74b83e9634 On both Deep Forest (83422923aa) and Schwarzwald (49194819f6) random maps, replace the copy of the magic number approximating the engine constant specifying the impassable map border tiles with a passability check from the library. Refs #4814, #4805.
Remove the duplication of the subsequent createArea call as in
376d8b3d1e.

This was SVN commit r20472.
2017-11-17 16:09:31 +00:00
bb
722578fdcd Cleanup the conquest code
Stop listening to OnTrainingFinished and OnStructureBuild messages but
use OnOwnershipChanged messages. This fixes the defeat when only
promoted/upgrades/regi-hero units remain.
Add foundations to the conquest lists and make them visible on the
minimap.

Patch By: temple
Differential Revision: https://code.wildfiregames.com/D1022
This was SVN commit r20471.
2017-11-17 11:38:51 +00:00
b0bd645fbb Unify the other axis of the 8 remaining playerPlacementRiver calls following f1e352927c, refs #4805.
Use the rotateAround function from eb96b61954, refs #4845.
Freely randomize the river angle on Corinthian Isthmus following
4256744e26 and eb96b61954, refs #4855.

This was SVN commit r20469.
2017-11-17 03:11:12 +00:00
eb96b61954 Add rotateAround Vector2D function.
Remove the rmgen rotateCoordinates helper function from 4256744e26 and
clean the implementation of that commit, refs #4845, #4804.
Deepfreeze mapCenter vector from 5256d8497e used here to prevent
accidental overwrites with the mutating Vector2D functions, refs #4854.

This was SVN commit r20468.
2017-11-17 00:10:29 +00:00
a2f7dba96c Move simulation test for approximate equality from e18598cd62 to the test setup, so that it can be reused.
Remove unneeded helper variable from e18598cd62 as intended by
7778a7b436 by using the set method.

This was SVN commit r20467.
2017-11-16 23:54:38 +00:00