Hello.
I have some question about the unreal engine networking system, i’m working on my own c++ server, i can send to it information and then the server give me some information back.
I made my login / character system working with a sql database, but now i would start to spawn into the world and play.
1) Do i have to use the ue4 replication system and no other choice ?
2) If not, is it possible to make a c++ server without any ue4 networking library or function, and send / receive data from UDP socket.
3) If it is, is it a way to :
example :
I ask to my server to spawn me, the server send me the X-Y-Z position and i can spawn my self, and also say to all other player connected,
“i’m here so spawn me into your game and update my position while i’m moving etc.” (client -> server -> client 2)
Once i’m spawn, spawn the other player who are already connected, spawn the monster, and update every data the server will send to me.
example of code i could use:
struct sData_Entity
{
int charId;
char Name[MAX_SIZE_CHAR_NAME + 1];
int byRace;
int byGender;
int byLevel;
float fPositionX;
float fPositionY;
float fPositionZ;
int _entityIdentifier; //use to know witch object have to be updated.
};
This struct could be use to send to the server the information to update for all already connected player and then send it to the client listening upd socket and update the information.
If anyone could enlighten me, it would be appreciated, thanks !