Compare commits

...

1231 Commits

Author SHA1 Message Date
Paul Chote
39da616123 Fix crash when carryall cargo is killed on same tick as pickup. 2017-04-08 22:49:30 +02:00
Paul Chote
34231f3959 Set sensible initial turret facings. 2017-04-08 22:45:22 +02:00
Oliver Brakmann
06cb63d24a Fix friendly monster tanks not revealing shroud in Monster Tank Madness 2017-04-08 22:45:22 +02:00
abcdefg30
c7f4825064 Remove a misplaced barrel 2017-04-08 22:45:22 +02:00
abcdefg30
6e976a6a88 Fix Oil Pumps spawning infantry on death 2017-04-08 22:45:22 +02:00
abcdefg30
a0aca5a844 Fix the explosions of the civilian buildings
- it looked weird when they spawned civilians
- other buildings on the map exploded with the wrong explosion
2017-04-08 22:45:22 +02:00
abcdefg30
584dcd4b59 Set the initial cash to 0 2017-04-08 22:45:22 +02:00
abcdefg30
26be876665 Fix the extraction helicopter not showing up in Monster Tank Madness 2017-04-08 22:45:22 +02:00
GDave
d3f40cceaf Update the official cnc/TD map pool 2017-04-05 21:29:04 +02:00
AoAGeneral
34cbfa9ee6 TD Artillery/MRLS Vision.
This is changing the vision of Artillery and MRLS from 8c0 to 5c0.

The reason behind this is because we have scouting artillery and MRLS units that have a much larger vision range then infantry and the same vision as hummers and buggies. This turns into games where people build infantry and artillery/MRLS armies and march of death to the enemy. Its more counterable in 1v1 and 2v2 but team games of 3v3+ it becomes incredibly spammy of these units and hard to stop.
2017-04-02 22:01:30 +02:00
abcdefg30
9e9f2dee61 Fixed aircraft not being able to hunt 2017-04-02 21:41:58 +02:00
FrameLimiter
9ec7293b07 Fixed vision for aircraft husks under Gap. 2017-04-01 14:34:06 +02:00
SoScared
2d7e007b85 fix tile errors on various maps 2017-03-28 22:46:17 +02:00
abc013
ac7f9c9efe Polished the mission objectives in allies06a 2017-03-15 22:33:16 +00:00
abc013
fe4462c14d Make the AI only build submarines if the player has a shipyard 2017-03-15 22:33:12 +00:00
SoScared
9c31b5ead7 Reverse making friendly units aware of friendly mines. 2017-03-15 22:33:01 +00:00
SoScared
ee4111939f Reverse alteration of Dual Cold Front 2017-03-15 22:17:11 +01:00
SoScared
d0f46a51c8 Double price/production of S.Bags/Fence/Walls 2017-03-15 22:11:02 +01:00
Mustafa Alperen Seki
99ee0e7e16 Make defences detect cloak. 2017-03-14 15:52:21 +01:00
Mustafa Alperen Seki
cc19238127 Add Nooze's 1 Tile Cliffs to TD 2017-03-13 20:09:21 +01:00
Mustafa Alperen Seki
8db2dd9c3e Add Nooze's 1 Tile Cliffs to RA 2017-03-13 20:09:05 +01:00
Paul Chote
7a4fc47a45 Fix crash when master server query returns unexpected data. 2017-03-12 18:49:58 +01:00
Paul Chote
19ee36cf8e Fix Obelisk not dropping targets when they move out of range. 2017-03-11 22:30:18 +01:00
SoScared
12af79a470 fixed RevealsShroud@GAPGEN vs MiG/YAK 2017-03-11 18:05:17 +01:00
Forcecore
7949d11274 HackyAI now builds refinery near ore. 2017-03-11 12:43:09 +00:00
SoScared
15c5f80af8 final 6p plus map pool alteration 2017-03-11 11:57:05 +00:00
SoScared
ff3eecbf62 final 2-4 player map alteration 2017-03-11 11:42:24 +00:00
Paul Chote
4ce6082c54 Remove TD map Vectors of Battle (10p). 2017-03-10 21:28:00 +01:00
Paul Chote
a6b98bc5c3 Update TD map Order of Battle. 2017-03-10 21:27:31 +01:00
Paul Chote
ed1ef08c84 Update TD map Axis of Advance. 2017-03-10 21:26:35 +01:00
reaperrr
be84b78e77 Polish Morbid Aimless Poseidon
A lot of the cliffs, in particular "north-facing" ones, only reptitively used a single variant, and in some cases the one that should only be used for the "left ending" of a cliff. I fixed the latter and added variation to the former cases.
2017-03-08 22:04:15 +01:00
reaperrr
2cf5e0a7e5 Fix RA Spy attack sequence 2017-03-06 22:43:07 +01:00
abcdefg30
5d220e3e6b Merge pull request #12891 from pchote/register-mods-first-time
Add the current mod to the external mods database on launch.
2017-03-04 18:51:43 +01:00
Paul Chote
1dddb43bd6 Add the current mod to the external mods database on launch. 2017-03-04 17:43:48 +00:00
abcdefg30
72ad76d807 Merge pull request #12892 from pchote/fix-makefile
Fix makefile install rule.
2017-03-04 18:40:11 +01:00
Paul Chote
f6c607c461 Fix makefile install rule. 2017-03-04 16:10:03 +00:00
Oliver Brakmann
8d2531f4d5 Merge pull request #12885 from pchote/fix-nsfremen-warning
Fix lint warnings on nsfremen.
2017-03-04 15:59:06 +01:00
abcdefg30
c765915c57 Merge pull request #12886 from pchote/fix-transform-exploit
Fix invalid Transform location exploit.
2017-03-04 15:54:46 +01:00
Paul Chote
e98c2eef68 Fix invalid Transform location exploit. 2017-03-04 00:17:38 +00:00
Paul Chote
f3f3e361d3 Fix lint warnings on nsfremen. 2017-03-03 22:55:56 +00:00
Paul Chote
6fbd6bcb4c Merge pull request #12681 from MustaphaTR/ra-make-infiltrates-upgradeable
Make Infiltrates Upgradeable
2017-03-03 22:52:21 +00:00
Mustafa Alperen Seki
fd595660ec Add condition support to Infiltrates. 2017-03-03 22:40:20 +00:00
Paul Chote
2e605bb6cb Merge pull request #12759 from forcecore/cloak_unhardcoding
Unhardcode disableCloak on critical HP (#12741)
2017-03-03 22:31:37 +00:00
Paul Chote
6aa2f962b1 Merge pull request #12769 from abcdefg30/luaTile
Add a lua function to query the terrain type of a cell
2017-03-03 22:19:58 +00:00
Paul Chote
1811e17a5f Merge pull request #12841 from ltem/d2k-fix-lights
Fix welding lights of Dune 2000 structures
2017-03-03 22:17:28 +00:00
Paul Chote
e7382760ef Merge pull request #12875 from abc013/DisguiseTooltipFix
Rename DisguiseToolTip to DisguiseTooltip
2017-03-03 22:00:29 +00:00
Paul Chote
b31451483a Merge pull request #12867 from SoScared/mapswap3
[RA] Add/remove official maps 3.
2017-03-03 21:55:36 +00:00
Paul Chote
c08efb9831 Merge pull request #12818 from reaperrr/fix-td-mission-prereqs
Fix that some buildings are incorrectly available in TD missions
2017-03-03 21:51:11 +00:00
Paul Chote
365df03c40 Merge pull request #12869 from MustaphaTR/new-lua-files-on-openra-sln
Add new lua files added with new D2K missions to OpenRA.sln
2017-03-03 21:37:41 +00:00
Paul Chote
77534c2d10 Merge pull request #12863 from abcdefg30/ignoreTargetUpgrades
Make AutoTargetIgnore upgradeable
2017-03-03 21:27:38 +00:00
reaperrr
5e4fa5b311 Merge pull request #12798 from dtluna/bleed
Official Map Pool Overhaul for TD
2017-03-03 19:45:33 +01:00
dtluna
d00f3af90c Official map pool overhaul for TD 2017-03-03 18:23:33 +03:00
reaperrr
808b457086 Merge pull request #12832 from MustaphaTR/d2k-harkonnen2b
D2K - Add Harkonnen Mission 2b
2017-03-03 15:42:16 +01:00
abc013
423744451b Rename DisguiseToolTip to DisguiseTooltip 2017-03-03 15:21:33 +01:00
reaperrr
ef6e038d1b Fix prerequisites of GDI 3 and GDI 5
Guard Tower and walls should not yet be buildable at this point
2017-03-03 14:43:27 +01:00
reaperrr
132872488f Fix prerequisites in both Nod 3 missions
Disables chainlink fences and sandbags.
2017-03-03 14:42:26 +01:00
reaperrr
43731526fb Fix prerequisites in GDI 1 and GDI 2
Makes sandbags and chainlink fence unbuildable.
2017-03-03 14:40:18 +01:00
Mustafa Alperen Seki
ed5e624527 Add Harkonnen2b 2017-03-01 20:52:09 +02:00
Mustafa Alperen Seki
59c71ebea5 Add new lua files to OpenRA.sln. 2017-03-01 19:45:41 +02:00
SoScared
0a17a8671f add new revision for behind the veil and northwest passage 2017-02-28 21:58:36 +01:00
reaperrr
cc3b46b580 Merge pull request #12808 from reaperrr/d2k-revealonfire
Enable enemy reveal when attacking friendly units in D2k
2017-02-27 21:29:52 +01:00
reaperrr
e06e19e39f Merge pull request #12826 from MustaphaTR/d2k-fix-carryall-owner-change
Fix that Carryalls still pick units changed their owner
2017-02-27 21:14:46 +01:00
reaperrr
cbd693c89f Merge pull request #12693 from abcdefg30/invalidContains
Give a proper error when a file is not found
2017-02-27 19:55:57 +01:00
abcdefg30
586dd98eb4 Merge pull request #12838 from pchote/revert-td-ref-sell-refund
Restore sell value of TD refinery.
2017-02-27 11:05:32 +01:00
abcdefg30
c833f3857f Remove DOME.IGNORE from soviet-05 2017-02-27 00:36:00 +01:00
abcdefg30
700d141c24 Make AutoTargetIgnore upgradeable 2017-02-27 00:36:00 +01:00
reaperrr
870c82e727 Merge pull request #12816 from abc013/d2kAdjustAirStrike
Adjust the drop-position of the air strike in D2k
2017-02-26 15:34:51 +01:00
Matthias Mailänder
e897d1e8fa Merge pull request #12848 from pchote/starport-anim-polish
Hide the starport animation from highlights and when not playing.
2017-02-26 11:37:00 +01:00
reaperrr
4c02112cc6 Tweak Ornithopter bombs
In the original,
- they were slower
- didn't accelerate
- had a shadow
- were dropped at lower rate
- played EXPLSML4.WAV

compared to bleed.
2017-02-25 21:14:43 +01:00
reaperrr
447269c020 Tweak D2k aircraft altitudes
The Frigate and Ornithopter were flying too low compared to the original.
2017-02-25 21:03:53 +01:00
abc013
a73e7e6103 Adjust the drop-position of the air strike in D2k 2017-02-25 21:03:53 +01:00
ltem
46165f8d00 Added a condition so that the dish animation of the outpost won't be active if the structure is server damaged 2017-02-25 15:28:57 +01:00
ltem
35494b2abd Fix welding lights of Dune 2000 structures
- Fixed starport lights
- Fixed offsets and welding lights of light factory
- Fixed welding lights of high tech factory
- Fixed offsets and welding lights of heavy factory
2017-02-25 13:37:12 +01:00
reaperrr
d2ad2a1b15 Merge pull request #12837 from pchote/negative-int-negation
Make ConditionExpression ! return false for negative numbers.
2017-02-25 12:21:34 +01:00
Paul Chote
f221dd721a Hide the starport animation from highlights and when not playing. 2017-02-25 10:43:00 +00:00
forcecore
0483708487 Rename uncloaking conditions from uncloak to cloak-force-disabled
Descriptive condition name is better.
2017-02-24 20:56:52 -06:00
forcecore
53e7cf0ef1 Rules updated to unhardcode cloak diable on criticalHP
Rules updated for CNC mod (uncloak on critical HP)

STNK, stealth crate are affected

Rules updated for D2K mod (uncloak on critical HP)

Saboteur, fremen, stealth raider affected

Rules updated for RA mod (uncloak on critical HP)

Affects
Hijacker, sniper, sub, msub, hbox, stnk.
Mines are not affected, they are not exactly "stealth".
Hijackers and snipers aren't machines and should be able to hide
themselves even when they are wounded but for least surprise to
players, uncloaking stays as well.

Rules updated for TS mod (uncloak on critical HP)

Only affects STNK.
Things that are cloak generators will stay cloaked even when critical
HP! The cloak generation mechanism is by the cloak generator!
2017-02-24 20:55:06 -06:00
forcecore
28ce32d8fa damageDisabled removed from Cloak.cs (#12741)
To unhard code uncloak behavior getting disabled by the unit's critical HP.
2017-02-24 20:53:42 -06:00
Paul Chote
d6d166ee36 Restore sell value of TD refinery. 2017-02-23 22:24:27 +00:00
Paul Chote
e0ca38b878 Merge pull request #12694 from RoosterDragon/fixup-network
Fix thread-safety and dispose issues in NetworkConnection.
2017-02-23 21:04:56 +00:00
Paul Chote
1c97effbc9 Make ConditionExpression ! return false for negative numbers.
This brings it in line with C/C++ behaviour.
2017-02-23 20:23:40 +00:00
Paul Chote
22e2deee21 Merge pull request #12719 from atlimit8/ConditionExpression_with_counting
BooleanExpression => ConditionExpression with integer values for token count comparisons
2017-02-23 19:16:19 +00:00
abcdefg30
5636326dc6 Merge pull request #12811 from MustaphaTR/d2k-harkonnen2a
D2K - Add Harkonnen Mission 2a
2017-02-22 21:22:42 +01:00
Mustafa Alperen Seki
3e0b138a7e Add Harkonnen2a 2017-02-22 20:25:46 +02:00
atlimit8
47804e5fab Improve Upgrader for Upgrades => Condition expressions 2017-02-22 08:54:52 -06:00
atlimit8
67dcbd1b2c ConditionExpression: added bool constants 2017-02-22 08:54:52 -06:00
atlimit8
f605756351 ConditionExpression: Add arithmetic operations 2017-02-22 08:54:52 -06:00
atlimit8
725cc7c084 Removed StackedCondition trait 2017-02-22 08:54:52 -06:00
atlimit8
ac4f73b178 ConditionExpression: Add relation operators 2017-02-22 08:54:52 -06:00
atlimit8
bbea7642fc ConditionExpression: setup operator precedences 2017-02-22 08:54:51 -06:00
atlimit8
0fc2008f10 Added delegate creation & evaluation to ConditionExpression 2017-02-22 08:54:51 -06:00
atlimit8
d752e10799 ConditionExpression: Run syntax checks while lexing 2017-02-22 08:54:51 -06:00
atlimit8
8e6436d71c ConditionExpression: move lexing to Token class. 2017-02-22 08:54:51 -06:00
atlimit8
4537c3c7d0 ConditionExpression: reorganize tokenizer 2017-02-22 08:54:51 -06:00
atlimit8
6e393f99cb ConditionExpression: Replaced Token sub-classing with TokenTypeInfo data. 2017-02-22 08:54:51 -06:00
atlimit8
828b13a11e ConditionExpress: added TokenTypeInfo table 2017-02-22 08:54:51 -06:00
atlimit8
f9e47cd0ca ConditionExpression: Added CharClass enum for tokenizing 2017-02-22 08:54:51 -06:00
atlimit8
c70442b15e Use switch statement for operator tokenization. 2017-02-22 08:54:51 -06:00
atlimit8
73895d07e2 Numeric constants for ConditionExpression 2017-02-22 08:54:50 -06:00
atlimit8
65725efd04 Make ConditionExpression use counts. 2017-02-22 08:54:50 -06:00
atlimit8
d83dae5587 Rename BooleanExpression => ConditionExpression 2017-02-22 08:54:50 -06:00
Mustafa Alperen Seki
bf0c4f7e1a Fix that Carryalls still pick owner changed units 2017-02-21 18:04:53 +02:00
RoosterDragon
aa3024f1f8 Fix thread-safety and dispose issues in NetworkConnection.
- Calling Close() on a TcpClient is documented to also close the underlying sockets and streams for us. This means we can avoid also calling socket.Client.Close() and generating exceptions on mono.
- TcpClient is not thread-safe. However the NetworkStream returned by GetStream() is thread-safe for a single reader/single writer scenario. If we create and dispose the client on the calling thread, and pass the NetworkStream into the thread we spawn for reading, then we can avoid thread-safety issues incurred by trying to Close() the connection from another thread.
- The clean shutdown means we don't need to make the dodgy Thread.Abort() call as it will end normally, and that means we don't need a finalizer to ensure the thread is killed off.
- Refactor how receivedPackets work in EchoConnection to avoid lock(this).
- Mark connectionState and clientId as volatile since they are set from another thread.
2017-02-21 14:10:06 +00:00
reaperrr
3e2431971c Make worms reveal shroud when swallowing friendly units 2017-02-20 20:13:17 +01:00
reaperrr
6ebdac1d30 Remove bogus Buildable trait from D2k sandworm 2017-02-20 20:13:13 +01:00
reaperrr
492efcc9cd Enable RevealOnFire in D2k 2017-02-20 20:13:11 +01:00
reaperrr
79c95364fb Merge pull request #12801 from reaperrr/td-shadows
Add shadows to TD projectiles and fix Napalm bombs
2017-02-20 19:58:22 +01:00
reaperrr
0f3250f9b0 Merge pull request #12782 from abcdefg30/paraCrash
Fix airstrikes and paratroopers crashing missions
2017-02-19 19:32:06 +01:00
abcdefg30
4a14b13002 Fix missing sequences on the airstrike.proxy in cnc 2017-02-19 17:52:40 +01:00
abcdefg30
b6bc08ac25 Move airstrike.proxy to the shared campaign maprules 2017-02-19 17:50:48 +01:00
abcdefg30
4d0ac8bd14 Fix the powerproxy actors of ra missing sequences 2017-02-19 17:47:07 +01:00
abcdefg30
aa73b19ee2 Give an proper error when a file is not found 2017-02-19 17:35:22 +01:00
abcdefg30
ad5a9a85f9 Merge pull request #12804 from pchote/remove-deprecated-apis
Remove deprecated Lua APIs / upgrade rules
2017-02-19 17:25:59 +01:00
reaperrr
1dc42cf5be Merge pull request #12743 from abcdefg30/atreides04
Add Atreides04
2017-02-19 16:42:57 +01:00
abcdefg30
6b99469113 Add atreides-04 2017-02-19 16:31:26 +01:00
reaperrr
3b92c21844 Merge pull request #12796 from pchote/external-conditions-rework
Add support for per-source and total external condition caps.
2017-02-19 15:44:53 +01:00
Paul Chote
1eb5be4d4c Add StringComparison.Ordinal to StartsWith. 2017-02-19 14:19:04 +00:00
Paul Chote
c47c13a14b Remove legacy upgrade rules. 2017-02-19 14:19:04 +00:00
Paul Chote
78a3dcae85 Remove deprecated Lua APIs. 2017-02-19 14:10:39 +00:00
reaperrr
2a65251324 Use MISSILE image for Mobile SAM projectile
Fixes #12803.
2017-02-19 14:22:28 +01:00
reaperrr
2f74c766fc Fix TD Napalm bombs hitting ground instantly 2017-02-19 14:22:26 +01:00
reaperrr
5be90ab368 Enable shadows on visible TD projectiles 2017-02-19 14:22:24 +01:00
reaperrr
8d870ab585 Remove redundancy from some TD missiles
These values are inherited from ^MissileWeapon.
2017-02-19 14:22:20 +01:00
reaperrr
45076eaaa4 Merge pull request #12795 from pchote/settings-restart
Use external mod switching plumbing to restart after settings changes.
2017-02-19 13:57:05 +01:00
reaperrr
ce76b28cbf Merge pull request #12745 from SoScared/mapswap1
[RA] Add/remove official maps.
2017-02-19 12:45:33 +01:00
reaperrr
f184be945b Merge pull request #12779 from MustaphaTR/d2k-harkonnen-1b
D2K - Add Harkonnen Mission 1b
2017-02-19 12:32:33 +01:00
Paul Chote
e229ca1812 Merge pull request #12790 from Phrohdoh/fix-12789
Throw an InvalidOperationException when a mod manifest references a bogus package
2017-02-18 23:12:59 +00:00
Taryn Hill
38304bc57b Throw an InvalidOperationException when a mod manifest references a bogus package
Bogus packages are packages that:
  * Cannot be located on disk
  * Are of an unsupported format
2017-02-18 16:55:26 -06:00
Paul Chote
11df0216e5 Remove legacy restart behaviour. 2017-02-18 22:37:47 +00:00
Paul Chote
073a00a2f4 Use mod switching for settings menu restart. 2017-02-18 22:37:47 +00:00
Paul Chote
500da07565 Fix mod switching failing when launchArgs is null. 2017-02-18 22:37:47 +00:00
SoScared
dcbeb08cf5 mapswap1 2017-02-18 21:24:52 +01:00
abcdefg30
b0cf90e95b Merge pull request #12767 from SoScared/mapswap2
[RA] Add/remove official maps 2.
2017-02-18 21:09:02 +01:00
abcdefg30
1c4b5cf0c8 Merge pull request #12786 from Phrohdoh/nuget-quiet
Cut down on the amount of output generated by dependency fetching scripts
2017-02-18 21:01:21 +01:00
Paul Chote
da5a725458 Add support for per-source and total external condition caps. 2017-02-18 19:10:22 +00:00
abcdefg30
fe632c5ba4 Merge pull request #12793 from pchote/fix-utility-modlist
Fix utility mod listing.
2017-02-18 20:08:24 +01:00
Paul Chote
f19df7b509 Merge pull request #12770 from reaperrr/polish-d2k-weapons
Polish D2k weapons and add wall explosion
2017-02-17 22:04:16 +00:00
Paul Chote
ba8d17e670 Merge pull request #12783 from MustaphaTR/d2k-fix-tile-99-100
D2K - Fix tiles 99 and 100
2017-02-17 21:56:17 +00:00
Paul Chote
bc158e3240 Merge pull request #12778 from FrameLimiter/patch-2
GAP & SAM power up/down sounds.
2017-02-17 21:43:27 +00:00
Paul Chote
00b7b14f2e Fix utility mod listing. 2017-02-17 20:53:17 +00:00
Taryn Hill
eaf55a864c Merge pull request #12638 from pchote/engineargs
Add engine plumbing to support externally developed mods.
2017-02-16 20:58:41 -06:00
abcdefg30
34736717ad Merge pull request #12765 from pchote/mod-cleanup
Clean up stale metadata registrations.
2017-02-16 22:48:00 +01:00
Taryn Hill
9329ee4780 Cut down on the amount of output generated by dependency fetching scripts 2017-02-15 21:14:09 -06:00
abcdefg30
54b0cdac38 Add the Fremen as faction to d2k 2017-02-15 21:47:04 +01:00
SoScared
c8a8e29d28 Add/Alter/Remove some maps 2017-02-15 21:04:20 +01:00
Mustafa Alperen Seki
05cf09f9ac Fix tiles 99 and 100 2017-02-15 18:57:20 +02:00
reaperrr
ab161c0a24 Merge pull request #12781 from MustaphaTR/d2k-fix-195
D2K - Fix tile 195
2017-02-15 17:53:25 +01:00
Mustafa Alperen Seki
3eb03e0743 Fix tile 195 2017-02-15 16:48:49 +02:00
Mustafa Alperen Seki
a3a5ba03b0 Add Harkonnen1b 2017-02-14 17:55:20 +02:00
FrameLimiter
1a5fee9048 GAP & SAM power up/down sounds.
The Gap Generator & SAM Site are both missing the power on/off sound effects.
2017-02-14 10:27:27 -05:00
reaperrr
2dcd920af5 Fix D2k wall armor type
TibEd said 'none', but that can't be true, as in the original anti-tank weapons are far more effective versus walls than machine guns, so I decided to just use the wall armor type.
2017-02-14 01:56:26 +01:00
reaperrr
8dd66b41c2 Fix D2k Wall debris count and types
Two debris, of which one is large, matches the original.
Also made max range match weapon range.
2017-02-14 01:56:24 +01:00
reaperrr
6cd6cedd2c Tweak D2k debris
- Enabled shadow
- reduced maximum speed
- considerably increased 'launch angle'
- increased bounce count to 3 and toned down BounceRangeModifier
- reduced TrailInterval to 1 for Debris2
- removed explosion sounds to a) match original and b) make them less annoying
- fixed debris explosion animations to match original
- used different trail anim for Debris2 and Debris3
2017-02-14 01:56:22 +01:00
reaperrr
de6d45f9e5 Fix BlendMode of previously unused D2k trails 2017-02-14 01:56:21 +01:00
reaperrr
9b34aa4d6b Set up D2k wall explosion 2017-02-14 01:56:19 +01:00
reaperrr
eef4c9b627 Merge pull request #12755 from MustaphaTR/d2k-harkonnen-1a
D2K - Add Harkonnen Mission 1a
2017-02-13 23:49:35 +01:00
abcdefg30
b23df65adb Merge pull request #12750 from MustaphaTR/d2k-atreides2-AI+tile-fixes
D2K - Fix Tiles errors in Atreides Mission 2s and add production/repair for their AIs.
2017-02-13 21:02:31 +01:00
Mustafa Alperen Seki
000ae29cb6 Fix Tiles errors in Atr2s and add AI production/repair for them. 2017-02-13 20:27:29 +01:00
reaperrr
74fa80491d Merge pull request #12751 from abcdefg30/d2kSequences
Fix missing sequences in all mods
2017-02-13 19:58:41 +01:00
abcdefg30
eeebcd6468 Merge pull request #12669 from Phrohdoh/make-core-builds-deps
Don't require a manual 'make dependencies' by default
2017-02-13 19:47:15 +01:00
reaperrr
6745cf402d Remove explosion sound from Fremen weapon 2017-02-12 22:50:29 +01:00
reaperrr
03a5e7ff4e Make Quad Rocket speed a multiple of 32 2017-02-12 22:28:55 +01:00
reaperrr
c4fc8f55bc Make D2k large missile speeds consistent 2017-02-12 22:27:52 +01:00
reaperrr
84dedd4237 Only play explosion sound for Missile Tank and Tower in D2k
But not on Bazooka and Quad's Rocket.
2017-02-12 22:27:09 +01:00
reaperrr
87d5a17a18 Fix explosion sound, speed and angle of D2k grenade 2017-02-12 22:13:09 +01:00
abcdefg30
603e7ca408 Add a lua function to query the terrain type of a cell 2017-02-12 21:05:48 +01:00
abcdefg30
4c9bae798a Add an upgrade rule 2017-02-12 21:01:47 +01:00
abcdefg30
5999a028ad Merge pull request #12739 from SoScared/balance_patch_core
[RA] Balance changes for next playtest/release.
2017-02-12 20:49:40 +01:00
reaperrr
f95ec2b11f Merge pull request #12684 from abcdefg30/proneOffset
Fix the ProneOffsets of TakeCover
2017-02-12 20:31:08 +01:00
Paul Chote
d6a793fa7d Merge pull request #12758 from reaperrr/fix-d2k-weapons
Fix D2k weapons
2017-02-12 19:02:27 +00:00
Paul Chote
9516a6af69 Fix game server compatibility check. 2017-02-12 18:48:03 +00:00
Paul Chote
54f4e996fb Clean up stale metadata registrations. 2017-02-12 18:40:19 +00:00
Paul Chote
4a1bf43a74 Merge pull request #12763 from reaperrr/cncdll-to-common
Change target location for Mods.Cnc to mods/common
2017-02-12 18:25:59 +00:00
abcdefg30
3650072eca Visceroids aren't buildable 2017-02-12 18:34:34 +01:00
abcdefg30
d3000c7570 Fix missing sequences in TS 2017-02-12 18:34:34 +01:00
abcdefg30
c65f310d2b Fix missing sequences in d2k 2017-02-12 18:34:33 +01:00
abcdefg30
a4a9e46e2d Change the default value for the sequence definitions on SupportPower.cs 2017-02-12 18:34:33 +01:00
reaperrr
686b21c044 Change target location for Mods.Cnc to mods/common 2017-02-12 18:02:15 +01:00
abcdefg30
a3aab6f051 Merge pull request #12757 from reaperrr/merge-ra-into-cnc
Merge Mods.RA into Mods.Cnc
2017-02-12 17:47:41 +01:00
abcdefg30
c09fa25257 Merge pull request #12762 from reaperrr/common-ui
Move RA chrome yamls to common
2017-02-12 17:37:47 +01:00
reaperrr
996f7ba5cf Merge pull request #12730 from abcdefg30/aircraftCrate
Fix GiveUnitCrateAction and SpawnMPUnits being limited to MobileInfo
2017-02-12 17:27:24 +01:00
Paul Chote
b2ed96f887 Merge pull request #12748 from reaperrr/fix-ra-sounds
Fix RA 25mm and DepthCharge playing sounds
2017-02-12 15:47:35 +00:00
reaperrr
66f1cc69d8 Move D2k/TS ingame-observer.yaml to common 2017-02-12 16:45:19 +01:00
reaperrr
5e465ff965 Remove RA reference from d2k 2017-02-12 16:45:17 +01:00
reaperrr
6f9f630fdc Move RA chrome yamls to common 2017-02-12 16:45:15 +01:00
reaperrr
b7125852b5 Remove d2k dependency from TS UI 2017-02-12 15:17:36 +01:00
Paul Chote
2af03da825 Add Engine.ModSearchPaths argument. 2017-02-12 13:21:11 +00:00
Paul Chote
7d758202c5 Rework mod searching/enumeration. 2017-02-12 13:21:11 +00:00
Paul Chote
9b6afd3c37 Unhardcode modchooser mod for content installation. 2017-02-12 13:21:11 +00:00
Paul Chote
657ba90ae3 Add Engine.DefaultMod argument to override modchooser fallback. 2017-02-12 13:21:10 +00:00
reaperrr
0c44a49722 Merge pull request #12600 from pchote/externalmods
Add support for switching to mods from other engine installations.
2017-02-12 13:18:53 +01:00
reaperrr
cdf2a1e87d Merge pull request #12649 from obrakmann/more-sysinfo-stuff
More sysinfo stuff
2017-02-12 12:48:37 +01:00
reaperrr
a5f4d6031c Merge pull request #12749 from MustaphaTR/d2k-add-new-tiles
Add new tiles that will be in Harkonnen Missions 1 and 2
2017-02-12 12:35:12 +01:00
reaperrr
0f7c53dac0 Fix DepthCharge hit explosion
The splash anim + h2obomb2.aud should always play, regardless of whether a submarine was hit.
2017-02-12 01:59:45 +01:00
reaperrr
3ff045f711 Merge pull request #12731 from abcdefg30/oldBase
Minor removal of rules duplication in ts yaml
2017-02-12 01:49:47 +01:00
reaperrr
0c3a786d10 Merge Mods.RA into Mods.Cnc 2017-02-12 01:33:22 +01:00
reaperrr
194a386a66 Remove unused Heal weapon from D2k 2017-02-12 01:25:47 +01:00
reaperrr
be6aaa0da5 Use InstantHit projectile for d2k BloomExplosion 2017-02-12 01:24:16 +01:00
reaperrr
0176fa5ff3 Remove redundant Blockable from DevBullet 2017-02-12 01:23:42 +01:00
reaperrr
69eaa16726 Make D2k machine guns unblockable and instant hits
To match original.
2017-02-12 01:20:03 +01:00
Paul Chote
51973cd798 Tweak 64 bit wording to match the two entries above it. 2017-02-11 19:36:14 +00:00
Paul Chote
3f9062692b Add window scale to sysinfo. 2017-02-11 19:36:14 +00:00
Oliver Brakmann
a0b911d498 Add sysinfo version to sysinfo query 2017-02-11 19:36:14 +00:00
Oliver Brakmann
54278ae8f3 Add window size to sysinfo query 2017-02-11 19:36:14 +00:00
SoScared
e26b0495ad balance batch 1 2017-02-11 19:20:18 +01:00
reaperrr
cdfa3fddf8 Move ParatroopersPower and para scripting to Mods.Common 2017-02-11 19:02:06 +01:00
abcdefg30
6df7038454 Merge pull request #12746 from ltem/d2k-trike-offset
Quickfix for Trike armament offset
2017-02-11 18:29:16 +01:00
Mustafa Alperen Seki
ad96fbb382 Add Harkonnen1a 2017-02-11 19:24:38 +02:00
ltem
677df8d4da Quickfix for Trike offset + Adding Height parameter to wall's
BlockProjectiles
2017-02-11 18:17:33 +01:00
abcdefg30
5fee23019f Merge pull request #12732 from MustaphaTR/d2k-ordos-1b
D2K - Add Ordos Mission 1b
2017-02-11 18:06:20 +01:00
abcdefg30
6e419d8ee0 Merge pull request #12737 from SoScared/le_shadows
[RA] Add shadow to projectiles, alter armament offsets of Chrono Tank, Phase Transport
2017-02-11 18:03:05 +01:00
abcdefg30
b26b7b9f46 Merge pull request #12702 from Mailaender/maxmind.db-2.1.2
Drop dependency on Maxmind.GeoIP and Newtonsoft.Json
2017-02-11 17:50:35 +01:00
Paul Chote
f2e6601e07 Remove legacy MP lobby mod and replay switching logic. 2017-02-11 16:45:18 +00:00
Paul Chote
69a869fe43 Pass Engine.LaunchPath from OSX launcher. 2017-02-11 16:45:18 +00:00
abcdefg30
584d76c771 Merge pull request #12675 from FrameLimiter/bleed
Restores tank traps to the map editor.
2017-02-11 17:39:22 +01:00
abcdefg30
c93585e3f2 Merge pull request #12697 from pchote/attack-charge
Implement new charge attack logic for TD/TS obelisks.
2017-02-11 17:35:08 +01:00
FrameLimiter
615c76402f Restores tank traps to the map editor.
Tank Traps are missing from the editor because they inherit "^Rock:" from the default.yaml which requires the tileset DESERT.
Tank Traps are a TEMPERAT tileset item.
2017-02-11 17:30:52 +01:00
Paul Chote
8385207fba Pass Engine.LaunchPath from linux launchers. 2017-02-11 16:21:35 +00:00
Paul Chote
2f7446e9fc Pass Engine.LaunchPath from windows launcher. 2017-02-11 16:21:35 +00:00
Paul Chote
2da4e87b94 Implement new server-connection mod switching logic. 2017-02-11 16:21:34 +00:00
Paul Chote
4d982f00e4 Add 32px icons for default mods. 2017-02-11 16:21:34 +00:00
Paul Chote
25a0d5be5b Load icons for installed mods. 2017-02-11 16:21:34 +00:00
Paul Chote
328bae550c Implement external mod registration and launching. 2017-02-11 16:21:34 +00:00
Paul Chote
a52ea71c62 Add AttackCharges trait for TD and TS obelisks. 2017-02-11 16:19:58 +00:00
Paul Chote
f219d40aa1 Improve support for overlapping sounds. 2017-02-11 16:19:58 +00:00
Paul Chote
53d7988ad1 Fix WithColoredOverlay upgrade rule. 2017-02-11 16:19:58 +00:00
Paul Chote
a8d46adb2d Rename tesla attack logic and move to Mods.Cnc. 2017-02-11 16:19:58 +00:00
abcdefg30
8ad37e6e0d Remove Buildable from unbuildable civilian structures 2017-02-11 15:28:52 +01:00
abcdefg30
7247350780 Remove cloak from ^OldBase 2017-02-11 15:21:01 +01:00
abcdefg30
1b4b146308 Reduce duplication by introducing ^OldBase 2017-02-11 15:21:00 +01:00
abcdefg30
6376e1fd22 Remove unnecessary Tooltip and Buildable definitions from ^CivBuilding 2017-02-11 15:21:00 +01:00
Mustafa Alperen Seki
db08535231 Add new tiles that will be in Harkonnen Missions 2017-02-11 16:11:47 +02:00
reaperrr
8fd3a68c42 Fix RA 25mm and DepthCharge playing sounds
25mm explosions and DepthCharge Report should be silent.
2017-02-11 14:06:57 +01:00
SoScared
99603eb607 ballistic shadows attempt 1 2017-02-11 12:09:48 +01:00
abcdefg30
ba69bfe494 Merge pull request #12705 from pchote/tweak-killself
Fix KillsSelf trait.
2017-02-10 19:06:20 +01:00
abcdefg30
307f722ef0 Merge pull request #12696 from pchote/fix-preview-rendering
Fix BGRA channel count.
2017-02-10 12:13:15 +01:00
abcdefg30
ce97b3a3a2 Fix IPositionableInfo not inheriting IOccupySpaceInfo 2017-02-09 22:04:33 +01:00
abcdefg30
e53724b1de Fix SpawnMPUnits being limited to MobileInfo 2017-02-09 22:04:33 +01:00
abcdefg30
a385835939 Fix GiveUnitCrateAction being limited to MobileInfo 2017-02-09 22:04:32 +01:00
abcdefg30
ac9c8b93a2 Merge pull request #12633 from reaperrr/slim-ra-weapons
Slim down RA weapon yamls via inheritance
2017-02-09 21:57:39 +01:00
Mustafa Alperen Seki
66ddae1818 Add Ordos 1b 2017-02-09 18:03:49 +02:00
Matthias Mailänder
01357c4f59 Merge pull request #12664 from MustaphaTR/d2k-ordos-1a
D2K - Add Ordos Mission 1a
2017-02-09 09:42:48 +01:00
reaperrr
c1e4a162fe Merge pull request #12710 from pchote/spectator-sort
Sort servers with spectators above empty servers.
2017-02-08 23:16:39 +01:00
reaperrr
fce404f6d9 Rename RA largecaliber.yaml to ballistics.yaml 2017-02-08 23:06:01 +01:00
reaperrr
36d725130a Streamlined RA missiles.yaml 2017-02-08 23:05:59 +01:00
reaperrr
7251572eb6 Streamlined RA explosions.yaml 2017-02-08 23:05:55 +01:00
reaperrr
b645780ba3 Streamlined RA other.yaml 2017-02-08 23:05:52 +01:00
reaperrr
d8a26838c2 Streamlined RA largecaliber.yaml 2017-02-08 23:05:48 +01:00
reaperrr
4c5be8d1d6 Streamlined RA smallcaliber.yaml 2017-02-08 23:05:44 +01:00
abcdefg30
dd15bbeb6d Fix the prone sequences of weedguy 2017-02-08 20:14:17 +01:00
abcdefg30
55dd61ebe5 Fix the ProneOffsets of TakeCover 2017-02-08 20:14:02 +01:00
reaperrr
c61a7b4131 Merge pull request #12709 from pchote/spicebloom-spurt
Play spicebloom spurt animation on each growth step.
2017-02-08 15:37:16 +01:00
Matthias Mailänder
5372d87521 Merge pull request #12677 from pchote/fix-player-drop
Fix player drop handling.
2017-02-08 09:01:58 +01:00
Matthias Mailänder
bad3a645a3 Merge pull request #12713 from pchote/fix-paused-weather-scroll
Fix weather particle positions when scrolling while paused.
2017-02-08 08:39:36 +01:00
Paul Chote
f6b65c98e4 Fix PBOG voxel rendering. 2017-02-07 10:05:06 +00:00
reaperrr
c3eab17112 Merge pull request #12712 from pchote/fix-nudge-moveflash
Don't show a move flash effect when PBOG nudges a unit.
2017-02-06 20:13:28 +01:00
reaperrr
263a13b34c Merge pull request #12690 from SoScared/gapvalues
[RA] GAP effect entry values.
2017-02-06 19:58:00 +01:00
reaperrr
01d869b467 Merge pull request #12711 from pchote/unload-cloak
Fix crash when unloading cargo from units with multiple cloaks.
2017-02-06 19:51:38 +01:00
reaperrr
5458f459b1 Merge pull request #12688 from MustaphaTR/d2k-fix-some-more-tiles
D2K - Fix tiles 58, 365, 366 and 368
2017-02-06 19:45:00 +01:00
reaperrr
f12fba141c Merge pull request #12708 from pchote/spicebloom-spawn
Remove SpawnActor from SpiceBloom.
2017-02-06 19:41:15 +01:00
abcdefg30
b751afbf78 Merge pull request #12692 from reaperrr/ts-debris
Refactor TS debris to work more like in the original
2017-02-05 22:59:19 +01:00
Paul Chote
609e0d0f3e Fix weather particle positions when scrolling while paused. 2017-02-05 18:50:31 +00:00
Paul Chote
9ab59ff614 Don't show a move flash effect when PBOG nudges a unit. 2017-02-05 18:40:22 +00:00
Paul Chote
7a22de268d Fix crash when unloading cargo from units with multiple cloaks. 2017-02-05 17:52:19 +00:00
Paul Chote
0c334c8ba0 Sort servers with spectators above empty servers. 2017-02-05 14:55:22 +00:00
Paul Chote
cc3c618d60 Play spurt animation on each growth step. 2017-02-05 13:28:00 +00:00
Paul Chote
847a00e938 Remove SpawnActor from SpiceBloom. 2017-02-05 12:32:42 +00:00
reaperrr
e1c1379622 Merge pull request #12691 from abcdefg30/tanyaCrush
Make Tanya uncrushable in missions
2017-02-05 13:14:07 +01:00
Paul Chote
2496ce3527 Set default delay to 0. 2017-02-05 11:37:01 +00:00
Paul Chote
1518da1062 Fix KillSelf behaviour for out-of-world actors. 2017-02-05 11:37:01 +00:00
Matthias Mailänder
13263f7bb2 Drop Maxmind.GeoIP and Newtonsoft.Json dependencies 2017-02-05 11:54:22 +01:00
reaperrr
3e1d0074b8 Tweak TS building debris spawns 2017-02-05 02:15:10 +01:00
reaperrr
e25f7948a8 Fix TS debris to behave more like in the original 2017-02-05 02:15:09 +01:00
Paul Chote
956ea5197b Fix BGRA channel count. 2017-02-04 17:05:00 +00:00
Paul Chote
b71d4ba7a3 Remove lag-drop frame workaround. 2017-02-04 16:35:55 +00:00
Paul Chote
07c9c9ee8c Only update MostRecentFrame if the frame is the most recent.
This fixes it being reset to 0 after an immediate order
and not being set before dispatching (which may use it).
2017-02-04 16:35:51 +00:00
Paul Chote
b018c3d837 Merge pull request #12350 from reaperrr/rem-spicebloom-DelAct
Merge SpiceBloom RespawnDelay & GrowthDelay into Lifetime
2017-02-04 16:22:39 +00:00
abcdefg30
6e3a7ba5ec Make Tanya uncrushable in missions 2017-02-04 15:27:37 +01:00
reaperrr
261e0cd7aa Move debris to otherweapons.yaml 2017-02-04 14:48:34 +01:00
reaperrr
226e2f7fa4 Merge pull request #12640 from reaperrr/ts-weapon-inherit2
Slim & tweak TS weapons - part 2
2017-02-04 14:40:27 +01:00
SoScared
ce7c1679d9 GAP effect entry values 2017-02-04 13:26:59 +01:00
reaperrr
484dd20f28 Merge pull request #12683 from abcdefg30/AAOffset
Fix the LocalOffset of the AA Gun
2017-02-04 12:48:01 +01:00
reaperrr
cfbc465040 Make spicebloom.spawnpoint more visible in editor 2017-02-04 12:31:22 +01:00
reaperrr
8fd83e5134 Fix spice bloom and spice bloom spawner health radii 2017-02-04 12:31:20 +01:00
reaperrr
76f8fe02e2 Refactor SpiceBloom
- Remove SpiceBloom.RespawnDelay

