Commit Graph

14841 Commits

Author SHA1 Message Date
Paul Chote
c4967db0cc Remove native code from deb packages. 2014-11-30 09:34:54 +13:00
Paul Chote
260c36239b Remove automated rpm and arch packaging.
See #6480 for the reasoning.
2014-11-30 09:34:54 +13:00
obrakmann
4d1372aaec Merge pull request #7013 from atlimit8/ModsCommonScripting
Move the core of OpenRA.Mods.RA.Scripting to OpenRA.Mods.Common.Scripting
2014-11-29 18:13:18 +01:00
obrakmann
0dd7d08974 Merge pull request #6756 from RoosterDragon/release-more-buffers
Release more sheet buffers
2014-11-29 17:47:06 +01:00
Matthias Mailänder
422cc97cec Merge pull request #7009 from obrakmann/fix7000_e3_close_range_fix
Add min range to bazookas
2014-11-29 17:37:49 +01:00
Matthias Mailänder
272682e53e Merge pull request #7010 from obrakmann/fix6990_cargo_on_radar
Do not show cargo on radar map
2014-11-29 16:08:57 +01:00
RoosterDragon
c2d86557f1 Use more locking to improve thread-safety in Sheet. 2014-11-29 12:04:51 +00:00
RoosterDragon
c2b7d9ca5b Release sheet buffers in SequenceProvider and MapCache.
The buffers in SequenceProvider can be freed if Preload is called, since we know everything is loaded. A SequenceProvider is created for each TileSet is use so this saves memory for however many tilesets had been used in the game. This will be at least one for the shellmap, and often more.

The MapCache loading thread is kept alive for 5 seconds after it last generated a map (in anticipation of more requests). Once this time expires the thread is allowed to die, as it is unlikely there will be more requests in the short term. At this time it is ideal to force the changes to be committed to the texture so we can release the buffer. As well as marking the buffer for release, we must access the texture to force the changes stored in the buffer to be written to the texture, after which the buffer can be reclaimed.

Additionally, when starting the MapCache loading thread we must ensure the buffer is created from the main thread since it may query the texture object which has thread affinity. After that the buffer may be modified freely on the loading thread until released.
2014-11-29 12:04:51 +00:00
RoosterDragon
a6f5a21ed4 Made Sheet.Texture into Sheet.GetTexture() since we will want to call it for side-effects.
Do the same for Sheet.Data since it has the side effect of generating a buffer.
2014-11-29 12:04:50 +00:00
RoosterDragon
ff16690b86 Lazily generate buffer in Sheet.
The managed byte buffer is created on demand, meaning a newly allocated sheet will not waste memory holding onto the buffer until some changes are actually required to be written. This avoids a newly allocated sheet wasting memory on buffers that do not differ from their backing texture.
2014-11-29 12:04:00 +00:00
obrakmann
e6852e2b50 Merge pull request #6780 from MatthijsBenschop/d2k-caryall
D2K: Implement automatic Carryall
2014-11-29 12:38:39 +01:00
Matthijs Benschop
a3195f21e5 Add myself to Authors 2014-11-29 12:17:20 +01:00
Matthijs Benschop
2d380c64bd Implementation of the automated D2k Carryall
Closes #2246
2014-11-29 12:17:11 +01:00
Paul Chote
71a8815ffb Merge pull request #6760 from atlimit8/RepairableBuildingByUpgrade
Repairable building by upgrade
2014-11-29 22:16:24 +13:00
Paul Chote
84a8d6ba9f Merge pull request #6745 from atlimit8/SellableByUpgrade
Upgrade support for Sellable
2014-11-29 22:08:29 +13:00
Paul Chote
da4599f621 Merge pull request #6638 from DeadlySurprise/tsVqa
Tiberian Sun .vqa support
2014-11-29 22:01:28 +13:00
atlimit8
9ddf6dc36c Added RepairableBuildingInfo.CancelWhenDisabled 2014-11-27 17:55:35 -06:00
atlimit8
3c79a9d875 Added upgrade support to RepairableBuilding 2014-11-27 16:28:45 -06:00
obrakmann
6ebaebd1d1 Merge pull request #6878 from Mailaender/captureable-flag
Added a captureable flag
2014-11-27 22:52:09 +01:00
atlimit8
1d631d6980 Added Upgrade support to Sellable 2014-11-27 12:08:14 -06:00
atlimit8
91b5ac5070 Move the core of OpenRA.Mods.RA.Scripting to OpenRA.Mods.Common.Scripting 2014-11-26 15:49:16 -06:00
obrakmann
60cf2d2cae Merge pull request #6750 from atlimit8/ITraitDisabled
Added IDisabledTrait & UpgradableTrait with upgrade levels support
2014-11-26 20:21:15 +01:00
atlimit8
bbd54cb32f Added IDisabledTrait & rewrote upgrade code using a level-based approach.
Upgradeable traits are notified whenever an upgrade of their declared types are granted or revoked.  The traits maintain their own internal level counter, which is then used to enable or disable the trait functionality.  A trait can register for multiple upgrade types which then all affect the internal level counter.

	IDisabledTrait for identifying (and filtering) disabled traits
	UpgradableTrait provides an abstract base for traits to support upgrade levels
	Added IDisabledTrait support to GlobalButtonOrderGenerator

	Includes rework by pchote with alterations.
