Günther Brammer
4d1f5d95c2
Script: Prevent usage of deleted objects via this()
...
Apparently, this wasn't done already because of compatibility concerns. The
beginning of a release cycle is the perfect moment to finally complete the
prevention of using deleted objects from script.
2016-01-24 12:25:15 +01:00
Sven Eberhardt
d9b8de9ea2
Win32: Fix file deletion from scenario selection dialogue
2016-01-24 00:43:09 -05:00
Sven Eberhardt
28e794654c
Add network option to disable UPnP.
...
Also add some more UPnP failure messages to log.
2016-01-24 00:11:14 -05:00
Sven Eberhardt
f2e99ced16
HotIce: Reduce Fire arrow stack count in chests
...
Fire arrows were dominating the game too much. This should put more emphasize on the other weapons.
2016-01-23 23:27:08 -05:00
Sven Eberhardt
79e26a3f64
HotIce: Fix division by zero when starting with one player.
2016-01-23 23:25:48 -05:00
Sven Eberhardt
7b7b791442
Add [Game] Mode to parkour and arena scenarios to fix league evaluation.
2016-01-23 21:26:13 -05:00
Sven Eberhardt
e94c0e38fc
Add scenario core field "Mode" (in [Game]) to allow setting game mode independent of goal objects.
...
To be used by the league so you can properly host race scenarios in the open melee league.
2016-01-23 21:19:22 -05:00
Sven Eberhardt
df6d349166
Add safety to light object creation.
2016-01-23 21:09:12 -05:00
Günther Brammer
7c022085ee
Improve script bytecode dump formatting slightly
2016-01-24 02:09:15 +01:00
Günther Brammer
27cbdb2177
Remove superfluous mape stubs
2016-01-24 02:09:14 +01:00
Günther Brammer
e790d2c327
Remove duplicated stubs for the scriptengine from mape
2016-01-24 02:09:14 +01:00
Günther Brammer
5a570b96f1
Remove now unnecessary stubs from C4ScriptStandaloneStubs
2016-01-24 02:09:14 +01:00
Günther Brammer
6b6dd96719
Move GameScript.GRBroadCast to Game.GRBroadCast
...
This avoids a dependency on ::Objects from C4ScriptHost.
2016-01-24 02:09:14 +01:00
Günther Brammer
e1a38ee010
Move references to ::Objects and ::MaterialMap from C4AulLink to C4Game
...
This changes the order in which the various parts of the engine are updated
after a definition reload, but they should not interfere with each other.
2016-01-24 02:09:14 +01:00
Günther Brammer
a5f797f96b
Move miscellaneous global functions from C4Effect.cpp to their users
2016-01-24 02:09:14 +01:00
Günther Brammer
9833c1ef2d
Remove never used NeedDefinitionContext
...
Every function that accepts a definition also accepts an object instead, so
NeedNonGlobalContext is the exception to use.
2016-01-24 02:09:13 +01:00
Günther Brammer
b7ecc49a02
Remove a bit of dead code from C4Value
2016-01-24 02:09:13 +01:00
Günther Brammer
d81c93b7d4
Add a few C4Script tests
2016-01-24 02:09:13 +01:00
Tobias Zwick
a7943714c8
update ala's music license (in the installer)
2016-01-24 00:25:33 +01:00
Maikel de Vries
6a3eaa2716
Aerobatics: new game mode and small improvements
2016-01-24 00:20:04 +01:00
Nicolas Hake
03c0933d6f
Merge MSVC cleanup branch
2016-01-23 23:24:50 +01:00
Günther Brammer
78e3457ff7
MSVC: Remove support and workarounds for versions older than 2015
...
We require that version for its C++14 support anyway.
2016-01-23 23:10:02 +01:00
Günther Brammer
a19e7f6ced
Use #elif defined() to check for config.h macros instead of plain #elif
...
This way, the code works with a config.h that does not define those macros.
2016-01-23 23:05:16 +01:00
Günther Brammer
609b64f72b
Remove unused macro from config.h.cmake
...
HAVE_PRECOMPILED_HEADERS is only used internally in CMakeLists.txt.
2016-01-23 23:05:16 +01:00
Günther Brammer
7167459f67
win32: Move PIXELFORMATDESCRIPTOR from C4AbstractApp to CStdGLCtx
...
That is the only user.
2016-01-23 22:02:52 +01:00
Günther Brammer
34a720ca54
win32: Remove unused CreateContext function taking a HWND
2016-01-23 22:02:52 +01:00
Günther Brammer
37fd0a88c6
win32: Rename C4Window::hRenderWindow to renderwnd to match GTK+
2016-01-23 22:02:52 +01:00
Günther Brammer
9210c65e85
gtk: Hide usages of X11 behind #ifdef GDK_WINDOWING_X11
2016-01-23 22:02:51 +01:00
Günther Brammer
aa931ac623
Drop some dead code in C4App.h and C4WindowGTK.cpp
2016-01-23 20:36:34 +01:00
Günther Brammer
1c15b8f661
gtk: Move OpenURL to the other implementations in PlatfromAbstraction
2016-01-23 20:36:34 +01:00
Günther Brammer
8f48f0275d
gtk: Remove unnecessary C4Window::wnd
...
It was only used to specify a screen for randr, which doesn't need a
particular window.
2016-01-23 20:36:34 +01:00
Günther Brammer
93f12150c4
CMake: Remove obsolete USE_X11 option and add USE_WIN32_WINDOWS
...
USE_WIN32_WINDOWS was previously defined in PlatformAbstraction.h. Move it
to CMakeLists.txt and config.h like its peers. Replace USE_X11 with USE_GTK
or GDK_WINDOWING_X11 as appropriate.
2016-01-23 20:36:34 +01:00
Günther Brammer
11bbeb2a5b
Rename WITH_DEVELOPER_MODE to USE_GTK
...
This mirrors USE_WIN32_WINDOWS, USE_SDL_MAINLOOP and USE_COCOA.
2016-01-23 20:36:33 +01:00
Günther Brammer
d09ed41eea
Avoid an OpenGL dependency in C4Surface.h
2016-01-23 20:36:33 +01:00
Maikel de Vries
d31792f1d7
increase version to 8.0 alpha
2016-01-23 19:56:53 +01:00
Maikel de Vries
93c20b19a0
improve parkour scoreboard column descriptions
2016-01-23 18:24:30 +01:00
Maikel de Vries
d7d2f8f39f
fix showing description in the playground item spawn menu
2016-01-23 16:42:37 +01:00
Maikel de Vries
84218d1cbc
merge UsageHelp into Description
...
This is better for the new interaction menu, since only the description is shown for items, but it can be longer now.
2016-01-23 16:28:02 +01:00
Maikel de Vries
7d46ab9f26
add new parkour aerobatics (sky race) ( #1550 )
2016-01-23 14:46:33 +01:00
Nicolas Hake
4b68d82380
planet: Remove Array(Min,Max) in favor of Min,Max
...
Since the native functions now accept array parameters, we don't need a
C4Script implementation anymore.
2016-01-23 13:49:11 +01:00
Nicolas Hake
4fddda20f9
C4Script: Accept array parameter for Min, Max
...
Min/Max with array parameter will return the smallest/largest value of
all elements of the array. If any array element is not an integer, nor
convertible to integer, the function will fail.
2016-01-23 13:49:10 +01:00
Nicolas Hake
b7cffa5e82
Aul tests: Assert that Translate() warns when a translation is missing
...
I'm not a huge fan of testing for warnings by hijacking the logging
routines, but right now there's no way to exfiltrate warnings from Aul
any other way, so it'll have to do.
Overriding the logging functions from C4SimpleLog.cpp has the nice
additional advantage that expected runtime errors no longer get written
to stdout - this is okay because we're already checking that an
exception is thrown.
2016-01-23 13:49:09 +01:00
Nicolas Hake
53fe0fa1cc
Aul Tests: Move Translate() test stub to predefined functions test
...
As small as the Translate() test is, it is exercising a predefined
function and not just the Aul engine itself.
2016-01-23 13:49:08 +01:00
Nicolas Hake
9a9bcd0568
C4AulError: derive from std::exception
2016-01-23 13:49:08 +01:00
Nicolas Hake
24839204ce
Tests: Add tests for Min, Max
2016-01-23 13:49:07 +01:00
Nicolas Hake
b128f3a0a4
Tests: Split math tests out of base aul test file
2016-01-23 13:49:06 +01:00
Nicolas Hake
8136edb45a
Pull tests into main CMake project
2016-01-23 13:49:05 +01:00
Nicolas Hake
8579c0d522
MSVC: Sort individual projects into folders
2016-01-23 13:49:04 +01:00
Sven Eberhardt
fcf870672c
Fix overflow when calling DoEnergy with large values #1646
2016-01-22 22:52:09 -05:00
Maikel de Vries
a32cfc2072
Parkour goal: methods to get the number of checkpoints a player completed
2016-01-22 20:55:06 +01:00