Commit graph

1944 commits

Author SHA1 Message Date
Eric House
bbd06183d4 move sorting of known players into common code 2024-02-09 09:40:23 -08:00
Eric House
2ebdcd6433 add refresh button to mqtt peers dialog 2024-02-06 18:29:21 -08:00
Eric House
fac2eca5b2 implement peers-info menuitem (Debug only) 2024-02-06 16:31:20 -08:00
Eric House
6781f1e69f up version codes for release 2024-02-06 11:23:11 -08:00
Eric House
6a50596d7d add missing Overrides (for run() only) 2024-02-05 20:28:15 -08:00
Eric House
573a542b70 fix to update dict location after download on KitKat too 2024-02-05 20:28:11 -08:00
Eric House
7471a11c4d use http on KitKat and below
There are SSL errors in some old versions, and none of them requires
https, so let 'em work as they once did however few users there may
be.
2024-02-05 18:47:11 -08:00
Eric House
a5687d788b provide default for rematch order 2024-02-05 17:11:55 -08:00
Eric House
6473bc9f4c changes and new version strings 2024-02-04 17:20:54 -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
de4dbef0dc skip listing menu for non-mqtt games in context menu too
Didn't realize I had the info I need...
2024-01-20 16:10:46 -08:00
Eric House
d543b58150 don't show webui url when game not using mqtt (debug only) 2024-01-20 15:59:40 -08:00
Eric House
df161359d0 remove legacy param 2024-01-18 13:09:10 -08:00
Eric House
7085a36cfd fix rematch to not show anything when ordering can't be supported 2024-01-18 09:07:38 -08:00
Eric House
8bfb4f07b2 enable autogeneration of game name once it's empty 2024-01-17 21:45:00 -08:00
Eric House
3670af591b cleanup stuff noted in code review -- no behavior change 2024-01-17 21:41:57 -08:00
Eric House
6f0bfe2c82 cleanup: remove unnecessary params 2024-01-17 11:35:35 -08:00
Eric House
4ced9a1f23 tweak string 2024-01-16 21:50:24 -08:00
Eric House
b6cff507fa fix sending invitations via BT 2024-01-16 21:47:31 -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
144b68cbd5 cleanup: remove unused interface 2024-01-15 09:25:12 -08:00
Eric House
9900291eb0 fix Bluetooth inviting and game play 2024-01-14 17:03:50 -08:00
Eric House
23533c6b0e combine rematch-name and rematch-order alerts 2024-01-13 10:22:32 -08:00
Eric House
1fa2b05b4c remove debug-only assert firing when lang of emulator changed 2024-01-13 10:22:32 -08:00
Eric House
668e0ffb7f up copyright year 2024-01-11 23:03:02 -08:00
Eric House
f84bb85f22 Don't offer to rematch game that can't (yet) be rematched 2024-01-11 22:59:28 -08:00
Eric House
86def1ca9a provide a default rematch order preference 2024-01-11 13:20:05 -08:00
Eric House
90456a824d move rematch order strings into translatable space (and add German) 2024-01-11 10:50:21 -08:00
Eric House
01ec8395d3 don't build a whole new client when mqtt disconnects 2024-01-11 10:50:21 -08:00
Eric House
4ffaa5dd73 cleanup -- should be no behavior/code change 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
e2414ff3bd fix NPE crash
Not sure why it happens with one old game...
2024-01-04 09:50:24 -08:00
Eric House
0ba0dcff19 replace 'make default' with remembering last choice as default
Decided it's too difficult to unset the default and not bad to just
click "ok" a second time.
2024-01-04 09:50:24 -08:00
Eric House
3e6edd3ec4 remove the offer to reinvite from rematched games
Now that rematching creates all the invitations and an expectation of
how the invitees will be ordered it'll confuse things if unexpected
players show up. So don't allow players to send additional
invitations.
2024-01-04 09:50:24 -08:00
Eric House
1181e908dc Add option to choose how rematch-game players will be ordered
When rematching, some users have a convention that e.g. lowest scoring
player in the "parent" game goes first. So allow that, providing the
choice on each rematch until a default has been chosen. Support
changing that default in a new prefs setting.

The place I chose to enforce the order was on the host as invitees are
registering and being assigned slots. But by then there's no longer
any connection to the game that was rematched, e.g. to use its
scores. So during the rematched game creation process I create and
store with the new game the necessary ordering information. For the
3-and-4 device case, it was also necessary to tweak the information
about other guests that the host sends guests (added during earlier
work on rematching.)
2024-01-04 09:50:24 -08:00
Eric House
3b7994c291 changelog and version strings for release 2023-11-09 17:52:26 -08:00
Eric House
bdfe98a990 warn user when opening quashed game 2023-11-09 17:52:26 -08:00
Eric House
738552da2e remove dead code 2023-11-09 17:52:26 -08:00
Eric House
c9f1863c1e remove posts to noSuchGame()
Looks like ack() does all we need, with new param
2023-11-07 19:55:36 -08:00
Eric House
67cf8518de pass topic to ack() (so unretain can work) 2023-11-07 19:55:32 -08:00
Eric House
b962b18dff include devid in ack payload
So server can choose to unretain.
2023-11-06 17:24:20 -08:00
Eric House
e78d9fbc33 add quashed to summary, and show as part of games-list state 2023-11-06 13:11:34 -08:00
Eric House
3dcac063b5 show quashed state in net state icon (DEBUG only) 2023-11-06 13:11:34 -08:00
Eric House
259357a818 reduce sending of dead-game mqtt messages
Two cases dealt with here. First, if my opponent deletes the game when
I have an un-ack'd message, I'll keep sending it forever. Fix is to
flip a bit in comms in response to a game_gone event so no more
sending will happen. (Better than emptying the queue, as it leaves
open the possibility of resurrecting the game with code changes
later.) Second, if there's a retained message from a dead game I'll
keep receiving it until it's replaced, and if the game's dead it never
will be. Fix is to add a new api endpoint noSuchGame() to the relay2
server and to call it on receiving a message for which I have no game
to deliver it to. The endpoint "unretains" the message so I won't get
it again unless it's resent.
2023-11-05 12:01:43 -08:00
Eric House
b876ae1ff8 add restart menuitem (debug builds only) 2023-10-27 09:05:13 -07:00
Eric House
2a9b999b99 cleanup 2023-10-25 13:55:51 -07:00
Eric House
892edc098b cleanup and move strings 2023-08-14 11:34:43 -07:00
Eric House
e708b14c59 remove assert until I can fix it 2023-08-08 12:09:47 -07:00
Eric House
185f25953d cleanup: add an assert and remove some logging 2023-07-01 12:14:07 -07:00
Eric House
99b4af8e53 get dict info immediately after install
I want Custom to show up as soon as you install a BYOD wordlist.
2023-05-29 17:03:53 -07:00