Commit Graph

16255 Commits

Author SHA1 Message Date
20b4e039be Fix fileendings of files with mixed fileendings in the public mod (except art, l10n) and in source/ (except for source/third_party/).
Thus fix lineendings in files that were missed in bcbf25bfbd, as
reported by Imarok.

(SVN throws an error when trying to set the native filending property on
a file with mixed fileendings. However when recursing it hides this
error).

This was SVN commit r18561.
2016-07-25 12:58:47 +00:00
a0058c533b Don't throw errors and hide the summary screen button when encountering an empty replay metadata file.
That kind of file can be written in case the partition has no more space
left when ending the game.

This was SVN commit r18560.
2016-07-25 11:26:56 +00:00
e262e021b0 Fix an off by one error. Reported by fatherbushido, refs #2160.
This was SVN commit r18559.
2016-07-25 11:20:34 +00:00
bcbf25bfbd Fix line endings of all files in source/ except source/third_party/.
This was SVN commit r18558.
2016-07-25 09:07:45 +00:00
ba25ffef74 rmlib2 simplifications.
This was SVN commit r18556.
2016-07-24 04:25:45 +00:00
8e1dcbe2fa Mediterranean tree balancing.
Increase minimum distance between forests so as to carve more space for
player buildings. Reported by sentado, based on patch by _kali.
Adapt metal and stone mine numbers to keep the same probability.

