ehouse
3d53711e31
new string translated
2009-11-10 04:21:06 +00:00
ehouse
2ecf415618
Remove on case where HandleEvents was being called recursively and
...
creating unexpected state transitions; add assert to catch any future
recursion.
2009-11-09 05:30:42 +00:00
ehouse
393cccb86c
Add MSGONLY state to indicate cref being kept alive only to preserve
...
messages for a latter connection.
2009-11-09 05:29:06 +00:00
ehouse
b84c1a10d9
Use different rooms for each game. The relay, or maybe it's the linux
...
client's TERM handler, can't handle so many connectings on same room.
2009-11-09 05:25:20 +00:00
ehouse
b7e2567c7d
account for new comms relay state in displaying relay conn status
2009-11-09 03:29:13 +00:00
ehouse
8be09b3fc4
Complete script so it runs gtk versions one host at a time (after
...
connecting) to test the relay's new disconnected message-storing
feature. Works except when the gtk client crashes, which is a lot.
2009-11-09 00:06:53 +00:00
ehouse
4025c37604
Make "Room 1" the default room name.
2009-11-09 00:03:43 +00:00
ehouse
aae12428da
Add limited support for store-and-forward (where limitations include
...
that all devices must be connected initially and that it's all memory
based so a crash wipes stored messages.) Accept messages for
forwarding when in the MISSING state, not just the ALLHERE state.
Store messages that can't be sent now, and send any that have
accumulated when a host reconnects. When a cref loses its last
connection, keep it around unless it has no messages stored (as will
be the case when a game ends.)
2009-11-08 21:35:39 +00:00
ehouse
2d4ae3e44a
When forwarding message, lookup cref by socket if cookieID == 0, as
...
can be the case when through to a non-all-connected game.
2009-11-08 21:32:36 +00:00
ehouse
f6fb019732
Send to relay if connected, even if not all hosts present. And detect
...
duplicate initial packets a bit better. This change goes with the
next checkin on the relay side: move to modified store-and-forward so
devices can connect at different times once the game is established.
2009-11-08 21:30:13 +00:00
ehouse
8e0dad43c7
get rid of overlogged message
2009-11-08 21:25:43 +00:00
ehouse
066c3de9a7
add to gtk version a quick -F option to use new skip-confirm feature
2009-11-08 17:25:19 +00:00
ehouse
a61d01c5ff
add new global preference that allows turning off confirmation dialog
...
after each turn. Meant to fix ID: 2735517 feature request on sf.net.
2009-11-08 17:00:20 +00:00
ehouse
86d6f8d0a3
script and helper for testing proposed store-and-forward relay feature.
2009-11-05 04:31:23 +00:00
ehouse
ed52582ea4
get rid of states and code for checking numbers of players -- since
...
any number is allowed now.
2009-11-03 05:03:20 +00:00
ehouse
3bdfda6548
Make it possible for multiple games to connect using the same room
...
name. All new connections are stored together, and after each
connection an attempt is made to build one complete game with a host
and however many guests. All remaining devices are moved into a new
pending record in the same state, and the completed game is treated as
always. Seems to work, though nearly 20% of linux instances are
failing to connect the relay run from the new test script samename.sh.
Need to figure out why.
Also added logging of seed and connname to comms.c since games
launched together can no longer be certain to connect on the relay.
This allows the test script to identify joined games from their logs
and detect success or failure.
This checkin changes the relay protocol, so relay and clients will
both need to be upgraded.
2009-11-02 01:01:47 +00:00
ehouse
11b586cd4b
lookup hearbeat recipient by socket rather then cookieID since
...
cookieID isn't always correct until later
2009-11-02 00:45:54 +00:00
ehouse
e65db4b8c2
use log macro rather than fprintf to stderr
2009-11-02 00:09:56 +00:00
ehouse
84ac5223b2
script to test new feature where lots of games can use the same "room"
...
and will just get mached up as soon as a host and right-sized set of
guests is available. Basically works, but will never exit if any of
the games fails to exit (as is happening most times), so still need to
detect failures.
2009-11-02 00:09:11 +00:00
ehouse
7d411526d3
add .2 for consistent time formatting
2009-11-01 01:40:18 +00:00
ehouse
7a71c4636b
change varible names; remove instance variable than can be on the stack.
2009-11-01 01:38:03 +00:00
ehouse
82c15f7f09
update script for b5
2009-10-25 15:09:16 +00:00
ehouse
231c0b4f44
claiming to handle EN_SETFOCUS broke text insertion for StrBox on PPC
...
(but not SP). So for now, note focus changes and scroll if
appropriate but don't claim to have handled them.
2009-10-25 15:06:52 +00:00
ehouse
cfd1350dac
white space only: get rid of annoying extra spaces at ends of lines.
2009-10-25 15:03:12 +00:00
ehouse
b957e9c195
Only set StrBox font on Win32. WinMo devices seem to have Unicode
...
font even if not localized.
2009-10-25 15:00:06 +00:00
ehouse
34032a9d0a
set rem text color, which otherwise varies.
2009-10-25 14:57:42 +00:00
ehouse
fa5d36517a
Track EDITTEXTs in dialogs when following focus with scroll position.
...
This seems to fix bug where conns dialog wouldn't scroll on
Smartphone, though I'm not sure why.
2009-10-25 00:55:19 +00:00
ehouse
32916d2918
adjustForConnType only needed when several compiled in.
2009-10-25 00:53:15 +00:00
ehouse
27c518dec4
When tray's hidden you can't see that you're in trade mode. So try
...
revealing the tray (and so showing the mode) before aborting trade
request due to being in trade mode.
2009-10-25 00:23:00 +00:00
ehouse
1c94e2c6cc
Resource tweaks: fix blank picker for Catalan; make Polish and
...
Catalan trade miniwindow messages three lines for better fit; tweak
hint-limits dialogs for Catalan; re-layout Connections dialog (though
it doesn't scroll on Smartphone!)
2009-10-24 17:44:11 +00:00
ehouse
0dfdb767df
dialog text only: invite->room
2009-10-24 16:35:33 +00:00
ehouse
244e0f58db
Don't set address in standalone game (should fix assertion
...
failure/possible crash); set default menu to Undo after it's been used
once.
2009-10-24 15:12:45 +00:00
ehouse
5602827ebf
Print remaining tiles in scoreboard smaller and using tile background
...
color in attempt to make it clearer what the number means. The goal
is to remove clutter and make more room for player name.
2009-10-24 14:53:17 +00:00
ehouse
85da3d2082
add parens for clarity
2009-10-24 14:50:23 +00:00
ehouse
899c67f3fe
ce code no longer needs to ask if dict is utf-8, as internally all
...
are.
2009-10-23 09:02:02 +00:00
ehouse
ab853ffb3b
All dict strings are utf8, so don't ever convert using CP_ACP. Fixes
...
misdisplay of Spanish Ñ in tray and on board.
2009-10-23 08:56:43 +00:00
ehouse
6aca59abe0
Make state private to ceblank.c; all dict strings are utf8, so don't
...
ever convert using CP_ACP. Fixes misdisplay of Spanish Ñ.
2009-10-23 08:54:54 +00:00
ehouse
8ec7b01595
fix catalan trade miniwindow by making buffer large enough to convert
...
text without errors.
2009-10-23 07:53:31 +00:00
ehouse
b126b8b6bf
more tweaks for smartphone
2009-10-22 02:47:46 +00:00
ehouse
06cd5f5a0e
tweak dialog layout
2009-10-21 03:43:20 +00:00
ehouse
a1f3d1280f
Move scripts to scripts dir; build cab files in built dir along with
...
the files they contain.
2009-10-21 03:39:23 +00:00
ehouse
9cdb9ce45b
fix to work with new pocketpc-cab, which strips an extra layer of \
...
from dos pathnames.
2009-10-20 04:07:16 +00:00
ehouse
cdf418b904
Don't assume resources aren't utf-8 because current dict isn't.
...
Always assuming they're utf-8 seems to work, so do that for now.
Fixes problems with Catalan messages when using English dict.
2009-10-17 04:14:01 +00:00
ehouse
ad2ba1c249
Don't assume resources aren't utf-8 because current dict isn't.
...
Always assuming they're utf-8 seems to work, so do that for now.
Fixes problems with Catalan messages when using English dict.
2009-10-17 04:10:28 +00:00
ehouse
0d326c0252
Generalize code for moving lower items up to cover hidden items, and
...
use for role-config and juggle buttons in gameinfo dlg.
2009-10-17 04:01:59 +00:00
ehouse
1929505c10
Make GameInfo struct private
2009-10-17 03:38:37 +00:00
ehouse
2daea90580
cleanup prefs dialog (and comment where needs translation changes to
...
fit)
2009-10-16 12:42:05 +00:00
ehouse
ca7038043a
a few tweaks to dialog layout
2009-10-16 03:35:31 +00:00
ehouse
1fa8b2e48f
remove unused param (not even compiled on Palm); on wince, try to
...
duplicate for timer the vertical offset used for scores.
2009-10-16 03:20:39 +00:00
ehouse
458b904280
build dlls into cabs too
2009-10-16 03:18:38 +00:00