PDA

View Full Version : [ut2003] Disconnecting and reconnecting Client via server controll ?



legacy-PVCGilde
08-01-2003, 09:37 AM
Hi Listmembers,

I am looking for a method to disconnect and reconnect a client to a ut2003 server (after a short break while) without any interaction from the player.

Disconnecting is quite easy - I just kick him - the code is already there.

Reconnecting is troubling me - does anyone know if this is possible at all (it might not - do my clientside programs still run when being disconnected from the server) and which classes I have to look at for handling reconnecting a client. ?

Thanks for any help
Andreas / PVC

legacy-Mr Evil
08-01-2003, 11:33 AM
One possibility would be to open a custom menu on the client when you disconnect them. Have a timer in the menu that reconnects. This would work as long as the client doesn't close the menu.

legacy-Haral
08-01-2003, 04:10 PM
You don't have to let a client close the menu. Of course, what you might want to do instead is have an actor that is kept after cleanup (transient? Whatever that keyword is) which I think would work OK.

legacy-PVCGilde
08-04-2003, 05:50 AM
Short Update upon my digging for infos how to reconnect a player:


I have searched the Browser_ServersList routines and found a method

PlayerOwner().ClientTravel( URL, TRAVEL_Absolute, false );

to connect to a server. Have not found the implementation of this method - it might be hard coded C++ program - so I dont have any clue about the parameters.

This should handle the ClientConnect.

legacy-Mr Evil
08-04-2003, 06:00 AM
If you're really stuck finding out the 'proper' method of connecting to a server, the easiest way is to do a console command, e.g.

PlayerOwner().ConsoleCommand("open 123.123.123.123");