Questions tagged [online-game]

"Online" games are played over the internet (as opposed to "offline" on a local machine) and usually allow multiple players to interact with one another in some way. Popular examples include first-person shooters and massively-multiplayer RPGs.

"Online" games are played over the internet (as opposed to "offline" on a local machine) and usually allow multiple players to interact with one another in some way. Popular examples include first-person shooters and massively-multiplayer RPGs.

80 questions
0
votes
0 answers

Fastpaced online game (2D platformer) - Networking Server/Client

I started a new project, a fast-paced online game (some sort of 2D MOBA). I encountered a problem with the part of netcode about client prediction & server reconciliation. Game Mechanics: 2D - Platformer (MOBA) Movement: WASD (jump / left / down /…
0
votes
0 answers

Laser does not shoot after I added a player

I've been trying to make a game where a character shoots a laser, but for some reason when you press Q, which is the firing key, the laser doesn't shoot, which is weird because I have tried this code before and it worked, the only thing I changed is…
0
votes
1 answer

Update database when user is no more online

I am currently working on a Javascript multiplayer game. When users want to play, they enter a waiting room where they wait for players to play with. It is stored in a SQL database this way : I have a table named USER with some data on the players,…
MuZak
  • 181
  • 5
  • 14
0
votes
1 answer

Constant connection to server online

So, I've been looking into online games and I was wondering how they managed to have such a fast, seemingly constant connection to the server. I've already tried just sending a bunch of XMLHttpRequests, but these tend to be slow. I've also tried…
Ghibbbeey
  • 61
  • 2
0
votes
1 answer

What is the cons of using unity built in network manager?

Why do Unity game developers implement server by themselves instead of using unity built-in NetworkManager? It seems like multi online games can easily be developed by using NetworkManager, but why do developers implement server by themselves using…
tink
  • 39
  • 1
  • 6
0
votes
1 answer

How do i test that an inputted username and password is registered

I am creating an online game that required a signup. I am using a google form for the sign up and a google spreadsheet to store the data. I also have a login form, but no way to test that the inputted username and password is registered. Is there a…
zcool 99
  • 27
  • 1
  • 8
0
votes
2 answers

Data type between client and server in websocket games

I'm playing around with websockets using socket.io. I've made a chat room, but I want to make a real time game. The socket.io docs say that any data type can be sent over websockets, so I'm wondering what the most efficient data type would be for…
Caleb Bertrand
  • 410
  • 5
  • 15
0
votes
1 answer

Create room with unity networking

hi and firstly sry for my english ... i newly start creating a multiplayer game with unity i download unity master server and facilitator from here and run them in my own server for creating an online multiplayer turn-base game. when someone…
user5184542
  • 73
  • 2
  • 5
0
votes
1 answer

Online game's alive connections count

In online multiplayer games where the world around you changes frequently (user gets updates from the server about that) - how many alive connections usually are made? For example WebSockets can be used. Is it an effective way to send all data…
Alexey
  • 2,582
  • 3
  • 13
  • 31
0
votes
1 answer

How to change the turn of a player in an online multiplayer game in Unity

I'm new in Unity and I'm trying to create an online multiplayer game. This game is a tanks fight. The tank is prefab and it's called to be created twice. When you press the Space keyCode the tank shoots a bullet. I have all the network connections…
Anna
  • 126
  • 1
  • 1
  • 10
0
votes
1 answer

Are there other ways to route packets once received?

So I'm working on the networking system for a project of mine (A game, if such information is relevant.) I'm using tcpip v6 and I've decided on basically having the packet's format be 2 bytes: Packet ID 2 bytes: Packet Length n bytes: Payload …
Nemo
  • 102
  • 1
  • 8
0
votes
1 answer

Multiplayer game participant matching for 3 or more users

I am building a small hobby website, primarily in Python and SQL on the back end, and I am not sure how to approach a problem conceptually. What is an efficient way to get three or more players matched in a multiplayer game? I originally planned to…
JStewy
  • 3
  • 4
0
votes
2 answers

Thread local variable

I'm developing a server for a multiplayer game, where I want to give each player his own Lua thread, that I'd like to fill with some unique globals, e.g. the player's name and id. Basically, I want to be able to set thread local variables from the…
Mars
  • 912
  • 1
  • 10
  • 21
0
votes
1 answer

MySQL Performance for Online Games Highscore Lists

I have a question about making "Highscore-Lists". Lets say I have an online game with 1.000.000 active users. Each user has points from 0 to X. Now, I want to show a ranking-list. It would be insane to show all million entries in one page so it is…
SomehowLuke
  • 69
  • 1
  • 11
0
votes
2 answers

Why this code doesn't work when "cout"s are commented?

I'm writing a server for an online game based on IOCP, and the core codes handling game message is something like below: CMessage ret; int now_roomnum = recv_msg->para1; int now_playernum = recv_msg->para2; /*if(true) { cout<<"Received Game…
DarkZero
  • 2,259
  • 3
  • 25
  • 36