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 |
|
Tim Felgentreff
|
7680e9773d
|
minor cleanup
|
2020-12-10 09:01:33 +01:00 |
|
Tim Felgentreff
|
475588af99
|
fix game creation message
|
2020-12-10 09:01:33 +01:00 |
|
Tim Felgentreff
|
55eb35ebbb
|
implement the game advertising lua functions
|
2020-12-10 09:01:33 +01:00 |
|
Tim Felgentreff
|
710bdfca40
|
echo our own chat messages
|
2020-12-10 09:01:33 +01:00 |
|
Tim Felgentreff
|
6a6260d035
|
ignore this
|
2020-12-10 09:01:33 +01:00 |
|
Tim Felgentreff
|
bf7a825fc5
|
allow joining channel
|
2020-12-10 09:01:33 +01:00 |
|
Tim Felgentreff
|
404fdc6047
|
fix requesting user info
|
2020-12-10 09:01:33 +01:00 |
|
Tim Felgentreff
|
485db94bd0
|
tweak and fix lua GoOnline
|
2020-12-10 09:01:33 +01:00 |
|
Tim Felgentreff
|
9ab1d216d1
|
get host/port from lua
|
2020-12-10 09:01:33 +01:00 |
|
Tim Felgentreff
|
d421df2e22
|
better GoOnline docs and states
|
2020-12-10 09:01:32 +01:00 |
|
Tim Felgentreff
|
964317234b
|
return results from GoOnline
|
2020-12-10 09:01:32 +01:00 |
|
Tim Felgentreff
|
f80b13093b
|
rework GoOnline to leave gui control to lua
|
2020-12-10 09:01:32 +01:00 |
|
Tim Felgentreff
|
46049c2bdc
|
Fix warnings and build on Windows
|
2020-12-10 09:01:32 +01:00 |
|
Tim Felgentreff
|
d24c9f2535
|
fix compilation
|
2020-12-10 09:01:32 +01:00 |
|
Tim Felgentreff
|
7ecf62cdd6
|
implement reporting game result
|
2020-12-10 09:01:32 +01:00 |
|
Tim Felgentreff
|
fd8c5eb329
|
tighten down calls for game join/part and start/stop
|
2020-12-10 09:01:32 +01:00 |
|
Tim Felgentreff
|
61d4818a68
|
begin removing all references to metaserver in favor of pvpgn
|
2020-12-10 09:01:32 +01:00 |
|
Tim Felgentreff
|
201773b155
|
handle ping from server during chat
|
2020-12-10 09:01:31 +01:00 |
|
Tim Felgentreff
|
a858d5f864
|
little more debugging
|
2020-12-10 09:01:31 +01:00 |
|
Tim Felgentreff
|
99e3e420d4
|
use the metaserver host/port data for the online service
|
2020-12-10 09:01:31 +01:00 |
|
Tim Felgentreff
|
e3bec2ed49
|
use pvpgn code for password hashing
|
2020-12-10 09:01:31 +01:00 |
|
Tim Felgentreff
|
ed0b5ed563
|
assume serverToken in network byte order
|
2020-12-10 09:01:31 +01:00 |
|
Tim Felgentreff
|
2540d6f256
|
simplify serialization code
|
2020-12-10 09:01:31 +01:00 |
|
Tim Felgentreff
|
b9395ed81b
|
only send chat when logged in, accept both user/pw on enter
|
2020-12-10 09:01:31 +01:00 |
|
Tim Felgentreff
|
82dbd03b02
|
fix creating account and get until logging in
|
2020-12-10 09:01:31 +01:00 |
|
Tim Felgentreff
|
70e44191b3
|
AUTHREQ
|
2020-12-10 09:01:31 +01:00 |
|
Tim Felgentreff
|
5d3eadd8ed
|
begin connection
|
2020-12-10 09:01:30 +01:00 |
|
Tim Felgentreff
|
3f61f6102a
|
open the udp port
|
2020-12-10 09:01:30 +01:00 |
|
Tim Felgentreff
|
f4091c5c6b
|
add missing header, expose GoOnline to lua
|
2020-12-10 09:01:30 +01:00 |
|
Tim Felgentreff
|
d1dee86433
|
very crude hardcoded ui
|
2020-12-10 09:01:30 +01:00 |
|
Tim Felgentreff
|
a2c133a6db
|
finish account creation and provide api for user/UI actions that need server interaction
|
2020-12-10 09:01:30 +01:00 |
|
Tim Felgentreff
|
d4bfbf1b2e
|
base logon and chat interaction messages
|
2020-12-10 09:01:30 +01:00 |
|
Tim Felgentreff
|
4c1227ee40
|
get into chat
|
2020-12-10 09:01:30 +01:00 |
|
Tim Felgentreff
|
cb0e517ff5
|
a few more messages, up to entering chat now
|
2020-12-10 09:01:30 +01:00 |
|
Tim Felgentreff
|
843bccdd42
|
start implementing the messages for connecting to pvpgn servers
|
2020-12-10 09:01:30 +01:00 |
|
Tim Felgentreff
|
ea96b7c5dd
|
disable macos builds
|
2020-12-10 06:28:53 +01:00 |
|
Tim Felgentreff
|
08e90b92a4
|
allow specifying a window size and non-square pixels
|
2020-12-07 12:44:01 +01:00 |
|
Tim Felgentreff
|
abe0460600
|
expose padding around lifebar to lua
|
2020-12-07 09:57:32 +01:00 |
|
Tim Felgentreff
|
a6f7b1444b
|
Merge branch 'master' of https://github.com/Wargus/stratagus
|
2020-12-06 06:03:08 +01:00 |
|