It is basically redundant (giving the spice bloom spawner a longer
self-kill delay at yaml level has the same effect) and uses the savegame-blocking DelayedAction, so just removing it is the cleanest solution.

- Rename SpiceBloom GrowthDelay to Lifetime

- Refactor spicebloom.spawnpoint to not use SpiceBloom trait and make it visible in editor with corresponding tooltip.
2017-02-04 12:31:19 +01:00
reaperrr
0a53a2022e Make SpiceBloom interfaces explicit 2017-02-04 12:31:17 +01:00
reaperrr
977cc0e367 Add Delay field to KillsSelf 2017-02-04 12:31:15 +01:00
reaperrr
e23a866979 Move RandomDelay from AmbientSound to Util 2017-02-04 12:31:11 +01:00
Mustafa Alperen Seki
fcba36cd31 Fix Tiles 58, 365, 366 and 368 2017-02-04 10:12:55 +02:00
abcdefg30
a413cc81ea Merge pull request #12605 from reaperrr/ts-weapon-inheritance
Introduce TargetDamageWarhead + some TS weapon fixes
2017-02-04 00:59:14 +01:00
abcdefg30
e1121e6cbe Fix the muzzle sequence offset of the AA Gun (set it to 0,0) 2017-02-04 00:26:16 +01:00
abcdefg30
d31227793e Fix the LocalOffset of the AA Gun 2017-02-03 23:51:19 +01:00
Paul Chote
958d1cd365 Merge pull request #12671 from abc013/renameUpgradeOverlay
Changed 'UpgradeOverlay' to 'WithColoredOverlay'
2017-02-03 22:14:58 +00:00
abcdefg30
3cffbe7d1e Merge pull request #12672 from pchote/fix-ambient-sound
Fix and improve AmbientSound trait
2017-02-03 23:10:28 +01:00
Paul Chote
647ee841b4 Overhaul AmbientSound trait. 2017-02-03 22:01:12 +00:00
Paul Chote
a880562b4b Add support for moving ISounds after creation. 2017-02-03 21:59:32 +00:00
Paul Chote
61050e77f6 Fix PlayLooped ignoring world position. 2017-02-03 21:59:32 +00:00
abcdefg30
0074eb5202 Merge pull request #12678 from reaperrr/merge-ts-into-cnc
Merge Mods.TS into Mods.Cnc
2017-02-03 22:55:52 +01:00
abc013
851c8e6075 Changed 'UpgradeOverlay' to 'WithColoredOverlay' 2017-02-03 18:09:56 +01:00
reaperrr
dfe14b0994 Merge pull request #12666 from Phrohdoh/damagedbyterrain-respect-tunnels
TS DamagedByTerrain and ^DamagedByVeins: Don't damage actors in tunnels
2017-02-03 09:53:11 +01:00
reaperrr
a006b02240 Merge pull request #12657 from pchote/skip-stacked-levels
Support skipping stacked condition levels.
2017-02-03 09:47:21 +01:00
reaperrr
709e2a26e1 Merge Mods.TS into Mods.Cnc 2017-02-02 21:20:31 +01:00
reaperrr
940cf67da4 Merge pull request #12653 from MustaphaTR/d2k-fix-618
D2K - Fix tiles 251, 306, 435 and 618
2017-02-02 20:52:25 +01:00
reaperrr
db04234062 Remove dead code from AnimatedBeacon
This was simply forgotten to be removed by https://github.com/OpenRA/OpenRA/pull/12309
2017-02-02 19:44:30 +01:00
reaperrr
2ee47ff5cf Fix Falloff and Spread of TS missiles 2017-02-02 19:32:16 +01:00
reaperrr
2ff745672c Use inheritance in TS smallguns.yaml
- using InstantHit projectile with default Blockable: false is intentional (matches original)
- default Spread and Falloff changes are intentional
- removing AA-capability from HarpyClaw is intentional
- adding 'piff' to Sniper is intentional
- Spread change to Sniper is intentional
2017-02-02 19:32:15 +01:00
reaperrr
715d88f86b Fix RPGTower prone damage 2017-02-02 19:32:11 +01:00
reaperrr
c90f573b77 Move up RPGTower weapon for more consistent order 2017-02-02 19:32:09 +01:00
reaperrr
797465e613 Use inheritance in TS ballisticweapons.yaml
Notes:
- adding alpha transparency to explosions is intentional
- making 120mm not blockable is intentional
- implicitly changing LaunchAngle of RPGTower to 75 is intentional
- Spread changes to 155mm and Grenade are intentional
- Falloff changes are intentional
- Prone70Percent on Grenade is intentional
2017-02-02 19:32:07 +01:00
reaperrr
30690fbb68 Use Inheritance in TS energyweapons.yaml
Notes:
- changing Proton smudge from MediumScorch to SmallScorch is intentional
- InfDeath on LtRail was bit-rot
- RangeLimit on Proton was bit-rot
- Gave CyCannon a higher RangeLimit for easier hits on moving targets
2017-02-02 19:32:06 +01:00
Mustafa Alperen Seki
d85526d5d2 Fix tiles 251, 306, 435 and 618. 2017-02-02 08:26:59 +02:00
Matthias Mailänder
cb1f42db83 Merge pull request #12670 from reaperrr/prodTabs-to-common
Move ProductionTabsLogic to Mods.Common
2017-02-01 21:58:44 +01:00
RoosterDragon
87040a3cf5 Merge pull request #12643 from pchote/battlefield-control
Replace "Debug" prefix with "Battlefield Control" for gameplay notifications.
2017-02-01 19:18:47 +00:00
reaperrr
76f961e39e Move ProductionTabsLogic to Mods.Common 2017-02-01 19:58:21 +01:00
RoosterDragon
cf2336793a Merge pull request #12318 from cjshmyr/fix-12271
ScrollPanelWidget - Fix frame end task race condition
2017-02-01 18:56:42 +00:00
Taryn Hill
be8c7827a7 Don't require a manual 'make dependencies' by default 2017-02-01 11:14:01 -06:00
Taryn Hill
77a709a325 Merge pull request #12667 from glenlife/patch-1
Update AUTHORS
2017-02-01 09:23:28 -06:00
Glen
16a9db905b Update AUTHORS
(changed username)
2017-01-31 21:10:32 -06:00
reaperrr
77c96db768 Merge pull request #12647 from abcdefg30/mercFlag
Fix the mercenary faction having no valid flag
2017-01-31 20:01:03 +01:00
Taryn Hill
225619efe8 TS: Don't harm flying jumpjets via DamagedByTerrain 2017-01-31 10:35:50 -06:00
Taryn Hill
82f44b00d2 Add TunnelCondition to ^Visceroid's Mobile trait 2017-01-31 10:31:12 -06:00
Taryn Hill
5a13ea3366 TS' ^DamagedByVeins: Disable LeavesTrails if inside of a tunnel 2017-01-31 09:36:18 -06:00
Taryn Hill
4bd6bb0b21 TS: Don't heal actors on tiberium if they are in a tunnel 2017-01-31 09:36:01 -06:00
Taryn Hill
7eab7dfad9 TS: Do not do terrain/vein damage to actors inside of tunnels 2017-01-31 08:46:09 -06:00
Taryn Hill
1fe317dd57 Fix a typo in MobileInfo 2017-01-31 08:46:08 -06:00
abcdefg30
ed39e512dd Merge pull request #12655 from MustaphaTR/d2k-thumper-voice
D2K - Change Thumper's Voice to normal Inf. Voice
2017-01-31 15:12:37 +01:00
abcdefg30
1567ff2ab7 Merge pull request #12660 from ltem/fix-identation
Fixes an error of pr 12658
2017-01-31 15:03:23 +01:00
Mustafa Alperen Seki
c1817005ab Change Thumper's Voice to normal Inf. Voice 2017-01-31 09:31:27 +02:00
Mustafa Alperen Seki
f585b94b4c Add Ordos 1a 2017-01-31 08:58:14 +02:00
RoosterDragon
aca9d60128 Merge pull request #12577 from pchote/movement-layers
Implement tunnels, elevated bridges, jumpjet and subterranean units.
2017-01-30 21:38:09 +00:00
ltem
b8ec633514 Fixes an error of pr 12658 2017-01-30 22:26:00 +01:00
reaperrr
e2b0c5bce4 Return empty Enumerable immediately in InstantHit
...rather than allocating a compiler generated enumerable via 'yield'.
2017-01-30 21:22:12 +01:00
reaperrr
c057acba7a Use TargetDamage for D2k WormJaw 2017-01-30 21:22:11 +01:00
reaperrr
416857c6ea Various misc TS weapon fixes
- Falloff of FireballLauncher and Bomb now more like in TS
- Spread of FireballLauncher now matches TS
- Spread of Bomb is now closer to TS (behaviour not entirely identical, because Spread was cell-based and had a ceiling at ~1.5 cells away from impact cell).
- Bomb now destroys Tiberium like in TS
- Visceroid now uses TargetDamage warhead to damage target directly
- Veins now use TargetDamage warhead to damage target directly
2017-01-30 21:22:09 +01:00
reaperrr
ce5c11d4f0 Use inheritance and TargetDamageWH for TS heal weapons 2017-01-30 21:22:07 +01:00
reaperrr
a8f7b0e2de Add TargetDamageWarhead
Only deals damage to the actor that was targeted by the carrying
projectile.