2014-11-26 05:45:26 -06:00
Oliver Brakmann
867f7f777e Do not show cargo on radar map
Fixes #6990
2014-11-25 23:08:26 +01:00
Oliver Brakmann
4956bc9213 Add min range to bazookas
Fixes #7000
2014-11-25 22:08:33 +01:00
Chris Forbes
76cf5b8b98 Merge pull request #6995 from reaperrr/buildpal-tab-desc
Added description to ChooseBuildTabOnSelect
2014-11-24 09:30:05 +13:00
reaperrr
7240f8db9f Adds description to BuildPaletteWidget. 2014-11-23 18:14:02 +01:00
reaperrr
aad6ad00a1 Adds description to ChooseBuildTabOnSelect 2014-11-23 18:13:35 +01:00
Matthias Mailänder
f263579158 Merge pull request #6934 from abcdefg30/survival01
Ported Survival01 to Lua
2014-11-23 15:17:42 +01:00
Matthias Mailänder
7ad2a57517 Merge pull request #6927 from huwpascoe/actor-fixup
Actor properties consistency improved
2014-11-23 14:53:33 +01:00
Matthias Mailänder
b52dbe6c07 Merge pull request #6988 from RoosterDragon/enum-memory
Reduce enum memory
2014-11-23 14:48:20 +01:00
abcdefg30
b492c412cd Added "missiontimer initialized" speech notification to allies02 2014-11-23 13:32:44 +01:00
abcdefg30
33eeee4680 Added OnKilledOrCaptured and OnAllKilledOrCaptured 2014-11-23 13:32:40 +01:00
abcdefg30
e29adf5f4f Added proximity triggers 2014-11-23 13:31:39 +01:00
abcdefg30
0899b26874 Added some power functions 2014-11-23 13:31:38 +01:00
abcdefg30
71fa6b2aed Fixed a bug in Intervention
https://github.com/OpenRA/OpenRA/pull/5483#issuecomment-44781904
broke the game.
2014-11-23 13:31:36 +01:00
abcdefg30
19713a19f6 Added support for selecting mission difficulty 2014-11-23 13:31:35 +01:00
abcdefg30
c5978d0dbe Ported Survival01 to lua 2014-11-23 13:31:24 +01:00
obrakmann
13ff5ddf6a Merge pull request #6986 from chrisforbes/minimal-neighbors
Prune neighbor sets based on direction we arrived at a cell
2014-11-23 12:42:54 +01:00
Matthias Mailänder
279e425431 Merge pull request #6983 from huwpascoe/server-browser
Cleaned up the server browser
2014-11-23 11:26:03 +01:00
Chris Forbes
68309af233 Remove enemy territory avoidance in FindResources.
This is called from the inner loop of the pathfinder, so cannot afford
to do actor queries etc. It also didn't have the desired effect --
harvesters still wander through enemy territory even with the bias.

Just rip it out for a perf win.
2014-11-23 15:09:48 +13:00
Chris Forbes
f4e5c63408 Pathfinder: Only consider useful neighbors
Depending on the direction we came from, many neighbors are completely
useless. This is the first step to implementing the ideas in 'Jump Point
Search'

V2: Added comment describing what the array is for.
2014-11-23 15:09:48 +13:00
Chris Forbes
c470945db7 Remove vestigial direction-sorting machinery from PathSearch 2014-11-23 15:09:48 +13:00
huwpascoe
d313317cf5 Cleaned up the server browser 2014-11-22 21:55:55 +00:00
RoosterDragon
35da7d8a6e Make the underlying types of TextureChannel and BlendMode enums a byte to save memory. 2014-11-22 18:12:46 +00:00
obrakmann
20fdd1ccb5 Merge pull request #6795 from Mailaender/gdi03-new-lua
Ported mission GDI03 to the new Lua API
2014-11-22 16:37:17 +01:00
MicroGraphics
91d79d4f42 Added "Capture-the" Flag 2014-11-22 16:23:48 +01:00
abcdefg30
c62d33c4bb let nod attack from different directions 2014-11-22 14:59:09 +01:00
Matthias Mailänder
2dad3b5a59 fix harvesters crushing the sand bags 2014-11-22 14:59:09 +01:00
Matthias Mailänder
a29a16b921 port gdi03 to the new Lua API 2014-11-22 14:59:08 +01:00