[Home] [Downloads] [Search] [Help/forum]

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Development
. . -> [Subject]  Can't send command
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Can't send command

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Posted by LeoXing   China  (4 posts)  [Biography] bio
Date Wed 27 Mar 2013 01:12 PM (UTC)
Message
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?
[Go to top] top

Posted by Nick Gammon   Australia  (21,322 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Fri 29 Mar 2013 01:03 AM (UTC)
Message
You have compiled MUSHclient yourself? And the command window doesn't work? Is that it?

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Yanwuhuan   (15 posts)  [Biography] bio
Date Reply #2 on Wed 24 Jul 2013 10:42 AM (UTC)
Message
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.
[Go to top] top

Posted by Yanwuhuan   (15 posts)  [Biography] bio
Date Reply #3 on Wed 24 Jul 2013 11:46 AM (UTC)

Amended on Wed 24 Jul 2013 11:48 AM (UTC) by Yanwuhuan

Message
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 ..
[Go to top] top

Posted by Yanwuhuan   (15 posts)  [Biography] bio
Date Reply #4 on Wed 24 Jul 2013 11:47 AM (UTC)
Message
---------- 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 -------------------
[Go to top] top

Posted by Yanwuhuan   (15 posts)  [Biography] bio
Date Reply #5 on Thu 25 Jul 2013 03:50 AM (UTC)
Message
I re-built it using vc6sp6.
It works.
[Go to top] top

Posted by LeoXing   China  (4 posts)  [Biography] bio
Date Reply #6 on Mon 23 Sep 2013 07:04 AM (UTC)
Message
Yanwuhuan said:

I re-built it using vc6sp6.
It works.



Convert sendmessage code page to utf8,re-built it, works!

我的qq:3177850,有时间交流交流~~
[Go to top] top

Posted by LeoXing   China  (4 posts)  [Biography] bio
Date Reply #7 on Mon 23 Sep 2013 07:06 AM (UTC)
Message
but, chinese is not work!
[Go to top] top

Posted by Nick Gammon   Australia  (21,322 posts)  [Biography] bio   Forum Administrator
Date Reply #8 on Mon 23 Sep 2013 08:03 AM (UTC)
Message
It wasn't built as a Unicode app, sorry. It is a huge amount of work to change it now.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by LeoXing   China  (4 posts)  [Biography] bio
Date Reply #9 on Fri 23 Jan 2015 02:10 AM (UTC)
Message
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
[Go to top] top

Posted by Nick Gammon   Australia  (21,322 posts)  [Biography] bio   Forum Administrator
Date Reply #10 on Fri 23 Jan 2015 02:55 AM (UTC)
Message
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.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


8,767 views.

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]