Re: Sending info to server with which we are not connected yet

#2
Not sure...

NetEntity handles RMI indexing, and RMI declaration needs to happen on both sides (hence a entity/component needs to be sync'd over).....and all this obv can only happen after connecting.

Maybe you can send a message using some of the inner stuff, check out how "connect" triggers and how they send 'immediate packet' messages. Maybe you can combine sort of both and have it work?

Re: Sending info to server with which we are not connected yet

#4
Well, the original purpose was to create a simple login system without involving 3rd party server, just by using single cryengine server instance. I know I could connect to the server and create login system in there, but I wanted to do it all on the client sending single requests to remote server, and then have a list of available servers. Ended up using sql database directly from client.
Cryengine tutorial videos on my Youtube channel! Check it out !
https://www.youtube.com/user/MusicForLifePL20

Re: Sending info to server with which we are not connected yet

#7
Nope. I don't want to create login system on the client side. I want to send packets with info about typed login and password to the server, then server checks database and returns whether client can connect to it at all or not. And YES, I want to create listen host to past info to, but HOW do I listen to incoming packets using cryengine server instance?
Cryengine tutorial videos on my Youtube channel! Check it out !
https://www.youtube.com/user/MusicForLifePL20

Re: Sending info to server with which we are not connected yet

#8
CryLobby module contains the ability to create a listen server. It also has a class for sending and receiving packets.

They use bit streams so you will have to get use to stream operators but its still pretty basic.

As for a dedicated server find where the socket connects the client.

Create a class to load your database (mysql or mssql). Also inside these modules are event that control the info about the data.


Are you looking for code or just functions?

(So you know the LISTEN and DEDICATED are very plain and they only contain connections and reading and writing data to socket)

Code: Select all

(Packet class) CCryLobbyPacket* pPacket use macro #ifdef DEDICATED_SERVER

Who is online

Users browsing this forum: No registered users and 1 guest

cron