Lukas Werling
3ebedd0c5f
Rank private/UL addresses lower than global ones
...
Also adds some tests. Yay tests!
2017-02-28 22:15:29 +01:00
Lukas Werling
d7e71d8362
Double the maximum address count to accomodate IPv6
...
With the addition of IPv6, some computers with lots of addresses are
reaching the old address limit of 20 addresses. We'll have to see how
this works out in practise. Maybe we'll have to do the connection in
stages to prevent sending out too many packets at once (like only
connecting to the first five addresses initially, then after a timeout
the next five, and so on).
2017-02-27 22:52:24 +01:00
Sven Eberhardt
1ff3b17dad
Add catapult to enemy spawn
...
Also fix some catapult behavior (such as pushing it along waypoints)
2017-02-26 19:42:38 -05:00
Lukas Werling
aa5f5cd654
Convert IPv4-mapped IPv6 peer addresses to IPv4
...
This avoids duplicating these addresses when broadcasting them.
2017-02-26 23:36:32 +01:00
Lukas Werling
7d55962208
Sort addresses used for initial host connection
...
Computers with multiple (possibly virtual) network adapters can have
tons of link-local fe80::/64 IPv6 addresses. Connections to those hosts
would run into a timeout before getting to public addresses behind the
link-local ones.
By sorting the address list, we can prioritize public IPv6 addresses if
supported by the client, then try IPv4 before working through the swamp
of link-local addresses.
2017-02-26 23:36:32 +01:00
Sven Eberhardt
fccea515cd
Add alternative weapon skins as attack modes
2017-02-26 14:59:34 -05:00
Sven Eberhardt
a6c99e2cad
Add alt material selection to editor
2017-02-26 14:59:33 -05:00
David Dormagen
0d01309958
construction goal: added German translation
2017-02-26 20:49:33 +01:00
Sven Eberhardt
b477bf31f3
Move Amazon and Ogre alt skins from FightForGidl to Decoration.ocd
2017-02-26 12:18:15 -05:00
Sven Eberhardt
322b2b97de
Fix rogue escape character in US string table of enemy spawn
2017-02-26 12:02:45 -05:00
Sven Eberhardt
54c4a5aa11
Add switch to room objects
2017-02-26 11:50:53 -05:00
Sven Eberhardt
b795248da2
Add EditorActions for spin wheel
2017-02-26 11:23:55 -05:00
Sven Eberhardt
c8aa5fff8f
Fix missing return value in C4PropertyDelegateFactory::PasteFromClipboard
2017-02-26 11:00:20 -05:00
Sven Eberhardt
fd5eb86e68
More detailed info icons for enemy spawns
2017-02-26 10:58:17 -05:00
Sven Eberhardt
5032e61dea
Editor: Add OnUpdate to all delegates and EditorPropertyChanged callbacks to selected root object
2017-02-26 10:53:59 -05:00
Sven Eberhardt
c7feea408d
Fix enemy removal of enemy spawn if removal modifies the spawned list
2017-02-25 23:25:11 -05:00
Sven Eberhardt
50c52eea8c
Fix DefenseBoomAttack getting hit by own shooter if NoFriendlyFire is off
2017-02-25 23:19:06 -05:00
Sven Eberhardt
6f8368da93
Enemy spawn: Add rocket spawns
2017-02-25 20:24:46 -05:00
Sven Eberhardt
6af82f193a
Add user action evaluator: Wait for condition
2017-02-25 17:03:47 -05:00
Sven Eberhardt
2d3705a813
EnemySpawn: Add "all enemies killed" user action conditional
...
Also fix delayed activation due to script player join
2017-02-25 15:21:54 -05:00
Sven Eberhardt
6cfe109db3
Enemy spawn: Add max concurrent enemies setting
2017-02-25 12:39:23 -05:00
Sven Eberhardt
750d9dafb9
Remove positional parameters in aul compiler warning strings
...
Feel free to revert this commit when windows autobuilds are no longer done using mingw
2017-02-24 21:42:25 -05:00
Maikel de Vries
5c8ed12c3f
correctly initialize script player in defense goal
2017-02-22 21:38:02 +01:00
Sven Eberhardt
649d7bed0a
Move bomber and club attackers from FightForGidl to default AI as attack modes
2017-02-21 20:09:44 -05:00
Sven Eberhardt
f754210a99
Add balloon enemy spawn
2017-02-21 20:09:44 -05:00
Lukas Werling
306557dee8
Remove (now duplicated) HotIce SCENPAR stats
2017-02-21 21:21:40 +01:00
Lukas Werling
47a419f412
Add SCENPAR to statistics if set
2017-02-21 21:19:00 +01:00
Lukas Werling
d8e0b33192
Put scenario parameters in SCENPAR proplist
2017-02-21 21:14:43 +01:00
Nicolas Hake
144451783d
Get random stuff test to build again
...
TestHost can't check that SourceScripts is unmodified anymore because
C4ScriptHost contains a std::unique_ptr these days, so we can't copy
derived classes. Next best thing is just creating two instances of
TestHost and comparing those.
2017-02-21 20:39:02 +01:00
Julius Michaelis
5ad6012a3f
Silence warning on switch over sdl scancodes
2017-02-21 19:37:20 +01:00
Lukas Werling
61bcdeba46
Remove separate c4value_test
...
Those test cases are included in the main "tests" binary as well.
2017-02-21 19:25:21 +01:00
Julius Michaelis
e7afd75c67
Travis: container based builds are bad
2017-02-21 19:17:43 +01:00
Julius Michaelis
d81a7f10e3
Silence a lot of inconsistent-missing-override warnings
2017-02-21 19:03:46 +01:00
Julius Michaelis
5f1ad6a5d7
Travis: fancy stuff
...
- gtest
- colors
- container based builds and GCC PCH (for a faster: "you failed")
2017-02-21 17:13:18 +01:00
Sven Eberhardt
65db84d07e
Add attack path to AI and EnemySpawn
2017-02-20 22:25:28 -05:00
Sven Eberhardt
9abb0bc200
Fix drawing of editor shape delegate polylines with settings StartFromObject=true and Relative=false
2017-02-20 22:25:28 -05:00
Sven Eberhardt
1ee26ae0a6
Fix variable shadowing in Clonk::SetScaleRotation
2017-02-20 22:25:27 -05:00
Julius Michaelis
9d6a407214
Re-enable Travis CI
2017-02-21 02:02:32 +01:00
Sven Eberhardt
198d11427d
Fix crash on script error outside function [Knueppel-crash]
2017-02-20 18:45:11 -05:00
Sven Eberhardt
ca19504c40
Fix AttackMode initialization in derived AIs
2017-02-20 18:06:21 -05:00
Maikel de Vries
b58fc5e848
fix defense goal achievements
2017-02-20 21:09:14 +01:00
Sven Eberhardt
e3eec21271
Editor: Add arrow drawing option to polyline delegate
2017-02-20 14:05:24 -05:00
Sven Eberhardt
294b679961
Editor: Add StartFromCenter option to polyline delegate
2017-02-20 13:39:46 -05:00
Sven Eberhardt
cc0371bdf5
Add PIF_NoScenarioSave option to script players
2017-02-20 13:39:11 -05:00
Sven Eberhardt
99a65008cd
Add enemy spawn object
...
This object can be placed in the editor to spawn enemy AI clonks.
2017-02-19 20:36:41 -05:00
Sven Eberhardt
6579798907
Add editor enum option to force value serialization on foreign values
2017-02-19 20:36:40 -05:00
Sven Eberhardt
69b0fd4f1a
Do not call InitializePlayers after script player join if no human players joined
2017-02-19 20:36:40 -05:00
Nicolas Hake
76b9d68126
C4ValueTest: Use custom formatter instead of a custom macro
...
We can just make GTest use a custom formatter to write a value to the
console instead of using a custom macro to wrap everything in a
std::string.
2017-02-19 18:40:19 +01:00
Nicolas Hake
bbf9e1ee50
C4Value tests: Work around MSVC 2015 preprocessor bug
...
MSVC 2015 doesn't support raw strings that contain the sequence \"
(U+005C REVERSE SOLIDUS, U+0022 QUOTATION MARK) and fails to compile
with error C2017.
2017-02-19 18:38:39 +01:00
Lukas Werling
fc418a219e
Fix use-after-free in C4ValueTest
2017-02-19 18:29:34 +01:00