Commit Graph

3732 Commits

Author SHA1 Message Date
Matthias Mailänder
5b06008b53 Merge pull request #6765 from huwpascoe/mcvgroup
Fixes #6763
2014-10-18 14:29:47 +02:00
Paul Chote
79492a3240 End the mission when a script error occurs. 2014-10-18 13:32:15 +13:00
Paul Chote
d79ecb432a Write Lua debug information to lua.log. 2014-10-18 12:59:11 +13:00
Paul Chote
dbd4b0931b Don’t crash if trigger callbacks throw exceptions. 2014-10-18 12:59:11 +13:00
huwpascoe
15fa152bc3 MCV no longer loses controlgroup when transforming 2014-10-16 01:44:06 +01:00
RoosterDragon
d671e1de01 Create a separate FrameCache for caching sprite frames.
We split the caching SpriteLoader into a SpriteCache and FrameCache. SpriteLoader instead becomes a holder for static loading methods.

Only a few classes loaded sprite frames, and they all use it with a transient cache. By moving this method into a new class, we can lose the now redundant frame cache, saving on memory significantly since the frame data array can be reclaimed by the GC. This saves ~58 MiB on frames and ~4 MiB on the caching dictionary in simple tests.
2014-10-14 22:06:11 +01:00
Matthias Mailänder
2a15c44d91 Merge pull request #6736 from pchote/fix-player-binding
Don’t regenerate the Lua player bindings each query.
2014-10-12 09:43:42 +02:00
Paul Chote
fad0215842 Merge pull request #6698 from RoosterDragon/memory-savings
Small memory savings
2014-10-12 11:43:08 +13:00
Paul Chote
19760b44cc Don’t regenerate the lua player bindings each query. 2014-10-12 10:43:15 +13:00
Matthias Mailänder
b77bd82561 Merge pull request #6708 from pchote/ts-tileset-converter
Import the TS temperate tileset.
2014-10-11 14:12:09 +02:00
Paul Chote
5d32e97ef1 Add support for briefing videos in the mission menu. 2014-10-11 23:05:35 +13:00
Paul Chote
84e71258dc Prevent mouse events from propagating through a video. 2014-10-11 23:05:35 +13:00
Paul Chote
a60452b30a Make the video cancel hotkey configurable. 2014-10-11 23:05:34 +13:00
Paul Chote
6b1505b71d Add an aspect ratio correction flag to VqaPlayerWidget. 2014-10-11 23:05:34 +13:00
Paul Chote
3e42d7b5a0 Cache the support dir path. 2014-10-11 11:04:44 +13:00
Paul Chote
4f44cc1969 Load assets using absolute paths. Fixes #6717. 2014-10-11 11:02:30 +13:00
Paul Chote
0d0b8c1e22 Remove obsolete PackageContents array from Manifest. 2014-10-10 23:44:37 +13:00
Paul Chote
9f3230a009 Remove static state from ChromeProvider. 2014-10-10 23:44:37 +13:00
RoosterDragon
69125989ab Changed Vertex constructors to pass more parameters as plain floats.
This avoids callers having to construct a float2 struct, only to have the Vertex constructor unwrap it into individual components again.
2014-10-10 09:38:14 +01:00
RoosterDragon
bbb3990a0f Don't store pre-calculated texture coords in Sprite.
By storing only the four corners, we can save the object overhead of an array and 4 float elements per sprite. This results in savings of around 5 MiB to store these coordinates.
2014-10-09 20:03:03 +01:00
RoosterDragon
59b3cd154d Change indexes into tile arrays to be stored as bytes to save memory.
The index value needs only be big enough to handle all defined terrain types. This is a low number so we can save memory by defining it as a byte. This particularly saves memory for the CustomTerrain field in the Map class, which defines a cell layer for the map using tile indexes, so we can reduce the size of that layer 4x as a result.
2014-10-09 20:03:01 +01:00
steelphase
628463f920 remove copy local
remove copy local from project references
2014-10-08 02:29:14 -04:00
obrakmann
3c791f0eb9 Merge pull request #6643 from DeadlySurprise/assetBrowser
Adds vqa playback to the asset browser
2014-10-07 21:07:08 +02:00
Paul Chote
446d98e625 Support ini files with spaces around the ‘=‘. 2014-10-08 08:06:50 +13:00
obrakmann
220bc2ec08 Merge pull request #6673 from pchote/unhardcode-sprites
Move sprite parsers into mod code
2014-10-07 20:45:50 +02:00
DeadlySurprise
e187876bdf Adds vqa playback to the asset browser 2014-10-07 18:59:02 +02:00
Chris Forbes
edbd65bdf3 filesystem: Fix benign use of loop variable in closure
This closure never outlives a single loop iteration.
2014-10-07 18:17:09 +13:00
Paul Chote
41c296e5c2 Fix some bogus cell accesses in Map. 2014-10-07 09:55:50 +13:00
Paul Chote
6a72e87028 Remove the remaining legacy sprite plumbing. 2014-10-07 09:55:50 +13:00
Paul Chote
beb7a394a2 Move ShpD2 sprite loading into Mods.Common. 2014-10-07 09:55:50 +13:00
Paul Chote
533d044755 Move TmpTS sprite loading into Mods.TS. 2014-10-07 09:55:50 +13:00
Paul Chote
37cedd88a2 Move TmpTD sprite loading into Mods.Common. 2014-10-07 09:55:49 +13:00
Paul Chote
997c79130a Move TmpRA sprite loading into Mods.Common. 2014-10-07 09:55:49 +13:00
Paul Chote
ca38193264 Move R8 sprite loading into Mods.D2k. 2014-10-07 09:55:49 +13:00
Paul Chote
c798b306c4 Move ShpTS sprite loading into Mods.Common. 2014-10-07 09:55:49 +13:00
Paul Chote
d658643b73 Move ShpTD sprite loading into Mods.Common. 2014-10-07 09:55:49 +13:00
Paul Chote
9cf8328979 Add plumbing for mod-defined sprite loaders. 2014-10-07 09:55:49 +13:00
Paul Chote
2b92ce7edd Use SpriteLoader for frame exporting. 2014-10-07 09:55:49 +13:00
Paul Chote
7207841f8b Use the existing SpriteLoader cache for tilesets. 2014-10-07 09:55:48 +13:00
Matthias Mailänder
7101b001b2 Merge pull request #6546 from huwpascoe/freezefix
Closes #4591
2014-10-05 09:33:21 +02:00
Matthias Mailänder
f6f88bddb2 Merge pull request #6644 from pchote/proximity-triggers
Closes #2175
2014-10-05 09:12:00 +02:00
obrakmann
84cec1baba Merge pull request #6650 from pchote/luatable-bridge
Allow Lua bridge to convert between LuaTable and arrays.
2014-10-04 12:36:36 +02:00
obrakmann
a91084c0f8 Merge pull request #6613 from pchote/remove-mp-tooltips
Remove the MP tooltip row from campaign missions.
2014-10-04 12:20:14 +02:00
Paul Chote
85b26d1ff8 Update Lua bindings to use array arguments. 2014-10-04 19:43:27 +13:00
Paul Chote
471dc409b7 Allow Lua bindings to convert to and from arrays. 2014-10-04 19:43:18 +13:00
Paul Chote
0652d338f8 Add proximity trigger plumbing. 2014-10-04 14:01:45 +13:00
huwpascoe
488d2d57e0 Fix map.png lock 2014-10-04 01:18:18 +01:00
Matthias Mailänder
beed736169 Merge pull request #6528 from atlimit8/DragIntoTransports
Modifies IMove & Enter and Fixes #4640 - Units teleport into transports
2014-10-03 15:37:29 +02:00
atlimit8
3f6e1a608a Added IDisableMove 2014-10-03 08:07:05 -05:00
Oliver Brakmann
8f8b0b966f Avoid reading CenterPosition of invalid targets in DamageWarhead
Fixes #6642
2014-10-03 14:24:27 +02:00