Commit graph

1482 commits

Author SHA1 Message Date
Eric House
bb1a589ab0 make non-debug build compile 2024-02-27 16:07:47 -08:00
Eric House
b791d8eb99 cleanup from code review 2024-02-27 15:59:42 -08:00
Eric House
6d17d0636e fix (new) problems communicating chat sender name 2024-02-22 07:06:14 -08:00
Eric House
fbad300e48 finish chat fix to not crash when old messages come in 2024-02-20 15:53:24 -08:00
Eric House
d446d3d463 always send from a local player
Seeing assertion failures with >2 dev games. I think the selPlayer
variable doesn't always point at a local player, so don't use it.
2024-02-20 15:32:58 -08:00
Eric House
969fb5db46 add timers to test script 2024-02-18 19:28:29 -08:00
Eric House
f716768a71 support sub7 trades on Android too 2024-02-18 19:28:29 -08:00
Eric House
e9ab81c552 snapshot: adding sub7 trade ability linux side 2024-02-18 19:28:29 -08:00
Eric House
85df0cc7fb add trading tiles to test script and app 2024-02-18 19:28:29 -08:00
Eric House
38889ac0d6 snapshot: cleanup cleanup 2024-02-18 19:28:29 -08:00
Eric House
9f514a4b85 snapshot: async return of web api result works both platforms 2024-02-18 19:28:29 -08:00
Eric House
47f06d4cb3 snapshot: reg works from Android and Linux 2024-02-18 19:28:29 -08:00
Eric House
7200833d27 snapshot: registering from linux works 2024-02-18 19:28:29 -08:00
Eric House
2997f32ad0 implement sendViaWeb for linux
Fixed the crash that was forcing synchronous sends (and so seriously
slowing down my test script) by using http instead of https. That's
due to limitations in ssl/curl interaction I can look at if necessary.
2024-02-18 19:28:29 -08:00
Eric House
ee26816420 remove ackMQTTMsg() in favor of sendViaWeb()
Linux still doesn't work. I need to figure out curl :-(
2024-02-18 19:28:29 -08:00
Eric House
ab8d3d168c new API for general-purpose web api sends
Will later expand to include a callback for when the (async) web API
returns.
2024-02-18 19:28:29 -08:00
Eric House
1320064824 use submodule for cJSON (linux only so far) 2024-02-18 19:28:29 -08:00
Eric House
3cd73acdc2 change API for dutil_md5sum to avoid malloc-ing 2024-02-12 14:07:54 -08:00
Eric House
c7b9182eca make rematch-to-self work again 2024-02-09 11:33:05 -08:00
Eric House
9437cc4ef9 tweak dllist to allow deletion mid-iteration
Eventually comms will use this thing I think
2024-02-09 09:40:27 -08:00
Eric House
b5090bb825 add sorting known players by date to android client 2024-02-09 09:40:27 -08:00
Eric House
e9e6802f58 add newestMod when creating new knownplayer entries
This may be why they're mostly zeros
2024-02-09 09:40:27 -08:00
Eric House
bbd06183d4 move sorting of known players into common code 2024-02-09 09:40:23 -08:00
Eric House
079cbfdb12 add solo games to test script 2024-02-02 21:51:37 -08:00
Eric House
5d53df9f0b tweak linux client to work with old test script
Included adding a new enum
2024-02-02 16:41:44 -08:00
Eric House
0d87cbc7d0 protect logging with a mutex to prevent interleaving
I started logging from a thread and got problems
2024-01-24 10:06:42 -08:00
Eric House
5a8d098597 add, but don't use, ability to send acks in background
Sending in foreground, using blocking CURL calls, slows the test
script down a lot. But using CURL from background crashes. Punt.
2024-01-24 10:06:42 -08:00
Eric House
09fd0caed9 add sending chat messages 2024-01-24 10:06:42 -08:00
Eric House
74abdfb26c make linux app handle sendChat cmd 2024-01-24 10:06:42 -08:00
Eric House
aa0aded8c4 Change the suggested game name (a vs b) with the RematchOrder
It's bad to display a name based on a player order in the same place
as where you're letting people change that order and not have the
name change. So re-juggle the rematch process to allow the name to
be changed -- but don't change once the user has edited the name.
2024-01-16 17:10:53 -08:00
Eric House
1ae714d834 start to remove obsolete XWFEATURE_STANDALONE_ONLY 2024-01-09 18:17:36 -08:00
Eric House
24e1085b30 clarify old app start percentage option 2024-01-05 12:58:58 -08:00
Eric House
b8e29423c4 cleanup 2024-01-05 08:46:19 -08:00
Eric House
6018392160 send/handle all invitations at once
I'm trying to reproduce with initial invitations the stalls I'm seeing
with rematches (rarely)
2024-01-04 20:28:49 -08:00
Eric House
8388b27002 add comments about problems with signed gameIDs 2024-01-04 18:03:38 -08:00
Eric House
ac71aac787 add tile count to summary 2024-01-04 11:14:30 -08:00
Eric House
7219206214 get rid of ancient ifdef 2024-01-04 09:50:24 -08:00
Eric House
c68050e190 add summary 2024-01-04 09:50:24 -08:00
Eric House
6f6714596a add board size tests
These fail in a way that I think is unique to the curses app, so I'm
not fixing them right away.
2024-01-04 09:50:24 -08:00
Eric House
fcf1e49c16 fix double dispose in curses app 2024-01-04 09:50:24 -08:00
Eric House
4ffaa5dd73 cleanup -- should be no behavior/code change 2024-01-04 09:50:24 -08:00
Eric House
c167183e37 add core detection and board/tray size to test script 2024-01-04 09:50:24 -08:00
Eric House
78cbf7aa7b add upgrading of app mid-script 2024-01-04 09:50:24 -08:00
Eric House
d1061327c7 add ability to use new and old versions of app
TODO: upgrade mid-game
2024-01-04 09:50:24 -08:00
Eric House
bfa1c73b5e log sum of incoming invites 2024-01-04 09:50:24 -08:00
Eric House
5794cc43e3 log gameID wherever possible in comms.c and server.c 2024-01-04 09:50:24 -08:00
Eric House
52a1de0463 add fromRematch to existing api to avoid race condition 2024-01-04 09:50:24 -08:00
Eric House
f2c1f21da2 refactor 2024-01-04 09:50:24 -08:00
Eric House
713ce151e9 don't print duplicate status line 2024-01-04 09:50:24 -08:00
Eric House
3d8f2886f2 more test scripts tweaks 2024-01-04 09:50:24 -08:00