I'm using vs2010, build success.
All functions can be used, only one,I can't send command in world.
What is the problem?I need to look at where?
You have compiled MUSHclient yourself? And the command window doesn't work? Is that it?
Yes, I met this problem, too.
OS Windows 7, vs2010.
Firstly I removed two source from project: pcre_info.c, pcre_try_flipped, since pcre8.32 does not provide them, and build successfully.
Then I met this problem.
1. Text in "General->Connecting->Connect Text" can be sent to game.
2. Echo is on, so I can see my commands, but not send to game.
3. I enable lua script and try Send function, not work yet.
I traced into OnSend in WorldSock.cpp, also used wireshark to monitor the socket.
It's strange. The command had sent out.
Below is socket traced. Game run on 192.168.0.196 5566.
Connect Text is:
gb
no
new
My input is:
wuhuan
--------------------------------------------------------
No. Time Source Destination Protocol Length Info
1 0.000000000 192.168.0.182 192.168.0.196 TCP 54 59896 > westec-connect [FIN, ACK] Seq=1 Ack=1 Win=16283 Len=0
Frame 1: 54 bytes on wire (432 bits), 54 bytes captured (432 bits) on interface 0
Ethernet II, Src: AsustekC_da:9f:a6 (90:e6:ba:da:9f:a6), Dst: AsustekC_da:8f:b9 (90:e6:ba:da:8f:b9)
Internet Protocol Version 4, Src: 192.168.0.182 (192.168.0.182), Dst: 192.168.0.196 (192.168.0.196)
Transmission Control Protocol, Src Port: 59896 (59896), Dst Port: westec-connect (5566), Seq: 1, Ack: 1, Len: 0
No. Time Source Destination Protocol Length Info
2 0.000603000 192.168.0.182 192.168.0.196 TCP 54 59896 > westec-connect [ACK] Seq=2 Ack=2 Win=16283 Len=0
Frame 2: 54 bytes on wire (432 bits), 54 bytes captured (432 bits) on interface 0
Ethernet II, Src: AsustekC_da:9f:a6 (90:e6:ba:da:9f:a6), Dst: AsustekC_da:8f:b9 (90:e6:ba:da:8f:b9)
Internet Protocol Version 4, Src: 192.168.0.182 (192.168.0.182), Dst: 192.168.0.196 (192.168.0.196)
Transmission Control Protocol, Src Port: 59896 (59896), Dst Port: westec-connect (5566), Seq: 2, Ack: 2, Len: 0
No. Time Source Destination Protocol Length Info
3 0.739594000 192.168.0.182 192.168.0.196 TCP 66 59926 > westec-connect [SYN] Seq=0 Win=8192 Len=0 MSS=1460 WS=4 SACK_PERM=1
Frame 3: 66 bytes on wire (528 bits), 66 bytes captured (528 bits) on interface 0
Ethernet II, Src: AsustekC_da:9f:a6 (90:e6:ba:da:9f:a6), Dst: AsustekC_da:8f:b9 (90:e6:ba:da:8f:b9)
Internet Protocol Version 4, Src: 192.168.0.182 (192.168.0.182), Dst: 192.168.0.196 (192.168.0.196)
Transmission Control Protocol, Src Port: 59926 (59926), Dst Port: westec-connect (5566), Seq: 0, Len: 0
No. Time Source Destination Protocol Length Info
4 0.740282000 192.168.0.182 192.168.0.196 TCP 54 59926 > westec-connect [ACK] Seq=1 Ack=1 Win=65700 Len=0
Frame 4: 54 bytes on wire (432 bits), 54 bytes captured (432 bits) on interface 0
Ethernet II, Src: AsustekC_da:9f:a6 (90:e6:ba:da:9f:a6), Dst: AsustekC_da:8f:b9 (90:e6:ba:da:8f:b9)
Internet Protocol Version 4, Src: 192.168.0.182 (192.168.0.182), Dst: 192.168.0.196 (192.168.0.196)
Transmission Control Protocol, Src Port: 59926 (59926), Dst Port: westec-connect (5566), Seq: 1, Ack: 1, Len: 0
No. Time Source Destination Protocol Length Info
5 0.742338000 192.168.0.182 192.168.0.196 TCP 58 59926 > westec-connect [PSH, ACK] Seq=1 Ack=1226 Win=64472 Len=4
Frame 5: 58 bytes on wire (464 bits), 58 bytes captured (464 bits) on interface 0
Ethernet II, Src: AsustekC_da:9f:a6 (90:e6:ba:da:9f:a6), Dst: AsustekC_da:8f:b9 (90:e6:ba:da:8f:b9)
Internet Protocol Version 4, Src: 192.168.0.182 (192.168.0.182), Dst: 192.168.0.196 (192.168.0.196)
Transmission Control Protocol, Src Port: 59926 (59926), Dst Port: westec-connect (5566), Seq: 1, Ack: 1226, Len: 4
Data (4 bytes)
0000 67 62 0d 0a gb..
No. Time Source Destination Protocol Length Info
6 0.743255000 192.168.0.182 192.168.0.196 TCP 72 59926 > westec-connect [PSH, ACK] Seq=5 Ack=1226 Win=64472 Len=18
Frame 6: 72 bytes on wire (576 bits), 72 bytes captured (576 bits) on interface 0
Ethernet II, Src: AsustekC_da:9f:a6 (90:e6:ba:da:9f:a6), Dst: AsustekC_da:8f:b9 (90:e6:ba:da:8f:b9)
Internet Protocol Version 4, Src: 192.168.0.182 (192.168.0.182), Dst: 192.168.0.196 (192.168.0.196)
Transmission Control Protocol, Src Port: 59926 (59926), Dst Port: westec-connect (5566), Seq: 5, Ack: 1226, Len: 18
Data (18 bytes)
0000 6e 6f 0d 0a 6e 65 77 0d 0a ff fb 18 ff fb 1f ff no..new.........
0010 fa 1f ..
Amended on Wed 24 Jul 2013 11:48 AM by Yanwuhuan
---------- continue -------------------
No. Time Source Destination Protocol Length Info
7 0.744267000 192.168.0.182 192.168.0.196 TCP 54 59926 > westec-connect [ACK] Seq=23 Ack=3299 Win=65700 Len=0
Frame 7: 54 bytes on wire (432 bits), 54 bytes captured (432 bits) on interface 0
Ethernet II, Src: AsustekC_da:9f:a6 (90:e6:ba:da:9f:a6), Dst: AsustekC_da:8f:b9 (90:e6:ba:da:8f:b9)
Internet Protocol Version 4, Src: 192.168.0.182 (192.168.0.182), Dst: 192.168.0.196 (192.168.0.196)
Transmission Control Protocol, Src Port: 59926 (59926), Dst Port: westec-connect (5566), Seq: 23, Ack: 3299, Len: 0
No. Time Source Destination Protocol Length Info
8 0.747558000 192.168.0.182 192.168.0.196 TCP 57 59926 > westec-connect [PSH, ACK] Seq=23 Ack=3866 Win=65132 Len=3
Frame 8: 57 bytes on wire (456 bits), 57 bytes captured (456 bits) on interface 0
Ethernet II, Src: AsustekC_da:9f:a6 (90:e6:ba:da:9f:a6), Dst: AsustekC_da:8f:b9 (90:e6:ba:da:8f:b9)
Internet Protocol Version 4, Src: 192.168.0.182 (192.168.0.182), Dst: 192.168.0.196 (192.168.0.196)
Transmission Control Protocol, Src Port: 59926 (59926), Dst Port: westec-connect (5566), Seq: 23, Ack: 3866, Len: 3
Data (3 bytes)
0000 ff fa 18 ...
No. Time Source Destination Protocol Length Info
9 3.019924000 192.168.0.182 192.168.0.196 TCP 62 59926 > westec-connect [PSH, ACK] Seq=26 Ack=3866 Win=65132 Len=8
Frame 9: 62 bytes on wire (496 bits), 62 bytes captured (496 bits) on interface 0
Ethernet II, Src: AsustekC_da:9f:a6 (90:e6:ba:da:9f:a6), Dst: AsustekC_da:8f:b9 (90:e6:ba:da:8f:b9)
Internet Protocol Version 4, Src: 192.168.0.182 (192.168.0.182), Dst: 192.168.0.196 (192.168.0.196)
Transmission Control Protocol, Src Port: 59926 (59926), Dst Port: westec-connect (5566), Seq: 26, Ack: 3866, Len: 8
Data (8 bytes)
0000 77 75 68 75 61 6e 0d 0a wuhuan..
No. Time Source Destination Protocol Length Info
10 3.605567000 192.168.0.182 192.168.0.196 TCP 62 59926 > westec-connect [PSH, ACK] Seq=34 Ack=3866 Win=65132 Len=8
Frame 10: 62 bytes on wire (496 bits), 62 bytes captured (496 bits) on interface 0
Ethernet II, Src: AsustekC_da:9f:a6 (90:e6:ba:da:9f:a6), Dst: AsustekC_da:8f:b9 (90:e6:ba:da:8f:b9)
Internet Protocol Version 4, Src: 192.168.0.182 (192.168.0.182), Dst: 192.168.0.196 (192.168.0.196)
Transmission Control Protocol, Src Port: 59926 (59926), Dst Port: westec-connect (5566), Seq: 34, Ack: 3866, Len: 8
Data (8 bytes)
0000 77 75 68 75 61 6e 0d 0a wuhuan..
No. Time Source Destination Protocol Length Info
11 4.020823000 192.168.0.182 192.168.0.196 TCP 62 59926 > westec-connect [PSH, ACK] Seq=42 Ack=3866 Win=65132 Len=8
Frame 11: 62 bytes on wire (496 bits), 62 bytes captured (496 bits) on interface 0
Ethernet II, Src: AsustekC_da:9f:a6 (90:e6:ba:da:9f:a6), Dst: AsustekC_da:8f:b9 (90:e6:ba:da:8f:b9)
Internet Protocol Version 4, Src: 192.168.0.182 (192.168.0.182), Dst: 192.168.0.196 (192.168.0.196)
Transmission Control Protocol, Src Port: 59926 (59926), Dst Port: westec-connect (5566), Seq: 42, Ack: 3866, Len: 8
Data (8 bytes)
0000 77 75 68 75 61 6e 0d 0a wuhuan..
No. Time Source Destination Protocol Length Info
12 4.443746000 192.168.0.182 192.168.0.196 TCP 62 59926 > westec-connect [PSH, ACK] Seq=50 Ack=3866 Win=65132 Len=8
Frame 12: 62 bytes on wire (496 bits), 62 bytes captured (496 bits) on interface 0
Ethernet II, Src: AsustekC_da:9f:a6 (90:e6:ba:da:9f:a6), Dst: AsustekC_da:8f:b9 (90:e6:ba:da:8f:b9)
Internet Protocol Version 4, Src: 192.168.0.182 (192.168.0.182), Dst: 192.168.0.196 (192.168.0.196)
Transmission Control Protocol, Src Port: 59926 (59926), Dst Port: westec-connect (5566), Seq: 50, Ack: 3866, Len: 8
Data (8 bytes)
0000 77 75 68 75 61 6e 0d 0a wuhuan..
---------------- done -------------------
I re-built it using vc6sp6.
It works.
Yanwuhuan said:
I re-built it using vc6sp6.
It works.
Convert sendmessage code page to utf8,re-built it, works!
我的qq:3177850,有时间交流交流~~
but, chinese is not work!
It wasn't built as a Unicode app, sorry. It is a huge amount of work to change it now.
Nick Gammon said:
It wasn't built as a Unicode app, sorry. It is a huge amount of work to change it now.
not built as Unicode, still MBCS
I don't know. It is incredibly frustrating to try to test this stuff, bearing in mind I don't know Chinese, and have trouble even typing it in.