PDA

View Full Version : flag & ranking changer


w0rm
10 Jul 2006, 14:01
im working on a program for wa (in visual basic), which i can change my rank in wormnet1 and my flag. the flag changing thing works, im not sure about the ranking stuff, because always when i connect to the wormnet with my program, i only see ? ? ? as a rank for everyone. when i /whois the other players, i can see their rank, when i /whois myself, i cant see it.

the program is very simple and works like a proxy:

- worms connects to my program on port 80 (i add the ip in the serverlobby.htm)

- worms connects to wormnet (on port 80, on port 6667)

- my program sends everything to the wormnet what wa sends to my program

- my program sends everything to wa what the wormnet sends to my program


well my 4 problems are:

- the "Please Wait.. Working.." window does not disappear

- i get disconnected after 1 or 2 minutes (im already in #AnythingGoes) with the message "Fatal error during connecting to gameserver. Disconnecting" or something like that

- when im connected to the irc server and double click a channel, wa doesnt join it (i have to click a button in my program to join channels)

- i cant see ranks before i /whois the players

so if anybody wants to help me (with some ideas why it doesnt work) or with programming, post here or pm me, i will send you my icq number then...

evilworm2
10 Jul 2006, 14:39
- my program sends everything to the wormnet what wa sends to my program
- my program sends everything to wa what the wormnet sends to my program

- i get disconnected after 1 or 2 minutes (im already in #AnythingGoes) with the message "Fatal error during connecting to gameserver. Disconnecting" or something like that

Seems like you donīt pass the ping and accordingly the pong message.

w0rm
10 Jul 2006, 15:49
Seems like you donīt pass the ping and accordingly the pong message.


well thats what i thought first, too but i dont get the ping message :x

evilworm2
10 Jul 2006, 15:58
well thats what i thought first, too but i dont get the ping message :x

See? That`s why you get disconnected. The wormnet server, like all IRC servers, uses ping. And you have to pong back.

w0rm
10 Jul 2006, 17:44
i know, i should get something like "PING :12345678" and then i have to send "PONG :12345678", but the server does not send the PING msg to me, why?

evilworm2
10 Jul 2006, 18:01
... but the server does not send the PING msg to me, why?

My crystal ball is still out for repair, sorry. But the server definitely sends out ping messages.

bonz
10 Jul 2006, 22:45
im working on a program for wa (in visual basic), which i can change my rank in wormnet1 and my flag.
There are already at least 2 of such programs.
It was such things that destroyed the original online ranking.

Lex
11 Jul 2006, 04:50
w0rm, why aren't you just making your program just forward all packets? There would be no problems if you did that. I'm not sure what you're doing that could make WN act so insanely.

w0rm
15 Jul 2006, 14:05
w0rm, why aren't you just making your program just forward all packets? There would be no problems if you did that. I'm not sure what you're doing that could make WN act so insanely.

there are 2 problems with that:

1. the http server, which i connect to first, sends the command "<CONNECT 195.89.193.89>", after that wa connects to that ip (wormnet) on port 6667.

well that is no big problem, because i just changed 195.89.193.89 to 127.0.0.1 and it worked


2. when wa is connected to the wormnet on port 6667 (irc), it still connects to the http server sometimes, to send a command for getting the gamelist and stuff like that

i tried to solve that problem by creating a winsock control, that is always connected to the http server and sends the packets of wa to it.
but it just did not work!
for some reason, wa doesnt send any commands on port 80 to my program (for example when i double click a channel), although it is connected on that port

CyberShadow
15 Jul 2006, 18:11
HTTP does not use long-term connections. Unless some advanced HTTP/1.1 stuff like Connection: keep-alive is used (which happens seldom), all HTTP clients make one connection for each new request. That means that W:A connects to the Team17 WormNET HTTP server each time it performs the "login", requests the channel flags or game list, hosts a game, etc. You must treat these as separate connections and filter data as such - and adequately create a new connection to the WormNET server for each of W:A's connections to your program.