Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Technical Support » Win32 FDS » Want a way to connect to renrem
Want a way to connect to renrem [message #96793] Wed, 23 June 2004 05:09 Go to next message
TMSnipR is currently offline  TMSnipR
Messages: 7
Registered: April 2004
Location: England
Karma: 0
Recruit
i use visual basic 6. can anyone help in connectiong to the server, a bit like blaze regulator. not asking for anything too complicated, just the protocol and maybe a small example if you have time...

i check back tomorrow


There are 10 types of people in the world, those who know binary and those who don't!
Want a way to connect to renrem [message #96811] Wed, 23 June 2004 07:54 Go to previous messageGo to next message
snipesimo is currently offline  snipesimo
Messages: 764
Registered: February 2003
Karma: 0
Colonel
the winrem source code was posted not too long ago.
Want a way to connect to renrem [message #96822] Wed, 23 June 2004 08:51 Go to previous messageGo to next message
Nightma12 is currently offline  Nightma12
Messages: 2593
Registered: August 2003
Karma: 0
General (2 Stars)
Category Moderator
NightRegulator is also programmed in VB6 and i must say, there are some real problems with useing FDSTalk.dll, there is this function called Get_Response which needs to be called after sending a message to the FDS, for some reason, this crashes VB6 programs

so do what i did Razz send a msg though renrem (player_info) after sending an msg to the fds
Want a way to connect to renrem [message #100981] Sun, 11 July 2004 22:34 Go to previous messageGo to next message
djlaptop is currently offline  djlaptop
Messages: 160
Registered: February 2003
Location: Hollywood, CA, USA
Karma: 0
Recruit
There is a bug in VB6 which causes Get_Response to fail.

My suggestion is to send your messages using FDSTalk without calling Get_Response, and read your responses from the log file.


http://i38.tinypic.com/2hcltp1.gif
Want a way to connect to renrem [message #100986] Mon, 12 July 2004 00:12 Go to previous messageGo to next message
Nightma12 is currently offline  Nightma12
Messages: 2593
Registered: August 2003
Karma: 0
General (2 Stars)
Category Moderator
which then crashes the FDS after awhile Razz
Want a way to connect to renrem [message #101316] Tue, 13 July 2004 20:12 Go to previous messageGo to next message
gibberish
Messages: 366
Registered: May 2003
Karma: 0
Commander
Nightma14

which then crashes the FDS after awhile Razz


Something else may crash the FDS but its not because you havn't read the response, because the RenRem protocol is based on UDP hence the FDS doesn't even know if you have read the response.
Want a way to connect to renrem [message #101327] Tue, 13 July 2004 23:53 Go to previous messageGo to next message
Nightma12 is currently offline  Nightma12
Messages: 2593
Registered: August 2003
Karma: 0
General (2 Stars)
Category Moderator
Quote:

' Do 'Need to empty the outgoing buffer it is crashing FDS after a while
' i = 1 + i
' Response = ""
' Get_Response Response ' this hangs
' Loop While Len(Response) > 1 Or i < 100


direct quote from the winrem source code

btw, what does Service do?
Want a way to connect to renrem [message #101444] Wed, 14 July 2004 13:15 Go to previous messageGo to next message
Nightma12 is currently offline  Nightma12
Messages: 2593
Registered: August 2003
Karma: 0
General (2 Stars)
Category Moderator
well anyway, here is how it is done via FDSTalk Smile

(i am not on my normal PC at the moment, so i cant get some arguments when you call the function)

Init
Send_Message remotepass, IP (useing Long2IP, (google) ), local port
Send_Message message to send to FDS, IP (useing Long2IP, (google) ), local port
Send_Message Bye, IP (useing Long2IP, (google) ), local port
Service
Get_Response variablename (dont do this if you use VB6)
Service
Shutdown

if you skip out service, it will make the server lag Smile
Want a way to connect to renrem [message #101546] Thu, 15 July 2004 01:15 Go to previous messageGo to next message
djlaptop is currently offline  djlaptop
Messages: 160
Registered: February 2003
Location: Hollywood, CA, USA
Karma: 0
Recruit
Not calling Get_Response will not crash the FDS. I use this method in most of my programs.

If the FDS is crashing it's because you're sending data to it too quickly and flooding its input buffer.


http://i38.tinypic.com/2hcltp1.gif
Want a way to connect to renrem [message #101631] Thu, 15 July 2004 07:53 Go to previous message
Nightma12 is currently offline  Nightma12
Messages: 2593
Registered: August 2003
Karma: 0
General (2 Stars)
Category Moderator
lol, fair enough Razz im still wondering why dante had that in the winrem source code though Confused


Quote:

btw, what does Service do?


^^^^ i know it has to be called twice as it makes the FDS lag, but what does it exactly do Confused
Previous Topic: help plz anyone
Next Topic: JTeKGuard Anthrax 1.1.6 instructions
Goto Forum:
  


Current Time: Mon Dec 02 05:36:03 MST 2024

Total time taken to generate the page: 0.00838 seconds