Eric House
e849d628d9
log when messages could be combined
2023-03-16 07:43:51 -07:00
Thunderstrike116
0b8f97afaf
Translated using Weblate (Greek)
...
Currently translated at 3.6% (32 of 882 strings)
2023-03-15 19:38:53 +01:00
Eric House
cc0e5d978f
add 21x21 info for German
2023-03-10 10:30:56 -08:00
Creeper0k
a7449033ec
Translated using Weblate (Russian)
...
Currently translated at 16.6% (147 of 882 strings)
2023-03-10 10:42:33 +01:00
Eric House
bb2a2dacae
cleanup
2023-03-08 20:48:55 -08:00
Eric House
073271fe61
tweak test script to better test rematching
2023-03-08 20:48:55 -08:00
Creeper0k
3c72df29a9
Translated using Weblate (Russian)
...
Currently translated at 12.9% (114 of 882 strings)
2023-03-08 12:40:50 +01:00
Eric House
1083cbd525
improve test script and fix rematching bug it found
...
Server needs to not rematch if any device has more than one
player (for now, as I'm too lazy to fix this rare condition.) I'm
moving toward having the linux client write status to a unix socket on
exit rather than having the test script parse the log file for
status. GameOver is there now. Tile counts should follow.
2023-03-05 10:23:48 -08:00
Eric House
ca62d29bc4
change button text
2023-03-05 08:09:34 -08:00
Eric House
8f1dfc9817
include rematching in test script
...
Add new script param setting a timeout before which games will be
rematched on finishing. Add new param to ncurses version telling it to
try to rematch when finishing. This introduces a new problem because
now there are multiple games per "device", and various log-grepping
stuff like listing the number of tiles in play or determing whether
device is finished all assumed one game. I addressed the latter by
adding a way to query the DB to see if all games are done, but that's
not quite right because the number of pending messages is increasing
after a game completes. Still, the testing is useful so I'm pushing
this.
2023-03-04 09:36:42 -08:00
Eric House
ac75da2028
fix leak rematching games on 3+ devices
2023-03-04 09:30:58 -08:00
Eric House
4ec6cfe17d
plug memory leak
2023-03-04 08:54:31 -08:00
Eric House
eb5ed2b96d
tweak German
2023-03-02 13:13:32 -08:00
Eric House
9533fbd0d9
add alert to name or cancel rematch
2023-03-01 19:39:40 -08:00
Eric House
e5d4ecea7d
add option to enable duplicate mode (which seems to work)
2023-03-01 07:41:42 -08:00
ssantos
d7fa8d7af8
Translated using Weblate (German)
...
Currently translated at 100.0% (882 of 882 strings)
2023-03-01 14:40:39 +01:00
Eric House
07cd95e715
use github code to implement md5sum for mqtt msg ack (wasm only)
2023-02-26 19:53:12 -08:00
Eric House
22bf6c596a
as copied from https://github.com/Zunawe/md5-c
2023-02-26 19:53:12 -08:00
Eric House
d0cf7fd318
fix one German string
2023-02-26 19:53:12 -08:00
Eric House
4c76dd7470
add link to public gameinfo page
2023-02-26 19:53:12 -08:00
Eric House
b758cd3f0f
respond to invitations coming in as argv params
...
including downloading wordlist if necessary
2023-02-26 19:53:12 -08:00
Camille
8b80e9dfd5
Translated using Weblate (French)
...
Currently translated at 91.6% (808 of 882 strings)
2023-02-26 18:36:46 +01:00
Eric House
a6e912c6ae
cleanup
2023-02-23 16:38:08 -08:00
Eric House
8ceaf39fe5
put up game picker after deleting current game
2023-02-23 16:24:55 -08:00
Eric House
32275017a6
implement rematch
2023-02-23 15:51:40 -08:00
Eric House
a95b59b3ea
add pending messages count to display
2023-02-23 12:58:31 -08:00
Eric House
a0f5e2d5d4
remove dead code
2023-02-23 10:55:05 -08:00
Eric House
4941c258c8
tweaks to show gameID more
2023-02-23 08:47:57 -08:00
Eric House
a0be9adc12
fix self address
...
not sure why it didn't seem to be a problem...
2023-02-22 21:06:48 -08:00
Eric House
95e9647ff0
receipt of invitations works
2023-02-22 20:54:21 -08:00
Eric House
5382941f63
snapshot: play via MQTT works for a while
2023-02-22 19:52:45 -08:00
Eric House
4bc24b41f6
snapshot: saved games open now
2023-02-22 19:04:05 -08:00
Eric House
78d84a941e
compiles, but untested
...
And certainly won't work!
2023-02-22 19:04:05 -08:00
Eric House
cc481373d8
use new public gameinfo api
2023-02-21 19:15:21 -08:00
Eric House
fd36590e7f
fix assertions that assumed multi-device
2023-02-21 17:32:21 -08:00
Eric House
ef9ff71d8a
fix log formatting problems
2023-02-21 17:32:21 -08:00
ssantos
28f86e37c2
Translated using Weblate (Portuguese)
...
Currently translated at 100.0% (882 of 882 strings)
2023-02-19 17:39:00 +01:00
ssantos
670f2bc483
Translated using Weblate (German)
...
Currently translated at 100.0% (882 of 882 strings)
2023-02-19 17:38:59 +01:00
Eric House
89afb411bd
update INSTALL read-me file
2023-02-18 13:09:49 -08:00
Eric House
c94c7c5d35
fix offering Rematch when multiple games are selected
2023-02-18 13:09:49 -08:00
Wellington Terumi Uemura
05b463f3fb
Translated using Weblate (Portuguese (Brazil))
...
Currently translated at 100.0% (882 of 882 strings)
2023-02-18 07:36:58 +01:00
Eric House
9ca291cf0d
enable rematch for 3- and 4-device games
...
Because only the host/inviter knows the addresses of all the devices
in a game it's hard for guests to rematch (unless it's a 2-device
game, as they know the host's address.) So now, as part of telling
guests the game is ready to play, include the addresses of other
guests. It's usually only 9 bytes per device, and only happens when
more than two devices are in a game.
2023-02-16 21:36:46 -08:00
Eric House
dcc9cd553c
move string into resources
2023-02-16 21:33:42 -08:00
Eric House
ee859a6c6a
cleanup: remove dead code
2023-02-15 08:31:51 -08:00
Wellington Terumi Uemura
8613973b67
Translated using Weblate (Portuguese (Brazil))
...
Currently translated at 100.0% (881 of 881 strings)
2023-02-15 11:36:15 +01:00
Thunderstrike116
94c934a241
Translated using Weblate (Greek)
...
Currently translated at 1.0% (9 of 881 strings)
2023-02-15 11:36:14 +01:00
ssantos
1b6e7b706b
Translated using Weblate (Portuguese)
...
Currently translated at 100.0% (881 of 881 strings)
2023-02-15 11:36:14 +01:00
ssantos
16f43fee44
Translated using Weblate (German)
...
Currently translated at 100.0% (881 of 881 strings)
2023-02-15 11:36:13 +01:00
Eric House
dc4032faf8
for debugging, add ability to invite via text mqtt devid
...
Add ability to copy to clipboard and then to invite by pasting from
clipboard. Makes it much easier to connect two emulator instances
where neither can camera the other's QR code.
2023-02-12 19:47:06 -08:00
Eric House
840abb4037
up version strings and changelog
2023-02-11 07:58:51 -08:00
Eric House
34ba254e64
cleanup
2023-02-11 07:50:53 -08:00
Eric House
0e14783d3b
use negotiated streamVersion to decide what to send via MQTT
...
No point in sending the old-topic-format MQTT messages to clients that
know about the new one, and in fact it's harmful. Devices in a game
already agree on the stream version to use and communicate it, so pass
that into comms once it's known and from there on to the device code
that builds mqtt messages.
2023-02-09 16:53:18 -08:00
Eric House
d924776a84
make invitation to three-device games work on gtk/linux
2023-02-08 10:28:00 -08:00
Eric House
ad5514ac17
clean up error reporting for linux sqlite3
2023-02-05 09:09:26 -08:00
Eric House
646e806ae4
get rid of stream_open(), which was a NO-OP
2023-02-04 07:44:57 -08:00
Eric House
cea0b9659d
remove unused files
2023-02-04 07:33:36 -08:00
Eric House
4a57b76817
cleanup: pass xwe with closeProc rather than to destroy
...
It's only needed when there's a close proc, and that's rare.
2023-02-03 22:00:47 -08:00
Eric House
6584be9ec6
resendAll after mqtt host config changes
2023-02-03 17:15:02 -08:00
Eric House
4e029a0fda
optimize haveWithGameID()
2023-02-03 10:18:54 -08:00
Eric House
e79450ab4c
refactor message queue access
...
Cleanup to reduce changes when queue storage changes, which is coming
to optimize mqtt sends.
2023-02-03 10:18:54 -08:00
Eric House
c820abb514
remove unused params
2023-02-03 10:18:54 -08:00
JL Pilgram
a61725f934
Translated using Weblate (Italian)
...
Currently translated at 81.8% (720 of 880 strings)
2023-02-01 21:50:51 +01:00
Wellington Terumi Uemura
641c60779d
Translated using Weblate (Portuguese (Brazil))
...
Currently translated at 100.0% (880 of 880 strings)
2023-02-01 21:50:51 +01:00
ssantos
516019a605
Translated using Weblate (Portuguese)
...
Currently translated at 100.0% (880 of 880 strings)
2023-02-01 21:50:51 +01:00
ssantos
57a54d2007
Translated using Weblate (German)
...
Currently translated at 100.0% (880 of 880 strings)
2023-02-01 21:50:50 +01:00
Hosted Weblate
bc238299c2
Update translation files
...
Updated by "Cleanup translation files" hook in Weblate.
Translation: Crosswords/Android
Translate-URL: https://hosted.weblate.org/projects/xwords/android/
2023-01-31 17:51:40 +01:00
Eric House
8cb0e83885
up version number
...
I already pushed the tag so it needs to change. No need to change
version code though and it already fails to track tag.
2023-01-31 08:43:21 -08:00
Eric House
84349cddec
fix jni crash by removing (unused) constructor
...
Older Android required a default constructor be explicily declared
unless there was none other, and the other was unused so just removed
it.
2023-01-31 08:37:04 -08:00
Eric House
d6a2004bdb
name change only
2023-01-31 08:36:49 -08:00
Hosted Weblate
19835d8dba
Update translation files
...
Updated by "Cleanup translation files" hook in Weblate.
Translation: Crosswords/Android
Translate-URL: https://hosted.weblate.org/projects/xwords/android/
2023-01-31 02:14:35 +01:00
Eric House
71dc5944bc
Translated using Weblate (Portuguese)
...
Currently translated at 100.0% (882 of 882 strings)
2023-01-30 17:14:11 -08:00
Eric House
c4167112c8
Translated using Weblate (German)
...
Currently translated at 100.0% (882 of 882 strings)
2023-01-30 17:13:51 -08:00
Eric House
fcff8dab35
send from inside comms_invite on Linux but not Android
...
This is probably a temporary fix for Linux not being aggressive enough
about calling comms_resendAll() when opening a game. For now, though,
test scripts fail without it.
2023-01-30 12:02:46 -08:00
Eric House
18973675d0
don't send invite from inside comms_invite()
2023-01-27 21:07:39 -08:00
Eric House
a6d1736a7e
replace assertion with logging
2023-01-26 11:20:40 -08:00
Eric House
de3ebe5113
cleanup
2023-01-26 10:17:42 -08:00
Eric House
01c19d8f06
tweak getting permissions for phone and NBS
...
Use my set of permissions more than trying for individual ones, as
that's not enough on newer OS versions. Seems to work sometimes at
least, but maybe only after a new install.
2023-01-25 11:59:34 -08:00
Eric House
d863208118
make selfAddress for invitee reflect types in invitation
2023-01-25 11:55:47 -08:00
Eric House
60bc43724d
add NFC to selfAddress of new games (when supported)
2023-01-25 10:29:27 -08:00
Eric House
a18e19e574
logging change
2023-01-24 17:38:51 -08:00
Eric House
863a54bfe1
Once received, nuke invite on mqtt broker
...
To prevent deleted games' ghost invitations from remaining as
persisted on a topic and so being received over and over, have
recipient of invitation send an empty message on the same topic to
remove them. Any message sent once the game start would have replaced
the invitation, but sometimes if the sender is deleted at the right
time there's none.
2023-01-24 17:23:30 -08:00
Eric House
6bb14548c9
fix TransportSendInvt to include type
...
In failing to pass the type into TransportSendInvt I was forcing
implementations to send to all types, which led to a lot of duplicate
invitations.
2023-01-24 17:11:05 -08:00
Eric House
295ca02c84
fix race condition leading to thrashing MQTT clients
2023-01-24 12:06:06 -08:00
Eric House
ffe571664c
remove asserts flagging problems I can't fix yet
2023-01-24 11:38:11 -08:00
Eric House
7fdf43eba6
add logging
2023-01-23 22:08:50 -08:00
Eric House
873501f8da
changes for better testing invites and sms
2023-01-17 18:01:30 -08:00
Eric House
f1262e49e7
remove unused util method
2023-01-16 10:10:01 -08:00
Eric House
c620f9bc75
Don't allow comms types that aren't in selfAddress
...
(Likely crashes on android)
2023-01-15 16:18:26 -08:00
Eric House
efb6c2d0a6
remove mistaken assertion
2023-01-15 07:27:17 -08:00
Eric House
74d358a0ae
fix another mistaken int->long promotion
...
and change method names to avoid confusion later
2023-01-14 22:30:19 -08:00
Eric House
49e78f8666
tweak haveGame fix and add to changelog
2023-01-14 09:12:37 -08:00
Eric House
b003744645
provide haveGame() for gameIDs
...
Was getting false negatives when BT and WifiDir game-exists tests
passed gameID to method expecting rowid.
2023-01-13 22:15:33 -08:00
Eric House
514ca45e4f
change copyright date -- Happy New Year!
2023-01-11 20:38:40 -08:00
Eric House
a02ea95600
remove dead code: game_reset and friends
2023-01-11 12:28:09 -08:00
Eric House
8c8561e2ea
linux: subscribe only after connect succeeds
2023-01-11 11:10:45 -08:00
Eric House
baf02f6800
don't crash forever if mqtt host name mistyped
2023-01-10 22:36:52 -08:00
Eric House
52d2543812
remove IP_DIRECT from Linux
...
If I support it in android it'll likely look different and I'll want
to start over.
2023-01-06 10:01:59 -08:00
Eric House
08ea648a3f
changelog and version codes
2023-01-06 07:53:10 -08:00
Eric House
a5b0f3dd20
add debug-only code to check for thread-safety
2023-01-06 07:53:10 -08:00
Eric House
df5da2c4aa
add assert toward removing (redundant) method
2023-01-05 21:53:22 -08:00