This was SVN commit r18555.
2016-07-24 04:24:44 +00:00
c8d7992820 Mediterranean shoreline heightdata fix for easier dock placement (especially in caucasus). Reported by sentado, patch by _kali.
This was SVN commit r18554.
2016-07-24 04:19:56 +00:00
e80f0f9930 Mediterranean bugfix for a rare case where birch trees were placed in north africa
(since the localbiome wasn't set for stronghold bases).
Remove non-existing roads which were not accessed before.

This was SVN commit r18553.
2016-07-24 04:18:10 +00:00
a3da37ffd3 Gaia control improvements.
Don't throw errors when finishing a gaia foundation.
Allow cheats for gaia.

This was SVN commit r18552.
2016-07-24 02:19:34 +00:00
c652e0942a Session cleanup.
Move some code from selectViewPlayer to updateTopPanel.
Inline variable civName.
Move one check out of an if-statement in selectViewPlayer.
Merge duplicate call Engine.GetGUIObjectByName("civIcon") for
consistency with other code.

This was SVN commit r18551.
2016-07-24 02:17:43 +00:00
64624d121c Tree balancing of the red sea map.
Sometimes players didn't have any wood close by while usually all
players have practically limitless wood around. Reported by sentado.
Thus enforce greater distance between big forests and add some tiny
forests in between them.
Keep a big distance between all forests as it is supposed to be a
desert.

This was SVN commit r18550.
2016-07-23 17:30:32 +00:00
6543e78cce Seleucid dock
This was SVN commit r18549.
2016-07-23 10:15:46 +00:00
eaf0f88420 Add missing vertical heightmap scaling to _kali's new random map scripts.
This was SVN commit r18548.
2016-07-22 18:26:53 +00:00
9da74739d4 Gah, refs fb8f360ef0.
This was SVN commit r18547.
2016-07-22 15:12:11 +00:00
9c4344a940 Acoustic notification when someone mentions the name of the player in the lobby or game chat. Patch and soundfile by andy5995.
This was SVN commit r18545.
2016-07-21 15:31:39 +00:00
8dddd369ef Basic regicide gamemode. Based on patch by Sandarac, refs #2160.
Spawn a random hero at gamestart and defeat the player if the hero dies.
Consider nomad maps where units spawn without buildings or start on a
ship.
Correct a comment for TriggerHelper.SpawnUnits.
Make shuffleArray available to GUI and simulation and use it to
randomize heroes.

This was SVN commit r18544.
2016-07-21 15:12:49 +00:00
34c26767ca Add reddish dust to red sea. Actor by Stan, reviewed by _kali.
This was SVN commit r18543.
2016-07-21 11:20:33 +00:00
41474760e2 Remove healers from the idle worker queue as that is typically used to get units back to work or delete the workers if they can't work anymore. Thanks sanderd17 for a quick opinion.
Idle healers still show up when pressing the idle worker selection lasso
filter hotkey (I by default).

This was SVN commit r18542.
2016-07-21 10:46:32 +00:00
26b29e1de7 fix fa7e0c10ba
This was SVN commit r18541.
2016-07-21 07:44:28 +00:00
8e98de87ec Reset Last Man Standing flag when enabling rated games, to avoid the warn, refs #3970.
This was SVN commit r18540.
2016-07-21 01:12:02 +00:00
fb8f360ef0 Fix missing observermode for players who won (and that's why a ternary was used there before 9f796068f8).
Don't start the defeat music when clicking on resign and then restarting
it right on the next turn.

This was SVN commit r18539.
2016-07-21 01:06:35 +00:00
c84d41dc41 Hide walk speed tooltip for unpacked siege engines.
This was SVN commit r18538.
2016-07-21 00:04:42 +00:00
1bb3438450 Add missing round to cf04bad4bc, refs #3841.
This was SVN commit r18537.
2016-07-20 23:55:25 +00:00
ec3200dfee Session and lobby cleanup.
Remove unused variable label and rating.
Remove hardcoded group limit of 10.
Inline pointless constant guiName.

This was SVN commit r18535.
2016-07-20 16:21:42 +00:00
d7d0a7f869 Submit and display more information about matches in the lobby. Patch by Imarok, refs #3476.
Includes team numbers, online/offline- and won/defeated state, AI type
and difficulty for running games and
only the playernames with observer-player distinction in the gamesetup.
Use JSON format inside the XML stanza and minimize traffic by packing
teams.

Use the observer distinction to correctly apply the "full games" trigger
in the lobby, fixes #3143.

XPartaMupp patch applied by scythetwirler.
unescapeText function by sanderd17, refs #3409.

This was SVN commit r18534.
2016-07-20 16:04:23 +00:00
cf04bad4bc Ingame summary screen and allied resource / population tooltips for active players. Patch by Imarok, also reviewed by fatherbushido and discussed with mimo, fixes #3841.
Shows (only) the stats of the current player in the summary screen while
playing.
Also shows those of mutual allies too if the shared vision tech is
researched.
Display the resources and population counts of allies in the tooltips of
the top panel.
Use a sprintf for the pop / limit ratio and remove hardcoded resource
strings in the XML, refs #3934.

This was SVN commit r18533.
2016-07-20 01:22:07 +00:00
fa7e0c10ba fix a call to DeleteEntityAndReturn with undefined arguments, + some cleanup, refs #2706
This was SVN commit r18532.
2016-07-19 18:25:31 +00:00
01ff2fb0e0 petra: reset some collections only if needed
This was SVN commit r18531.
2016-07-19 17:26:03 +00:00
a498d18738 Fix a stronghold placement bug. Patch by _kali, fixes #4088.
Furthermore add two TODOs about other known placement bugs and
don't enforce close player placement if the team consists of only two
players,
since controlling much territory is more important than having a
neighboring allied CC close by.

This was SVN commit r18530.
2016-07-19 15:33:05 +00:00
2feeda802d Show the garrisoned healrate in tooltips, revealing not necessarily intuitive rates for special buildings and ships.
This was SVN commit r18529.
2016-07-19 13:19:37 +00:00
d0639c4df6 Ram garrison balancing.
Garrison up to 10 men in rams and 12 in persian ones, in order to
have a greater chance of attacking enemies with many melee champs
defending,
since the new balancing in alpha 21 requires siege engines to destroy
buildings, see d38adc7cd0 and 27c46a0a68.

Remove undocumented garrisoned healrate of rams introduced in
d1ed264c9b.
That commit introduced it in many places, which were removed in later
commits.

Leave the positive garrisoned healrate of ships and special buildings
for now,
assuming that there are supplies on ships (but not in rams).

Add garrisoned healrate tooltips in the following commit.

This was SVN commit r18528.
2016-07-19 13:17:02 +00:00
9132fd4406 petra: try to improve detection of inaccessible targets
This was SVN commit r18526.
2016-07-17 18:28:20 +00:00
df55f73894 ai: remove a useless argument
This was SVN commit r18525.
2016-07-17 17:10:01 +00:00
ea3492a9a5 Fix averaging of heightmaps which broke on giant mapsizes. Thanks Sandarac for reporting.
This was SVN commit r18524.
2016-07-17 12:59:10 +00:00
33e3e6c2ab Three new random map scripts by _kali showing actual geographical regions: Amazon, Mediterranean and Red Sea.
Includes a water and skyset fix by niektb. Partially reviewed by FeXoR.
Like last time, commits can be found at
https://github.com/0ADMods/maps_random_by_kali

This was SVN commit r18523.
2016-07-15 19:39:42 +00:00
a83f2a376b Update the idle-worker hotkeys as they were changed in ff6b80305c. Patch by andy5995, reviewed by Itms, fixes #4089, see also 4eea798d79.
This was SVN commit r18521.
2016-07-14 02:09:35 +00:00
82f1987114 Clean an out-of-scope variable usage. Patch by Stan.
This was SVN commit r18520.
2016-07-14 01:58:05 +00:00
1459fe0f8e Nuke a confusing warning that is thrown everytime the host selects a map that the clients done have.
This was SVN commit r18519.
2016-07-13 23:09:29 +00:00
6ade29d0da Rename DeleteMessages to DeleteWonderVictoryMessages to help distinguish it from possible other trigger script methods (ced8ceed47).
This was SVN commit r18518.
2016-07-13 18:42:35 +00:00
df18564038 Merge duplicate big house templates. Patch by Sandarac, reviewed by mimo, fixes #4100.
While at it, remove the revert of the
civbonus_hellenic_architecture.json in the hellenic house templates
(1091 Health * 1,1 = 1200 Health),
since the templates should be independent from the number of the json
file (thus restore the missing 10% bonus for hellenic houses).
Construct big houses in 50 (respectively 55) seconds instead of 60
seconds for the same reason (and using a number that is more round than
53 without increasing the buildtime).

This was SVN commit r18517.
2016-07-13 18:09:08 +00:00
224fec3954 petra: techCostMultiplier applies only to techs and not to trained units
This was SVN commit r18516.
2016-07-13 13:28:53 +00:00
ec1de0eac1 Small fix to the previous commit. The variable was unused and overwritten, thus hiding the issue.
This was SVN commit r18515.
2016-07-13 07:03:47 +00:00
ced8ceed47 Properly handle wonder victory messages after a player has won.
Patch by Sandarac, reviewed by elexis, fixes #4010

This was SVN commit r18514.
2016-07-13 06:51:59 +00:00
d29806ff2d Structure tree cleanup.
Use Math.max/min and quote object keys for the wallpiece parsing.

This was SVN commit r18513.
2016-07-13 02:02:47 +00:00
92bf34d68d Fix duplicate lobby rating transfer due to the report being sent for every player instead of only the local player, refs 9f796068f8, #4013.
This is still a bug in XPartaMupp as that should in theory avoid
obviously invalid reports
(defeating players twice in the 'simulation' of the lobby bot).

This was SVN commit r18512.
2016-07-12 11:24:46 +00:00
4c0f12bce3 Fix autostart replays following a23884d79a by grabbing g_GameAttributes from the simulation instead of the GUI. Patch by Imarok, refs #3143.
Don't remove attribs from the init attributes as that is still used by
the loading screen to show the mapname.

This was SVN commit r18510.
2016-07-12 01:49:48 +00:00
cab6a8c633 Prevent fishing ships from trying to attack entities besides fauna, refs #4092.
This was SVN commit r18509.
2016-07-11 23:55:07 +00:00
c1eff53eab Complete the previous commit to account for both rmlib2 files.
This was SVN commit r18508.
2016-07-11 18:01:01 +00:00
2d3a9b1a55 Use var instead of const in rmgen2 and fix a typo. Reported by FeXoR, patch by elexis
This was SVN commit r18507.
2016-07-11 17:40:05 +00:00
3d7c6981ca Fix a too early return and a wrong negation in the attack component "cleanup" of a09c59e044 that broke RestrictedClasses, thus stopped violent animals from attacking. Remove an unneeded space. Slaughter two if-statements whose condition is never satisfied (due to GetAttackTypes never returning that item) introduced in 092206b12e and ef4a1e261c.
Patch by elexis

This was SVN commit r18506.
2016-07-11 17:25:19 +00:00