Currently only supported by InstantHit projectile.
2017-01-30 21:22:06 +01:00
reaperrr
090c015b27 Pass InstantHit target directly if inaccuracy is zero
This is required to make the TargetDamage warhead deal damage only to a specific target.
2017-01-30 21:22:04 +01:00
reaperrr
e2419f4faa Merge pull request #12654 from MustaphaTR/d2k-engineer-passenger-color
D2K - Remove PipType from Engineer and Thumper
2017-01-30 20:31:37 +01:00
reaperrr
ee33fb3254 Merge pull request #12658 from ltem/d2k-additional-faction-description
D2K faction specific information
2017-01-30 20:29:32 +01:00
ltem
ea9141270f Added additional faction specific information 2017-01-30 20:18:54 +01:00
abcdefg30
f5a8afa506 Merge pull request #12644 from MustaphaTR/d2k-fremen-desc
D2K - Some description work
2017-01-30 20:04:48 +01:00
Paul Chote
47a013e6c2 Support empty strings to skip condition levels. 2017-01-30 18:22:44 +00:00
Paul Chote
27cd31879f Add FieldLoader.AllowEmptyEntries attribute. 2017-01-30 18:22:44 +00:00
Mustafa Alperen Seki
ed2d98b275 Edit some D2K descriptions 2017-01-30 17:18:10 +02:00
Mustafa Alperen Seki
bc96efa3fa Remove PipType from Engineer and Thumper 2017-01-30 15:26:11 +02:00
abcdefg30
8b9f6f8e4e Update the chrome definitions of the smuggler, fremen and worm flags 2017-01-29 22:10:27 +01:00
abcdefg30
8afec71032 Add a definition for the mercenary flag to chrome.yaml 2017-01-29 22:09:30 +01:00
MustaphaTR
4c86475581 Add a new flag for the mercenary faction 2017-01-29 22:05:15 +01:00
Paul Chote
e1f7e5dac9 Replace "Debug" prefix with "Battlefield Control" for mute messages. 2017-01-29 18:59:57 +00:00
Paul Chote
f09b41b8b8 Replace "Debug" prefix with "Battlefield Control" for selection messages. 2017-01-29 18:59:57 +00:00
Paul Chote
7f694d2740 Replace "Debug" prefix with "Battlefield Control" for stance messages. 2017-01-29 18:59:57 +00:00
Paul Chote
aa0e65d425 Add SuppressNotifications flag for scripted maps. 2017-01-29 18:59:57 +00:00
Paul Chote
7a1d1092bd Replace "Debug" prefix with "Battlefield Control" for win/loss messages. 2017-01-29 18:59:56 +00:00
Paul Chote
22fad046a0 Fix units warping to 0,0 when doing a 180 degree turn. 2017-01-29 18:58:35 +00:00
Paul Chote
85630501e1 Work around lint test limitations. 2017-01-29 18:58:35 +00:00
Paul Chote
38bd88e874 Hook up elevated bridges in Drawbridges. 2017-01-29 18:58:35 +00:00
Paul Chote
c00af2a85b Hook up tunnels and elevated bridges in "A River Runs Near It". 2017-01-29 18:58:35 +00:00
Paul Chote
6f9a32ec3f Hook up bridges on Tread Lightly. 2017-01-29 18:58:34 +00:00
Paul Chote
d79b2c0869 Hook up tunnels on Hot Springs. 2017-01-29 18:58:34 +00:00
Paul Chote
4f41b6e9ce Implement elevated bridge placeholders. 2017-01-29 18:58:34 +00:00
Paul Chote
5c77c0dc28 Implement jumpjets. 2017-01-29 18:58:34 +00:00
Paul Chote
572c1cb89f Implement subterranean units. 2017-01-29 18:58:33 +00:00
Paul Chote
bb5f25e0dc Disable actor sight while inside tunnels. 2017-01-29 18:58:33 +00:00
Paul Chote
41213ad2d1 Implement tunnels. 2017-01-29 18:58:33 +00:00
Paul Chote
38ea7dbc5a Fix units climbing tunnel faces. 2017-01-29 18:58:33 +00:00
Paul Chote
2bd5a392d1 Add plumbing for custom movement layers. 2017-01-29 18:58:33 +00:00
Paul Chote
695a572dc3 Move ActorMap to mod code. 2017-01-29 18:57:36 +00:00
Paul Chote
a518f07e25 Remove CPos.Max/Min. 2017-01-29 18:57:36 +00:00
Paul Chote
171e558c0a Remove damaged bridge artwork from random tile selection. 2017-01-29 18:57:36 +00:00
Paul Chote
ba9927d34e Add Condition support to WithDeathAnimation / DeathSounds. 2017-01-29 18:57:36 +00:00
Paul Chote
7249ca7f88 Add cell height display to map editor. 2017-01-29 18:57:35 +00:00
Paul Chote
544e40ecab Fix CliffBackImpassibilityLayer trait name. 2017-01-29 18:57:35 +00:00
Oliver Brakmann
fe7736cee8 Merge pull request #12646 from pchote/asset-error
Simplify asset browser error message display.
2017-01-29 19:47:07 +01:00
Oliver Brakmann
3011cea11d Merge pull request #12641 from MustaphaTR/d2k-fix-mercenary-hfac-offset
D2K - Fix Mercenary Heavy Factory offset
2017-01-29 19:40:33 +01:00
Curtis Shmyr
33e1a6b2dd Fix frame end task race condition in ScrollPanelWidget 2017-01-29 17:49:40 +00:00
Matthias Mailänder
ab771f3171 Merge pull request #12645 from pchote/harvester-cost
Unhardcode harvester queue behaviour parameters.
2017-01-29 18:46:27 +01:00
Paul Chote
9a1efbc08b Simplify asset browser error message display. 2017-01-29 17:34:36 +00:00
Paul Chote
875d215662 Unhardcode harvester queue behaviour parameters. 2017-01-29 17:20:28 +00:00
Paul Chote
213b3dad2c Merge pull request #12293 from abcdefg30/swallowNull
Fix null being passed through the INotifyAttack interface
2017-01-29 16:32:35 +00:00
Mustafa Alperen Seki
81b1373db0 Fix Mercenary Heavy Factory offset 2017-01-29 18:28:49 +02:00
reaperrr
9d7413ab3d Merge pull request #12461 from obrakmann/activities-pt2
Activities re-write, part 2 - Child and composite activities
2017-01-29 16:02:21 +01:00
reaperrr
3e0db5cd2a Merge pull request #12623 from MustaphaTR/d2k-reorder-yaml
D2K - Reorder rule files on mod.yaml
2017-01-29 15:26:11 +01:00
reaperrr
86771c1ff2 Use Inheritance in TS explosions.yaml
Notes:
- reduced explosion Spread is intentional (in TS, HE had a Spread step of 6 pixels)
- Falloff changes are intentional (in original TS, damage was halved every Spread step)
- effective damage reduction of UnitExplode is intentional (only grenadiers dealt heavy area damage, which isn't implemented yet)
2017-01-29 14:53:28 +01:00
abcdefg30
48cee8c426 Disable the SpreadDamageWarhead of WormJaw 2017-01-29 11:08:31 +01:00
abcdefg30
19549a9068 Fix null being passed through the INotifyAttack interface 2017-01-29 11:07:20 +01:00
reaperrr
892825aeb9 Merge pull request #12599 from RoosterDragon/allocs
Reduce ongoing allocations
2017-01-27 17:52:30 +01:00
abcdefg30
0f11926305 Merge pull request #12625 from pchote/fix-timed-conditions
Fix timed external conditions being rejected instead of reset.
2017-01-27 13:53:00 +01:00
abcdefg30
9240d53228 Merge pull request #12615 from pchote/fix-yaml-merging-again
Fix yaml merging (again).
2017-01-27 13:39:49 +01:00
Paul Chote
255214e77c Fix timed external conditions being rejected instead of reset. 2017-01-26 22:52:26 +00:00
Paul Chote
33210ad818 Merge pull request #12631 from drscream/fix/liblua-lookup-smartos
Lookup for liblua in /opt/local/lib
2017-01-26 22:47:46 +00:00
abcdefg30
77663ba2d6 Merge pull request #12624 from pchote/fix-ref-sell
Only remove resources when a silo/refinery is killed.
2017-01-26 18:16:50 +01:00
abcdefg30
5496c9be00 Merge pull request #12627 from GraionDilach/veins-fix
Fix vein attack animation moving along with target.
2017-01-26 18:15:55 +01:00
Paul Chote
5377d70f92 Style fixes. 2017-01-26 17:27:13 +01:00
abcdefg30
5ff47162ec Merge pull request #12513 from reaperrr/cnc-warhead-saving
Some minor TD weapon yamls restructuring
2017-01-26 17:22:00 +01:00
Thomas Merkel
b4cdf18367 Lookup for liblua in /opt/local/lib which is required to work on SmartOS with pkgsrc
We need to lookup also for liblua at /opt/local/lib which is used as PREFIX in pkgsrc on SmartOS.
2017-01-26 13:17:06 +01:00
Zimmermann Gyula
cc71582419 Fix vein attack animation moving along with target. 2017-01-26 11:01:36 +01:00
Zimmermann Gyula
8e9370054d Add a disable option to LeavesTrails->StartDelay via negative values. 2017-01-26 11:01:35 +01:00
Paul Chote
3b4f515e2a Only remove resources when a silo/refinery is killed. 2017-01-25 20:07:15 +00:00
RoosterDragon
6a0b993fa2 Remove attackBases member from AutoTarget.
We can use the activeAttackBases member everywhere.
2017-01-25 18:29:33 +00:00
reaperrr
2760829353 Rename TD largecaliber.yaml to ballistics.yaml
Mostly because Grenade was added to it.
2017-01-25 18:57:58 +01:00
reaperrr
5f6a350d41 Make TD Chemspray inherit ^FlameWeapon
Results in a small reduction of yaml lines and makes it easier to make
across-the-board changes in the future.
2017-01-25 18:50:43 +01:00
reaperrr
7496bfff7c Move TD TiberiumExplosion to explosions.yaml 2017-01-25 18:50:42 +01:00
abcdefg30
248d9df3ab Merge pull request #12622 from MustaphaTR/d2k-ai-building
D2K - Some AI Fixes
2017-01-25 15:50:18 +01:00
abcdefg30
2eb8718938 Merge pull request #12618 from MustaphaTR/d2k-ai-fremen
D2K - Make AI able to use Fremen SW.
2017-01-25 15:45:26 +01:00
Mustafa Alperen Seki
ec4f79f372 Reorder D2K rule files on mod.yaml
This effects the order on map editor.
2017-01-25 11:33:18 +02:00
Mustafa Alperen Seki
86180adc13 Some AI fixes and reorder Structures on AI.yaml 2017-01-25 11:20:56 +02:00
Paul Chote
b803034cef Resolve yaml removals in weapon definitions. 2017-01-24 22:19:17 +00:00
abcdefg30
f6c66c4f63 Merge pull request #12598 from MustaphaTR/d2k-str-repair-and-damage
D2K - Fix Low Repair and Terrain Damage.
2017-01-24 20:05:45 +01:00
abcdefg30
68dd2b57fc Merge pull request #12621 from MustaphaTR/d2k-debris-bounce
D2K - Add bouncing to Debris.
2017-01-24 20:03:28 +01:00
abcdefg30
f3e58056fa Merge pull request #12614 from reaperrr/prep-slim-ra-weapons4-other
Prepare RA weapons for inheritance part 4 - other weapons
2017-01-24 16:45:13 +01:00
abcdefg30
83d6100c18 Merge pull request #12619 from MustaphaTR/d2k-orni-target-types2
D2K - Remove the unused "TargetTypes: Air" from ornithopter
2017-01-24 15:49:01 +01:00
abcdefg30
b053da6e63 Merge pull request #12520 from reaperrr/prep-slim-ra-weapons
Prepare for slimming RA weapon yamls Part 1 - explosions
2017-01-24 15:47:17 +01:00
Mustafa Alperen Seki
4601331f7f Add bouncing to D2K Debris. 2017-01-24 15:04:29 +02:00
Mustafa Alperen Seki
5c24512735 Make D2K AI able to use Fremen SW. 2017-01-24 14:13:54 +02:00
Mustafa Alperen Seki
61b0d46155 Remove unused "TargetTypes: Air" from ornithopter 2017-01-24 12:33:20 +02:00
abcdefg30
274cf14c6f Merge pull request #12613 from reaperrr/prep-slim-ra-weapons3-misl
Prepare RA weapons for inheritance part 3 - Missiles
2017-01-23 23:01:17 +01:00
abcdefg30
8910a8aec5 Merge pull request #12612 from reaperrr/prep-slim-ra-weapons2-small
Prepare RA weapons for inheritance part 2 - small arms
2017-01-23 22:59:48 +01:00
Paul Chote
2be8cedddf Add StringComparison arguments to StartsWith. 2017-01-23 20:22:46 +00:00
reaperrr
9f9bda9634 Move FLAK weapons up in RA smallcaliber.yaml 2017-01-23 21:19:28 +01:00
reaperrr
decf2150a7 Move RA Colt45 down inside smallcaliber.yaml 2017-01-23 21:19:27 +01:00
reaperrr
58a79162f5 Remove watersplash from RA Napalm bombs
They are rarely used anyway, and this allows the weapon to make use of inheritance more easily later on.
2017-01-23 21:17:20 +01:00
reaperrr
b57411b0f6 Move RA Grenade and DepthCharge to largecaliber.yaml 2017-01-23 21:17:18 +01:00
reaperrr
ce41a037ee Move APTusk up in RA missiles.yaml 2017-01-23 21:14:53 +01:00
reaperrr
319d53990a Move SubMissiles down in RA missiles.yaml 2017-01-23 21:14:51 +01:00
reaperrr
3c2fe1e1a7 RA missile warhead naming fixes
To make inheritance easier later on.
2017-01-23 21:14:50 +01:00
reaperrr
6fe223ba0e Streamline cosmetic RA building explosions 2017-01-23 21:11:00 +01:00
reaperrr
12b9c97f0b Rename and in a few cases move around warheads in RA explosions.yaml
To make inheriting easier down the road.
2017-01-23 21:11:00 +01:00
reaperrr
e75e6ce614 Move nuke explosions to end of RA explosions.yaml 2017-01-23 21:11:00 +01:00
reaperrr
9d62c1a1d6 Merge pull request #12610 from obrakmann/sysinfo-64bit
Add OS bitness to sysinfo query
2017-01-23 20:49:50 +01:00
Paul Chote
f4bcf79e7c Merge pull request #12524 from paulvt/deb-packaging-lintian-clean
Debian packaging lintian clean
2017-01-23 18:20:10 +00:00
abcdefg30
d165523072 Merge pull request #12608 from MustaphaTR/d2k-crate-terrain-types
D2K - Add more tile types to possible places Crates can spawn
2017-01-23 13:49:31 +01:00
Mustafa Alperen Seki
695b6e5c9a Add Transition, Spice and Concrete to Crate's TerrainTypes 2017-01-23 07:53:08 +02:00
Oliver Brakmann
53c037aa53 Add OS bitness to sysinfo query 2017-01-22 21:36:32 +01:00
Oliver Brakmann
6177855e20 Merge pull request #12607 from MustaphaTR/d2k-fix-carryall-on-concrete
D2K - Fix Carryalls can't land on Concrete
2017-01-22 21:07:11 +01:00
Oliver Brakmann
9993a235a7 Convert ResupplyAircraft into a CompositeActivity 2017-01-22 20:42:19 +01:00
Oliver Brakmann
9b0780e87c Make FlyAttack use child activities 2017-01-22 20:41:41 +01:00
Oliver Brakmann
e49b3d6458 Adjust existing activities for changed NextActivity semantics
To make sure existing checks against NextActivity don't check the parent activity by mistake
2017-01-22 20:41:37 +01:00
Paul van Tilburg
17617334dd Nothing should have group writable permissions
These might occur due to difference in umask values.
2017-01-22 20:41:19 +01:00
Oliver Brakmann
4105f9ed22 Add a debugging helper to print the activity tree 2017-01-22 20:39:43 +01:00
Oliver Brakmann
581640c4d4 Add a 'Canceled' activity state 2017-01-22 20:39:40 +01:00
Oliver Brakmann
660124156f Add built-in support for child and composite activities 2017-01-22 20:39:17 +01:00
Mustafa Alperen Seki
bcee1fafd8 Add "Concrete" to Carryall's "LandableTerrainTypes:" 2017-01-22 20:31:59 +02:00
abcdefg30
e489211434 Merge pull request #12481 from reaperrr/rem-runafterdelay
Remove Game.RunAfterDelay from SwallowActor
2017-01-22 17:54:16 +01:00
reaperrr
d05d7a6944 Remove Game.RunAfterDelay from SwallowActor
RunAfterDelay might be potentially problematic for savegame support.
2017-01-22 17:41:55 +01:00
reaperrr
42df24a18a Introduce MapNotificationEffect 2017-01-22 17:41:55 +01:00
reaperrr
c470e04988 Merge pull request #12566 from reaperrr/ts-weapons-misc1
Various minor TS weapon cleanups
2017-01-22 16:40:41 +01:00
reaperrr
e4fd10e46b Merge pull request #12603 from reaperrr/fix-d2k-spicebloom-spawns
Fix spicebloom spawns on all older D2k maps
2017-01-22 16:38:23 +01:00
reaperrr
d435cbc0c2 Fix Ion Cannon targeting to allow shooting at water 2017-01-22 12:30:38 +01:00
reaperrr
489fb91f26 Remove TS bombsandgrenades.yaml and move its weapons elsewhere
Grenade and RPGTower weapon to ballisticweapons.yaml, Bomb to otherweapons.yaml
2017-01-22 12:30:38 +01:00
reaperrr
68e45f7c67 Rename TS largeguns.yaml to ballisticweapons.yaml 2017-01-22 12:27:48 +01:00
reaperrr
a41cfc50a8 Enable water splash for TS AA missile
On the unlikely off chance that the missile might fall into water.
2017-01-22 12:27:48 +01:00
reaperrr
bbff2b3fd4 Remove unnecessary smudge warhead removals
The smudge WH code now exits early when exploding above ground, so this is no longer necessary.
Also renamed the default smudge WH identifier since the number is (currently) no longer correct and not necessary, either.
2017-01-22 12:27:48 +01:00
reaperrr
2036ed55d7 Remove air-only explosions from TS missiles
The original didn't differentiate, and the audiovisual contrast is also a bit too strong (and the air explosion sound was a bit annoying).
2017-01-22 12:27:48 +01:00
reaperrr
a9d8cd58c5 Replace pre-placed spiceblooms with spawners on all D2k maps
Spice Blooms are not supposed to grow on cells occupied with spice, so it's better to use the spicebloom.spawnpoint actor instead as most of them are placed on cells initially covered by spice.
2017-01-22 12:10:38 +01:00
reaperrr
c80072e7f3 Minor d2k yaml style fixes 2017-01-22 12:10:36 +01:00
abcdefg30
b5944fe1a7 Merge pull request #12515 from reaperrr/slim-d2k-weapons
Slim down D2k weapon yamls
2017-01-22 00:06:43 +01:00
abcdefg30
d8c154a772 Merge pull request #12546 from Mailaender/sdl2-2.0.5
Updated Windows SDL2 to version 2.0.5
2017-01-21 23:46:47 +01:00
Oliver Brakmann
c5cf787b84 Merge pull request #12501 from pchote/osx-retina
Add HiDPI support for OSX/Windows/Linux
2017-01-21 22:54:15 +01:00
Oliver Brakmann
145fd2eed0 Merge pull request #12571 from reaperrr/bullet-bounce
Implement bullet bouncing logic
2017-01-21 22:06:23 +01:00
Oliver Brakmann
05475d752a Merge pull request #12503 from pchote/radarjammer
Migrate ProvidesRadar from IDisable to conditions.
2017-01-21 20:55:37 +01:00
Oliver Brakmann
e5dda218ea Merge pull request #12540 from reaperrr/takeovers/minelayer-merge
Merge RA minelayers
2017-01-21 19:51:29 +01:00
Oliver Brakmann
0dfbd46b1f Let activities know when they are being run for the first or last time 2017-01-21 18:37:00 +01:00
Paul Chote
85053d8d59 Merge pull request #12601 from obrakmann/activities-pt1.5
Rename existing activity states
2017-01-21 17:32:18 +00:00
Paul Chote
1f44e91746 Migrate ProvidesRadar to conditions and remove JamsRadar. 2017-01-21 17:24:54 +00:00
Paul Chote
18d2454306 Pixel double hardware cursors on non-OSX. 2017-01-21 11:00:00 +00:00
Paul Chote
fb451fb203 Add an OPENRA_DISPLAY_SCALE environment variable for linux. 2017-01-21 11:00:00 +00:00
Paul Chote
87b894ad8e Add support for the windows DPI scaling. 2017-01-21 11:00:00 +00:00
Paul Chote
5e7c816257 Add support for font scaling. 2017-01-21 10:59:59 +00:00
Paul Chote
6599aeb035 Add support for retina displays on OSX. 2017-01-21 10:59:59 +00:00
Paul Chote
951ce92fcc Update to new OSX launcher snapshot. 2017-01-21 10:59:59 +00:00
Paul Chote
75c2b117d0 Update to new SDL2-CS snapshot. 2017-01-21 10:59:59 +00:00
reaperrr
bb972fa46d Merge pull request #12591 from MustaphaTR/d2k-map-tsimpo
D2K - Add Tsimpo to map pool.
2017-01-21 11:05:55 +01:00
reaperrr
67e225f12d Merge pull request #12590 from MustaphaTR/d2k-map-sietch-tabr
D2K - Add Sietch Tabr to map pool.
2017-01-21 11:05:36 +01:00
reaperrr
71dcc11e57 Merge pull request #12589 from MustaphaTR/d2k-map-habbanya-erg
D2K - Add Habbanya Erg to map pool.
2017-01-21 11:05:20 +01:00
reaperrr
a19cecd34e Merge pull request #12588 from MustaphaTR/d2k-map-habbanya-ridge
D2K - Add Habbanya Ridge to map pool.
2017-01-21 11:05:01 +01:00
Oliver Brakmann
683d3e747b Rename existing activity states 2017-01-20 22:16:25 +01:00
Mustafa Alperen Seki
9ab2d2d763 Added D2K map Sietch Tabr 2017-01-20 13:42:28 +02:00
Mustafa Alperen Seki
39a9ff318f Add D2K map Habbanya Ridge 2017-01-20 12:18:28 +02:00
reaperrr
42a8c83aad Make disc Grenade work like in original TS 2017-01-20 00:55:02 +01:00
reaperrr
2f0b1a16d0 Upgrade Bullet bounce logic with target checking 2017-01-20 00:55:00 +01:00
reaperrr
bf47affd2e Add bounce logic to Bullet
Allows Bullet projectiles to bounce off ground.
2017-01-20 00:54:59 +01:00
reaperrr
9dab3d57f4 Remove explosion sound from D2k gun turret weapon
It was soundless in the original, and the sound is a bit annoying, too.
2017-01-19 22:48:14 +01:00
reaperrr
c67735626c Slim down D2k CrateNuke via inheritance 2017-01-19 22:43:30 +01:00
reaperrr
983047f78a Slim down D2k missile weapons via inheritance 2017-01-19 22:43:30 +01:00
reaperrr
dc4073009d Slim down D2k miniguns via inheritance 2017-01-19 22:43:30 +01:00
reaperrr
b1aa1bc2c1 Slim down D2k cannon weapons via inheritance 2017-01-19 22:43:30 +01:00
reaperrr
6d56d3485b Slim down D2k Debris weapons via inheritance 2017-01-19 22:43:30 +01:00
reaperrr
fe7d785216 Merge pull request #12581 from MustaphaTR/d2k-crate
D2K - Changed Give Unit Crate Powerups a bit
2017-01-19 21:45:28 +01:00
RoosterDragon
867ad0fb32 Merge pull request #12572 from GraionDilach/experience-modifiers
Implement experience multipliers.
2017-01-19 20:42:48 +00:00
RoosterDragon
2428b967bf Cache coloring delegate in AppearsOnRadar.RadarSignatureCells. 2017-01-19 20:23:53 +00:00
RoosterDragon
9c59d7e255 Avoid delegate allocation in AutoTarget.
Extract a common method for deciding if an attack should happen, and avoid LINQ inside this method.
2017-01-19 20:23:52 +00:00
RoosterDragon
d1cc546f8d Avoid delegate allocation in RotationPaletteEffect.
Use a loop to perform the same check instead.
2017-01-19 20:23:50 +00:00
RoosterDragon
2239d6c88e Cache activeAttackBases query in AutoTarget. 2017-01-19 20:23:49 +00:00
RoosterDragon
a6af65f380 Avoid allocations in SelectionDecorations when we have nothing to draw.
Return an empty enumerable immediately rather than allocating a compiler generated enumerable via 'yield'. We can defer allocating these until we actually need to draw them.

Also, cache the trait lookup.
2017-01-19 20:23:48 +00:00
RoosterDragon
fbf6f45b11 Avoid boxing Booleans when dumping sync traits.
We can return the resulting strings directly.
2017-01-19 20:23:47 +00:00
Mustafa Alperen Seki
22043f4d57 Set "DamagedByTerrain"'s "Damage:" and "RepairStep" to 50. 2017-01-19 20:49:34 +02:00
Pavel Penev
9816052262 Merge pull request #12597 from Micr0Bit/patch-2
Update AUTHORS
2017-01-19 20:14:17 +02:00
Paul Chote
5f582a71b1 Merge pull request #12567 from reaperrr/fix-ts-critters
Fix TS critters
2017-01-18 21:04:45 +00:00
reaperrr
eec7333f45 Remove veterancy from Tiberian Fiend
Matches original game as well.
2017-01-18 21:58:07 +01:00
reaperrr
36920f2279 Fix adult visceroid armor type
As per original rules.ini.
2017-01-18 21:58:07 +01:00
reaperrr
676bb41bef Give adult visceroid a larger target scan radius 2017-01-18 21:58:07 +01:00
reaperrr
13faf5c54c Fix TS Tib Fiend and adult visceroid sight range
Otherwise they won't attack with shroud enabled!
2017-01-18 21:58:07 +01:00
reaperrr
5d410ee72e Fix critter owner on shipping maps 2017-01-18 21:58:07 +01:00
reaperrr
2da1304522 Fix large TS visceroid attack and enable attack animation
Unfortunately the animation sprite starts at an unusual facing, so we have to work around that by manually fixing the order. Using Combine is easier than listing a whopping 40 frames in the correct order.
2017-01-18 21:58:07 +01:00
reaperrr
b19d4c0f80 Fix and tweak TS critter wander delays
The property name has bit-rotted, and the values of the Tiberian Fiend were too low/short, resulting in too much hectic activity.
2017-01-18 21:56:36 +01:00
reaperrr
4206bdf491 Slightly tweak default TS infantry selection box 2017-01-18 21:56:36 +01:00
reaperrr
cef80b6c17 Fix Tiberian Fiend selection box 2017-01-18 21:56:36 +01:00
Micr0Bit
06c9494e2c Update AUTHORS 2017-01-18 21:35:25 +01:00
reaperrr
ac18ab5f3a Merge pull request #12557 from GraionDilach/reveal-on-fire
Implement reveal-on-fire.
2017-01-18 21:32:44 +01:00
reaperrr
da30dfc93d Merge pull request #12583 from MustaphaTR/d2k-sardaukar-tech-level
D2K - Change tech level of Sardaukar to medium
2017-01-18 20:44:19 +01:00
reaperrr
68a72a61bc Merge pull request #12565 from FrameLimiter/patch-1
Fixes Spy detection for Spies.
2017-01-18 12:28:14 +01:00
reaperrr
a8ca251e25 Move TD Grenade to largecaliber.yaml
This is more about making maintenance a little easier than logic. The file might get renamed to 'ballistic.yaml' at some point, though.
2017-01-17 22:31:56 +01:00
reaperrr
a9f1f371d8 Move TD Vulcan up for more consistent order 2017-01-17 22:31:55 +01:00
reaperrr
59619a4e0d Merge pull request #12568 from elena-v2/d2k-no-starport-toggle
Remove CanPowerDown from starports
2017-01-17 22:07:07 +01:00
reaperrr
e2fcbb1ad4 Merge pull request #12593 from MustaphaTR/d2k-fix-tile-443
D2K - Fix tile 443
2017-01-17 22:02:34 +01:00
Zimmermann Gyula
4bce601db2 Implement reveal-on-fire. 2017-01-17 18:59:07 +01:00
Mustafa Alperen Seki
8304807c1b Fix tile 443. 2017-01-16 18:35:19 +02:00
Mustafa Alperen Seki
2ab1659422 Add D2K map Habbanya Erg 2017-01-16 16:08:03 +02:00
Mustafa Alperen Seki
9bd65908b4 Add D2K map Tsimpo 2017-01-16 16:00:57 +02:00
abcdefg30
9a202015b0 Merge pull request #12584 from MustaphaTR/d2k-importer-spacebloom
D2K - Make map importer use spicebloom.spawnpoint instead of spicebloom
2017-01-15 22:14:53 +01:00
Zimmermann Gyula
1544f24663 Implement experience multipliers. 2017-01-15 20:33:26 +01:00
Mustafa Alperen Seki
a1d349ee38 Make map importer use spicebloom.spawnpoint instead of spicebloom 2017-01-15 20:17:50 +02:00
Mustafa Alperen Seki
4cf9fad639 Change tech level of Sardaukar to medium. 2017-01-15 20:15:08 +02:00
reaperrr
5ceee1d6fb Merge pull request #12562 from AoAGeneral/AoATD
TD Aircraft Speeds.
2017-01-15 14:16:31 +01:00
Mustafa Alperen Seki
fceab8b248 Changed D2K Give Unit Crate Powerups a bit 2017-01-15 13:40:29 +02:00
elena-v2
003772a7bf Remove CanPowerDown/RequiresPower from starports
Starports are production facilities and the ability to toggle their power
status conflicts with the expected behaviour from other official OpenRA
mods.
2017-01-12 10:47:20 -08:00
FrameLimiter
ef917588e4 Fixes Spy detection for Spies. 2017-01-11 14:13:00 -05:00
reaperrr
f72614f14f Merge pull request #12563 from FrameLimiter/bleed
RedEye Minimum Range.
2017-01-11 19:26:06 +01:00
reaperrr
e50a95002f Merge pull request #12561 from MustaphaTR/d2k-turret-capture-fix
D2K - Fix that Turrets are capturable.
2017-01-11 19:18:12 +01:00
FrameLimiter
9e2a1c01cd RedEye Minimum Range.
Fixes #12123
2017-01-10 17:56:15 -05:00
AoAGeneral
67117b1481 TD Aircraft Speeds.
Balancing out some of the small things that makes a big difference with the aircraft. Listings below:

Chinook:

Mobile speed increased from 140 to 150.

This is increasing because a number of vehicles catch up to these. (Bikes, APCs, buggies, humvees.)

Increasing the movement of this unit will help to outrun the APCs and other projectiles a little quicker. It also helps to compensate for travel distances. These units are only used in early game because of the enemies lack of AA. Increasing the speed will help their longevity.


Apache mobile speed decreased from 186 to 180.

This is done to prevent these units from chase killing Orcas as their machinegun fire is on point hits with minimal damage. HP remains the same (Orca 90 Apache 125). Orca being lighter in HP allows it to move more quickly while the apache can soak more damage. In air vs air battles the apache tends to win due to their guns vs slow missile fire.


Both Orca and Apache turnspeed increased from 4 to 7.

This is increased on both units because they take a full second before they are able to aim at targets leaving them stationary and taking hits. Increasing this speeds allows them to be what they are ment to be as hit and strike crafts. The turning speed also allows them to hit targets more effectively on the move.
2017-01-10 14:23:30 -08:00
Mustafa Alperen Seki
aea195dade Fix D2K Turrets are capturable. 2017-01-10 10:31:54 +02:00
reaperrr
e4f6fad7d2 Merge pull request #12547 from ltem/d2k-extended-upgradetooltips
D2k extended upgradetooltips
2017-01-08 21:03:49 +01:00
ltem
b1a1464505 Added Tooltip to (Large) Concrete Slab; Renamed IX Lab -> IX Research Center 2017-01-08 16:05:14 +01:00
Oliver Brakmann
bd3639e81d Merge pull request #12358 from reaperrr/cashtrickler-upgrade
Add upgrade support to CashTrickler and split off GivesCashOnCapture
2017-01-08 14:12:01 +01:00
reaperrr
8699d0fca3 Safeguard CashTrickler negative values
By making sure to never remove more cash than the player has.
2017-01-08 13:53:19 +01:00
reaperrr
7dcda5db30 CashTrickler style fixes and Period -> Interval rename 2017-01-08 13:53:17 +01:00
Zimmermann Gyula
bc1e2a7058 Revamp CashTrickler.
Added upgrade support.
Decoupled the capture bonus to a separate trait.
2017-01-08 13:53:16 +01:00
reaperrr
c76cc984dc Merge pull request #12548 from reaperrr/fix-d2k-trike-muzzle
Add InstantHit projectile and fix Trike/Raider muzzle flashes
2017-01-08 12:24:49 +01:00
Oliver Brakmann
023087d7c4 Merge pull request #12552 from abc013/betterNaval
Changed the Naval AI to build Service Depots
2017-01-07 20:08:50 +01:00
Oliver Brakmann
439b4b18cf Merge pull request #12550 from reaperrr/fix-ur-dates
Fix upgrade rule dates
2017-01-07 20:08:02 +01:00
reaperrr
b77b67e560 Fix Trike/Raider muzzle flashes
Armament requires a projectile to fire.
2017-01-07 15:12:20 +01:00
reaperrr
adfe78fca5 Add simple, invisible instant-hit projectile
For melee attacks, machine guns and so on.
2017-01-07 15:12:16 +01:00
abc013
0f1146a067 Changed the Naval AI to build Service Depots 2017-01-07 14:07:08 +01:00
reaperrr
4a6e378390 Fix upgrade rule dates
They were merged after prep was split off.
2017-01-07 13:20:22 +01:00
ltem
10ed0cb62f Enhancements for the upgrade-tooltips 2017-01-06 20:59:54 +01:00
ltem
8a07910627 Small format fix for combat tank tooltip 2017-01-06 20:59:54 +01:00
ltem
8887de5b55 Renamend Thumper -> Thumper Infantry 2017-01-06 20:59:54 +01:00
reaperrr
2b92daa955 Merge pull request #12322 from abc013/allies-06a
Added allies-06a to the Red Alert mod
2017-01-06 12:54:17 +01:00
abc013
52b7fc0329 Added allies-06a to the Red Alert mod 2017-01-06 12:42:20 +01:00
reaperrr
8f685ee849 Use FactionImages to give RA mine faction-specific appearance 2017-01-06 12:35:49 +01:00
reaperrr
3afbf8384b Merge pull request #12536 from AoAGeneral/AoATDGDNiceMeme
TD Balance Changes. NME.
2017-01-06 11:50:33 +01:00
Matthias Mailänder
d4079d1bd1 Update Windows SDL2 to version 2.0.5 2017-01-05 21:26:45 +01:00
Paul van Tilburg
55a17f6153 Add comments to the overrides; drop the missing manpage override
The missing openra-server manpage warning should not be overriden,
as the manpage should be there. (See also: #12525).
2017-01-05 20:38:35 +01:00
AoAGeneral
8266c96a38 Add detection to temple of Nod.
(Nice to have detection then stealthers sneaking by it)

artillery minimum range increase from 2c896 to 3c0.

mammoth tank HP increase from 800 to 870.
(Dies by medium tank spams and e3 a little to easily from recent changes. With a longer build time they fall prey to mass numbers.)

ion time increase from 3:00 to 4:30.
(Ion strikes go off a little to fast. Mammoth armies take about 2:00 to build back up. By the time base attacks happen close to 3:00)

nuke timer from 5 to 6.
(Because the nuke damage has been buffed)

nuke damage spread from 2c512 to 5c512.
(Nuke damage spread was to weak. Barely killing a power plant where it lands just a few cells away from base hit)

nuke spread damage increased from 100 to 110. (First spread modifier)
(See line above)

a10 timer increased from 3:30 to 4:00.
(Timer increased because they were going off a little to fast still. These planes kill infantry builds as it is.)

MSAM HP from 120 to 180.
(To weak vs air. Missiles drain takes a few seconds to reload and then sniped within that time. Specially since dedicated AA)

Commando weapon range increased from 6c0 to 8c0.
(They had the same range as e3 and minigunners were able to close distances on them extremely fast. Take note they shoot farther then their vision range.)

Commando weapon projectile speed increased from 1c682 to 5c682.
(This was super annoying. You fire a shot and the infantry doesn't die because bullet travel to slow. Increased this fixed the problem.)

Commando price increase from 1000 to 2000.
(Extremely cheap when buffed. Increased price to match their power.)

Commando build time increased from 24 to 32. (2000 Build duration)
(Build time a little to fast. Compensates this with multiple barracks.)

Husks interval timer increased from 2 to 6.
(Husks blow up to fast to capture anything. Kept on low timer to prevent vehicle block. Only possible way is to have an engineer in an APC ready. Which Nod is unable to have APCs.)

Bike damage increase from 30 to 31.
(HP changes on harvs, structures, and mammoth. A very small change leading to a decent buff. Granting a 2 damage increase with constant hits)

Chem damage vs none reduced from 100 to 70.
(Chems performing a little to well by themselves. Having mixed units is a better solution. IE: My recent flame tank chem trooper mix)

Chem damage vs armor increased from 50 to 75.
(Chems performed a little to weak vs armor. Doing less damage then infantry and getting squashed by medium tanks and light tanks. This will make players think twice about squashing tactics. Also more damage vs armored defenses.)

Grenadier accuracy reduced from 213 to 813. (Makes them miss a lot more).
(Grenadiers were to accurate and unable to kill infantry packs. Looking at CNC95 and RA in ORA they miss their targets as well. Having them miss spreads their AoE damage and able to take out infantry packs. Players maye want to think of spreading infantry when fighting grenadiers)

Flamer damage vs armor reduced from 20 to 10. (Flame infantry)
(To much damage to APCs and light tanks)

Flamer damage vs none increased from 100 to 110. (Flame infantry.)
(Made them stronger vs infantry to balance out vs chems. Makes them a strong viable choice.)

Harv build timer increase from 24 to 27. (1680 build timer)
(Harv spamming is like a disease. Its gotten to strong to quickly. Increasing their timer slightly also increases other viable builds.)

Harvester HP increase from 600 to 625.
(Both medium tanks and bikes doing a little to much damage. Compensates slightly for build timer)

Refinery power reduced from 50 to 40.
(Offers more build choices. Opening barracks becomes stronger then going strip/factory all the time. Both openings strong strats just requires scouting.)

Refinery sell no longer refunds.
(Includes with the harv spamming. Gave 250 back which counted towards buggy/bike money. IE: PP > Ref > Strip (Strip makes 2-3 buggies 2 bikes then a harv) > Ref (Sell ref gain harv) > Strip (Because power only 30) > PP

Refinery tiberium hold reduced from 2000 to 700.
(This has had no impact to force people to build silos. But it opts people to protect refineries rather then "Lost a ref. Meh. Got 3 others.". Losing a ref now loses earned money. If it holds money. Also prevents sell trick to save power.)

Silo hold increase from 2000 to 3000.
(Compensate for Refinery. Also has extra HP now. See below.)

AGT HP from 600 to 550.
(Way to strong when it came to units coming to these in mass amounts. Also hard for artillery units to shell due to small box size and HP pool.)

Light Tank price reduced from 700 to 650.
(700 was a bit to high. 650 seems to hit the right spot but left build time as is. 0:17)

Visceroid spawn reduce from 10 to 5.
(This was a weird one. Infantry dieing in tiberium was at a good spot. But for some reason when chems kill infantry it would create 2-3 visceroids. Then those visceroids would create 2-3 at a time. RNG issue so was reduced.)

Increase all building HP by 100.
(Help balance vs medium tanks, bikes, light tanks, chems, grenadiers, air units, and stealth tanks.)

Gun turret HP increase from 400 to 410.
(This is taking baby steps. I want them a little tougher vs medium tanks but not at the point of RA style. Same logic as obrakmann taking baby steps with MCV.)

Starting units adjusted.
(This created a big problem in competitive scenes. Having early units is good to prevent infantry rushes. But starting with a bike/apc while your opponent starts with a hummer/buggy is to off balancing.)

MCV build time decreased from 1:36 to 1:00. (3750)
(Price unchanged. Takes a little to long in team games and some 1v1 scenarios to get one built. Also now drains money faster to compensate)

Engineer HP increase from 25 to 30.
(Dies a little to quick hummers/buggies. Same kill time as minigunner (If takes a hit while standing)

APC HP increase from 210 to 215.
(These are dieing a little to fast and weak vs certian units. IE: buggies/hummers and bikes. Tested vs light tanks and more optimal. Baby steps.)

APC Damage vs light decreased from 105 to 100.
(I don't want them killing bikes to fast now that they are cheaper.)

APC cost decreased from 600 to 550.
(APCs for infantry builds as GDI was waaaaay to expensive. Having a slightly faster build timer of 0:14 instead of 0:15 will help too. Helps to withstand early onslaught of Nod. Keep note bikes still 0:12 timer)

(Created new Sam weapon Dragon from RA e3 AA. Reason: Shared weapon with AGT.)

Samsite range increased from 8c0 to 12c0.
(Dedicated AA. Keep note: Longer range = longer time to kill a unit and able to escape. Closer it is the faster air units die.)

Samsite spread damage decreased from 682 to 128.
(To much AoE damage)

Samsite range limit increased from 9c614 to 15co.
(Missiles would die out within its own range circle.)

Samsite reveal shroud decreased from 8c0 to 6c0.
(Prevents the RA logic of build an AA in front of your base and all good. You need units/structures to make good use of its range.)

Samsite now fires two shots at a time.
(Increases damage and intuitive to home base of CNC95.)

Recon Bike HP decreased from 120 to 110.
(Takes to long to kill these units when vs minigunners and light vehicle types. APCs taking to long to kill these.)

Airstrip/Weapon Factory power increased from 30 to 50.
(Increased like a disease. Nod players going with an extremely fast 4 strip build without com center. GDI maxing at 3 factories with non stop vehicles. Infantry became to weak.)

Communication Center power increased from 40 to 50.
(See above.)

APC movement speed increased from 128 to 132.
(A little to slow vs light tanks and dealing with buggies. Buggies being faster still they are able to get a few extra shots off. Provides better base entry.)

MRLS range reduced from 12c0 to 11c0.
(Out ranging Nod artillery. Extremely accurate as is and to strong vs several units. Shorter range allows faster vehicles to reach them better.)

MRLS damage vs none reduced from 35 to 25.
(To much damage vs infantry. Specially to e3.)

Obelisk power reduced from 150 to 90.
(Having to build an adv power plant after each Obelisk is put up is insane. Two Obelisk = 180 now and adv power plant is 200.)
2017-01-04 10:57:29 -08:00
Oliver Brakmann
27d45f890e Merge pull request #12533 from reaperrr/fix-air-smudges
Fix air explosions leaving smudges
2017-01-03 21:56:17 +01:00
roundowl
508038e3f3 Merges minelayers into single unit placing AT mines
AP minelayer is removed, AT minelayer is made generic and available to both factions. BuildPaletteOrder is pushed up to remove gap.
I didn't remove AP mine from weapons and explosions, because graphics are still there and may be used in future.
2017-01-03 19:54:08 +01:00
reaperrr
5e8a7e8147 Merge pull request #12535 from reaperrr/takeovers/11505fix
Add Stance check for engineer repair
2017-01-03 18:37:32 +01:00
reaperrr
51b05f2d88 Merge pull request #12534 from reaperrr/takeovers/d2kMenu
Tidied up d2k building build menu icon order
2017-01-03 18:34:06 +01:00
entropai
57e5bbb448 Stance modification for engineer repair 2017-01-02 19:36:00 +01:00
C. Helmig
f79e9a23f9 Removed unnecessary conyard prerequisites 2017-01-02 19:18:31 +01:00
abcdefg30
4bf53541f4 Tiedied the d2k building build menu icon order up 2017-01-02 19:17:08 +01:00
reaperrr
7e3e950b5d Fix air explosions leaving smudges
LeaveSmudgeWarhead now only spawns smudges if the explosion happened at or below a certein altitude.
2017-01-01 17:14:31 +01:00
Oliver Brakmann
285e9a8030 Merge pull request #12531 from Phrohdoh/happy-new-year-2017
Happy New Year 2017, everyone!
2017-01-01 15:30:33 +01:00
Taryn Hill
43317e0f5d Update copyright notice year to 2017 2016-12-31 23:46:13 -06:00
reaperrr
ab914b610b Merge pull request #11686 from Mailaender/zbstudio-lua-api
Added API and auto-complete description generator for ZeroBrane Studio
2016-12-31 12:00:04 +01:00
Paul van Tilburg
2dd6376a39 Leave the openra-server man page out for now; add an lintian override
See also issue #12525.
2016-12-30 15:56:57 +01:00
Paul van Tilburg
84c5a72986 Fix the issues with filenames for the md5sums
Lintian reported missing md5sums for all files under usr/ and reported the
existence of md5sums for all files under /usr that we're not in the
package.
2016-12-30 14:40:36 +01:00
Paul van Tilburg
41dfaaf564 Add a lintian override for the font duplication
This will probably never be fixed and the override is there to document
that this is ignored explicitly.
2016-12-30 14:39:21 +01:00
Paul van Tilburg
2ae5dba961 Fix up the changelog
Just use a dummy changelog entry about the release and fix
a syntax error in the entry footer.

The changelog should not contain the contents of Changelog.md as this
results in an unparsable Debian changelog.  The game's changelog is already
available as CHANGELOG.html in /usr/share/doc/openra.
2016-12-30 14:37:03 +01:00
Paul van Tilburg
0210711fad Create a link for the OpenRA server manpage; compress the normal one
The command-line arguments of the openra-server executable are the
same as for openra.
2016-12-30 14:35:56 +01:00
Paul van Tilburg
53c67bc8c2 Fix permissions of the DLL files and game executables
The DLL files should not be exectable, nor should the game executables
be writeable by the group.
2016-12-30 14:34:34 +01:00
Paul van Tilburg
c614c7e730 Fix empty paragraph in description; remove article from short description 2016-12-30 14:32:25 +01:00
reaperrr
5d9ad47a67 Merge pull request #12511 from abcdefg30/onAllMTMsRemoved
Fix a potential crash in Monster Tank Madness
2016-12-28 22:36:15 +01:00
reaperrr
bdb4d642ab Merge pull request #12505 from obrakmann/fix-open.nat-nuget-borkage
Work around Open.Nat installation by nuget failing randomly
2016-12-28 21:01:30 +01:00
reaperrr
faa2862207 Merge pull request #12491 from pchote/force-dotnet
Abort installation if .NET 4.5 isn't installed.
2016-12-28 20:51:43 +01:00
Oliver Brakmann
137359a097 Merge pull request #12355 from reaperrr/rem-nuke-DelAct
Remove DelayedAction from NukePower
2016-12-28 18:56:33 +01:00
reaperrr
f6924d740e Add RevealGeneratedShroud toggle to NukePower
To give modders a choice.
2016-12-28 18:45:50 +01:00
reaperrr
e582ba759f NukePower CameraActor removal upgrade rule 2016-12-28 18:45:49 +01:00
reaperrr
ec5c3a710d NukePower description style fixes 2016-12-28 18:45:47 +01:00
reaperrr
079908d238 Make NukePower use RevealShroudEffect instead of camera actor
Additionally, remove the DelayedAction and let the beacon remove itself
instead.
2016-12-28 18:45:45 +01:00
reaperrr
79add6113c Add RevealShroudEffect
This allows support powers etc. to reveal shroud for customizable amount
of ticks and after customizable delay, instead of spawning camera actors.
2016-12-28 18:45:44 +01:00
reaperrr
1a0f72d2b0 Merge pull request #12484 from pchote/installer-fixes
Fix asset installation on 32 bit windows and with original RA CDs.
2016-12-28 16:53:15 +01:00
reaperrr
72ae03ff81 Merge pull request #12508 from Mailaender/ts-map-forest-fires
Added Tiberian Sun map Forest Fires
2016-12-28 15:31:51 +01:00
reaperrr
aa53553cdf Add BeaconDelay to SupportPower 2016-12-27 17:13:54 +01:00
reaperrr
871576b300 Add delay and full duration support to beacons
Previously, support power beacons were hardcoded to unlimited duration and
then cleaned up directly by the support power. This is problematic if we
want the beacon to remove itself after a certain delay, though.
2016-12-27 17:13:53 +01:00
abcdefg30
846731ef20 Fix a potential crash in Monster Tank Madness 2016-12-27 01:13:16 +01:00
Matthias Mailänder
538047c263 Add Tiberian Sun map Forest Fires. 2016-12-25 06:11:55 +01:00
Oliver Brakmann
86785d5aba Work around Open.Nat installation by nuget failing randomly 2016-12-24 18:42:20 +01:00
Oliver Brakmann
d21b805012 Merge pull request #12497 from pchote/condition-manager
Complete Upgrades -> Condition transition.
2016-12-24 13:43:15 +01:00
Oliver Brakmann
8977a5651f Merge pull request #12499 from RoosterDragon/sound-dispose
Dispose some sound streams
2016-12-24 13:26:51 +01:00
Paul Chote
2322d40395 Renamed Upgrades directory to Conditions. 2016-12-23 23:29:40 +00:00
Paul Chote
268ed016ab Rename UpgradableTrait to ConditionalTrait. 2016-12-23 23:28:34 +00:00
RoosterDragon
226c0a050a Dispose some sound streams. 2016-12-23 19:37:17 +00:00
Oliver Brakmann
53bd29351b Merge pull request #12470 from SoScared/AlliedDefenseNerf
[RA] [Balance] Allied Defensive Structures - Increase Cost & Production Time.
2016-12-23 17:32:17 +01:00
Paul Chote
d0270ab866 Rename comments and documentation. 2016-12-23 15:17:02 +00:00
Paul Chote
152ae13cea Rename SelectUpgradeTarget. 2016-12-23 15:14:36 +00:00
Paul Chote
c8afbb16ba Rename prerequisite watcher key prefix. 2016-12-23 15:13:20 +00:00
Paul Chote
9e70c3f497 Rename GrantUpgradeOnValidDamageState. 2016-12-23 15:11:07 +00:00
Paul Chote
0cf60456a5 Remove upgrade shim code. 2016-12-23 15:09:08 +00:00
Paul Chote
15b465c1e2 Change DeployToUpgrade order to GrantConditionOnDeploy. 2016-12-23 15:07:35 +00:00
Paul Chote
cb9178364f Change upgradeAvailable to instancesEnabled in SupportPowerManager. 2016-12-23 15:06:22 +00:00
Paul Chote
f360c10569 Rename ConditionManager variables. 2016-12-23 15:02:52 +00:00
Paul Chote
dcad5c3f7c Rename UpgradeManager to ConditionManager. 2016-12-23 14:57:56 +00:00
Oliver Brakmann
0e56185195 Merge pull request #12488 from draculus/installation
Fixed Open.Nat directory name case
2016-12-23 15:33:54 +01:00
Oliver Brakmann
189c25431b Merge pull request #12158 from reaperrr/areabeam-tracking
Add AreaBeam target tracking
2016-12-23 14:44:11 +01:00
Oliver Brakmann
f15a81282e Merge pull request #12477 from pchote/conditions-lint
Add a conditions lint rule + other rules fixes.
2016-12-23 14:27:22 +01:00
Oliver Brakmann
f35c83e977 Merge pull request #12465 from pchote/shellmap-overhaul
Rework shellmap UX.
2016-12-23 13:57:37 +01:00
Paul Chote
03236927e5 Replace TD shellmap with a fixed background. 2016-12-23 11:34:23 +00:00
Paul Chote
a16344d347 Remove "Show Shellmap" setting. 2016-12-23 11:34:23 +00:00
Paul Chote
55f76c02d6 Disable world sounds when the ingame menu is open. 2016-12-23 11:34:23 +00:00
Paul Chote
443c3ee72d Disable sound on the shell maps. 2016-12-23 11:34:23 +00:00
Paul Chote
9ddfdc45b3 Introduce SoundType enum. 2016-12-23 11:34:23 +00:00
Paul Chote
f787f275db Add actor conditions lint rule. 2016-12-23 11:31:06 +00:00
Paul Chote
2d8db8ddd2 Fix GALITE conditions. 2016-12-23 11:29:24 +00:00
Paul Chote
2e8479b9a2 Split out and reset crate stat modifier bonuses. 2016-12-23 11:29:24 +00:00
Paul Chote
72f61ed95c Start reorganising TS Inherits. 2016-12-23 11:29:24 +00:00
Paul Chote
72589ae967 Fix TS aircraft conditions. 2016-12-23 11:29:24 +00:00
Paul Chote
4a179e4824 Remove ^EmpDisableMobile inherit. 2016-12-23 11:29:24 +00:00
Paul Chote
a6f25438c3 Remove bogus ExternalConditions from fort-lonestar. 2016-12-23 11:29:24 +00:00
Paul Chote
5979819d9b Work around RA experience inherits. 2016-12-23 11:29:24 +00:00
Paul Chote
0145bfc0c0 Work around RA aircraft inherits. 2016-12-23 11:29:24 +00:00
Paul Chote
623842d699 Fix RA aircraft conditions. 2016-12-23 11:29:24 +00:00
Paul Chote
b5390cb23c Split out ^AcceptsCloakCrate template. 2016-12-23 11:29:24 +00:00
Paul Chote
a4227757b6 Move ^GainsExperience inherit to the actors. 2016-12-23 11:29:24 +00:00
Paul Chote
59013a581c Remove unused airborne condition from TD aircraft. 2016-12-23 11:29:24 +00:00
Paul Chote
024cc3db7e Prepare condition attributes for new lint rule. 2016-12-23 11:29:24 +00:00
Oliver Brakmann
28182ddc36 Merge pull request #12467 from SoScared/nukemoretrees
[RA] Increase Nuke Damage vs Trees
2016-12-21 21:57:10 +01:00
Oliver Brakmann
fd03031bd3 Merge pull request #12179 from abcdefg30/startCrash
Log an error when no cells are available to spawn starting units
2016-12-21 21:22:25 +01:00
Oliver Brakmann
67d10aa5bb Merge pull request #12485 from pchote/remove-ai-capturing
[bleed] Remove AI capturing from TD and RA, and AIs using mechanics and medics in RA
2016-12-21 21:17:23 +01:00
Oliver Brakmann
05c2081143 Merge pull request #12458 from pchote/map-top-targetability
Reduce aircraft not being targetable at the north edge of the map.
2016-12-21 21:14:19 +01:00
abcdefg30
deb082c91e Log an error when no cells are available to spawn starting units 2016-12-19 22:43:45 +01:00
Paul Chote
2ed7e1a0e3 Abort installation if .NET 4.5 isn't installed. 2016-12-19 18:35:23 +00:00
abcdefg30
7513707b8d Merge pull request #12457 from abc013/specchat
Added Replays are showing team chats
2016-12-19 00:07:21 +01:00
reaperrr
19dbcc9886 Merge pull request #12405 from reaperrr/slim-cnc-weapon-yamls
Shrink TD weapon yamls by using inheritance
2016-12-18 19:08:24 +01:00
reaperrr
74f7827187 Merge pull request #12486 from pchote/fix-minelayer-ordergenerator
Avoid querying traits from dead minelayers.
2016-12-18 18:25:32 +01:00
reaperrr
1f626e239b Improve TD largecaliber.yaml order 2016-12-18 18:21:34 +01:00
Paul Chote
d6a7a57ee3 Merge pull request #12429 from reaperrr/firestorm-installation
Add TS Firestorm installation
2016-12-18 15:07:10 +00:00
Paul Chote
5d5e559a8a Merge pull request #12305 from reaperrr/gps-remove-delayedaction
Replace DelayedAction in GpsWatcher with Tick-based solution
2016-12-18 14:13:48 +00:00
Pavel Kačer
0d9f95dc67 Additionally fixed the get() line for Open.Nat 2016-12-18 14:21:07 +01:00
Pavel Kačer
6d9d7cf341 Fixed Open.Nat directory name case 2016-12-18 13:50:32 +01:00
Paul Chote
1abd3a2d6e Add support for the original RA95 CDs. 2016-12-18 00:26:50 +00:00
Paul Chote
e30ca88797 Add support for hashing partial IDFiles. 2016-12-18 00:26:50 +00:00
Paul Chote
f8d0dcad4f Fix SourceType.Install on 32 bit windows. 2016-12-18 00:26:49 +00:00
Paul Chote
d3db66a8af Support multiple registry path prefixes. 2016-12-18 00:26:48 +00:00
Paul Chote
40419bc8ea Avoid querying traits from dead minelayers. 2016-12-17 21:10:11 +00:00
Oliver Brakmann
7e6488c522 Remove AI capturing from TD and RA 2016-12-17 20:53:31 +00:00
Oliver Brakmann
d340f864ec Remove medics and mechanics from RA AIs 2016-12-17 20:53:25 +00:00
reaperrr
4e891751e4 Add TS+FS quick install 2016-12-17 15:59:44 +01:00
reaperrr
993129d679 Add FS map and menu music to FS music package 2016-12-17 15:59:40 +01:00
Guido L
d7b8445d39 Add Map "Drawbridges" 2016-12-17 15:59:38 +01:00
Guido L
e10b1b1166 Add the Firestorm Tileset 2016-12-17 15:59:37 +01:00
Guido L
d70faefc98 Add the Firestorm Trees 2016-12-17 15:59:35 +01:00
Guido L
3dca7fcaa4 Add the Metadata for the Installer 2016-12-17 15:59:33 +01:00
reaperrr
9abfce97fa Rename LaserZap.TracksTarget to TrackTarget
And fix engineVersion of older Duration upgrade rule.
2016-12-17 15:28:28 +01:00
reaperrr
4d738d8fb9 Enable target tracking on TS SonicZap 2016-12-17 15:28:26 +01:00
reaperrr
046f857409 Add target tracking support to AreaBeam
Closes #10181.
2016-12-17 15:28:25 +01:00
Paul Chote
f46a3e2d16 Merge pull request #12377 from Phrohdoh/actor-sequences
Rework resolved MiniYaml outputting utility commands
2016-12-17 12:50:00 +00:00
Paul Chote
aeceb87b6f Merge pull request #12437 from GraionDilach/strapping-missiles
Allow the missile to snap at the target at reach.
2016-12-17 12:41:48 +00:00
Taryn Hill
213e5532f5 Completely rewrite miniyaml tree outputting utility commands
Rename --actor-yaml to --resolved-rules <actor name>
Implement --resolved-sequences <image name>
Implement --resolved-weapons <weapon name>
2016-12-17 06:33:49 -06:00
reaperrr
9acdff1c50 Slim down TD missiles.yaml via inheritance 2016-12-16 21:04:15 +01:00
reaperrr
f30f47de4f Slim down TD other.yaml via inheritance 2016-12-16 21:00:39 +01:00
reaperrr
189ade3001 Slim down TD explosions.yaml via inheritance 2016-12-16 21:00:37 +01:00
reaperrr
90b87bc32c Slim down TD smallcaliber.yaml via inheritance 2016-12-16 21:00:33 +01:00
reaperrr
6e83a3b550 Slim down TD largecaliber.yaml via inheritance 2016-12-16 20:30:36 +01:00
reaperrr
1ed21f3756 Remove unused 105mm and HonestJohn weapons 2016-12-16 20:27:23 +01:00
Paul Chote
83564ecc60 Nudge aircraft back inside the map. 2016-12-16 11:24:17 +00:00
reaperrr
ddb22ec2bd Merge pull request #12452 from GraionDilach/ai-vs-allowmultiple-sp
Fix AI superweapon usage.
2016-12-16 00:32:38 +01:00
reaperrr
f0dd19116f Merge pull request #12469 from SoScared/rename0
[RA] Rename Shipyard and Transport Helicopter
2016-12-14 14:10:38 +01:00
SoScared
69ad1c9e81 Allied defensive structures - increase cost & production time 2016-12-14 00:35:38 +01:00
abcdefg30
0929636b39 Merge pull request #12462 from pchote/condition-granters
Upgrades overhaul part 4d: Other condition granters
2016-12-13 22:28:44 +01:00
Paul Chote
39c2b76c51 Convert DisableOnUpgrade to conditions. 2016-12-13 19:30:42 +00:00
Paul Chote
736d66d2c2 Convert GainsExperience to conditions. 2016-12-13 19:30:42 +00:00
Paul Chote
f4e0b91e04 Convert DeployToUpgrade to conditions. 2016-12-13 19:30:41 +00:00
Paul Chote
1ef3e246d1 Convert GlobalUpgradable to conditions. 2016-12-13 19:30:41 +00:00
Paul Chote
b5ee30345b Convert Pluggable to conditions. 2016-12-13 19:30:40 +00:00
Paul Chote
5719e62c2c Convert AttackSwallow to conditions. 2016-12-13 19:30:40 +00:00
Paul Chote
29d7d42638 Convert UpgradeOnTerrain to conditions. 2016-12-13 19:30:40 +00:00
Paul Chote
f9791bbc1d Convert UpgradeOnMovement to conditions. 2016-12-13 19:30:39 +00:00
Paul Chote
b9bc6eba16 Convert UpgradeOnDamageState to conditions. 2016-12-13 19:30:39 +00:00
Paul Chote
e0583af663 Convert PrimaryBuilding to conditions. 2016-12-13 19:30:39 +00:00
Paul Chote
bcb3d52eb0 Convert Parachutable to conditions. 2016-12-13 19:30:38 +00:00
Paul Chote
a846e484c7 Convert Disguise to conditions. 2016-12-13 19:30:38 +00:00
Paul Chote
04637a305a Convert Cloak to conditions. 2016-12-13 19:30:37 +00:00
Paul Chote
60cd12874e Convert Aircraft to conditions. 2016-12-13 19:30:37 +00:00
abcdefg30
2fcb266e13 Merge pull request #12451 from pchote/cargo-conditions
Upgrades overhaul part 4c: Cargo and Passenger
2016-12-13 16:19:14 +01:00
Paul Chote
f14d770363 Add Cargo.LoadedCondition. 2016-12-12 19:43:58 +00:00
Paul Chote
45af024b15 Convert Cargo to conditions. 2016-12-12 19:43:57 +00:00
reaperrr
ea46199cab Merge pull request #12449 from pchote/uan-conditions
Upgrades overhaul part 4b: UpgradeActorsNear -> ProximityExternalCondition
2016-12-12 20:39:53 +01:00
Paul Chote
32f0d570bf Rework UpgradeActorsNear -> ProximityExternalCondition. 2016-12-12 14:28:54 +00:00
SoScared
e5a3da9df8 Rename to Chinook & Naval Yard. 2016-12-11 20:49:05 +01:00
Oliver Brakmann
5eaaff45ad Merge pull request #12448 from pchote/lua-conditions
Upgrades overhaul part 4a: Lua API
2016-12-11 20:23:59 +01:00
SoScared
d314b22203 nukemoretrees 2016-12-11 19:21:41 +01:00
Paul Chote
f4f2030b29 Port scripts to new api. 2016-12-11 00:40:17 +00:00
Paul Chote
ea7ad2e337 Migrate lua upgrades to conditions. 2016-12-11 00:40:14 +00:00
Oliver Brakmann
37394b6269 Merge pull request #12411 from pchote/fix-multiplesight-crash
Fix crash when actors with multiple RevealsShroud target a dead frozen actor.
2016-12-10 20:56:08 +01:00
Oliver Brakmann
ff65ec8a37 Merge pull request #12338 from reaperrr/explodes-footprint
Add footprint support to Explodes, remove WithBuildingExplosion
2016-12-10 20:17:15 +01:00
reaperrr
4e92311a59 Trigger RA GPS reveal from sat missile effect instead of DelayedAction 2016-12-10 15:41:14 +01:00
reaperrr
20439975d7 Disable Explodes trait on TS bridge huts
They would fail Lint otherwise, because they have no Health trait.
2016-12-10 14:20:11 +01:00
reaperrr
b7f746d711 Remove WithBuildingExplosion
Explodes can now do the same and then some, and WBE uses a DelayedAction
which blocks savegames.
2016-12-10 13:47:51 +01:00
reaperrr
4f2c360cb9 Use Explodes instead of WithBuildingExplosion in D2k 2016-12-10 13:45:12 +01:00
reaperrr
bccc127645 Use Explodes instead of WithBuildingExplosion in TD 2016-12-10 13:45:12 +01:00
reaperrr
eb34621ce8 Use Explodes instead of WithBuildingExplosion in RA 2016-12-10 13:45:12 +01:00
reaperrr
5046855a7d Use Explodes instead of WithBuildingExplosion in TS
Additionally, make Refinery and Tib Silo spawn tiberium on destruction unless empty.
2016-12-10 13:45:12 +01:00
reaperrr
a0934418cf Add support for footprint explosions to Explodes 2016-12-10 13:45:12 +01:00
reaperrr
2d194b077d Make some Explodes property descs a bit more precise 2016-12-10 13:45:12 +01:00
reaperrr
1b3884de23 Make Explodes implement interfaces explicitly 2016-12-10 13:45:12 +01:00
reaperrr
d9d1fe2e73 Move VisibilityType enum to TraitsInterfaces
VisibilityTypes are used by several other traits as well, so it makes more sense to move it to a common, shared location.
2016-12-10 13:45:12 +01:00
Paul Chote
1da4d97240 Merge pull request #12430 from pchote/ts-bridge-rendering
Implement TS ground-level bridges.
2016-12-10 12:01:44 +00:00
Paul Chote
73a0f470c8 Implement TS bridge rendering. 2016-12-10 11:52:05 +00:00
Paul Chote
842e004ec5 Add a RenderSprites.UnnormalizeSequence helper. 2016-12-10 11:52:05 +00:00
Paul Chote
0d769383e2 Add playable category back to A River Runs Near. 2016-12-10 11:52:04 +00:00
Paul Chote
69e3c538d9 Implement ground-level bridge destruction and repair. 2016-12-10 11:52:04 +00:00
Paul Chote
1101218962 Fix TS goldwrench cursor. 2016-12-10 11:36:41 +00:00
Paul Chote
f91307f4be Rename LowBridge to GroundLevelBridge. 2016-12-10 11:36:40 +00:00
Paul Chote
0bc087f7bd Rename BridgeLayer to LegacyBridgeLayer. 2016-12-10 11:36:39 +00:00
Paul Chote
a5549d3944 Rename BridgeHut to LegacyBridgeHut. 2016-12-10 11:35:29 +00:00
Paul Chote
e2322c9c53 Merge pull request #12406 from pchote/external-conditions
Upgrades overhaul part 3: Timed, external, and stacked conditions.
2016-12-09 23:45:14 +00:00
Oliver Brakmann
4b61a52b3a Merge pull request #12434 from reaperrr/mcv-spawn-facing
Make MP start units facings customizable
2016-12-09 21:43:52 +01:00
Oliver Brakmann
b4f6b25941 Merge pull request #12459 from pchote/fix-server-exploit
Reset server slots and reenable spectators when the last player quits.
2016-12-09 21:34:50 +01:00
Oliver Brakmann
8027503832 Merge pull request #12460 from pchote/remove-server-timeout
Remove broken and disabled by default Server.TimeOut setting.
2016-12-09 21:27:12 +01:00
Oliver Brakmann
8babf2b0ca Merge pull request #12290 from abc013/UnCloakOnDamage
[D2k] Added the 'Damage' UncloakType to several units
2016-12-09 19:35:45 +01:00
abc013
a403699367 Added Replays are showing team chats 2016-12-09 19:32:11 +01:00
Paul Chote
1153cd2f7c Reset slot configuration when all players leave a dedicated server. 2016-12-08 21:06:24 +00:00
Paul Chote
5188a08c81 Remove broken and disabled by default Server.TimeOut setting. 2016-12-08 20:49:28 +00:00
Paul Chote
7a9174e7fc Fix aircraft defaults. 2016-12-08 18:23:25 +00:00
Paul Chote
fd1d030cb0 Add GroundPosition support to HiddenUnder(Shroud|Fog). 2016-12-08 18:16:30 +00:00
Paul Chote
35780cadd0 Fix missing base method call in Carryable. 2016-12-06 17:21:15 +00:00
Paul Chote
da6fd74881 Add support for stacked condition bonuses. 2016-12-06 17:21:14 +00:00
Paul Chote
34a94e16f6 Update TD rules. 2016-12-06 17:21:14 +00:00
Paul Chote
149705942c Update RA rules. 2016-12-06 17:21:14 +00:00
Paul Chote
e166cd3222 Update TS rules. 2016-12-06 17:21:14 +00:00
Paul Chote
ac4f89ce51 Add upgrade rules. 2016-12-06 17:21:13 +00:00
Paul Chote
60e45b9eb7 Extract RenameNodeKey helper. 2016-12-06 17:21:13 +00:00
Paul Chote
6e29dfecfe Port GrantUpgradeCrateAction to GrantExternalConditionCrateAction. 2016-12-06 17:21:13 +00:00
Paul Chote
764401be10 Port GrantUpgradeWarhead to GrantExternalConditionWarhead. 2016-12-06 17:21:13 +00:00
Paul Chote
f274522083 Port GrantUpgradePower to GrantExternalConditionPower. 2016-12-06 17:21:12 +00:00
Paul Chote
6f5c4cf969 Rename TimedUpgradeBar to TimedConditionBar. 2016-12-06 17:21:12 +00:00
Paul Chote
a692c1e761 Rework timed conditions. 2016-12-06 17:21:12 +00:00
Paul Chote
f934a4e2b7 Add an external condition whitelist. 2016-12-06 17:21:12 +00:00
Paul Chote
983a24199a Remove notmobile condition from TS. 2016-12-06 17:21:12 +00:00
reaperrr
7827d50e99 Merge pull request #12441 from qwIvan/patch-1
mipsel architecture support
2016-12-05 21:17:33 +01:00
Zimmermann Gyula
35b1949a61 Use MPos during AI coarse support power targeting. 2016-12-05 15:08:00 +01:00
Zimmermann Gyula
f927d54db7 Fix AI unable to activate AllowMultiple support powers. 2016-12-05 15:08:00 +01:00
reaperrr
a8f3172c6b Merge pull request #12396 from pchote/conditions-fix-carryalls
Upgrades overhaul part2: GrantCondition and Carryall fixes.
2016-12-03 16:51:49 +01:00
Paul Chote
fe8f2acd62 Remove hardcoded default carryable conditions. 2016-12-01 20:48:24 +00:00
Paul Chote
02e7b1ebfb Fix Carryall interaction with sensor array and tick tanks. 2016-11-30 19:24:44 +00:00
Paul Chote
966fad7af3 Add upgrade rules and update d2k. 2016-11-30 19:24:44 +00:00
Paul Chote
81113e07a6 Remove WithDecorationCarryable. 2016-11-30 19:24:43 +00:00
Paul Chote
2dc70146c8 Replace Upgrades with Conditions in Carryable. 2016-11-30 19:24:43 +00:00
Paul Chote
dc7fa14992 Add GrantCondition trait. 2016-11-30 19:24:43 +00:00
reaperrr
848cf19ba8 Merge pull request #12381 from pchote/upgrade-conditions
Upgrades overhaul part 1: EnabledCondition
2016-11-30 19:42:34 +01:00
qwIvan
9397a1b599 mipsel support 2016-11-30 15:59:52 +08:00
Paul Chote
6150d25105 Merge pull request #12367 from Phrohdoh/makefile-mono-msg
Add message to fixheader.exe target if Mono isn't installed
2016-11-29 07:45:11 +00:00
Zimmermann Gyula
bf810cd934 Enable missile snapping in TS. 2016-11-28 17:14:43 +01:00
Zimmermann Gyula
51db12467d Allow the missile to snap at the target at reach. 2016-11-28 17:14:30 +01:00
reaperrr
5a8df27096 Make MP start units facing customizable
There might be modders or mappers who prefer different initial facing settings than the hardcoded ones.
2016-11-27 18:40:25 +01:00
reaperrr
c45c51f95d Merge pull request #12431 from pchote/heightmap-cliff-blocking
Add CliffBackImpassabilityLayer to TS.
2016-11-27 13:52:04 +01:00
reaperrr
d170841a93 Merge pull request #12432 from pchote/fix-classic-aircraft-reveal
Make RA and TD aircraft reveal shroud from the point on the ground below them.
2016-11-27 13:31:28 +01:00
Paul Chote
5d0ce81eb0 Make RA/TD aircraft sight relative to ground-based position. 2016-11-26 21:19:37 +00:00
Paul Chote
b1f99dd601 Add GroundPosition VisibilityType. 2016-11-26 21:10:44 +00:00
Paul Chote
ef8a7a535d Fix string comparison in CheckRevealFootprint. 2016-11-26 21:10:28 +00:00
Paul Chote
7e428d2c91 Add CliffBackImpassabilityLayer to TS. 2016-11-26 20:56:18 +00:00
reaperrr
68ee776b77 Merge pull request #12339 from abc013/medicmechfix
Fixed Mechanic and Medic can heal enemy units
2016-11-26 17:06:46 +01:00
Paul Chote
653f4cfdbd Merge pull request #12426 from reaperrr/bleed-style-hotfix
ReplayMetadata style fix
2016-11-25 12:08:19 +00:00
reaperrr
07312f8c62 ReplayMetadata style fix 2016-11-25 12:35:16 +01:00
reaperrr
2708117bfe Merge pull request #12357 from pchote/fix-invalid-replay-crash
Ignore invalid replay files instead of crashing.
2016-11-25 12:07:16 +01:00
reaperrr
807d0af851 Merge pull request #12425 from pchote/fix-shroud-crash
Fix missing array bounds check in Shroud.IsExplored.
2016-11-25 12:03:15 +01:00
abcdefg30
878ba2e817 Merge pull request #12398 from pchote/shroud-edge-fail
Fix shroud rendering outside the map cordon.
2016-11-24 22:34:58 +01:00
Paul Chote
ff94dd914a Fix missing array bounds check in Shroud.IsExplored. 2016-11-24 19:07:18 +00:00
RoosterDragon
c244fbb4d3 Merge pull request #12393 from Phrohdoh/sound-loaders
Fix enumeration in Sound::LoadSound to use the ISoundLoader[] param
2016-11-23 20:05:33 +00:00
abcdefg30
0fc45b8c70 Merge pull request #12348 from abc013/120mm
Fixed the 120mm bullet not harming infantry
2016-11-23 15:12:35 +01:00
Paul Chote
1506a3c26f Fix crash with multiple RevealsShrouds targeting dead frozen actor. 2016-11-21 22:33:35 +00:00
Paul Chote
0ba0470390 Remove upgrades lint check. 2016-11-20 13:55:47 +00:00
Paul Chote
3f0b33992c Rewrite UpgradeManager implementation to suit conditions. 2016-11-20 13:55:47 +00:00
Paul Chote
05187f5828 Remove legacy UpgradeTypes consumer code. 2016-11-20 13:38:41 +00:00
Matthias Mailänder
ef25d4cd56 API and auto-complete description generator for ZeroBrane Studio 2016-11-20 06:37:16 +01:00
Paul Chote
a266dc6639 Fix shroud rendering outside the map cordon. 2016-11-19 18:10:12 +00:00
Paul Chote
9ceb3813e6 Manually port TD veterancy to conditions. 2016-11-19 17:19:28 +00:00
Paul Chote
bee7f14ae5 Update TD rules. 2016-11-19 17:19:28 +00:00
Paul Chote
2fb1875fd7 Manually port D2k veterancy to conditions. 2016-11-19 17:19:28 +00:00
Paul Chote
56fa3db051 Update D2K rules and shellmap. 2016-11-19 17:19:27 +00:00
Paul Chote
4bd1921f88 Manually port RA veterancy and shellmap to conditions. 2016-11-19 17:19:27 +00:00
Paul Chote
4ed7725e20 Update RA rules. 2016-11-19 17:19:27 +00:00
Paul Chote
326cc0bf5b Add upgrade rule for migrating UpgradeTypes to RequiresCondition. 2016-11-19 17:19:27 +00:00
Paul Chote
12d31cd09e Replace UpgradeTypes -> RequiresCondition across TS. 2016-11-19 17:19:26 +00:00
Paul Chote
5fbdd78f41 Add an RequiresCondition field to UpgradeableMultiplierTrait. 2016-11-19 17:19:26 +00:00
Paul Chote
5192c27199 Add an RequiresCondition field to UpgradeableTrait. 2016-11-19 17:19:26 +00:00
Paul Chote
1cc7944437 Add FieldLoader and linter support for BooleanExpression. 2016-11-19 17:19:25 +00:00
Paul Chote
23f4ae5027 Replace UpgradeMinEnabledLevel checks with an EnabledByDefault shim. 2016-11-19 17:19:25 +00:00
Rob Wilkinson
e337048a97 Fixes issue with rocket soldiers wandering
Fixes #12368
2016-11-19 17:13:17 +00:00
Taryn Hill
51dd79261f Fix enumeration in Sound::LoadSound to use the ISoundLoader[] param 2016-11-18 20:23:15 -06:00
reaperrr
c4b5b745ef Merge pull request #12307 from pchote/passive-visibility
Add plumbing for improved RA gap generator behaviour.
2016-11-18 14:34:35 +01:00
reaperrr
56fdfb1ec8 Merge pull request #12370 from pchote/heightmap-shroud-reveal
Implement heightmap-visibility blocking
2016-11-18 14:23:53 +01:00
reaperrr
f550c3b762 Merge pull request #12315 from obrakmann/activities-pt1
Activities re-write, part 1 (aka the boring bits)
2016-11-18 13:52:06 +01:00
reaperrr
026ab9e2d7 Merge pull request #12302 from Jiyuu/modifyingpowershell
Restructuring make script
2016-11-18 13:33:28 +01:00
reaperrr
43b495b19f Merge pull request #12337 from roundowl/patch-2
Make friendly units aware of friendly mines
2016-11-18 13:02:30 +01:00
abcdefg30
c12cfbcc18 Merge pull request #12374 from reaperrr/fix-ts-depot
Fix TS service depot depth sorting
2016-11-17 21:53:08 +01:00
Taryn Hill
bf994b35b0 Add message to fixheader.exe target if Mono isn't installed 2016-11-17 12:49:01 -06:00
reaperrr
d8d7c0c0f7 Merge pull request #12352 from abc013/EmitCivs
Let civilian buildings spawn civilians on death
2016-11-16 19:08:00 +01:00
Taryn Hill
be0798999d Merge pull request #12378 from pchote/boolexpr
Add a boolean expression parser
2016-11-16 09:39:47 -06:00
Paul Chote
cc34f8e557 Add a boolean expression parser. 2016-11-15 21:45:00 +00:00
Oliver Brakmann
fd22b19183 Use consistent spelling of 'interrupt[a|i]ble' 2016-11-13 15:50:22 +01:00
Paul Chote
06b9741807 Reveal the top tiles of cliffs too. 2016-11-13 12:31:21 +00:00
reaperrr
0479b7ffb5 Merge pull request #12341 from reaperrr/no-overlay-delayedaction
Remove hardcoded buildComplete delay in some overlays
2016-11-13 13:24:42 +01:00
reaperrr
0c78527ae8 Merge pull request #12354 from pchote/fix-smudge-out-of-bounds
Add map bounds checks to TerrainSpriteLayer and SmudgeLayer.
2016-11-13 13:08:51 +01:00
Taryn Hill
40fcd21e5f Merge pull request #12369 from pchote/ts-development-prompt
Add an introduction dialog for non-{DEV_VERSION} TS builds.
2016-11-12 20:12:33 -06:00
abc013
e4354ce08c Added SpawnActorOnDeath: Civilians to ^CivBuilding 2016-11-12 14:45:49 +01:00
reaperrr
29355129d2 Fix TS service depot depth sorting 2016-11-12 12:56:37 +01:00
Paul Chote
d68c705512 Block actor sight above cliffs. 2016-11-11 17:46:53 +00:00
Paul Chote
988778fe1f Add an introduction dialog for non-{DEV_VERSION} TS builds. 2016-11-11 17:03:18 +00:00
Paul Chote
b6809c97f2 Add a CellLayer with the height of each projected cell. 2016-11-11 16:44:12 +00:00
abcdefg30
e7e17a0f5a Merge pull request #12323 from pchote/fix-dedicated-upnp-crash
Fix dedicated server crash with AllowPortForward.
2016-11-11 15:18:37 +01:00
Paul Chote
bbe4864921 Fix dedicated server crash with AllowPortForward. 2016-11-11 13:06:00 +00:00
Paul Chote
ab344b390d Ignore invalid replay files instead of crashing. 2016-11-11 13:00:58 +00:00
reaperrr
7ba0c22346 Merge pull request #12096 from pchote/game-timer-tooltip
Show replay percentage as a tooltip.
2016-11-06 16:59:07 +01:00
Paul Chote
983d8ac39e Add passive visibility type. 2016-11-06 15:40:22 +00:00
Paul Chote
fdac5a6d8a Rework internal shroud plumbing. 2016-11-06 15:40:22 +00:00
Paul Chote
7a4d7989fe Merge pull request #12347 from tohava/del_delayedaction_in_weaponinfo
Remove DelayedAction from WeaponInfo
2016-11-05 18:16:19 +00:00
Paul Chote
77e0c579ba Merge pull request #12287 from reaperrr/interface-cleanups03
Third round of interface moving, making explicit and cleanup
2016-11-05 18:02:39 +00:00
reaperrr
162fef3da1 Fix style nit 2016-11-05 18:54:41 +01:00
Paul Chote
e187b985fe Prevent smudges from spawning in bogus cells. 2016-11-05 17:45:27 +00:00
Paul Chote
4db93f70c7 Add a cell sanity check to TerrainSpriteLayer. 2016-11-05 17:44:02 +00:00
abc013
f9d4308161 Fixed the 120mm bullet not harming infantry 2016-11-04 09:09:25 +01:00
Ori Bar
fabe799907 Remove DelayedAction from WeaponInfo and replace it with the more serialization friendly DelayedImpact 2016-11-04 02:24:43 +02:00
Jiyuu
dbea8d9515 Restructuring the make script & making the "all" command fetch dependencies as well 2016-11-03 22:49:19 +02:00
roundowl
194caa0163 Makes friendly units aware of mines
Added BlockFriendly boolean into Mine trait parameters. If set to true, friendly units vulnerable to mines will route around tiles with friendly mines in them.
2016-11-03 23:07:57 +03:00
reaperrr
e8027a6fdf Remove hardcoded buildComplete delay in some overlays
There certainly was and possibly still is some issue this was trying to
work around, but unless it's a deal-breaker, we should rather try to fix that
issue directly instead of keeping some uncommented magical work-around.
2016-11-02 22:01:45 +01:00
reaperrr
8cda0dd360 Merge pull request #12332 from abc013/NineLivesAuthor
Changed the Author of 'Nine Lives' to PizzaAtomica
2016-11-02 20:56:40 +01:00
reaperrr
8c15aa2ce4 Merge pull request #12331 from abc013/BeThVeFix
Fixed tiling error on the map 'Behind the Veil'
2016-11-02 20:50:29 +01:00
abc013
d9ff07e835 Fixed Mechanic and Medic can heal enemy units 2016-11-01 21:38:53 +01:00
abc013
1d39ce8739 Change the Author of 'Nine Lives' to PizzaAtomica 2016-11-01 12:51:12 +01:00
abc013
c1eced55bf Fixed tiling error on the map 'Behind the Veil' 2016-11-01 12:41:56 +01:00
reaperrr
03fd591a00 Remove some unused usings 2016-10-31 21:12:41 +01:00
Oliver Brakmann
2c66ee8c13 Add native support for uninterruptible activities
This pattern occurs a few times throughout the code, so it makes sense to bake it into the Activity class itself.
2016-10-31 18:46:27 +01:00
Oliver Brakmann
3e9bf7aa4d Turn Actor.GetCurrentActivity into a property 2016-10-31 18:46:27 +01:00
reaperrr
ad6ea52bff Make IPowerModifier require explicit implementation
Plus some 'collateral' explicit implementations on the affected traits.
2016-10-30 20:22:16 +01:00
reaperrr
2d0560dcb7 Make RangeModifier interfaces require explicit implementation 2016-10-30 20:22:16 +01:00
reaperrr
02f14f0761 Make IInaccuracyModifier require explicit implementation 2016-10-30 20:22:16 +01:00
reaperrr
80d9241bbe Make IReloadModifier require explicit implementation 2016-10-30 20:22:16 +01:00
reaperrr
fc2f006ec1 Make IFirepowerModifier require explicit implementation 2016-10-30 20:22:16 +01:00
reaperrr
4af7134115 Require explicit ISpeedModifier implementation
Plus misc "collateral" explicit interfaces.
2016-10-30 20:22:16 +01:00
reaperrr
97c2c24e8d Require explicit implementation of IDamageModifier 2016-10-30 20:22:16 +01:00
reaperrr
f8077dc113 Move combat modifier interfaces (damage, speed etc.) to mod code 2016-10-30 20:22:16 +01:00
reaperrr
9dfddaf5d9 Move IRenderInfantrySequenceModifier to mod code and require explicit...
implementation.
2016-10-30 20:22:16 +01:00
Paul Chote
6b29d70520 Merge pull request #12284 from reaperrr/interface-cleanups02
More explicit interface cleanups
2016-10-30 18:40:43 +00:00
reaperrr
3fca63e9a2 Make Armament implement interfaces explicitly 2016-10-30 19:17:45 +01:00
reaperrr
ce52bc9d7b Some more misc explicit interface implementations
'Fallout' from working on other things.
2016-10-30 19:17:41 +01:00
reaperrr
61779bf02a Make WithSpriteTurret ITick implementation explicit 2016-10-30 19:17:39 +01:00
abcdefg30
89187d1557 Merge pull request #12309 from reaperrr/DelayedAction-riddance2
Get rid of DelayedAction in Beacons and PlaceBuilding
2016-10-30 18:05:46 +01:00
abcdefg30
2125799e3a Merge pull request #12308 from reaperrr/refactor-shroud-traits
Refactor Shroud and shroud-modifying traits
2016-10-30 17:55:59 +01:00
Paul Chote
1829011393 Merge pull request #12317 from cjshmyr/lua-wpos-subtract-error
Fix Lua error message for WPos subtraction
2016-10-30 14:51:38 +00:00
Curtis Shmyr
b1bea831de Fix Lua error message for WPos subtraction 2016-10-29 13:56:01 -06:00
Paul Chote
04dbda6dcd Merge pull request #12274 from abcdefg30/bodyPreview
Fully support unhardcoded sequences in the voxel render traits
2016-10-29 14:53:47 +01:00
Paul Chote
c62870cc30 Merge pull request #12004 from reaperrr/projectile-cleanup2
More projectile property streamlining and cleanups
2016-10-29 14:21:29 +01:00
reaperrr
2d69f1104f Replace DelayedAction with Tick-based solution in PlaceBuilding 2016-10-26 20:54:51 +02:00
Oliver Brakmann
443d35f240 Merge pull request #11984 from reaperrr/upgradable-tooltip
Make Tooltip upgradable
2016-10-26 20:48:19 +02:00
reaperrr
101cc65876 Replace DelayedAction in Beacon effects with Tick-based solution 2016-10-26 20:17:24 +02:00
Oliver Brakmann
a6cde32a00 Merge pull request #12285 from abcdefg30/bloodyBye
Remove Bloody Delta from the ra map pool
2016-10-26 20:16:24 +02:00
reaperrr
cafd50ef43 Make RevealsShroud and CreatesShroud use stances
Instead of hardcoded (!)IsAlliedWith checks.
2016-10-26 19:18:15 +02:00
reaperrr
6b5e7b8c12 Make AffectsShroud and derivatives upgradable 2016-10-25 16:09:55 +02:00
reaperrr
a7e64bd8d8 Make AffectsShroud use explicit interfaces 2016-10-25 16:09:53 +02:00
reaperrr
0aefd87485 Make Shroud object- instead of actor-based 2016-10-25 16:09:52 +02:00
Paul Chote
5635c61007 Merge pull request #12301 from RobotCaleb/patch-1
Update CONTRIBUTING.md
2016-10-24 21:03:41 +01:00
Caleb Anderson
64e6fb666b Update CONTRIBUTING.md
Fixed single-character typo. 'youself' -> 'yourself'
2016-10-24 13:49:51 -06:00
reaperrr
5da3716110 Merge pull request #12001 from MustaphaTR/d2k-new-shellmap
Add New Shellmap to D2K
2016-10-23 18:52:32 +02:00
abcdefg30
8bd265ac42 Merge pull request #12224 from reaperrr/ts-polish05
TS polishing pass: More depth sorting fixes
2016-10-23 18:49:07 +02:00
reaperrr
efa6ad64f7 Remove now-redundant TooltipInfo check 2016-10-23 18:42:36 +02:00
reaperrr
5e8849abd1 Fix TS crate effect depth sorting 2016-10-23 18:21:21 +02:00
reaperrr
a7e3bfb95c Fix Tiberium veins and vein attack depth sorting 2016-10-23 18:21:21 +02:00
reaperrr
35a84546fb Fix Titan muzzle depth sorting 2016-10-23 18:19:05 +02:00
reaperrr
3c698d3d68 Fix Tick Tank muzzle depth sorting and offset 2016-10-23 18:19:05 +02:00
reaperrr
829f612a04 Fix Nod Buggy muzzle depth sorting 2016-10-23 18:19:05 +02:00
reaperrr
11ba90c690 Fix Vulcan Tower muzzle depth sorting 2016-10-23 18:19:05 +02:00
reaperrr
f8a410204d Fix Harpy rotor depth sorting 2016-10-23 18:19:05 +02:00
Paul Chote
4777161417 Merge pull request #11886 from reaperrr/UpgradeOnMovement
Add UpgradeOnMovement trait
2016-10-23 17:12:23 +01:00
abcdefg30
f53dc80d70 Merge pull request #12292 from pchote/fix-cargo-capture
Prevent mod-code from manpulating actor owners directly.
2016-10-23 18:06:51 +02:00
Paul Chote
a3f1287acf Merge pull request #12135 from reaperrr/ts-misc04
TS polishing pass: More depth sorting and starting units
2016-10-23 17:06:28 +01:00
reaperrr
677fcefb34 Fix deployed sensor array depth sorting and snow sprite 2016-10-23 17:04:30 +02:00
reaperrr
11d2ee80dc Upgrade tooltip when Mobile Sensor Array is deployed 2016-10-23 16:16:26 +02:00
reaperrr
00c0161513 Show internal name instead of crashing when buildable actor has no tooltip
But throw a lint error instead.
2016-10-23 14:59:22 +02:00
reaperrr
4f1e7435c2 Update tooltip when Tick Tank is deployed 2016-10-23 14:59:20 +02:00
reaperrr
074bb78cbd Made Tooltip trait upgradable 2016-10-23 14:59:18 +02:00
Paul Chote
10b5d8a06b Show replay percentage as a tooltip. 2016-10-23 13:29:06 +01:00
Mustafa Alperen Seki
de74af93d0 Add new shellmap to D2K 2016-10-23 14:22:10 +02:00
abcdefg30
39f2949e09 Merge pull request #12291 from abc013/Winter-Storm-Fix
Fixed some tiling errors in the map 'Winter Storm'
2016-10-23 13:29:07 +02:00
reaperrr
0fcc07cb7b Add UpgradeOnMovement trait
This provides upgrades when an actor is moving. To avoid 'hiccups' for ground units, air units are considered moving as soon as they are airborne.
2016-10-23 13:23:04 +02:00
Paul Chote
635fc9e1e2 Prevent mod code from changing Actor.Owner directly. 2016-10-23 12:21:03 +01:00
Paul Chote
8d688ab5f3 Use ChangeOwner on captured cargo. 2016-10-23 12:20:25 +01:00
abc013
c87f3fab92 Added the 'Damage' UncloakType to several units 2016-10-23 12:43:31 +02:00
abc013
f9dbfc05ca Fixed some tiling errors in the map 'Winter Storm' 2016-10-23 11:33:18 +02:00
reaperrr
146c07ac5c Merge pull request #12112 from abcdefg30/luaFlash
Add support for applying a target flash to actors through lua
2016-10-22 22:53:38 +02:00
reaperrr
165c1295dd Merge pull request #12234 from abcdefg30/AISell
Let the Lonestar AI use the new Sell function instead of Destroy
2016-10-22 22:36:27 +02:00
abcdefg30
1a99e716de Merge pull request #12258 from reaperrr/move-icon
Move production icon sequence from Tooltip to Buildable
2016-10-22 21:10:32 +02:00
reaperrr
192f2358b9 Merge pull request #12156 from cjshmyr/lua-cpos-subtract
Support subtraction of two CPos in Lua
2016-10-22 20:57:07 +02:00
reaperrr
5ac6c51162 Remove Buildable from RA gates
The description is only visible on the production palette, and to be buildable gates would first need an icon, which they currently don't have.
2016-10-22 20:37:13 +02:00
reaperrr
0350b8c8f2 Remove Buildable from TD Bio Lab
It isn't supposed to be buildable so the description is never seen in-game anyway.
2016-10-22 20:37:11 +02:00
reaperrr
5b5b064981 Move production icon sequence from Tooltip to Buildable 2016-10-22 20:37:09 +02:00
Paul Chote
01d212e16d Merge pull request #12182 from Mailaender/mono-4.6.1
Updated to Mono version 4.6.1
2016-10-22 19:33:50 +01:00
abcdefg30
1592769419 Merge pull request #12155 from reaperrr/fix-spritebarrel-preview
Fixes sprite barrels ignoring turret/actor orientation in previews
2016-10-22 20:02:30 +02:00
abcdefg30
1b62aa5ccc Merge pull request #12148 from pchote/fix-wall-glitch
Prevent TickRender from running before the world's first Tick.
2016-10-22 19:55:11 +02:00
abcdefg30
d5ed7b5588 Merge pull request #12223 from reaperrr/ts-polish06
Add sprite placeholder for TS ClusterMissile
2016-10-22 19:47:54 +02:00
abcdefg30
86220bb9f9 Merge pull request #12134 from reaperrr/ts-missiles
TS polishing pass: Overhauled missiles.yaml
2016-10-22 19:42:48 +02:00
abcdefg30
42559f2358 Merge pull request #12133 from reaperrr/ts-misc02
TS polishing pass: Ion Cannon, z-sorting, offsets, explosions
2016-10-22 19:32:01 +02:00
abcdefg30
f1e63bbc08 Remove Bloody Delta from the ra map pool 2016-10-22 19:08:38 +02:00
reaperrr
77a134da91 Move INotifyDamageStateChanged to mod code and require explicit implementation 2016-10-22 18:21:52 +02:00
reaperrr
7955aeb1c3 Implement INotifyDamageStateChanged explicitly in WithSpriteBody 2016-10-22 18:21:52 +02:00
reaperrr
a6b09342bc Make INotifyBuildComplete require explicit implementation 2016-10-22 18:21:52 +02:00
reaperrr
d9ecba7b60 Make INotifyInfiltrated require explicit implementation 2016-10-22 18:21:52 +02:00
reaperrr
0f02a6ba7c Merge pull request #12268 from reaperrr/interface-cleanups01
Several internal interface cleanups
2016-10-22 18:14:55 +02:00
reaperrr
f6388c198d Sync less bullet aspects
`length` is calculated from `pos` and `target` which are both synced.
`SourceActor`, `ticks` and `smokeTicks` work no different from `Missile`, where they're not synced, either.
2016-10-22 18:00:38 +02:00
reaperrr
efd54f1c65 Add lint check for invalid projectile angles
Emits error if
- angle exceeds 255 or -255
- minimum launch angle exceeds maximum launch angle
2016-10-22 18:00:36 +02:00
reaperrr
20cd2aa4ab Rename Bullet Angle to LaunchAngle 2016-10-22 17:57:32 +02:00
reaperrr
8ba9afdb16 Cache Missile LaunchAngles in constructor
To have one central place for the info look-ups. Makes it a little easier to rename the properties or merge them into a single Angle[] property.
2016-10-22 17:57:32 +02:00
reaperrr
0b7fdc411b Cache Missile speed infos in constructor
The primary reason is to have one central location for the look-ups, so we'll only have to change up to 3 lines if we rename or merge the speed properties.
2016-10-22 17:57:32 +02:00
reaperrr
1ffb151a38 Merge pull request #12162 from abcdefg30/heliHost
Fix HeliReturnToBase not exposing an host actor parameter
2016-10-22 15:58:06 +02:00
reaperrr
271cdcf8a8 Resize TS starting forces
-changed light starting forces to be equally balanced
-slightly increased medium starting forces
-moderately increased heavy starting forces
2016-10-22 03:08:41 +02:00
reaperrr
67d5df9da5 Fix TS snow civ buildings depth sorting 2016-10-22 03:08:40 +02:00
reaperrr
41dc76ef06 Fix Kodiak, Montauk, hospital & deployed ICBM depth sorting 2016-10-22 03:08:38 +02:00
reaperrr
e5fcf1d5f6 Fine-tune depth-sorting and offsets of temperate 4x2 TS civ buildings 2016-10-22 03:02:47 +02:00
reaperrr
c3946d9371 Fix depth sorting and offset of several civilian structures 2016-10-22 01:05:37 +02:00
reaperrr
a04915403f Fix TS spawnpoint, waypoint and camera depth sorting
Makes them visible in editor.
2016-10-22 01:05:37 +02:00
reaperrr
ab2669c565 Merge pull request #12275 from abcdefg30/passengers
Fix the search for alternative transports not caring about passenger types
2016-10-22 00:24:48 +02:00
abcdefg30
cb49583d82 Fix the search for alternative transports not caring about passenger types 2016-10-21 13:25:12 +02:00
abcdefg30
618cd91cc7 Merge pull request #12174 from tysonliddell/techFix
Replaced civillians with Technicians when building sold
2016-10-21 09:14:00 +02:00
abcdefg30
d176e16dd6 Merge pull request #12218 from SoScared/dualcoldfront
[RA] Remove rogue ore spots on Dual Cold Front
2016-10-21 09:07:40 +02:00
abcdefg30
82f3599b73 Merge pull request #12191 from abc013/mapfix
Fixed tiling errors in the map "doubles"
2016-10-21 09:05:07 +02:00
abcdefg30
6364e542ed Merge pull request #12249 from SoScared/mappie
RA map Pie Of Animosity - Fix map author name + ore mine visibility tweak
2016-10-21 09:01:54 +02:00
abcdefg30
713b970f24 Fully support unhardcoded sequences in the voxel render traits 2016-10-21 08:59:15 +02:00
reaperrr
16cf96b982 Merge pull request #12136 from LipkeGu/fix-lint-weiredness
[Lint] Report when Maps contains invalid custom rules.
2016-10-21 01:23:14 +02:00
reaperrr
72374279f0 Move interfaces that have no ties to the engine to mod code 2016-10-20 20:31:40 +02:00
reaperrr
7235835280 Move ImpactType to Common.Warhead 2016-10-20 20:31:38 +02:00
reaperrr
0eb8def2b8 Move Cargo interfaces to TraitsInterfaces 2016-10-20 20:31:37 +02:00
reaperrr
437e142031 Reservable style fixes 2016-10-20 20:31:35 +02:00
reaperrr
61284d73dd Make interface implementations explicit where possible in traits that implement INotifySold 2016-10-20 19:02:30 +02:00
reaperrr
22dcb1c66f Move INotifySold to Common and require explicit implementation 2016-10-20 19:02:28 +02:00
reaperrr
b8c04a0887 Move INotifyBlockingMove to Common and require explicit implementation 2016-10-20 18:58:40 +02:00
reaperrr
df0021eeed Move check for explicit interface violations to the top
The interface violation check is fast, so it doesn't really delay the rest, while you don't have to wait for all other code checks to finish to check for violations.
2016-10-20 18:57:06 +02:00
Oliver Brakmann
6eade2dd3f Merge pull request #12261 from pchote/fix-server-gamespeed
Fix player joins resetting the server timestep.
2016-10-19 21:04:54 +02:00
reaperrr
d3a833a2e7 Merge pull request #12260 from pchote/fix-gps-desync
Fix a desync in GpsDot.IsTargetableBy.
2016-10-19 19:11:35 +02:00
Paul Chote
3d8cee3110 Fix player joins resetting the server timestep. 2016-10-18 23:50:46 +01:00
Paul Chote
83027c28d7 Fix a desync in GpsDot.IsTargetableBy.
World.ShroudExplores depends on RenderPlayer,
which makes it completely bogus for this purpose.
2016-10-18 22:12:13 +01:00
RoosterDragon
482285dde0 Merge pull request #12221 from entropai/bleed
Reverted build dirs in CSPROJ and removed the unneeded Afterbuild
2016-10-18 17:55:22 +01:00
SoScared
073cfeb200 fix map author name plus ore mine visibility tweak 2016-10-17 06:05:31 +02:00
Paul Chote
cba704dbcc Merge pull request #12171 from cjshmyr/minelayer-cloak-delay
Fix AP/AT mines being visible under fog
2016-10-16 05:25:12 +01:00
Tyson Liddell
5b620eeda5 Replaced civillians with technicians when ^ScienceBuilding sold 2016-10-16 14:46:03 +11:00
Tyson Liddell
f12a434a99 Added engineers to units produced when contruction yard sold 2016-10-16 14:46:03 +11:00
Tyson Liddell
8e0df586a2 Replaced civillians with Technicians when building sold and removed engineers from default sale of building 2016-10-16 14:46:02 +11:00
Paul Chote
dba5c2b432 Merge pull request #12141 from tysonliddell/bleed
Move production description from Tooltip to Buildable.
2016-10-16 04:39:45 +01:00
Tyson Liddell
90baf2871b Added Buildable Description to D2K construction yard 2016-10-16 12:10:22 +11:00
Tyson Liddell
8a760fedf2 Yaml files updated with Description moved from Tooltip to Buildable 2016-10-16 12:10:07 +11:00
Tyson Liddell
aeb1e07823 Moved production description from Tooltip to Buildable 2016-10-16 12:03:42 +11:00
abcdefg30
9bd23fa990 Let the Lonestar AI use the new Sell function instead of Destroy 2016-10-15 20:02:26 +02:00
Paul Chote
e9d2da948e Merge pull request #12189 from SoScared/MSubAATweak
Tweak SubMissileAA towards more traditional AA.
2016-10-15 15:56:41 +01:00
Paul Chote
eabd881ca3 Merge pull request #12129 from reaperrr/aircraft-ismoving
Change Aircraft.IsMoving to be true only when moving horizontally
2016-10-15 15:07:41 +01:00
reaperrr
7da3ecbb80 Merge pull request #12216 from MustaphaTR/ra-ai-changes2
RA - Some AI Improvements 2
2016-10-15 13:50:27 +02:00
abcdefg30
da591a9030 Merge pull request #11974 from abc013/SecondWeaponAnimation
Add support for multiple fire animations in WithInfantryBody
2016-10-15 12:49:41 +02:00
reaperrr
9b77732360 Merge pull request #12172 from abcdefg30/d2kLock
Fix the d2k protected lobby icon being off
2016-10-15 12:37:13 +02:00
abcdefg30
4199108910 Merge pull request #12220 from obrakmann/fix-yak-in-evacuation
Fix yak attack in Evacuation
2016-10-15 12:01:49 +02:00
Oliver Brakmann
0dc5090f0b Fix yak attacks in Evacuation 2016-10-14 19:21:31 +02:00
reaperrr
208a31470f Merge pull request #12160 from abcdefg30/hboxYak
Fix yaks trying to attack invalid targets
2016-10-14 18:55:37 +02:00
reaperrr
f9122c4a40 Merge pull request #12214 from RoosterDragon/mcv-build
Make sure AI can deploy an MCV when it lacks a base.
2016-10-14 18:23:27 +02:00
reaperrr
d1effe192d Merge pull request #12219 from pchote/fix-old-d2k-disc
Add support for an older/alternative d2k release.
2016-10-14 18:10:11 +02:00
reaperrr
302aaeaac9 Add sprite placeholder for TS ClusterMissile
Extracted from crate animation.
2016-10-14 17:05:30 +02:00
abc013
268dcd7d41 changed AttackSequence to DefaultAttackSequence 2016-10-14 14:53:02 +02:00
entropai
20c2b41f00 Reverted build dirs in CSPROJ and removed the unneeded Afterbuild section 2016-10-14 00:53:21 +03:00
Oliver Brakmann
ec939cbeda Merge pull request #12198 from abcdefg30/hijack
Fix soviet units not stopping to hunt after being captured in Exodus
2016-10-13 20:40:06 +02:00
Oliver Brakmann
09ba78a1c1 Merge pull request #12217 from abcdefg30/chinookHusk
Fix transport husks revealing more/less than the normal actor
2016-10-13 19:35:14 +02:00
Paul Chote
4f52d42380 Add support for an older/alternative d2k release. 2016-10-13 17:49:44 +01:00
SoScared
a17b1df3ba remove ore spots 2016-10-13 00:40:56 +02:00
abcdefg30
bf3441f5d6 Fix transport husks revealing more/less than the normal actor 2016-10-12 17:02:54 +02:00
Mustafa Alperen Seki
a2933808cc Make Rush AI don't build Helipad/Airfield 2016-10-12 14:43:36 +02:00
Mustafa Alperen Seki
c53a1cb0bc Limit Barracks counts for Naval AI. 2016-10-12 14:43:09 +02:00
Mustafa Alperen Seki
6bbca7ef0e Make AI Build Gap Generator 2016-10-12 14:42:24 +02:00
RoosterDragon
eb3f8c945c Make sure AI can deploy an MCV when it lacks a base. 2016-10-11 20:42:15 +01:00
abcdefg30
bfef8694a1 Add support for applying a target flash to actors through lua 2016-10-11 11:05:40 +02:00
Paul Chote
f66883c925 Merge pull request #11973 from Phrohdoh/csproj-afterbuild-targets
Fix AfterBuild tasks in csprojs
2016-10-11 02:51:47 +01:00
reaperrr
f82a40141e Merge pull request #12175 from abcdefg30/d2kChrome
Remove duplicated chrome yaml files from d2k
2016-10-09 22:32:02 +02:00
abcdefg30
d828e709d6 Fix soviet units not attack moving to their rally points
and remove unnecessary (duplicated) code from the tick function
(the call to IdleHunt inside SpawnSovietUnits is enough)
2016-10-09 22:05:41 +02:00
abcdefg30
97b8d68a12 Merge pull request #12193 from RoosterDragon/vs
Allow VS2015 to format solution file.
2016-10-09 19:32:15 +02:00
SoScared
d2147adb0d move AA towards traditional 2016-10-09 18:19:06 +02:00
RoosterDragon
0d2416b67a Allow VS2015 to format solution file. 2016-10-09 16:18:16 +01:00
reaperrr
22a90c546f Merge pull request #12161 from abcdefg30/uncloakDamage
Fix UncloakOn: Damage only working when the damage state changes
2016-10-09 16:21:21 +02:00
Oliver Brakmann
d0493bb10c Merge pull request #12068 from reaperrr/laser-features1
Add several features to LaserZap
2016-10-09 15:24:55 +02:00
reaperrr
64e1b1dbdb Sanitize TS Obelisk charge delay
This makes the Obelisk fire right at the end of the charge animation and sound.
2016-10-09 15:04:46 +02:00
reaperrr
e69ad1cb2d Add support for being blockable to LaserZap 2016-10-09 15:04:45 +02:00
reaperrr
2a00a606d2 Add support for inaccuracy to LaserZap 2016-10-09 15:04:43 +02:00
reaperrr
38b10511c3 Allow disabling target-tracking of lasers
This is necessary for features like inaccuracy.
2016-10-09 15:04:41 +02:00
reaperrr
76dc4eafd1 Enable secondary laser beam glow for Obelisks and Laser Turrets in TS 2016-10-09 15:04:40 +02:00
reaperrr
6b3c3cd127 Add SecondaryBeam to LaserZap for TS-like laser glow effect 2016-10-09 15:04:38 +02:00
reaperrr
a98818ef47 Rename LaserZap.BeamDuration to Duration 2016-10-09 15:04:36 +02:00
reaperrr
dba41a3ad1 Merge pull request #12168 from pchote/fix-range-circles
Work around an initialisation order conflict in RenderRangeCircle.
2016-10-09 14:13:03 +02:00
abc013
e0ea898845 Fixed tiling errors in the map "doubles" 2016-10-09 13:53:00 +02:00
Oliver Brakmann
ffe7c96a37 Merge pull request #12052 from clemty/minustwofix
TD: Minus Two: terrain fix, replace temperat trees with desert trees
2016-10-09 13:45:01 +02:00
Oliver Brakmann
e291334351 Merge pull request #12044 from Mailaender/oars
Added Open Age Ratings Service metadata
2016-10-09 13:25:41 +02:00
Oliver Brakmann
1eea3982a9 Merge pull request #12138 from LipkeGu/FixHeader-LAA
FixHeader: Add support for "/LargeAddressAware"
2016-10-09 13:06:17 +02:00
abcdefg30
648f06af0f Fix soviet units not stopping to hunt after being captured in Exodus 2016-10-08 21:11:24 +02:00
abcdefg30
a9ae36b691 Make HIJACKER unbuildable in the Evacuation mission
We don't allow building Mechanics as well
2016-10-08 21:07:26 +02:00
Oliver Brakmann
420bf21660 Merge pull request #12169 from pchote/fix-badr-healthbars
Fix non-selectable support actor health bars.
2016-10-08 15:31:37 +02:00
abcdefg30
7ca5f31b61 Merge pull request #12167 from RoosterDragon/devices-marshalling
Marshal results in QueryDevices correctly
2016-10-07 16:14:05 +02:00
Oliver Brakmann
11c30e7cb0 Merge pull request #12144 from abcdefg30/shroudText
Fix floating text showing up beneath shroud
2016-10-06 21:29:56 +02:00
Matthias Mailänder
9c34488cba Update to Mono version 4.6.1 2016-10-06 06:23:42 +02:00
abcdefg30
90e6a69152 Rename the airfield parameter to destination 2016-10-05 16:05:56 +02:00
abcdefg30
8282dc95b1 Remove duplicated chrome yaml files from d2k 2016-10-04 15:12:40 +02:00
abcdefg30
a37bba8dea Fix the d2k color and hue picker lobby icon being off 2016-10-04 14:59:27 +02:00
abcdefg30
ca413fa9fd Fix the d2k lobby spawn points being off 2016-10-04 14:44:32 +02:00
Guido Lipke
ab8c35123b [Lint] Report when Maps contains invalid custom rules.
Report when Maps contains invalid custom rules.
2016-10-04 14:39:21 +02:00
abcdefg30
028720df9f Fix the d2k protected lobby icon being off 2016-10-04 11:00:43 +02:00
abcdefg30
47968aabdc Fix yaks trying to attack invalid targets 2016-10-04 10:04:59 +02:00
abcdefg30
5d2a6ff2e7 Add a CanTarget method to lua 2016-10-04 10:02:18 +02:00
abcdefg30
3ac6739a8d Target.FromActor never returns a TargetType.FrozenActor 2016-10-04 10:00:01 +02:00
Curtis Shmyr
c7af6069b9 Gives ^Mine HiddenUnderFog and 0 initial cloak delay 2016-10-03 19:47:44 -06:00
Paul Chote
de856f8c1a Fix non-selectable support actor health bars. 2016-10-04 01:43:15 +01:00
Paul Chote
4ed78e1ff6 Work around an initialisation order conflict. 2016-10-04 01:13:32 +01:00
RoosterDragon
c79ccab1ba Marshal results in QueryDevices correctly. 2016-10-03 21:47:42 +01:00
Matthias Mailänder
098f2c63b8 Add Open Age Ratings Service metadata. 2016-10-03 18:14:35 +02:00
abcdefg30
c7feed2b19 Merge pull request #12151 from pchote/sha1
Extract a common SHA1 helper.
2016-10-03 16:22:14 +02:00
abcdefg30
55143ced87 Fix HeliReturnToBase not exposing an host actor parameter 2016-10-03 14:56:52 +02:00
abcdefg30
d57c476eaa Fix UncloakOn: Damage only working when the damage state changes 2016-10-03 14:35:38 +02:00
abcdefg30
5acbe91221 Merge pull request #12152 from pchote/fix-lineendings
Fix line endings in LobbyLogic.
2016-10-03 13:23:41 +02:00
Curtis Shmyr
f0697d6396 Support subtraction of two CPos in Lua 2016-10-02 16:22:50 -06:00
reaperrr
9458818073 Fix sprite barrels ignoring turret/actor orientation in previews
Affects color picker, map editor and transport via TS carryall or TD landing craft.
2016-10-02 21:19:18 +02:00
reaperrr
16d4ee0034 Move IsMovingVertically to IMove
- avoids an Aircraft trait look-up in #11886
- potentially useful for future additional locomotors (jumpjet), custom locomotors in external mods, possibly future updates to default ground locomotor (Mobile) with regard to behavior on slopes
2016-10-02 20:27:03 +02:00
reaperrr
8ecf158b62 Merge pull request #12153 from pchote/game-tidy
Minor Game style fixes.
2016-10-02 18:11:10 +02:00
Paul Chote
9e8b18e7be Extract a common SHA1 helper. 2016-10-02 12:53:41 +01:00
Paul Chote
1a83b5c0c0 Remove unnecessary using. 2016-10-02 12:48:26 +01:00
Paul Chote
45214b2c22 Remove unnecessary Game. references in Game. 2016-10-02 12:48:25 +01:00
Paul Chote
95c3276b06 Fix line endings in LobbyLogic. 2016-10-02 11:54:14 +01:00
Paul Chote
31bdb1495d Prevent TickRender from running before the world's first Tick. 2016-10-02 00:46:20 +01:00
abcdefg30
fbebb6d851 Fix floating text showing up beneath shroud 2016-10-01 22:36:25 +02:00
Oliver Brakmann
0d54f2994f Merge pull request #12086 from pchote/fake-spy-infiltration
Fix spy infiltration cursor giving away fake buildings.
2016-10-01 20:20:44 +02:00
Guido L
86ac94bf32 FixHeader: Add support for "/LargeAddressAware" 2016-10-01 01:25:23 +02:00
abc013
78305ca7d6 Fix the secondary weapon of e3 being named "primary" 2016-09-30 22:18:17 +02:00
abc013
ebb1c45786 Added an AttackSequences property to WithInfantryBody 2016-09-30 22:18:16 +02:00
Oliver Brakmann
45f779e9c0 Merge pull request #11991 from abcdefg30/ion
Fix the IonCannonPower not playing all launch sounds
2016-09-30 17:02:27 +02:00
Oliver Brakmann
df8175d9fb Merge pull request #12092 from LipkeGu/installer-fix-typo-ts
[Installer] TS: Fix EOF and Typo
2016-09-30 16:23:32 +02:00
abcdefg30
279be831ff Merge pull request #12116 from obrakmann/fix11925_log-unknown-orders
Log unknown orders instead of crashing with an NIE
2016-09-30 16:11:55 +02:00
Oliver Brakmann
65b919a7ae Merge pull request #12062 from abc013/VoxelShadows
Added a flag ShowShadow in WithVoxelBarrel, WithVoxelBody, …
2016-09-30 16:04:30 +02:00
Oliver Brakmann
8a86e046ca Merge pull request #12104 from reaperrr/fix-TS-stop
Add missing UnitCommand widget to TS
2016-09-30 15:53:36 +02:00
reaperrr
457dc647f6 Reduce TS missile.yaml footprint and tweak flight behavior to be much closer to original
- much lower launch speed and maximum speed
- much higher launch angle and cruise altitude, doubled vertical rate of turn to make up for it
- increased RangeLimit, especially for AA-only missiles
- fixed Bike warhead Spread to match other missiles
- fixed SAm site missile explosion to match original
- fixed damage warheads of AA-only missile to be valid against ground as well (to avoid not damaging aircraft that just landed after the missile was launched)
2016-09-30 05:53:11 +02:00
reaperrr
effeddda14 Fix TS Bazooka infantry and Bike firing offsets 2016-09-30 04:11:08 +02:00
reaperrr
40c2aaa1c6 Fix Z-sorting of several effects in TS 2016-09-30 03:11:29 +02:00
reaperrr
09baf2c119 Change large TS explosions to use alpha transparency 2016-09-30 03:10:51 +02:00
reaperrr
fc17297a39 Fix Cyborg Commando weapon explosion to match original 2016-09-30 03:10:14 +02:00
reaperrr
b9da5d5f81 Fix Tick Tank and Titan gun explosions to match original 2016-09-30 02:36:58 +02:00
reaperrr
345bc9e17e Fix palette, Z-sorting and sound of TS Ion Cannon 2016-09-30 02:15:12 +02:00
reaperrr
8c67a32dd9 Set Ion Cannon ChargeTime to its original value 2016-09-30 02:13:10 +02:00
reaperrr
805e78a672 Add static alpha effect palettes to TS for 25, 50 and 75% alpha 2016-09-30 02:12:25 +02:00
Paul Chote
c781061300 Allow spys to infiltrate fake structures in RA. 2016-09-29 23:17:11 +01:00
Paul Chote
abf837a934 Add InfiltrateForDecoration trait. 2016-09-29 22:58:00 +01:00
reaperrr
4b8700bb97 Remove work-around for aircraft from WithMoveAnimation 2016-09-29 22:55:52 +02:00
reaperrr
9cf916e8b6 Change Aircraft.IsMoving to only return true when moving horizontally
Additionally added IsMovingVertically for potential edge cases where vertical movement needs to be considered.
2016-09-29 22:16:24 +02:00
reaperrr
6571f926fb Aircraft.ReserveSpawnBuilding style fixes 2016-09-29 21:21:34 +02:00
reaperrr
888d7c638f Move Aircraft.firstTick above constructor 2016-09-29 21:16:30 +02:00
reaperrr
678f9563f6 Merge pull request #12103 from pchote/resource-tooltip
Add tooltips to map resources.
2016-09-29 18:36:00 +02:00
reaperrr
11728df14e Merge pull request #12106 from SoScared/MSubAA
[RA] AA Missile Sub + Tweak
2016-09-28 13:29:23 +02:00
Jonas A. Lind
83d4cc15f3 Changed MSUB Description
Simplified initial text and fixed strong/weak vs.
2016-09-28 04:26:30 +02:00
Oliver Brakmann
d1ef1ed1ba Log unknown orders instead of crashing with an NIE 2016-09-26 20:39:01 +02:00
Oliver Brakmann
bea2b5cc91 Merge pull request #12102 from pchote/more-resupply-tweaks
Tweak aircraft resupply behaviour.
2016-09-26 19:03:46 +02:00
Paul Chote
34b10dcb77 Hack around the Lua API. 2016-09-26 17:48:25 +01:00
Oliver Brakmann
ae6b82a677 Merge pull request #12107 from pchote/fix-atan-overflow
Fix integer overflows in Wangle.ArcTan.
2016-09-26 18:35:54 +02:00
reaperrr
98de6330e8 Merge pull request #11928 from abcdefg30/stand3
Rename stand3 to liedown
2016-09-26 16:32:07 +02:00
abcdefg30
26b5d28920 Drop the -0 suffix of all standup sequences 2016-09-26 15:36:18 +02:00
abcdefg30
27d5af5497 Rename stand3 to liedown 2016-09-26 15:32:18 +02:00
abcdefg30
0ea9170021 Merge pull request #12110 from reaperrr/fix-laserzap
Fix LaserZap not being removed if HitAnim is not defined
2016-09-26 14:50:43 +02:00
abcdefg30
5f9c2a17e9 Merge pull request #12098 from Phrohdoh/ab-err-label
Display error in Asset Browser instead of crashing
2016-09-26 13:15:26 +02:00
reaperrr
d080770828 Fix LaserZap not being removed if HitAnim is not defined
This avoids degrading performance over time as well as an (albeit unlikely) OutOfMemoryException.
2016-09-26 01:36:02 +02:00
Taryn Hill
b5a08fd123 Display an error label instead of crashing in the Asset Browser 2016-09-25 15:53:40 -05:00
Paul Chote
b680a97d2c Fix integer overflows in Wangle.ArcTan. 2016-09-25 21:24:34 +01:00
reaperrr
ba02bf43b2 Merge pull request #12040 from SoScared/solidchanges
Add RA balance changes to the next playtest/release.
2016-09-25 21:56:46 +02:00
SoScared
cba38816ee AA Missile Sub + Tweak 2016-09-25 21:48:01 +02:00
reaperrr
f93779977f Add UnitCommand widget to TS
Fixes units ignoring Stop command.
2016-09-25 20:30:56 +02:00
Paul Chote
365bd5b9bd Rename ResourceType trait fields for consistency. 2016-09-25 17:04:18 +01:00
Paul Chote
fdc6ea4564 Add trait descriptions to ResourceType. 2016-09-25 17:04:17 +01:00
Paul Chote
404d8235c8 Show a tooltip over map resources. 2016-09-25 17:04:17 +01:00
Paul Chote
74602474e3 Change shroud tooltip to match the original games. 2016-09-25 17:04:16 +01:00
Paul Chote
3487d6bad5 Change aircraft default to move to rally point after resupplying. 2016-09-25 15:57:18 +01:00
Paul Chote
ea65ac542e Add AbortOnResupply property to cancel aircraft activities on resupply. 2016-09-25 15:57:17 +01:00
Paul Chote
6eafaeecf6 Remove unnecessarily queued ResupplyAircraft activity. 2016-09-25 15:57:17 +01:00
Paul Chote
eeaa461311 Avoid landing-dances when issuing mixed full/empty aircraft RTB orders. 2016-09-25 15:57:16 +01:00
Paul Chote
2d00a24855 Merge pull request #12100 from Mailaender/mono-4.6
Updated Mono to version 4.6.0
2016-09-25 15:17:50 +01:00
Matthias Mailänder
87fd196cca Update Mono to version 4.6.0 2016-09-25 08:01:23 +02:00
SoScared
f73d8481a7 Camo Pillbox HP 450 2016-09-25 00:44:34 +02:00
SoScared
a5aecf1da4 Mammoth Tank speed 50 2016-09-25 00:43:18 +02:00
reaperrr
0ffde88aad Merge pull request #12094 from pchote/work-around-smudge-desync
Use CosmeticRandom for picking smudge type.
2016-09-24 20:47:55 +02:00
reaperrr
8f2657ec75 Merge pull request #11982 from obrakmann/fix11979-helicopter-reservations
Fix helicopter reservations
2016-09-24 20:24:35 +02:00
Paul Chote
cd99e78501 Use CosmeticRandom for picking smudge type. 2016-09-24 14:00:36 +01:00
Guido L
fbd362b1a4 Fix EOF and Typo 2016-09-24 13:37:13 +02:00
reaperrr
b7dd321550 Merge pull request #11993 from pchote/missiondata
Report mission briefings in the mp lobby.
2016-09-23 22:50:59 +02:00
reaperrr
d762e54e2a Merge pull request #12070 from abcdefg30/chevrons
Render WithDecoration above shroud
2016-09-23 21:32:50 +02:00
Paul Chote
923cde7d21 Report mission briefings in the mp lobby. 2016-09-23 19:51:07 +01:00
RoosterDragon
1dd7f3e890 Merge pull request #12084 from obrakmann/fix12078_ai-production-snafu
Fix AI still producing units with captured factories in Nod missions
2016-09-23 19:40:39 +01:00
RoosterDragon
1993ee25b8 Merge pull request #12085 from pchote/repair-range-check
Add a range check to Repair.
2016-09-23 18:56:24 +01:00
RoosterDragon
4d6f70f973 Merge pull request #12026 from obrakmann/fix11986-mp-mission-joining
Fix kicking players joining servers hosting a map with non-default rules
2016-09-23 18:45:28 +01:00
RoosterDragon
149a10c6b1 Merge pull request #12079 from pchote/fix-control-groups
Fix sprite control group decoration position.
2016-09-23 18:32:44 +01:00
Paul Chote
df98260e1a Merge pull request #12021 from abcdefg30/radarSpec
Fix spectators not being able to issue commands in TD
2016-09-22 17:51:15 +01:00
abcdefg30
b21cf1fdb2 Render WithDecoration above shroud 2016-09-22 14:33:35 +02:00
Paul Chote
323ed98a15 Add a range check to Repair. 2016-09-21 18:25:23 +01:00
Oliver Brakmann
fca4534525 Fix AI still producing units with captured factories in Nod missions 2016-09-21 18:58:19 +02:00
Oliver Brakmann
90e3912bcd Merge pull request #12076 from pchote/fix-orphaned-pings
Clean up ClientPings when a player drops from the server.
2016-09-21 18:17:26 +02:00
Oliver Brakmann
8e764441dc Merge pull request #12071 from abcdefg30/noBeacons
Fix beacons not being cancelable
2016-09-21 18:12:50 +02:00
Oliver Brakmann
e108305f4e Merge pull request #12074 from RoosterDragon/runtime-long
Change Game.RunTime to a long to prevent overflow
2016-09-21 18:07:52 +02:00
Oliver Brakmann
92ec538208 Merge pull request #12077 from pchote/crashlog-dates
Include dates in crash/sync log filenames.
2016-09-21 17:54:06 +02:00
Oliver Brakmann
b53874fc8e Merge pull request #12075 from pchote/fix-grey-ping-of-death
Read data from *all* connections to the server.
2016-09-21 17:45:59 +02:00
Oliver Brakmann
999ddab5a4 Merge pull request #12080 from pchote/fix-d2k-crown
Fix d2k lobby admin icon.
2016-09-21 17:11:33 +02:00
Paul Chote
94de961175 Converting dates to string using the InvariantCulture. 2016-09-21 14:52:05 +01:00
Paul Chote
fb876b8b83 Fix d2k lobby admin icon. 2016-09-21 14:41:48 +01:00
Paul Chote
5e974b4959 Fix control group decoration position. 2016-09-21 14:39:44 +01:00
Paul Chote
bfa0c008eb Restore missing GameUid. 2016-09-21 05:09:16 +01:00
Paul Chote
b44d1be554 Timestamp syncreport and exception log files. 2016-09-21 04:57:13 +01:00
Paul Chote
c1e1ee0938 Merge pull request #12066 from chrisforbes/preview-server-crash-fix-bleed
server: Fix server getting wedged after map query with bad minimap
2016-09-21 04:05:59 +01:00
Paul Chote
709bd5b441 Clean up ClientPings when a player drops from the server. 2016-09-20 21:13:07 +01:00
Paul Chote
093053fd93 Read data from *all* connections to the server. 2016-09-20 20:55:52 +01:00
RoosterDragon
2ffea5db54 Change Game.RunTime to a long to prevent overflow. 2016-09-20 19:06:10 +01:00
Oliver Brakmann
57ceda3025 Merge pull request #11926 from abc013/JamsRadarStances
Added diplomatic stances to JamsRadar
2016-09-20 19:24:57 +02:00
Oliver Brakmann
e6b0557420 Merge pull request #12067 from reaperrr/add-UP
Add UnknownProgrammer to AUTHORS
2016-09-20 19:24:03 +02:00
Oliver Brakmann
5e96be5743 Merge pull request #12007 from RoosterDragon/mix-file-all
Allow MixFile to support all stream types
2016-09-20 19:18:35 +02:00
abcdefg30
9142452922 Fix beacons not being cancelable 2016-09-20 18:11:25 +02:00
reaperrr
5463176fa3 Adapt LaserZap Color description and Args structure
To match AreaBeam.
2016-09-20 17:25:28 +02:00
reaperrr
7f5dadd420 Add UnknownProgrammer to AUTHORS 2016-09-20 15:24:40 +02:00
abc013
b9d1f373fe Added a flag ShowShadow in WithVoxelBarrel, WithVoxelBody, WithVoxelTurret, WithVoxelUnloadBody and WithVoxelWalkerBody 2016-09-20 13:34:05 +02:00
abc013
353e61378a Added diplomatic stances to JamsRadar 2016-09-20 13:08:42 +02:00
Paul Chote
095b093f39 Merge pull request #12046 from obrakmann/fix11996_spy-exodus-crash
Fix crashing when a spy's "real" owner gets changed
2016-09-20 09:15:20 +01:00
Chris Forbes
5b793e0455 server: Fix server getting wedged after map query with bad minimap
If the mapserver returned an unusable minimap blob, we'd end up dropping
the resulting exceptions on the floor, and committing a completely broken
MapPreview, which would then blow up the tail end of the map change
process, and all future ValidateClient calls after players join (which
itself was handled by kicking the player and logging some noise of dubious
value).

Adjusts exception handling in a number of places to log the exception
rather than dropping it on the floor, and makes the mapserver response
parsing tolerant of bogus minimap blobs -- in this case, we'd rather just
have no minimap.

Candidate for stable, as it fixes a bug present in the current release and
the current playtest series.

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
2016-09-20 19:28:31 +12:00
RoosterDragon
e65c73785e Allow MixFile to support all stream types again, not just FileStream. 2016-09-20 07:41:31 +01:00
Oliver Brakmann
8fabd6cff1 Merge pull request #11932 from Mailaender/sharpfont-4.0.1
Updated SharpFont to version 4.0.1
2016-09-19 22:19:24 +02:00
Oliver Brakmann
4e76d9cc0b Merge pull request #11909 from pchote/colormap-depth
Use the MATLAB Jet colormap for displaying depth data.
2016-09-19 21:25:08 +02:00
Oliver Brakmann
55e35d7be9 Merge pull request #12056 from Mailaender/keep-syncreport.log-fix
Fixed a crash when no sync report is available
2016-09-19 20:01:52 +02:00
Matthias Mailänder
56fa1ab0e3 Fix a crash when no sync report is available. 2016-09-18 17:43:22 +02:00
reaperrr
af125d64df Merge pull request #12014 from RoosterDragon/better-oom-logs
Improve out-of-memory logging
2016-09-18 16:38:24 +02:00
reaperrr
b10cf35972 Merge pull request #12051 from obrakmann/fix12035-selling-airfield-during-rearm-lockage
Fix locking an airfield that is rearming aircraft while being sold
2016-09-18 16:15:46 +02:00
Oliver Brakmann
b1f36b0122 Merge pull request #12041 from abcdefg30/musicReset
Fix the music resetting from time to time
2016-09-18 15:57:17 +02:00
reaperrr
e53180fdbc Merge pull request #12036 from obrakmann/fix12031-close-chat-in-replays
Fix not being able to close the chat window in replays
2016-09-18 15:28:28 +02:00
reaperrr
32e54cd30c Merge pull request #12038 from pchote/fix-readfailure-crash
Don't crash if a replay can't be read.
2016-09-18 15:22:38 +02:00
clemty
6a3a195614 Replaces temperat trees with desert trees 2016-09-18 15:01:37 +02:00
abcdefg30
05899b5b0e Split a UnitCommandWidget from WorldCommandWidget 2016-09-18 14:55:59 +02:00
abcdefg30
e511faa2ea Fix spectators not being able to issue commands in TD 2016-09-18 14:55:58 +02:00
Oliver Brakmann
a4a726c19a Remove workarounds for ownership change breakage from 'Infiltration' 2016-09-18 14:27:18 +02:00
Oliver Brakmann
d099aa0d46 Fix crashing when a spy's "real" owner gets changed 2016-09-18 14:27:18 +02:00
Oliver Brakmann
88a4f73bdc Add advisory upgrade rule for WithRearmAnimation 2016-09-18 14:20:58 +02:00
reaperrr
1079adcf2b Merge pull request #12027 from pchote/fix-cwd-crash
Fix crash when launching from a different directory than the game binary.
2016-09-18 14:15:45 +02:00
reaperrr
d3de132dbb Merge pull request #11916 from pchote/fix-heightmap-aistrike
Account for terrain height in AttackBomber.
2016-09-18 13:52:40 +02:00
Oliver Brakmann
b598e31d4b Add WithRearmAnimation to buildings that need it 2016-09-18 13:48:17 +02:00
Oliver Brakmann
ab8c1403a8 Fix locking an airfield that is rearming aircraft while being sold 2016-09-18 13:48:17 +02:00
reaperrr
b820f421c0 Merge pull request #11821 from UnknownProgrammer/patch-1
Fix for System Overflow exception
2016-09-18 13:12:59 +02:00
Oliver Brakmann
f1bdcca91d Merge pull request #12050 from pchote/rename-pseudofullscreen
Give window modes human-friendly names.
2016-09-18 12:32:08 +02:00
reaperrr
2de7a4956d Merge pull request #11975 from alercah/metrics-fix
Move most UI metrics to common.
2016-09-18 12:30:26 +02:00
Paul Chote
9063e44f9b Improve error message. 2016-09-18 11:24:32 +01:00
reaperrr
ec7a236dbd Merge pull request #11950 from Mailaender/lowbridge-polish
Fixed building placement on Tiberian Sun low bridges
2016-09-18 12:19:15 +02:00
Paul Chote
4077446d27 Give window modes human-friendly names.
* Fullscreen -> Fullscreen (Legacy)
* Pseudo-fullscreen -> Fullscreen
2016-09-18 11:16:50 +01:00
Matthias Mailänder
72764c2473 Don't show broken bridges on the radar. 2016-09-18 10:07:56 +02:00
Matthias Mailänder
c7667f42b2 Disallow building placement on bridges and fix radar color. 2016-09-18 10:07:51 +02:00
Matthias Mailänder
fd068c3f9f Require the Terrain to be set for RadarColorFromTerrain. 2016-09-18 10:07:51 +02:00
abcdefg30
16776e8a97 Fix the music resetting from time to time 2016-09-17 19:43:09 +02:00
Oliver Brakmann
f5c015f51a Merge pull request #12030 from pchote/fix-tfd-detection
Work around incorrect mono drive detection under OSX.
2016-09-17 18:22:27 +02:00
Oliver Brakmann
aa68e9bfca Fix not being able to close the chat window in replays 2016-09-17 15:05:00 +02:00
reaperrr
6d3ae5fcfe Merge pull request #12029 from pchote/fix-check-yaml
Fix explicit oramap path lint checking.
2016-09-17 14:09:11 +02:00
Paul Chote
099492a52f Don't crash if a replay can't be read. 2016-09-16 18:30:19 +01:00
Paul Chote
7b4ddfcd63 Merge pull request #12037 from obrakmann/fix11971_rename-disable-experience-yaml
Remove 'campaign-' prefix from disable-experience.yaml files
2016-09-16 17:31:51 +01:00
Oliver Brakmann
47a24e7ad4 Remove 'campaign-' prefix from disable-experience.yaml files 2016-09-16 18:27:20 +02:00
RoosterDragon
696d783a67 Improve out-of-memory logging with more details.
Also ensure that when OpenGL gives an out-of-memory error, we throw an OutOfMemoryException so the improved logging is triggered here too.
2016-09-16 07:35:08 +01:00
Oliver Brakmann
852d947764 Fix setting MayYieldReservation when there is no reservation 2016-09-15 21:10:47 +02:00
Paul Chote
af0249f2ae Merge pull request #12015 from RoosterDragon/better-exceptions
Improve some exception types
2016-09-15 19:31:48 +01:00
Paul Chote
aab91cb37e Work around incorrect mono behaviour under OSX. 2016-09-14 21:48:40 +01:00
Paul Chote
8a1987eb5c Fix explicit oramap path lint checking. 2016-09-14 21:25:44 +01:00
Oliver Brakmann
082ccfe5d6 Fix kicking players joining servers hosting a map with non-default rules
Specifically, rules that remove traits which implement ILobbyOptions
2016-09-14 22:04:40 +02:00
Paul Chote
632b277a0e Other misc fixes in Platform. 2016-09-14 20:55:33 +01:00
Paul Chote
1eac43fa6d Fix string comparison cultures in Platform. 2016-09-14 20:54:48 +01:00
Paul Chote
6deb49e095 Resolve a bare "." to the game install path. 2016-09-14 19:44:57 +01:00
Oliver Brakmann
634faa31de Merge pull request #12023 from abcdefg30/disabledC17
Remove duplicated "Prerequisites: ~disabled" fields from the TD campaign
2016-09-13 19:25:17 +02:00
abcdefg30
961a6d2650 Remove duplicated "Prerequisites: ~disabled" fields from the TD campaign 2016-09-13 14:22:10 +02:00
abcdefg30
348249119a Play all IonCannonPower launch sounds using the new helper method 2016-09-12 23:33:47 +02:00
abcdefg30
41bc3b20ba Add a new OnFireSound property to IonCannonPower
This replaces the hacky use of LaunchSound
2016-09-12 23:33:37 +02:00
abcdefg30
b6dc30ca93 Add support for playing the weapon report of the ion cannon 2016-09-12 23:28:25 +02:00
Oliver Brakmann
9fbda6b598 Fix helicopters not taking off when their target got covered by shroud 2016-09-12 23:01:16 +02:00
Oliver Brakmann
bd3c6c1c6b Merge pull request #11989 from abcdefg30/launchDetection
Fix the support power SpeechNotifications not being played to the correct player
2016-09-12 19:12:28 +02:00
abcdefg30
e80e84aeba Merge pull request #12003 from MustaphaTR/d2k-fix-sardaukar-prerequisite
D2K - Fix Sardaukar's prerequisite
2016-09-12 15:33:46 +02:00
abcdefg30
620e005cfd Create a PlayLaunchSounds method in SupportPower.cs 2016-09-12 14:47:54 +02:00
abcdefg30
08d84c5b90 Fix the support power SpeechNotifications not being played to the correct player 2016-09-12 14:42:45 +02:00
reaperrr
ed8b62a7fc Merge pull request #11904 from pchote/depthbuffer-part-two
Enable per-pixel depth calculations in TS
2016-09-12 02:06:41 +02:00
RoosterDragon
9f1c872340 Improve some exception types. 2016-09-11 15:14:44 +01:00
Oliver Brakmann
adc968db76 Merge pull request #11992 from abcdefg30/LZRange
Remove bogus LZRange field and unnecessary ParaDrop definition
2016-09-09 21:35:19 +02:00
Oliver Brakmann
a10fd29253 Merge pull request #11985 from Mailaender/keep-syncreport.log
Fixed game restart deleting the syncreport.log
2016-09-09 21:31:22 +02:00
Oliver Brakmann
b6aac234d4 Merge pull request #11970 from pchote/fix-observer-stats-scroll
Fix bogus observer stats graph positioning.
2016-09-09 21:15:25 +02:00
Mustafa Alperen Seki
48090c7ab8 Fix Sardaukar's prerequisite 2016-09-09 16:48:46 +02:00
reaperrr
1988990c7a Merge pull request #11990 from abcdefg30/margins
Remove the TopBottomSpacing from the score screen player list
2016-09-09 12:11:38 +02:00
reaperrr
b7f35cb5e2 Merge pull request #11912 from Mailaender/laser-transparency
Fixed transparency for LaserZap
2016-09-08 19:14:37 +02:00
abcdefg30
db4869812b Merge pull request #11994 from clemty/gdi07fixes
gdi07 map yaml polish
2016-09-07 23:50:40 +02:00
abcdefg30
fe91629d25 Remove a bogus LZRange field together with an unnecessary ParaDrop definition 2016-09-07 23:38:00 +02:00
clemty
b2e319663e gdi07 map yaml polish 2016-09-07 00:33:06 +02:00
abcdefg30
d5e6c1f427 Remove the TopBottomSpacing from the score screen player list 2016-09-06 14:21:11 +02:00
Taryn Hill
a1216f8197 Remove pdb files in make.ps1's clean target 2016-09-05 16:37:44 -05:00
Taryn Hill
b3f8e8f87b Game csproj: Use MSBuild tasks instead of shelling out 2016-09-05 16:35:43 -05:00
Taryn Hill
7433ca5380 Change OpenRA.Game's output path to bin\$(Configuration) 2016-09-05 16:35:43 -05:00
Taryn Hill
cacb2a304a TS csproj: Use MSBuild tasks instead of shelling out 2016-09-05 16:35:43 -05:00
Taryn Hill
1cfe9ed512 Common csproj: Use MSBuild tasks instead of shelling out 2016-09-05 16:35:43 -05:00
Taryn Hill
5308a25ab9 D2k csproj: Use MSBuild tasks instead of shelling out 2016-09-05 16:35:42 -05:00
Taryn Hill
69c919943f CnC csproj: Use MSBuild tasks instead of shelling out 2016-09-05 16:35:42 -05:00
Taryn Hill
7049b89288 RA csproj: Use MSBuild tasks instead of shelling out 2016-09-05 16:35:42 -05:00
Taryn Hill
f054892c8a Add mods/*/*.pdb to gitignore 2016-09-05 16:35:42 -05:00
abcdefg30
3849b91e8f Merge pull request #11983 from abc013/JamsMissilesFix
Fixed enemy missiles not being deflected by Radar Jammers
2016-09-05 22:18:18 +02:00
Matthias Mailänder
66f4db93c1 Only save a syncreport.log when a desync occurs. 2016-09-05 21:59:50 +02:00
Oliver Brakmann
daa1f16e98 Prevent an infinite loop when planes go out of ammo and all airfields are gone 2016-09-05 19:59:01 +02:00
abc013
464eae8bc4 Fixed enemy missiles not being deflected by Radar Jammers 2016-09-05 19:52:13 +02:00
Alexis Hunt
ef8b672f51 Move most UI metrics to common.
This reduces the odds that a third-party mod will crash due to missing
one of them. Eliminates ra2#291.
2016-09-05 13:38:40 -04:00
Oliver Brakmann
351c231693 Use the yield reservation logic for helicopters as well. Oops. 2016-09-05 19:24:26 +02:00
Oliver Brakmann
fb1f8c4e01 Remove brain-dead logic from TakeOff
1. TakeOff's Tick() method never checks itself whether it is canceled
2. If NextActivity is null, TakeOff is the only activity on the queue
3. Takeoff canceling the queue then just cancels itself, with no effect at all

4. If Takeoff however is running as an inner activity, it will cancel the complete main queue, wrecking all sorts of havoc
2016-09-05 19:20:51 +02:00
Paul Chote
3197345fc3 Fix bogus observer stats graph positioning. 2016-09-04 19:31:04 +01:00
UnknownProgrammer
65fe88daef used clamp instead of Math.Min/Math.Max construct
clarified naming
restored comments
removed blank line
2016-09-03 15:27:04 +02:00
Matthias Mailänder
d1ff40bcca Update SharpFont to version 4.0.1 2016-09-01 07:21:19 +02:00
Paul Chote
4a1f66569b Account for terrain height in AttackBomber. 2016-08-29 10:37:27 +01:00
Paul Chote
074edc9d50 Fix missing cabhut shadow. 2016-08-28 18:49:25 +01:00
Paul Chote
75c6cf7c75 Fix tree depth offsets. 2016-08-28 18:46:21 +01:00
Paul Chote
0727cd46b5 Fix crate depth offset. 2016-08-28 16:28:29 +01:00
Paul Chote
d1b7d0e0fb Use the MATLAB Jet colormap for displaying depth data. 2016-08-28 11:52:16 +01:00
Matthias Mailänder
e9eefcbc1b Add transparency to the Nod laser turret beam. 2016-08-28 12:41:02 +02:00
Matthias Mailänder
fc7e149401 The color definition changed to hex notation. 2016-08-28 12:23:40 +02:00
Matthias Mailänder
e4491a7957 Remove hard-coded LaserZap transparency. 2016-08-28 12:22:45 +02:00
Paul Chote
2c564d133e Enable depth buffer in TS. 2016-08-27 19:14:00 +01:00
Paul Chote
103e8075f2 Fix building EMP overlay depth offsets. 2016-08-27 19:14:00 +01:00
Paul Chote
66fbc0dfc4 Fix vehicle EMP overlay depth offset. 2016-08-27 19:13:59 +01:00
Paul Chote
8b6a355850 Fix tick tank depth offsets. 2016-08-27 19:13:59 +01:00
Paul Chote
a2239b5d46 Fix titan depth offsets. 2016-08-27 19:13:59 +01:00
Paul Chote
31351d825c Fix tunnel top depth metadata. 2016-08-27 19:13:59 +01:00
Paul Chote
f0adbac5a0 Fix infantry depth metadata. 2016-08-27 19:13:59 +01:00
Paul Chote
baf5a8ebe2 Fix explosion depth metadata. 2016-08-27 19:13:59 +01:00
Paul Chote
4e5c1deb5d Fix harvester harvest animation. 2016-08-27 19:13:58 +01:00
Paul Chote
1ff1435953 Set Offset on wake and resources. 2016-08-27 19:13:58 +01:00
Paul Chote
b52a81210e Set ZRamp on overlays. 2016-08-27 19:13:58 +01:00
Paul Chote
b066b88281 Set ZRamp on craters. 2016-08-27 19:13:58 +01:00
UnknownProgrammer
333e8bae42 Fix for System Overflow exception
caused by casting a greater than int.MaxValue decimal to int. Fix limits offset to int.MaxValue respectively int.MinValue.
2016-08-15 22:52:12 +02:00
1682 changed files with 34584 additions and 13986 deletions

1
.gitignore vendored
View File

@@ -21,6 +21,7 @@ _ReSharper.*/
# binaries
mods/*/*.dll
mods/*/*.mdb
mods/*/*.pdb
/*.dll
/*.dll.config
/*.so

View File

@@ -2,7 +2,7 @@
# see travis-ci.org for details
language: csharp
mono: 4.4.2
mono: 4.6.1
# http://docs.travis-ci.com/user/migrating-from-legacy
sudo: false

View File

@@ -8,7 +8,6 @@ The OpenRA developers are:
* Matthias Mailänder (Mailaender)
* Oliver Brakmann (obrakmann)
* Paul Chote (pchote)
* Pavel Penev (penev92)
* Reaperrr
* Tom Roostan (RoosterDragon)
@@ -19,6 +18,7 @@ Previous developers included:
* Daniel Hernandez (Mancano)
* Megan Bowra-Dean (beedee)
* Mike Bundy (kehaar)
* Pavel Penev (penev92)
* Robert Pepperell (ytinasni)
* ScottNZ
@@ -59,7 +59,7 @@ Also thanks to:
* Florian Wiesbauer (FiveAces)
* Frank Razenberg (zzattack)
* Gareth Needham (Ripley`)
* Glen Anderson (GlenAnderson)
* Glen Anderson (GlenLife)
* Glenn Martin Jensen (Baxxster)
* Gordon Martin (Happy0)
* Guido Lipke (LipkeGu)
@@ -127,6 +127,7 @@ Also thanks to:
* Tirili
* Tristan Keating (Kilkakon)
* Tristan Mühlbacher (MicroBit)
* UnknownProgrammer
* Vladimir Komarov (VrKomarov)
* Wuschel

View File

@@ -17,7 +17,7 @@
Please `git rebase` to the latest revision of the bleed branch.
Don't forget to add youself to [AUTHORS](https://github.com/OpenRA/OpenRA/blob/bleed/AUTHORS).
Don't forget to add yourself to [AUTHORS](https://github.com/OpenRA/OpenRA/blob/bleed/AUTHORS).
Please propose a [CHANGELOG](https://github.com/OpenRA/OpenRA/wiki/CHANGELOG) entry in the pull-request comments.

View File

@@ -46,7 +46,7 @@ SDK ?=
CSC = mcs $(SDK)
CSFLAGS = -nologo -warn:4 -codepage:utf8 -unsafe -warnaserror
DEFINE = TRACE
COMMON_LIBS = System.dll System.Core.dll System.Data.dll System.Data.DataSetExtensions.dll System.Drawing.dll System.Xml.dll thirdparty/download/ICSharpCode.SharpZipLib.dll thirdparty/download/FuzzyLogicLibrary.dll thirdparty/download/MaxMind.Db.dll thirdparty/download/MaxMind.GeoIP2.dll thirdparty/download/Eluant.dll thirdparty/download/SmarIrc4net.dll
COMMON_LIBS = System.dll System.Core.dll System.Data.dll System.Data.DataSetExtensions.dll System.Drawing.dll System.Xml.dll thirdparty/download/ICSharpCode.SharpZipLib.dll thirdparty/download/FuzzyLogicLibrary.dll thirdparty/download/MaxMind.Db.dll thirdparty/download/Eluant.dll thirdparty/download/SmarIrc4net.dll
NUNIT_LIBS_PATH :=
NUNIT_LIBS := $(NUNIT_LIBS_PATH)nunit.framework.dll
@@ -146,18 +146,9 @@ test_dll: $(test_dll_TARGET)
STD_MOD_LIBS = $(game_TARGET)
STD_MOD_DEPS = $(STD_MOD_LIBS)
# Red Alert
mod_ra_SRCS := $(shell find OpenRA.Mods.RA/ -iname '*.cs')
mod_ra_TARGET = mods/ra/OpenRA.Mods.RA.dll
mod_ra_KIND = library
mod_ra_DEPS = $(STD_MOD_DEPS) $(mod_common_TARGET)
mod_ra_LIBS = $(COMMON_LIBS) $(STD_MOD_LIBS) $(mod_common_TARGET)
PROGRAMS += mod_ra
mod_ra: $(mod_ra_TARGET)
# Command and Conquer
mod_cnc_SRCS := $(shell find OpenRA.Mods.Cnc/ -iname '*.cs')
mod_cnc_TARGET = mods/cnc/OpenRA.Mods.Cnc.dll
mod_cnc_TARGET = mods/common/OpenRA.Mods.Cnc.dll
mod_cnc_KIND = library
mod_cnc_DEPS = $(STD_MOD_DEPS) $(mod_common_TARGET)
mod_cnc_LIBS = $(COMMON_LIBS) $(STD_MOD_LIBS) $(mod_common_TARGET)
@@ -173,15 +164,6 @@ mod_d2k_LIBS = $(COMMON_LIBS) $(STD_MOD_LIBS) $(mod_common_TARGET)
PROGRAMS += mod_d2k
mod_d2k: $(mod_d2k_TARGET)
# Tiberian Sun
mod_ts_SRCS := $(shell find OpenRA.Mods.TS/ -iname '*.cs')
mod_ts_TARGET = mods/ts/OpenRA.Mods.TS.dll
mod_ts_KIND = library
mod_ts_DEPS = $(STD_MOD_DEPS) $(mod_common_TARGET)
mod_ts_LIBS = $(COMMON_LIBS) $(STD_MOD_LIBS) $(mod_common_TARGET)
PROGRAMS += mod_ts
mod_ts: $(mod_ts_TARGET)
check-scripts:
@echo
@echo "Checking for Lua syntax errors..."
@@ -189,6 +171,9 @@ check-scripts:
@luac -p $(shell find lua/* -iname '*.lua')
check: utility mods
@echo
@echo "Checking for explicit interface violations..."
@mono --debug OpenRA.Utility.exe all --check-explicit-interfaces
@echo
@echo "Checking for code style violations in OpenRA.Game..."
@mono --debug OpenRA.Utility.exe ra --check-code-style OpenRA.Game
@@ -202,27 +187,18 @@ check: utility mods
@echo "Checking for code style violations in OpenRA.Mods.Common..."
@mono --debug OpenRA.Utility.exe ra --check-code-style OpenRA.Mods.Common
@echo
@echo "Checking for code style violations in OpenRA.Mods.RA..."
@mono --debug OpenRA.Utility.exe ra --check-code-style OpenRA.Mods.RA
@echo
@echo "Checking for code style violations in OpenRA.Mods.Cnc..."
@mono --debug OpenRA.Utility.exe ra --check-code-style OpenRA.Mods.Cnc
@echo
@echo "Checking for code style violations in OpenRA.Mods.D2k..."
@mono --debug OpenRA.Utility.exe ra --check-code-style OpenRA.Mods.D2k
@echo
@echo "Checking for code style violations in OpenRA.Mods.TS..."
@mono --debug OpenRA.Utility.exe ra --check-code-style OpenRA.Mods.TS
@echo
@echo "Checking for code style violations in OpenRA.Utility..."
@mono --debug OpenRA.Utility.exe ra --check-code-style OpenRA.Utility
@echo
@echo "Checking for code style violations in OpenRA.Test..."
@mono --debug OpenRA.Utility.exe ra --check-code-style OpenRA.Test
@echo
@echo "Checking for explicit interface violations..."
@mono --debug OpenRA.Utility.exe all --check-explicit-interfaces
@echo
@echo "Checking for code style violations in OpenRA.Server..."
@mono --debug OpenRA.Utility.exe ra --check-code-style OpenRA.Server
@@ -291,6 +267,7 @@ server: $(server_TARGET)
# Patches binary headers to work around a mono bug
fixheader.exe: packaging/fixheader.cs
@command -v $(CSC) >/dev/null || (echo "Mono is not installed. Please install Mono from http://www.mono-project.com/download/ before building OpenRA."; exit 1)
@echo CSC fixheader.exe
@$(CSC) packaging/fixheader.cs $(CSFLAGS) -out:fixheader.exe -t:exe $(COMMON_LIBS:%=-r:%)
@@ -318,13 +295,13 @@ $(foreach prog,$(PROGRAMS),$(eval $(call BUILD_ASSEMBLY,$(prog))))
#
default: core
core: game platforms mods utility server
core: dependencies game platforms mods utility server
tools: gamemonitor
package: all-dependencies core tools docs version
mods: mod_common mod_ra mod_cnc mod_d2k mod_ts
mods: mod_common mod_cnc mod_d2k
all: dependencies core tools
@@ -387,10 +364,9 @@ install-core: default
@$(INSTALL_DIR) "$(DATA_INSTALL_DIR)/mods"
@$(CP_R) mods/common "$(DATA_INSTALL_DIR)/mods/"
@$(INSTALL_PROGRAM) $(mod_common_TARGET) "$(DATA_INSTALL_DIR)/mods/common"
@$(INSTALL_PROGRAM) $(mod_cnc_TARGET) "$(DATA_INSTALL_DIR)/mods/common"
@$(CP_R) mods/cnc "$(DATA_INSTALL_DIR)/mods/"
@$(INSTALL_PROGRAM) $(mod_cnc_TARGET) "$(DATA_INSTALL_DIR)/mods/cnc"
@$(CP_R) mods/ra "$(DATA_INSTALL_DIR)/mods/"
@$(INSTALL_PROGRAM) $(mod_ra_TARGET) "$(DATA_INSTALL_DIR)/mods/ra"
@$(CP_R) mods/d2k "$(DATA_INSTALL_DIR)/mods/"
@$(INSTALL_PROGRAM) $(mod_d2k_TARGET) "$(DATA_INSTALL_DIR)/mods/d2k"
@$(CP_R) mods/modchooser "$(DATA_INSTALL_DIR)/mods/"
@@ -411,8 +387,6 @@ install-core: default
@$(CP) SharpFont.dll.config "$(DATA_INSTALL_DIR)"
@$(INSTALL_PROGRAM) Open.Nat.dll "$(DATA_INSTALL_DIR)"
@$(INSTALL_PROGRAM) MaxMind.Db.dll "$(DATA_INSTALL_DIR)"
@$(INSTALL_PROGRAM) MaxMind.GeoIP2.dll "$(DATA_INSTALL_DIR)"
@$(INSTALL_PROGRAM) Newtonsoft.Json.dll "$(DATA_INSTALL_DIR)"
@$(INSTALL_PROGRAM) SmarIrc4net.dll "$(DATA_INSTALL_DIR)"
ifneq ($(UNAME_S),Darwin)
@@ -452,10 +426,11 @@ install-man-page: man-page
install-linux-scripts:
@echo "#!/bin/sh" > openra
@echo 'cd "$(gameinstalldir)"' >> openra
# Note: this relies on the non-standard -f flag implemented by gnu readlink
ifeq ($(DEBUG), $(filter $(DEBUG),false no n off 0))
@echo 'mono OpenRA.Game.exe "$$@"' >> openra
@echo 'mono OpenRA.Game.exe Engine.LaunchPath="$$(readlink -f $$0)" "$$@"' >> openra
else
@echo 'mono --debug OpenRA.Game.exe "$$@"' >> openra
@echo 'mono --debug OpenRA.Game.exe Engine.LaunchPath="$$(readlink -f $$0)" "$$@"' >> openra
endif
@echo 'if [ $$? != 0 -a $$? != 1 ]' >> openra
@echo 'then' >> openra

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of
@@ -9,31 +9,254 @@
*/
#endregion
using System;
using System.Collections.Generic;
using System.Linq;
using OpenRA.Traits;
namespace OpenRA.Activities
{
public enum ActivityState { Queued, Active, Done, Canceled }
/*
* Activities are actions carried out by actors during each tick.
*
* Activities exist in a graph data structure built up amongst themselves. Each activity has a parent activity,
* optionally child activities, and usually a next activity. An actor's CurrentActivity is a pointer into that graph
* and moves through it as activities run.
*
* There are two kinds of activities, the base activity and composite activities. They differ in the way their children
* are run: while a base activity is responsible for running its children itself, a composite activity relies on the actor's
* activity-running code. Therefore, the actor's CurrentActivity stays on the base activity while it runs its children. With
* composite activities however, the CurrentActivity moves through the list of children as they run.
*
*
* Things to be aware of when writing activities:
*
* - Use "return NextActivity" at least once somewhere in the tick method.
* - Do not use "return new SomeActivity()" as that will break the graph. Queue the new activity and use "return NextActivity" instead.
* - Do not "reuse" (with "SequenceActivities", for example) activity objects that have already finished running.
* Queue a new instance instead.
* - Avoid calling actor.CancelActivity(). It is almost always a bug. Call activity.Cancel() instead.
* - A composite activity will run at least twice. The first time when it returns its children,
* the second time when its last child returns its Parent.
* - Do not return the Parent explicitly unless you have an extremly good reason. "return NextActivity"
* will do the right thing in all circumstances.
* - You do not need to care about the ChildActivity pointer advancing through the list of children,
* the activity code already takes care of that.
* - If you want to check whether there are any follow-up activities queued, check against "NextInQueue"
* in favour of "NextActivity" to avoid checking against the Parent activity.
*
*
* Guide when to use which kind of activity:
*
* - The activity does not have any children -> base activity
* - The activity needs to run preparatory steps during each tick before its children can be run -> base activity
* - The activity or the actor is left in a bogus state when one of the child activities is canceled -> base activity
* - The activity's children are self-contained and can run independently of the parent -> composite activity
* - The activity does not have any or little logic of its own, but is just composed of sub-steps -> composite activity
*/
public abstract class Activity
{
public Activity NextActivity { get; set; }
protected bool IsCanceled { get; private set; }
public ActivityState State { get; private set; }
/// <summary>
/// Returns the top-most activity *from the point of view of the calling activity*. Note that the root activity
/// can and likely will have next activities of its own, which would in turn be the root for their children.
/// </summary>
public Activity RootActivity
{
get
{
var p = this;
while (p.ParentActivity != null)
p = p.ParentActivity;
return p;
}
}
Activity parentActivity;
public Activity ParentActivity
{
get
{
return parentActivity;
}
protected set
{
parentActivity = value;
var next = NextInQueue;
if (next != null)
next.ParentActivity = parentActivity;
}
}
Activity childActivity;
protected Activity ChildActivity
{
get
{
return childActivity != null && childActivity.State < ActivityState.Done ? childActivity : null;
}
set
{
if (value == this || value == ParentActivity || value == NextInQueue)
childActivity = null;
else
{
childActivity = value;
if (childActivity != null)
childActivity.ParentActivity = this;
}
}
}
Activity nextActivity;
/// <summary>
/// The getter will return either the next activity or, if there is none, the parent one.
/// </summary>
public virtual Activity NextActivity
{
get
{
return nextActivity != null ? nextActivity : ParentActivity;
}
set
{
if (value == this || value == ParentActivity || (value != null && value.ParentActivity == this))
nextActivity = null;
else
{
nextActivity = value;
if (nextActivity != null)
nextActivity.ParentActivity = ParentActivity;
}
}
}
/// <summary>
/// The getter will return the next activity on the same level _only_, in contrast to NextActivity.
/// Use this to check whether there are any follow-up activities queued.
/// </summary>
public Activity NextInQueue
{
get { return nextActivity; }
set { NextActivity = value; }
}
public bool IsInterruptible { get; protected set; }
public bool IsCanceled { get { return State == ActivityState.Canceled; } }
public Activity()
{
IsInterruptible = true;
}
public Activity TickOuter(Actor self)
{
if (State == ActivityState.Done && Game.Settings.Debug.StrictActivityChecking)
throw new InvalidOperationException("Actor {0} attempted to tick activity {1} after it had already completed.".F(self, this.GetType()));
if (State == ActivityState.Queued)
{
OnFirstRun(self);
State = ActivityState.Active;
}
var ret = Tick(self);
if (ret == null || (ret != this && ret.ParentActivity != this))
{
// Make sure that the Parent's ChildActivity pointer is moved forwards as the child queue advances.
// The Child's ParentActivity will be set automatically during assignment.
if (ParentActivity != null && ParentActivity != ret)
ParentActivity.ChildActivity = ret;
if (State != ActivityState.Canceled)
State = ActivityState.Done;
OnLastRun(self);
}
return ret;
}
public abstract Activity Tick(Actor self);
public virtual void Cancel(Actor self)
/// <summary>
/// Runs once immediately before the first Tick() execution.
/// </summary>
protected virtual void OnFirstRun(Actor self) { }
/// <summary>
/// Runs once immediately after the last Tick() execution.
/// </summary>
protected virtual void OnLastRun(Actor self) { }
public virtual bool Cancel(Actor self)
{
IsCanceled = true;
if (!IsInterruptible)
return false;
if (ChildActivity != null && !ChildActivity.Cancel(self))
return false;
State = ActivityState.Canceled;
NextActivity = null;
ChildActivity = null;
return true;
}
public virtual void Queue(Activity activity)
{
if (NextActivity != null)
NextActivity.Queue(activity);
if (NextInQueue != null)
NextInQueue.Queue(activity);
else
NextActivity = activity;
NextInQueue = activity;
}
public virtual void QueueChild(Activity activity)
{
if (ChildActivity != null)
ChildActivity.Queue(activity);
else
ChildActivity = activity;
}
/// <summary>
/// Prints the activity tree, starting from the root or optionally from a given origin.
///
/// Call this method from any place that's called during a tick, such as the Tick() method itself or
/// the Before(First|Last)Run() methods. The origin activity will be marked in the output.
/// </summary>
/// <param name="origin">Activity from which to start traversing, and which to mark. If null, mark the calling activity, and start traversal from the root.</param>
/// <param name="level">Initial level of indentation.</param>
protected void PrintActivityTree(Activity origin = null, int level = 0)
{
if (origin == null)
RootActivity.PrintActivityTree(this);
else
{
Console.Write(new string(' ', level * 2));
if (origin == this)
Console.Write("*");
Console.WriteLine(this.GetType().ToString().Split('.').Last());
if (ChildActivity != null)
ChildActivity.PrintActivityTree(origin, level + 1);
if (NextInQueue != null)
NextInQueue.PrintActivityTree(origin, level);
}
}
public virtual IEnumerable<Target> GetTargets(Actor self)
@@ -42,11 +265,34 @@ namespace OpenRA.Activities
}
}
/// <summary>
/// In contrast to the base activity class, which is responsible for running its children itself,
/// composite activities rely on the actor's activity-running logic for their children.
/// </summary>
public abstract class CompositeActivity : Activity
{
/// <summary>
/// The getter will return the first non-null value of either child, next or parent activity, in that order, or ultimately null.
/// </summary>
public override Activity NextActivity
{
get
{
if (ChildActivity != null)
return ChildActivity;
else if (NextInQueue != null)
return NextInQueue;
else
return ParentActivity;
}
}
}
public static class ActivityExts
{
public static IEnumerable<Target> GetTargetQueue(this Actor self)
{
return self.GetCurrentActivity()
return self.CurrentActivity
.Iterate(u => u.NextActivity)
.TakeWhile(u => u != null)
.SelectMany(u => u.GetTargets(self));

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of
@@ -16,25 +16,18 @@ namespace OpenRA.Activities
public class CallFunc : Activity
{
public CallFunc(Action a) { this.a = a; }
public CallFunc(Action a, bool interruptable)
public CallFunc(Action a, bool interruptible)
{
this.a = a;
this.interruptable = interruptable;
IsInterruptible = interruptible;
}
Action a;
bool interruptable;
public override Activity Tick(Actor self)
{
if (a != null) a();
return NextActivity;
}
public override void Cancel(Actor self)
{
if (interruptable)
base.Cancel(self);
}
}
}

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of
@@ -38,12 +38,12 @@ namespace OpenRA
public readonly uint ActorID;
public Player Owner { get; set; }
public Player Owner { get; internal set; }
public bool IsInWorld { get; internal set; }
public bool Disposed { get; private set; }
Activity currentActivity;
public Activity CurrentActivity { get; private set; }
public Group Group;
public int Generation;
@@ -54,7 +54,7 @@ namespace OpenRA
public IOccupySpace OccupiesSpace { get; private set; }
public ITargetable[] Targetables { get; private set; }
public bool IsIdle { get { return currentActivity == null; } }
public bool IsIdle { get { return CurrentActivity == null; } }
public bool IsDead { get { return Disposed || (health != null && health.IsDead); } }
public CPos Location { get { return OccupiesSpace.TopLeft; } }
@@ -161,7 +161,7 @@ namespace OpenRA
public void Tick()
{
var wasIdle = IsIdle;
currentActivity = ActivityUtils.RunActivity(this, currentActivity);
CurrentActivity = ActivityUtils.RunActivity(this, CurrentActivity);
if (!wasIdle && IsIdle)
foreach (var n in TraitsImplementing<INotifyBecomingIdle>())
@@ -200,21 +200,18 @@ namespace OpenRA
public void QueueActivity(Activity nextActivity)
{
if (currentActivity == null)
currentActivity = nextActivity;
if (CurrentActivity == null)
CurrentActivity = nextActivity;
else
currentActivity.Queue(nextActivity);
CurrentActivity.RootActivity.Queue(nextActivity);
}
public void CancelActivity()
public bool CancelActivity()
{
if (currentActivity != null)
currentActivity.Cancel(this);
}
if (CurrentActivity != null)
return CurrentActivity.RootActivity.Cancel(this);
public Activity GetCurrentActivity()
{
return currentActivity;
return true;
}
public override int GetHashCode()

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of
@@ -19,26 +19,25 @@ namespace OpenRA
public struct CPos : IScriptBindable, ILuaAdditionBinding, ILuaSubtractionBinding, ILuaEqualityBinding, ILuaTableBinding, IEquatable<CPos>
{
public readonly int X, Y;
public readonly byte Layer;
public CPos(int x, int y) { X = x; Y = y; }
public static readonly CPos Zero = new CPos(0, 0);
public CPos(int x, int y) { X = x; Y = y; Layer = 0; }
public CPos(int x, int y, byte layer) { X = x; Y = y; Layer = layer; }
public static readonly CPos Zero = new CPos(0, 0, 0);
public static explicit operator CPos(int2 a) { return new CPos(a.X, a.Y); }
public static CPos operator +(CVec a, CPos b) { return new CPos(a.X + b.X, a.Y + b.Y); }
public static CPos operator +(CPos a, CVec b) { return new CPos(a.X + b.X, a.Y + b.Y); }
public static CPos operator -(CPos a, CVec b) { return new CPos(a.X - b.X, a.Y - b.Y); }
public static CPos operator +(CVec a, CPos b) { return new CPos(a.X + b.X, a.Y + b.Y, b.Layer); }
public static CPos operator +(CPos a, CVec b) { return new CPos(a.X + b.X, a.Y + b.Y, a.Layer); }
public static CPos operator -(CPos a, CVec b) { return new CPos(a.X - b.X, a.Y - b.Y, a.Layer); }
public static CVec operator -(CPos a, CPos b) { return new CVec(a.X - b.X, a.Y - b.Y); }
public static bool operator ==(CPos me, CPos other) { return me.X == other.X && me.Y == other.Y; }
public static bool operator ==(CPos me, CPos other) { return me.X == other.X && me.Y == other.Y && me.Layer == other.Layer; }
public static bool operator !=(CPos me, CPos other) { return !(me == other); }
public static CPos Max(CPos a, CPos b) { return new CPos(Math.Max(a.X, b.X), Math.Max(a.Y, b.Y)); }
public static CPos Min(CPos a, CPos b) { return new CPos(Math.Min(a.X, b.X), Math.Min(a.Y, b.Y)); }
public override int GetHashCode() { return X.GetHashCode() ^ Y.GetHashCode() ^ Layer.GetHashCode(); }
public override int GetHashCode() { return X.GetHashCode() ^ Y.GetHashCode(); }
public bool Equals(CPos other) { return X == other.X && Y == other.Y; }
public bool Equals(CPos other) { return X == other.X && Y == other.Y && Layer == other.Layer; }
public override bool Equals(object obj) { return obj is CPos && Equals((CPos)obj); }
public override string ToString() { return X + "," + Y; }
@@ -83,11 +82,24 @@ namespace OpenRA
public LuaValue Subtract(LuaRuntime runtime, LuaValue left, LuaValue right)
{
CPos a;
CVec b;
if (!left.TryGetClrValue(out a) || !right.TryGetClrValue(out b))
throw new LuaException("Attempted to call CPos.Subtract(CPos, CVec) with invalid arguments ({0}, {1})".F(left.WrappedClrType().Name, right.WrappedClrType().Name));
var rightType = right.WrappedClrType();
if (!left.TryGetClrValue(out a))
throw new LuaException("Attempted to call CPos.Subtract(CPos, (CPos|CVec)) with invalid arguments ({0}, {1})".F(left.WrappedClrType().Name, rightType.Name));
return new LuaCustomClrObject(a - b);
if (rightType == typeof(CPos))
{
CPos b;
right.TryGetClrValue(out b);
return new LuaCustomClrObject(a - b);
}
else if (rightType == typeof(CVec))
{
CVec b;
right.TryGetClrValue(out b);
return new LuaCustomClrObject(a - b);
}
throw new LuaException("Attempted to call CPos.Subtract(CPos, (CPos|CVec)) with invalid arguments ({0}, {1})".F(left.WrappedClrType().Name, rightType.Name));
}
public LuaValue Equals(LuaRuntime runtime, LuaValue left, LuaValue right)
@@ -107,6 +119,7 @@ namespace OpenRA
{
case "X": return X;
case "Y": return Y;
case "Layer": return Layer;
default: throw new LuaException("CPos does not define a member '{0}'".F(key));
}
}

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of

38
OpenRA.Game/CryptoUtil.cs Normal file
View File

@@ -0,0 +1,38 @@
#region Copyright & License Information
/*
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of
* the License, or (at your option) any later version. For more
* information, see COPYING.
*/
#endregion
using System.IO;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
namespace OpenRA
{
public static class CryptoUtil
{
public static string SHA1Hash(Stream data)
{
using (var csp = SHA1.Create())
return new string(csp.ComputeHash(data).SelectMany(a => a.ToString("x2")).ToArray());
}
public static string SHA1Hash(byte[] data)
{
using (var csp = SHA1.Create())
return new string(csp.ComputeHash(data).SelectMany(a => a.ToString("x2")).ToArray());
}
public static string SHA1Hash(string data)
{
return SHA1Hash(Encoding.UTF8.GetBytes(data));
}
}
}

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of

View File

@@ -0,0 +1,46 @@
#region Copyright & License Information
/*
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of
* the License, or (at your option) any later version. For more
* information, see COPYING.
*/
#endregion
using System;
using System.Collections.Generic;
using OpenRA.Graphics;
using OpenRA.Traits;
namespace OpenRA.Effects
{
public class DelayedImpact : IEffect
{
readonly Target target;
readonly Actor firedBy;
readonly IEnumerable<int> damageModifiers;
readonly IWarhead wh;
int delay;
public DelayedImpact(int delay, IWarhead wh, Target target, Actor firedBy, IEnumerable<int> damageModifiers)
{
this.wh = wh;
this.delay = delay;
this.target = target;
this.firedBy = firedBy;
this.damageModifiers = damageModifiers;
}
public void Tick(World world)
{
if (--delay <= 0)
world.AddFrameEndTask(w => { w.Remove(this); wh.DoImpact(target, firedBy, damageModifiers); });
}
public IEnumerable<IRenderable> Render(WorldRenderer wr) { yield break; }
}
}

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of

168
OpenRA.Game/ExternalMods.cs Normal file
View File

@@ -0,0 +1,168 @@
#region Copyright & License Information
/*
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of
* the License, or (at your option) any later version. For more
* information, see COPYING.
*/
#endregion
using System;
using System.Collections;
using System.Collections.Generic;
using System.Drawing;
using System.IO;
using System.Linq;
using OpenRA.Graphics;
using OpenRA.Primitives;
namespace OpenRA
{
public class ExternalMod
{
public readonly string Id;
public readonly string Version;
public readonly string Title;
public readonly string LaunchPath;
public readonly string[] LaunchArgs;
public Sprite Icon { get; internal set; }
public static string MakeKey(Manifest mod) { return MakeKey(mod.Id, mod.Metadata.Version); }
public static string MakeKey(ExternalMod mod) { return MakeKey(mod.Id, mod.Version); }
public static string MakeKey(string modId, string modVersion) { return modId + "-" + modVersion; }
}
public class ExternalMods : IReadOnlyDictionary<string, ExternalMod>
{
readonly Dictionary<string, ExternalMod> mods = new Dictionary<string, ExternalMod>();
readonly SheetBuilder sheetBuilder;
readonly string launchPath;
public ExternalMods(string launchPath)
{
// Process.Start requires paths to not be quoted, even if they contain spaces
if (launchPath.First() == '"' && launchPath.Last() == '"')
launchPath = launchPath.Substring(1, launchPath.Length - 2);
this.launchPath = launchPath;
sheetBuilder = new SheetBuilder(SheetType.BGRA, 256);
// Load registered mods
var supportPath = Platform.ResolvePath(Path.Combine("^", "ModMetadata"));
if (!Directory.Exists(supportPath))
return;
foreach (var path in Directory.GetFiles(supportPath, "*.yaml"))
{
try
{
var yaml = MiniYaml.FromStream(File.OpenRead(path), path).First().Value;
LoadMod(yaml);
}
catch (Exception e)
{
Log.Write("debug", "Failed to parse mod metadata file '{0}'", path);
Log.Write("debug", e.ToString());
}
}
}
void LoadMod(MiniYaml yaml)
{
var mod = FieldLoader.Load<ExternalMod>(yaml);
var iconNode = yaml.Nodes.FirstOrDefault(n => n.Key == "Icon");
if (iconNode != null && !string.IsNullOrEmpty(iconNode.Value.Value))
{
using (var stream = new MemoryStream(Convert.FromBase64String(iconNode.Value.Value)))
using (var bitmap = new Bitmap(stream))
mod.Icon = sheetBuilder.Add(bitmap);
}
mods.Add(ExternalMod.MakeKey(mod), mod);
}
internal void Register(Manifest mod)
{
if (mod.Metadata.Hidden)
return;
var iconData = "";
using (var stream = mod.Package.GetStream("icon.png"))
if (stream != null)
iconData = Convert.ToBase64String(stream.ReadAllBytes());
var key = ExternalMod.MakeKey(mod);
var yaml = new List<MiniYamlNode>()
{
new MiniYamlNode("Registration", new MiniYaml("", new List<MiniYamlNode>()
{
new MiniYamlNode("Id", mod.Id),
new MiniYamlNode("Version", mod.Metadata.Version),
new MiniYamlNode("Title", mod.Metadata.Title),
new MiniYamlNode("Icon", iconData),
new MiniYamlNode("LaunchPath", launchPath),
new MiniYamlNode("LaunchArgs", "Game.Mod=" + mod.Id)
}))
};
var supportPath = Platform.ResolvePath(Path.Combine("^", "ModMetadata"));
try
{
// Make sure the mod is available for this session, even if saving it fails
LoadMod(yaml.First().Value);
Directory.CreateDirectory(supportPath);
File.WriteAllLines(Path.Combine(supportPath, key + ".yaml"), yaml.ToLines(false).ToArray());
}
catch (Exception e)
{
Log.Write("debug", "Failed to register currrent mod metadata");
Log.Write("debug", e.ToString());
}
// Clean up stale mod registrations:
// - LaunchPath no longer exists (uninstalled)
// - LaunchPath and mod match the current mod, but version differs (newer version installed on top)
List<string> toRemove = null;
foreach (var kv in mods)
{
var k = kv.Key;
var m = kv.Value;
if (!File.Exists(m.LaunchPath) || (m.LaunchPath == launchPath && m.Id == mod.Id && k != key))
{
Log.Write("debug", "Removing stale mod metadata entry '{0}'", k);
if (toRemove == null)
toRemove = new List<string>();
toRemove.Add(k);
var path = Path.Combine(supportPath, k + ".yaml");
try
{
File.Delete(path);
}
catch (Exception e)
{
Log.Write("debug", "Failed to remove mod metadata file '{0}'", path);
Log.Write("debug", e.ToString());
}
}
}
if (toRemove != null)
foreach (var r in toRemove)
mods.Remove(r);
}
public ExternalMod this[string key] { get { return mods[key]; } }
public int Count { get { return mods.Count; } }
public ICollection<string> Keys { get { return mods.Keys; } }
public ICollection<ExternalMod> Values { get { return mods.Values; } }
public bool ContainsKey(string key) { return mods.ContainsKey(key); }
public IEnumerator<KeyValuePair<string, ExternalMod>> GetEnumerator() { return mods.GetEnumerator(); }
public bool TryGetValue(string key, out ExternalMod value) { return mods.TryGetValue(key, out value); }
IEnumerator IEnumerable.GetEnumerator() { return mods.GetEnumerator(); }
}
}

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of
@@ -489,6 +489,11 @@ namespace OpenRA
return int.TryParse(s, NumberStyles.Integer, NumberFormatInfo.InvariantInfo, out i);
}
public static bool TryParseInt64Invariant(string s, out long i)
{
return long.TryParse(s, NumberStyles.Integer, NumberFormatInfo.InvariantInfo, out i);
}
public static bool IsTraitEnabled(this object trait)
{
return trait as IDisabledTrait == null || !(trait as IDisabledTrait).IsTraitDisabled;

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of
@@ -15,12 +15,14 @@ using System.ComponentModel;
using System.Drawing;
using System.Drawing.Imaging;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Runtime.Serialization;
using System.Text.RegularExpressions;
using OpenRA.Graphics;
using OpenRA.Primitives;
using OpenRA.Support;
namespace OpenRA
{
@@ -396,6 +398,22 @@ namespace OpenRA
return InvalidValueAction(value, fieldType, fieldName);
}
else if (fieldType == typeof(ConditionExpression))
{
if (value != null)
{
try
{
return new ConditionExpression(value);
}
catch (InvalidDataException e)
{
throw new YamlException(e.Message);
}
}
return InvalidValueAction(value, fieldType, fieldName);
}
else if (fieldType.IsEnum)
{
try
@@ -437,7 +455,9 @@ namespace OpenRA
if (value == null)
return Array.CreateInstance(fieldType.GetElementType(), 0);
var parts = value.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries);
var options = field != null && field.HasAttribute<AllowEmptyEntriesAttribute>() ?
StringSplitOptions.None : StringSplitOptions.RemoveEmptyEntries;
var parts = value.Split(new char[] { ',' }, options);
var ret = Array.CreateInstance(fieldType.GetElementType(), parts.Length);
for (var i = 0; i < parts.Length; i++)
@@ -661,6 +681,13 @@ namespace OpenRA
: base(true, true) { }
}
[AttributeUsage(AttributeTargets.Field)]
public sealed class AllowEmptyEntriesAttribute : SerializeAttribute
{
public AllowEmptyEntriesAttribute()
: base(allowEmptyEntries: true) { }
}
[AttributeUsage(AttributeTargets.Field)]
public sealed class LoadUsingAttribute : SerializeAttribute
{
@@ -684,11 +711,13 @@ namespace OpenRA
public bool FromYamlKey;
public bool DictionaryFromYamlKey;
public bool Required;
public bool AllowEmptyEntries;
public SerializeAttribute(bool serialize = true, bool required = false)
public SerializeAttribute(bool serialize = true, bool required = false, bool allowEmptyEntries = false)
{
Serialize = serialize;
Required = required;
AllowEmptyEntries = allowEmptyEntries;
}
internal Func<MiniYaml, object> GetLoader(Type type)

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of
@@ -79,45 +79,27 @@ namespace OpenRA.FileFormats
public static ReplayMetadata Read(string path)
{
using (var fs = new FileStream(path, FileMode.Open))
return Read(fs, path);
}
static ReplayMetadata Read(FileStream fs, string path)
{
if (!fs.CanSeek)
return null;
if (fs.Length < 20)
return null;
try
{
fs.Seek(-(4 + 4), SeekOrigin.End);
var dataLength = fs.ReadInt32();
if (fs.ReadInt32() == MetaEndMarker)
using (var fs = new FileStream(path, FileMode.Open))
{
// go back by (end marker + length storage + data + version + start marker) bytes
fs.Seek(-(4 + 4 + dataLength + 4 + 4), SeekOrigin.Current);
try
if (!fs.CanSeek)
return null;
if (fs.Length < 20)
return null;
fs.Seek(-(4 + 4), SeekOrigin.End);
var dataLength = fs.ReadInt32();
if (fs.ReadInt32() == MetaEndMarker)
{
// Go back by (end marker + length storage + data + version + start marker) bytes
fs.Seek(-(4 + 4 + dataLength + 4 + 4), SeekOrigin.Current);
return new ReplayMetadata(fs, path);
}
catch (YamlException ex)
{
Log.Write("debug", ex.ToString());
}
catch (InvalidOperationException ex)
{
Log.Write("debug", ex.ToString());
}
catch (NotSupportedException ex)
{
Log.Write("debug", ex.ToString());
}
}
}
catch (IOException ex)
catch (Exception ex)
{
Log.Write("debug", ex.ToString());
}

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of
@@ -121,7 +121,11 @@ namespace OpenRA.FileSystem
modPackages.Add(package);
}
else
{
package = OpenPackage(name);
if (package == null)
throw new InvalidOperationException("Could not open package '{0}', file not found or its format is not supported.".F(name));
}
Mount(package, explicitName);
}
@@ -263,9 +267,15 @@ namespace OpenRA.FileSystem
if (s != null)
return true;
// The file should be in an explicit package (but we couldn't find it)
// Thus don't try to find it using the filename (which contains the invalid '|' char)
// This can be removed once the TODO below is resolved
if (explicitSplit > 0)
return false;
// Ask each package individually
// TODO: This fallback can be removed once the filesystem cleanups are complete
var package = mountedPackages.Keys.LastOrDefault(x => x.Contains(filename));
var package = mountedPackages.Keys.LastOrDefault(x => x.Contains(filename));
if (package != null)
{
s = package.GetStream(filename);

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of
@@ -9,6 +9,7 @@
*/
#endregion
using System;
using System.Collections.Generic;
using System.IO;
@@ -47,7 +48,7 @@ namespace OpenRA.FileSystem
public bool Contains(string filename)
{
var combined = Path.Combine(path, filename);
return combined.StartsWith(path) && File.Exists(combined);
return combined.StartsWith(path, StringComparison.Ordinal) && File.Exists(combined);
}
public void Update(string filename, byte[] contents)

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of
@@ -78,9 +78,12 @@ namespace OpenRA.FileSystem
{
if (kv.Key == dbNameClassic || kv.Key == dbNameCRC)
{
var db = new XccLocalDatabase(GetContent(kv.Value));
foreach (var e in db.Entries)
allPossibleFilenames.Add(e);
using (var content = GetContent(kv.Value))
{
var db = new XccLocalDatabase(content);
foreach (var e in db.Entries)
allPossibleFilenames.Add(e);
}
break;
}
@@ -191,9 +194,22 @@ namespace OpenRA.FileSystem
public Stream GetContent(PackageEntry entry)
{
Stream parentStream;
var offset = dataStart + entry.Offset + SegmentStream.GetOverallNestedOffset(s, out parentStream);
var path = ((FileStream)parentStream).Name;
return new SegmentStream(File.OpenRead(path), offset, entry.Length);
var baseOffset = dataStart + entry.Offset;
var nestedOffset = baseOffset + SegmentStream.GetOverallNestedOffset(s, out parentStream);
// Special case FileStream - instead of creating an in-memory copy,
// just reference the portion of the on-disk file that we need to save memory.
// We use GetType instead of 'is' here since we can't handle any derived classes of FileStream.
if (parentStream.GetType() == typeof(FileStream))
{
var path = ((FileStream)parentStream).Name;
return new SegmentStream(File.OpenRead(path), nestedOffset, entry.Length);
}
// For all other streams, create a copy in memory.
// This uses more memory but is the only way in general to ensure the returned streams won't clash.
s.Seek(baseOffset, SeekOrigin.Begin);
return new MemoryStream(s.ReadBytes((int)entry.Length));
}
public Stream GetStream(string filename)

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of
@@ -14,6 +14,7 @@ using System.Collections.Generic;
using System.Diagnostics;
using System.Drawing;
using System.Drawing.Imaging;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Net;
@@ -21,7 +22,6 @@ using System.Reflection;
using System.Threading;
using System.Threading.Tasks;
using OpenRA.Chat;
using OpenRA.FileSystem;
using OpenRA.Graphics;
using OpenRA.Network;
using OpenRA.Primitives;
@@ -37,6 +37,7 @@ namespace OpenRA
public const int TimestepJankThreshold = 250; // Don't catch up for delays larger than 250ms
public static InstalledMods Mods { get; private set; }
public static ExternalMods ExternalMods { get; private set; }
public static ModData ModData;
public static Settings Settings;
@@ -71,9 +72,8 @@ namespace OpenRA
static string TimestampedFilename(bool includemilliseconds = false)
{
return includemilliseconds
? DateTime.UtcNow.ToString("OpenRA-yyyy-MM-ddTHHmmssfffZ")
: DateTime.UtcNow.ToString("OpenRA-yyyy-MM-ddTHHmmssZ");
var format = includemilliseconds ? "yyyy-MM-ddTHHmmssfffZ" : "yyyy-MM-ddTHHmmssZ";
return "OpenRA-" + DateTime.UtcNow.ToString(format, CultureInfo.InvariantCulture);
}
static void JoinInner(OrderManager om)
@@ -96,7 +96,7 @@ namespace OpenRA
// More accurate replacement for Environment.TickCount
static Stopwatch stopwatch = Stopwatch.StartNew();
public static int RunTime { get { return (int)stopwatch.ElapsedMilliseconds; } }
public static long RunTime { get { return stopwatch.ElapsedMilliseconds; } }
public static int RenderFrame = 0;
public static int NetFrameNumber { get { return OrderManager.NetFrameNumber; } }
@@ -249,10 +249,10 @@ namespace OpenRA
// Special case handling of Game.Mod argument: if it matches a real filesystem path
// then we use this to override the mod search path, and replace it with the mod id
var modArgument = args.GetValue("Game.Mod", null);
string customModPath = null;
var explicitModPaths = new string[0];
if (modArgument != null && (File.Exists(modArgument) || Directory.Exists(modArgument)))
{
customModPath = modArgument;
explicitModPaths = new[] { modArgument };
args.ReplaceValue("Game.Mod", Path.GetFileNameWithoutExtension(modArgument));
}
@@ -260,7 +260,6 @@ namespace OpenRA
Log.AddChannel("perf", "perf.log");
Log.AddChannel("debug", "debug.log");
Log.AddChannel("sync", "syncreport.log");
Log.AddChannel("server", "server.log");
Log.AddChannel("sound", "sound.log");
Log.AddChannel("graphics", "graphics.log");
@@ -305,21 +304,32 @@ namespace OpenRA
GeoIP.Initialize();
if (!Game.Settings.Server.DiscoverNatDevices)
Game.Settings.Server.AllowPortForward = false;
if (!Settings.Server.DiscoverNatDevices)
Settings.Server.AllowPortForward = false;
else
{
discoverNat = UPnP.DiscoverNatDevices(Settings.Server.NatDiscoveryTimeout);
Game.Settings.Server.AllowPortForward = true;
Settings.Server.AllowPortForward = true;
}
GlobalChat = new GlobalChat();
Mods = new InstalledMods(customModPath);
Console.WriteLine("Available mods:");
var modSearchArg = args.GetValue("Engine.ModSearchPaths", null);
var modSearchPaths = modSearchArg != null ?
FieldLoader.GetValue<string[]>("Engine.ModsPath", modSearchArg) :
new[] { Path.Combine(".", "mods"), Path.Combine("^", "mods") };
Mods = new InstalledMods(modSearchPaths, explicitModPaths);
Console.WriteLine("Internal mods:");
foreach (var mod in Mods)
Console.WriteLine("\t{0}: {1} ({2})", mod.Key, mod.Value.Metadata.Title, mod.Value.Metadata.Version);
var launchPath = args.GetValue("Engine.LaunchPath", Assembly.GetEntryAssembly().Location);
ExternalMods = new ExternalMods(launchPath);
Console.WriteLine("External mods:");
foreach (var mod in ExternalMods)
Console.WriteLine("\t{0}: {1} ({2})", mod.Key, mod.Value.Title, mod.Value.Version);
InitializeMod(Settings.Game.Mod, args);
}
@@ -363,8 +373,8 @@ namespace OpenRA
ModData = null;
// Fall back to default if the mod doesn't exist or has missing prerequisites.
if (!IsModInstalled(mod))
mod = new GameSettings().Mod;
if (mod == null || !IsModInstalled(mod))
mod = args.GetValue("Engine.DefaultMod", "modchooser");
Console.WriteLine("Loading mod: {0}", mod);
Settings.Game.Mod = mod;
@@ -372,17 +382,14 @@ namespace OpenRA
Sound.StopVideo();
ModData = new ModData(Mods[mod], Mods, true);
ExternalMods.Register(ModData.Manifest);
if (!ModData.LoadScreen.BeforeLoad())
return;
using (new PerfTimer("LoadMaps"))
ModData.MapCache.LoadMaps();
// Mod assets are missing!
if (!ModData.LoadScreen.RequiredContentIsInstalled())
{
InitializeMod("modchooser", new Arguments());
return;
}
ModData.InitializeLoaders(ModData.DefaultFileSystem);
Renderer.InitializeFonts(ModData);
@@ -428,7 +435,7 @@ namespace OpenRA
{
Console.WriteLine("NAT discovery failed: {0}", e.Message);
Log.Write("nat", e.ToString());
Game.Settings.Server.AllowPortForward = false;
Settings.Server.AllowPortForward = false;
}
ModData.LoadScreen.StartGame(args);
@@ -459,6 +466,28 @@ namespace OpenRA
return shellmaps.Random(CosmeticRandom);
}
public static void SwitchToExternalMod(ExternalMod mod, string[] launchArguments = null, Action onFailed = null)
{
try
{
var args = launchArguments != null ? mod.LaunchArgs.Append(launchArguments) : mod.LaunchArgs;
var p = Process.Start(mod.LaunchPath, args.Select(a => "\"" + a + "\"").JoinWith(" "));
if (p == null || p.HasExited)
onFailed();
else
{
p.Close();
Exit();
}
}
catch (Exception e)
{
Log.Write("debug", "Failed to switch to external mod.");
Log.Write("debug", "Error was: " + e.Message);
onFailed();
}
}
static RunStatus state = RunStatus.Running;
public static event Action OnQuit = () => { };
@@ -535,40 +564,36 @@ namespace OpenRA
if (world == null)
return;
// Don't tick when the shellmap is disabled
if (world.ShouldTick)
var isNetTick = LocalTick % NetTickScale == 0;
if (!isNetTick || orderManager.IsReadyForNextFrame)
{
var isNetTick = LocalTick % NetTickScale == 0;
++orderManager.LocalFrameNumber;
if (!isNetTick || orderManager.IsReadyForNextFrame)
Log.Write("debug", "--Tick: {0} ({1})", LocalTick, isNetTick ? "net" : "local");
if (BenchmarkMode)
Log.Write("cpu", "{0};{1}".F(LocalTick, PerfHistory.Items["tick_time"].LastValue));
if (isNetTick)
orderManager.Tick();
Sync.CheckSyncUnchanged(world, () =>
{
++orderManager.LocalFrameNumber;
world.OrderGenerator.Tick(world);
world.Selection.Tick(world);
});
Log.Write("debug", "--Tick: {0} ({1})", LocalTick, isNetTick ? "net" : "local");
world.Tick();
if (BenchmarkMode)
Log.Write("cpu", "{0};{1}".F(LocalTick, PerfHistory.Items["tick_time"].LastValue));
if (isNetTick)
orderManager.Tick();
Sync.CheckSyncUnchanged(world, () =>
{
world.OrderGenerator.Tick(world);
world.Selection.Tick(world);
});
world.Tick();
PerfHistory.Tick();
}
else if (orderManager.NetFrameNumber == 0)
orderManager.LastTickTime = RunTime;
}
else
PerfHistory.Tick();
}
else if (orderManager.NetFrameNumber == 0)
orderManager.LastTickTime = RunTime;
Sync.CheckSyncUnchanged(world, () => world.TickRender(worldRenderer));
// Wait until we have done our first world Tick before TickRendering
if (orderManager.LocalFrameNumber > 0)
Sync.CheckSyncUnchanged(world, () => world.TickRender(worldRenderer));
}
}
}
@@ -736,7 +761,7 @@ namespace OpenRA
}
}
else
Thread.Sleep(nextUpdate - now);
Thread.Sleep((int)(nextUpdate - now));
}
}
@@ -778,11 +803,6 @@ namespace OpenRA
state = RunStatus.Success;
}
public static void Restart()
{
state = RunStatus.Restart;
}
public static void AddChatLine(Color color, string name, string text)
{
OrderManager.AddChatLine(color, name, text);

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of
@@ -42,18 +42,24 @@ namespace OpenRA.GameRules
if (!fileSystem.TryOpen(Filename, out stream))
return;
Exists = true;
ISoundFormat soundFormat;
foreach (var loader in Game.ModData.SoundLoaders)
try
{
if (loader.TryParseSound(stream, out soundFormat))
Exists = true;
foreach (var loader in Game.ModData.SoundLoaders)
{
Length = (int)soundFormat.LengthInSeconds;
break;
ISoundFormat soundFormat;
if (loader.TryParseSound(stream, out soundFormat))
{
Length = (int)soundFormat.LengthInSeconds;
soundFormat.Dispose();
break;
}
}
}
stream.Dispose();
finally
{
stream.Dispose();
}
}
}
}

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of
@@ -68,6 +68,9 @@ namespace OpenRA.GameRules
public WeaponInfo(string name, MiniYaml content)
{
// Resolve any weapon-level yaml inheritance or removals
// HACK: The "Defaults" sequence syntax prevents us from doing this generally during yaml parsing
content.Nodes = MiniYaml.Merge(new[] { content.Nodes });
FieldLoader.Load(this, content);
}
@@ -159,11 +162,10 @@ namespace OpenRA.GameRules
{
var wh = warhead; // force the closure to bind to the current warhead
Action a = () => wh.DoImpact(target, firedBy, damageModifiers);
if (wh.Delay > 0)
firedBy.World.AddFrameEndTask(w => w.Add(new DelayedAction(wh.Delay, a)));
firedBy.World.AddFrameEndTask(w => w.Add(new DelayedImpact(wh.Delay, wh, target, firedBy, damageModifiers)));
else
a();
wh.DoImpact(target, firedBy, damageModifiers);
}
}
}

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of
@@ -43,6 +43,8 @@ namespace OpenRA
IShader CreateShader(string name);
Size WindowSize { get; }
float WindowScale { get; }
event Action<float, float> OnWindowScaleChanged;
void Clear();
void Present();

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of
@@ -22,10 +22,12 @@ namespace OpenRA.Graphics
: base(message) { }
}
// The enum values indicate the number of channels used by the type
// They are not arbitrary IDs!
public enum SheetType
{
Indexed = 1,
BGRA = 2,
BGRA = 4,
}
public sealed class SheetBuilder : IDisposable

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of
@@ -29,27 +29,37 @@ namespace OpenRA.Graphics
readonly Face face;
readonly Cache<Pair<char, Color>, GlyphInfo> glyphs;
public SpriteFont(string name, byte[] data, int size, SheetBuilder builder)
float deviceScale;
public SpriteFont(string name, byte[] data, int size, float scale, SheetBuilder builder)
{
if (builder.Type != SheetType.BGRA)
throw new ArgumentException("The sheet builder must create BGRA sheets.", "builder");
deviceScale = scale;
this.size = size;
this.builder = builder;
face = new Face(Library, data, 0);
face.SetPixelSizes((uint)size, (uint)size);
face.SetPixelSizes((uint)(size * deviceScale), (uint)(size * deviceScale));
glyphs = new Cache<Pair<char, Color>, GlyphInfo>(CreateGlyph, Pair<char, Color>.EqualityComparer);
// PERF: Cache these delegates for Measure calls.
Func<char, float> characterWidth = character => glyphs[Pair.New(character, Color.White)].Advance;
lineWidth = line => line.Sum(characterWidth);
lineWidth = line => line.Sum(characterWidth) / deviceScale;
PrecacheColor(Color.White, name);
PrecacheColor(Color.Red, name);
}
public void SetScale(float scale)
{
deviceScale = scale;
face.SetPixelSizes((uint)(size * deviceScale), (uint)(size * deviceScale));
glyphs.Clear();
}
void PrecacheColor(Color c, string name)
{
using (new PerfTimer("PrecacheColor {0} {1}px {2}".F(name, size, c.Name)))
@@ -75,9 +85,10 @@ namespace OpenRA.Graphics
var g = glyphs[Pair.New(s, c)];
Game.Renderer.RgbaSpriteRenderer.DrawSprite(g.Sprite,
new float2(
(int)Math.Round(p.X + g.Offset.X, 0),
p.Y + g.Offset.Y));
p.X += g.Advance;
(int)Math.Round(p.X * deviceScale + g.Offset.X, 0) / deviceScale,
p.Y + g.Offset.Y / deviceScale),
g.Sprite.Size / deviceScale);
p.X += g.Advance / deviceScale;
}
}
@@ -85,10 +96,10 @@ namespace OpenRA.Graphics
{
if (offset > 0)
{
DrawText(text, location + new float2(-offset, 0), bg);
DrawText(text, location + new float2(offset, 0), bg);
DrawText(text, location + new float2(0, -offset), bg);
DrawText(text, location + new float2(0, offset), bg);
DrawText(text, location + new float2(-offset / deviceScale, 0), bg);
DrawText(text, location + new float2(offset / deviceScale, 0), bg);
DrawText(text, location + new float2(0, -offset / deviceScale), bg);
DrawText(text, location + new float2(0, offset / deviceScale), bg);
}
DrawText(text, location, fg);

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of
@@ -87,6 +87,10 @@ namespace OpenRA.Graphics
else
sprite = emptySprite;
// The vertex buffer does not have geometry for cells outside the map
if (!map.Tiles.Contains(uv))
return;
var offset = rowStride * uv.V + 6 * uv.U;
Util.FastCreateQuad(vertices, pos, sprite, palette.TextureIndex, offset, sprite.Size);

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of
@@ -80,7 +80,7 @@ namespace OpenRA.Graphics
}
}
public static int TicksSinceLastMove = 0;
public static long TicksSinceLastMove = 0;
public static int2 LastMousePos;
float ClosestTo(float[] collection, float target)

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of
@@ -21,14 +21,16 @@ namespace OpenRA.Graphics
public readonly Func<IEnumerable<WRot>> RotationFunc;
public readonly Func<bool> DisableFunc;
public readonly Func<uint> FrameFunc;
public readonly bool ShowShadow;
public VoxelAnimation(Voxel voxel, Func<WVec> offset, Func<IEnumerable<WRot>> rotation, Func<bool> disable, Func<uint> frame)
public VoxelAnimation(Voxel voxel, Func<WVec> offset, Func<IEnumerable<WRot>> rotation, Func<bool> disable, Func<uint> frame, bool showshadow)
{
Voxel = voxel;
OffsetFunc = offset;
RotationFunc = rotation;
DisableFunc = disable;
FrameFunc = frame;
ShowShadow = showshadow;
}
}
}

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of
@@ -212,8 +212,9 @@ namespace OpenRA.Graphics
lightAmbientColor, lightDiffuseColor, color.TextureMidIndex, normals.TextureMidIndex);
// Disable shadow normals by forcing zero diffuse and identity ambient light
Render(rd, Util.MatrixMultiply(shadow, t), lightDirection,
ShadowAmbient, ShadowDiffuse, shadowPalette.TextureMidIndex, normals.TextureMidIndex);
if (v.ShowShadow)
Render(rd, Util.MatrixMultiply(shadow, t), lightDirection,
ShadowAmbient, ShadowDiffuse, shadowPalette.TextureMidIndex, normals.TextureMidIndex);
}
}
}));

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of
@@ -132,9 +132,6 @@ namespace OpenRA.Graphics
RefreshPalette();
if (World.Type == WorldType.Shellmap && !Game.Settings.Game.ShowShellmap)
return;
var renderables = GenerateRenderables();
var bounds = Viewport.GetScissorBounds(World.Type != WorldType.Editor);
Game.Renderer.EnableScissor(bounds);
@@ -188,7 +185,8 @@ namespace OpenRA.Graphics
.Concat(aboveShroudSelected)
.Concat(aboveShroudEffects)
.Concat(aboveShroudOrderGenerator)
.Select(r => r.PrepareRender(this));
.Select(r => r.PrepareRender(this))
.ToList();
Game.Renderer.WorldVoxelRenderer.EndFrame();
// HACK: Keep old grouping behaviour

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of

