Eric House
f35136099d
don't crash when wordlist provides no bitmap
2020-04-23 22:01:07 -07:00
Eric House
e8c48e792a
fix tile picker dialog
...
I wasn't exiting dialogs correctly. Probably broken since the switch to gtk3.
2020-04-22 21:28:27 -07:00
Eric House
4720ede1d7
fix so curses app can invite two players on one device
...
Turns out the host, when inviting a remote device, needs to know how
many players are on it (since more than one is supported and the script
currently generates that case.) So pass to --server devices an array,
one per remote -- but don't bother when all entries are "1";
2020-04-22 21:28:27 -07:00
Eric House
e68e972396
send NLI in stream format, not as raw bytes
...
Bad programmer. And because the raw bytes form was so large it always
caused the fake sms stuff to send immediately rather than waiting for a
timer to expire -- which never happened when run by the test script. So
I'm not allowing any timer for invitation-sends only.
(Another problem is that there's no mechanism in the xplat code to retry
invitation sends. That needs fixing.)
2020-04-22 21:28:27 -07:00
Eric House
29dbeebc94
fix assert with reporting no bad words
...
Several changes toward not allowing bad things to happen
while waiting for a confirmation from the host
2020-04-22 21:28:27 -07:00
Eric House
9d04b97ec8
add option to have robot words reversed
...
With reject-phonies set this will trigger the reject path.
Also init CommonPrefs in jni land since its makePhonyPct, left unitialized,
causes the robot to deliberately reverse every turn, firing an assertion that the
robot's moves are legal.
2020-04-22 21:26:55 -07:00
Eric House
410bc00d2e
add test for being in background
2020-04-22 11:44:46 -07:00
Eric House
5a28a7fc27
fix gtk games connecting to relay/each other
...
I broke gtk back in February making curses changes
2020-04-22 11:38:48 -07:00
Eric House
54efffa635
pass the wordlist name too
2020-04-20 09:34:14 -07:00
Eric House
10f509ea1f
pass and display the blocked word
2020-04-19 22:27:14 -07:00
Eric House
c0f074c1bf
support new phony to block words not in dict
...
Currently detects the same as tiles not in a line and calls out to a new
util method that's currently parameter-less. On Android the option only
appears in d variants.
2020-04-19 17:31:31 -07:00
Eric House
988facccd1
refactor: make vtable population test xplatform
2020-04-19 12:56:11 -07:00
Eric House
2efc82f4e0
add --phonies arg so this doesn't happen again
2020-04-18 06:41:21 -07:00
Eric House
ab07c1c466
show bonus-square-held
...
Again, so I can see what's going on. Use timeout so doesn't force
lifting the mouse, closer to what happens on Android with Toasts.
2020-04-17 07:06:31 -07:00
Eric House
18711c1dd3
show gtk dialog with lookup-words
...
That way I can at least see it's working.
2020-04-16 22:54:05 -07:00
Eric House
91e6e50480
stop broken upgrade early-launch case
...
Wasn't checking for existance of script and so got and exception
deleting what didn't exist. Instead I define nonexistance as being too
early.
2020-04-16 22:18:17 -07:00
Eric House
22f62d53e0
add DB versioning for linux
2020-04-16 22:18:13 -07:00
Eric House
b81bd46645
remove assertion when message mis-delivered
...
I don't know why, but in my tests the relay seems to be delivering
messages to the wrong device. The linux device detects this. It used to
assert, but now just drops the message. If this is happening on Android
it might be why I'm seeing crashes...
2020-04-11 11:44:09 -07:00
Eric House
87802150d5
fix logging macro to allow a single argument
2020-04-10 07:12:56 -07:00
Eric House
497007a84f
show pending name in scoreboard
...
when remote hasn't arrived, show same string in scoreboard as in games
list rather than the local player's default name -- duh.
2020-04-10 07:12:56 -07:00
Eric House
858d4bd6b7
fix linux build
2020-04-10 07:12:56 -07:00
Eric House
0a696cf203
cleanup
2020-04-10 07:12:56 -07:00
Eric House
387d88bdde
fix assertions when duplicateMode on
...
Hadn't tested in a while and fixing undo problems added some invalid
assumptions.
2020-04-10 07:12:56 -07:00
katianderic
b1f7b13e78
toward fixing stalls when undo used
...
There are still some stalls turning up when running the test script,
especially with more than two players in a game, but but it'll be
easier to do the final debugging off my pathetic travel-only
chromebook. And things are already much better. :-)
2020-03-14 14:47:26 -07:00
katianderic
781021d6ca
trivial changes to aid debugging
2020-03-14 13:44:56 -07:00
katianderic
5d6c2514fd
include milliseconds in log timestamps
2020-03-14 13:43:43 -07:00
katianderic
126172220f
changes to fix curses app test script
...
especially on the 'sms' side it was broken. Now Android's broken for sure.
2020-03-14 13:43:43 -07:00
katianderic
0486b956c8
better display of "sms" message passing
2020-03-14 13:43:42 -07:00
Eric House
c54eba2ee5
make core file pattern specifiable
2020-03-14 13:32:47 -07:00
katianderic
96236e8713
fix broken android build
...
Was missing new logging macro. And remove assert firing when undo
happens in curses app.
2020-02-18 07:57:22 +01:00
katianderic
38a4e494a4
make sms work via invitations too
2020-02-16 22:34:33 -08:00
katianderic
c7c1946793
use deviceID to invite via relay; make 3- and 4-device games work
2020-02-16 19:12:22 -08:00
katianderic
b1bd506e22
harvest relaydevid (for use in invitations later)
2020-02-16 19:12:21 -08:00
katianderic
e5255f59eb
add flag without which new game isn't created by default
2020-02-16 19:12:15 -08:00
eehouse111999
35f18955ae
improve logging on linux
2020-02-09 21:01:39 -08:00
eehouse111999
845370c9ca
cleanup and fix test script stalls
...
Old code always had client trying to connect. So do that here
too. Seems to fix test script stalling.
2020-02-07 23:11:20 -08:00
eehouse111999
fe48a7c107
tweaks for small screen
2020-02-07 16:34:41 -08:00
eehouse111999
c50e85f34a
improve scripts' contribution to setup
2020-02-07 14:37:27 -08:00
Eric House
ac4baff7e7
fix crashes and bugs in linux apps
2020-02-05 22:03:29 -08:00
Eric House
6b41628fbf
dup: fix to call informMove(); make strings localizable
...
Was relying incorrectly on showRobotScores, which is FALSE on linux by default.
2020-02-05 22:03:12 -08:00
Eric House
7076501710
cleanup: unify gtk&curses; make duplicate mode work
2020-02-02 22:10:20 -08:00
Eric House
4c19a00263
cleanup
2020-02-02 19:52:51 -08:00
Eric House
2031dec216
implement drawTimer for curses; allow invite-to-self
2020-02-02 19:12:35 -08:00
Eric House
97c0a58fff
make gtk timer stuff work for both
...
It's glib-based, so why not. And curses implemention didn't work.
2020-02-02 19:03:10 -08:00
Eric House
94137322b7
add missing callbacks (and assert all there)
2020-02-02 17:57:30 -08:00
Eric House
dd0ad8f479
fix linux side to compile without DEBUG on
2020-02-02 15:29:14 -08:00
Eric House
03faeecd0b
add new log macro that includes file name and function
2020-02-02 15:29:14 -08:00
Eric House
d36f5e7e49
make same-device invites work on gtk
...
Added a confirm alert so accidental resends won't create useless games.
2020-02-02 15:29:14 -08:00
Eric House
390753ae3a
fix to correctly wrap L·L in 2x2 cell case
2020-01-31 18:57:12 -08:00
Eric House
edec1c01fd
curses app tweaks (smaller scoreboard)
2020-01-31 17:55:15 -08:00