Commit graph

17165 commits

Author SHA1 Message Date
Tim Felgentreff
29cf6aa555 fix a warning 2020-12-14 10:45:26 +01:00
Tim Felgentreff
0ef7248a85 fix music for videos 2020-12-14 10:45:19 +01:00
Tim Felgentreff
f214984e18 make resizing of window when changing resolution smarter 2020-12-13 19:13:31 +01:00
Tim Felgentreff
8d8bf4af78 report to windows that it shouldn't scale us 2020-12-13 19:13:15 +01:00
Tim Felgentreff
d0ed8f9874 fix various conditions in which the online service message buffer would become corrupted 2020-12-13 11:41:28 +01:00
Tim Felgentreff
7e20aab0b7 tweak player buttons in editor 2020-12-12 21:47:15 +01:00
Tim Felgentreff
7dda65b42f fix directory listing ccl func 2020-12-12 21:36:48 +01:00
Tim Felgentreff
f364edf9d9 fix build error 2020-12-12 20:45:43 +01:00
Tim Felgentreff
b021bebea9 fix two potential crashes 2020-12-12 17:59:18 +01:00
Tim Felgentreff
d4919270ca
Merge pull request from Wargus/tim/pvpgn
Support pvpgn for online multiplayer
2020-12-12 17:31:01 +01:00
Tim Felgentreff
72fe99b939 Merge branch 'manual-editor' 2020-12-12 17:28:25 +01:00
Tim Felgentreff
64b376de49 Rework the editor to be more sane 2020-12-12 17:22:57 +01:00
Tim Felgentreff
6c98fb060d make many shaders from libretro/glsl repo work directly 2020-12-11 16:56:01 +01:00
Tim Felgentreff
9a3624c99c make many shaders from libretro/glsl repo work directly 2020-12-11 11:14:34 +01:00
Tim Felgentreff
30346f869c fix slider and tile visibility 2020-12-10 23:16:18 +01:00
Tim Felgentreff
2da51daa4a allow an editor mode where all tiles can be directly set as decorations, without automatic fixup 2020-12-10 23:09:39 +01:00
Tim Felgentreff
7797fab297 fix indentation and whitespace 2020-12-10 09:01:37 +01:00
Tim Felgentreff
4e5fd6773c do not attempt to create account multiple times 2020-12-10 09:01:37 +01:00
Tim Felgentreff
a7e93459fa use static message buffer 2020-12-10 09:01:37 +01:00
Tim Felgentreff
0a8ed97c60 use a more compatible method to get my own address
This was after discussion with other developers on the BNetDocs chat. Since the
/netinfo command is a pvpgn specific thing, we instead advertise a fake game
when logging in and check what the server says our ip:port are.
2020-12-10 09:01:37 +01:00
Tim Felgentreff
17632c1baa remove assert for compatibility with Atlas 2020-12-10 09:01:37 +01:00
Tim Felgentreff
a77a0468f9 request external address in a better place 2020-12-10 09:01:37 +01:00
Tim Felgentreff
0da52223d8 debug printing for online service 2020-12-10 09:01:36 +01:00
Tim Felgentreff
83ef848156 request our own external address in the beginning so we can udp punch without help 2020-12-10 09:01:36 +01:00
Tim Felgentreff
63f6a41678 fix udppunch whisper parsing 2020-12-10 09:01:36 +01:00
Tim Felgentreff
ab4f322c2d fix array index oob 2020-12-10 09:01:36 +01:00
Tim Felgentreff
4bf454058b since UDP port is shared with other network events, we need to handle incoming UDP packages differently 2020-12-10 09:01:36 +01:00
Tim Felgentreff
0b1f3157aa fix echoreply response 2020-12-10 09:01:36 +01:00
Tim Felgentreff
d043513453 fix setting udp connection info on the server 2020-12-10 09:01:36 +01:00
Tim Felgentreff
37ee7c69fb udp packages do not have a length 2020-12-10 09:01:36 +01:00
Tim Felgentreff
81b497d17b move dump helper into static function 2020-12-10 09:01:36 +01:00
Tim Felgentreff
9f125d7141 tweak refresh ticks 2020-12-10 09:01:35 +01:00
Tim Felgentreff
a02f20caca support custom /udppunch whisper message to help with NAT 2020-12-10 09:01:35 +01:00
Tim Felgentreff
f4502393da make sure we close the UDP network when departing the online server 2020-12-10 09:01:35 +01:00
Tim Felgentreff
817121f8ab minor tweak 2020-12-10 09:01:35 +01:00
Tim Felgentreff
91b2eb51e9 add joined channel to list if it is unlisted 2020-12-10 09:01:35 +01:00
Tim Felgentreff
bd4169420d simplify login procedure 2020-12-10 09:01:35 +01:00
Tim Felgentreff
d529d9b0a9 use our game udp socket for bnet hole punching 2020-12-10 09:01:35 +01:00
Tim Felgentreff
8f9d2af303 minor tweaks for channel refreshes, info text color, disconnecting 2020-12-10 09:01:35 +01:00
Tim Felgentreff
eeb89e9729 do not create account automatically, expose lua function to do it 2020-12-10 09:01:35 +01:00
Tim Felgentreff
c6982ac07a do not modify info string 2020-12-10 09:01:34 +01:00
Tim Felgentreff
2a1f8c6440 return the last info on unknown state 2020-12-10 09:01:34 +01:00
Tim Felgentreff
750b96c573 add login lua function, immediately execute stateless callbacks when they are set 2020-12-10 09:01:34 +01:00
Tim Felgentreff
e6887ef0cf include our script.h instead of lua.h directly 2020-12-10 09:01:34 +01:00
Tim Felgentreff
3915ba622a make OnlineContext a global lua value with functions 2020-12-10 09:01:34 +01:00
Tim Felgentreff
f136ef9ffb disconnect handling 2020-12-10 09:01:34 +01:00
Tim Felgentreff
eff1edb158 allow disconnecting by passing empty host 2020-12-10 09:01:34 +01:00
Tim Felgentreff
469af90622 fix reading the port for a game 2020-12-10 09:01:34 +01:00
Tim Felgentreff
60b0c859bb better debug dump 2020-12-10 09:01:34 +01:00
Tim Felgentreff
36a561459c fix parsing and returning games 2020-12-10 09:01:33 +01:00