View File

@@ -1,6 +1,6 @@
#region Copyright & License Information
#region Copyright & License Information
/*
* Copyright 2007-2016 The OpenRA Developers (see AUTHORS)
* Copyright 2007-2017 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation, either version 3 of
@@ -12,9 +12,11 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.Drawing;
using System.IO;
using System.Linq;
using OpenRA.FileSystem;
using OpenRA.Graphics;
using OpenRA.Primitives;
namespace OpenRA
@@ -22,38 +24,45 @@ namespace OpenRA
public class InstalledMods : IReadOnlyDictionary<string, Manifest>
{
readonly Dictionary<string, Manifest> mods;
readonly SheetBuilder sheetBuilder;
public InstalledMods(string customModPath)
readonly Dictionary<string, Sprite> icons = new Dictionary<string, Sprite>();
public readonly IReadOnlyDictionary<string, Sprite> Icons;
/// <summary>Initializes the collection of locally installed mods.</summary>
/// <param name="searchPaths">Filesystem paths to search for mod packages.</param>
/// <param name="explicitPaths">Filesystem paths to additional mod packages.</param>
public InstalledMods(IEnumerable<string> searchPaths, IEnumerable<string> explicitPaths)
{
mods = GetInstalledMods(customModPath);
sheetBuilder = new SheetBuilder(SheetType.BGRA, 256);
Icons = new ReadOnlyDictionary<string, Sprite>(icons);
mods = GetInstalledMods(searchPaths, explicitPaths);
}
static IEnumerable<Pair<string, string>> GetCandidateMods()
static IEnumerable<Pair<string, string>> GetCandidateMods(IEnumerable<string> searchPaths)
{
// Get mods that are in the game folder.
var basePath = Platform.ResolvePath(Path.Combine(".", "mods"));
var mods = Directory.GetDirectories(basePath)
.Select(x => Pair.New(x.Substring(basePath.Length + 1), x))
.ToList();
var mods = new List<Pair<string, string>>();
foreach (var path in searchPaths)
{
try
{
var directory = new DirectoryInfo(Platform.ResolvePath(path));
foreach (var subdir in directory.EnumerateDirectories())
mods.Add(Pair.New(subdir.Name, subdir.FullName));
foreach (var m in Directory.GetFiles(basePath, "*.oramod"))
mods.Add(Pair.New(Path.GetFileNameWithoutExtension(m), m));
// Get mods that are in the support folder.
var supportPath = Platform.ResolvePath(Path.Combine("^", "mods"));
if (!Directory.Exists(supportPath))
return mods;
foreach (var pair in Directory.GetDirectories(supportPath).ToDictionary(x => x.Substring(supportPath.Length + 1)))
mods.Add(Pair.New(pair.Key, pair.Value));
foreach (var m in Directory.GetFiles(supportPath, "*.oramod"))
mods.Add(Pair.New(Path.GetFileNameWithoutExtension(m), m));
foreach (var file in directory.EnumerateFiles("*.oramod"))
mods.Add(Pair.New(Path.GetFileNameWithoutExtension(file.Name), file.FullName));
}
catch (Exception e)
{
Console.WriteLine("Failed to enumerate mod search path {0}: {1}", path, e.Message);
}
}
return mods;
}
static Manifest LoadMod(string id, string path)
Manifest LoadMod(string id, string path)
{
IReadOnlyPackage package = null;
try
@@ -76,6 +85,11 @@ namespace OpenRA
if (!package.Contains("mod.yaml"))
throw new InvalidDataException(path + " is not a valid mod package");
using (var stream = package.GetStream("icon.png"))
if (stream != null)
using (var bitmap = new Bitmap(stream))
icons[id] = sheetBuilder.Add(bitmap);
// Mods in the support directory and oramod packages (which are listed later
// in the CandidateMods list) override mods in the main install.
return new Manifest(id, package);
@@ -89,12 +103,11 @@ namespace OpenRA
}
}
static Dictionary<string, Manifest> GetInstalledMods(string customModPath)
Dictionary<string, Manifest> GetInstalledMods(IEnumerable<string> searchPaths, IEnumerable<string> explicitPaths)
{
var ret = new Dictionary<string, Manifest>();
var candidates = GetCandidateMods();
if (customModPath != null)
candidates = candidates.Append(Pair.New(Path.GetFileNameWithoutExtension(customModPath), customModPath));
var candidates = GetCandidateMods(searchPaths)
.Concat(explicitPaths.Select(p => Pair.New(Path.GetFileNameWithoutExtension(p), p)));
foreach (var pair in candidates)
{

Some files were not shown because too many files have changed in this diff Show More