All Questions

Tagged with
Filter by
Sorted by
Tagged with
1
vote
0answers
123 views

Is native performance of C++/C etc. relevant for game servers? [closed]

I am wondering if the performance of unmanaged languages like C++, Rust etc. is relevant when developing a game server or is it more about the network. For game clients, it makes sense and is probably ...
0
votes
1answer
616 views

How can I get fastest region server in Photon C++ Client API?

I am facing problem with my online multiplayer board game. It takes long time to create and join room. Also sometimes other player doesn't get the data. After searching all over the Photon C++ code I ...
0
votes
1answer
251 views

Qt based C++ game structure : which class types to use here, and how to correctly structure the relationship between these objects

I am writing a C++ game using Qt. As this is the first time, I am trying to understand how the structure should be. I have two objects derived from the type QGraphicsRectItem which appear as boxes on ...
2
votes
2answers
2k views

Example/Tutorial of passing structured data over network C++

This is very general question, about strategies how to pack same information about state of my game-world on server ( e.g. position/orientation of players, projectiles, etc. ) into data stream so that ...
0
votes
1answer
528 views

What is the correct approach to implement multiplayer in a game? [duplicate]

I'm developing a game and it is intended to be a multiplayer game. I have experience in writing servers and clients in Java, but the game is written in C++. The server will be written in Java for ...
3
votes
1answer
1k views

How do I create a multiplayer server also suitable for local single-player?

I've created a voxel game in C++, OpenGL and SFML, and I want to make it multiplayer. I'd like to make it similar to Minecraft's client-server model: The single-player is just a client to the hidden ...
5
votes
1answer
160 views

Replacement for XNA Lobby?

I am looking to implement with the Microsoft Windows Live game lobby. Since Microsoft has deprecated XNA, I am wondering if it is still possible to interact with the game lobby they provided in XNA (...
0
votes
2answers
330 views

Synchronizing mob states in online multiplayer game

I'm developing an exploration-based platform game in which from the start there were plans about including local multiplayer support, but recently I've been considering an online multiplayer mode, ...
-1
votes
2answers
216 views

Do I need threads in Hangman game? [closed]

I wish to implement a simple multiplayer Hangman game with the rule slightly bended. Rule: All the players have to guess the alphabets in the word at the same time. Whoever player guesses a correct ...
1
vote
3answers
670 views

Send info about gun shots via UDP

I am writing a small multiplayer game in C++. But I am confused about how to send info about gun shots to achieve best performance. I am thinking of different ways to do that: Let's say we have a gun ...
0
votes
2answers
790 views

Server List for a game

I'm making a c++ multiplayer game, and I'm trying to implement a server list, where everyone can host his own server. But I don't know how to start, I've google'd for a while and I didn't find ...
-6
votes
1answer
830 views

multiplayer game in openGL [closed]

what is the easiest way how to make network communication in openGL/glut? Does anybody know any good tutorial for beginners? thanks (or is there any simpler way then openGL?)
5
votes
1answer
2k views

How to structure (the code in) a multiplayer game

I'm working on a rather small project where we will be developing a small engine, a client, a server and an editor of some kind. It's a component-based 3D engine with basic systems like Rendering, ...
4
votes
4answers
43k views

Writing a server for a multiplayer game

I've been looking on the internet, but I can't really find any good answers to all my questions.. I started to think about writing a little multiplayer game on my own and after thinking and thinking ...
0
votes
1answer
469 views

Client/Server game even in solo: any big problem?

I'm making a game which have strong basic design based on multiplayer but also should provide a really interesting and self-sufficient solo game. A bit like a real-time strategy game. The events and ...
11
votes
5answers
1k views

Do you need expensive servers and fancy hosting in order to make a multiplayer game?

I've finished working on an RPG and it would seem so much more fun to make it multiplayer. SFML has a networking feature, I figured it's possible but then again, never in my life have I even tried ...
1
vote
1answer
1k views

How to send an int array and struct via ENet?

I've been using the ENet library for networking and so far it's been working ok. I have established a connection between my client and server. On the client side all it does is send all user input to ...
11
votes
2answers
10k views

What are the best ways to serialize and unserialize network messages for C/C++ multiplayer game?

We are using JSON right now and want to move to a binary format for some types of messages between client and server. Should I just read structs into the socket? Use proticol buffers/thrift? How ...
2
votes
1answer
1k views

Networking SFML Berkley Sockets

So I'm starting work on a multi-player space shooter. And I've run into some issues. As I type this, my system is currently: ...