Questions tagged [socket]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
13 views

Game equivalent to TicTacToe using socket programming problem

I am trying to make a two player game using socket programming for Java. Recently followed some guides and made an attempt to make a game equivalent to tictactoe but instead of getting the Xs or Ox in ...
0
votes
0answers
28 views

What to send for moving players in a networking-game

In my game I make use of Ashley (the Entity-Component-System). I've got a player which have an Transform-Component as well as a Brain-Component which is holding the boolean variables which are ...
0
votes
0answers
23 views

Can a mobile device create a game server for two-player online games in turn? [duplicate]

First of all excuse me if I say crazy things. I'm trying to make a turn-based multiplayer logic game for two players. This is my purpose: Two types of user, the one who creates the map and the one ...
0
votes
0answers
22 views

Networking and Timing issue

I have been trying to use the low-level API for UNET and the focus of this problem is this: ...
0
votes
1answer
115 views

Fast Serialization for Multiplayer Gaming

I wish to make a Java based multiplayer game. I am learning all about sockets and so forth. I have built a very basic UDP system that serializes an object with all the information about the game state ...
1
vote
1answer
148 views

Handling bad network clients using socket.io

Currently I'm working on a MMO game which players can join and exit game whenever they want. I have a connection manager server (CMS) written in golang using socket io library. World connects to CMS ...
0
votes
0answers
44 views

Peer to peer networking architecture: one or two sockets

I am programming a 2 players snake game and I want it to be playable through the internet. I don't think a client-server model would be good here because the only information needed between the 2 ...
0
votes
1answer
84 views

Check if client is alive

I am having client/server application and i want to detect if client is alive. So i know that send() will return me null but it ...
0
votes
1answer
48 views

Trying to understand exactly how the server sends data to the client to prevent malicious actions

I recently started coding a game with one of my friends and he is taking care of the front end and I am doing the back end. I read many blogs/articles/tutorials on how the back end communicates with ...
0
votes
2answers
271 views

Is it secure to use UDP socket for a game server?

I'm working on a multiplayer android game with Unity. For server side I use python. There is no login system or username. Basically, there is a matchmaking system and rooms. I send json object which ...
1
vote
1answer
229 views

Unreal Engine 4.18 - Knife (Weapon) collides with character capsule collision

I have a character and he has a knife in his hand. When Run / Walk action happens hands move and so does knife, its collision collides with character's capsule collision and causes issue in movement. ...
0
votes
1answer
513 views

World & client listening, use multi-threading or multi-process?

My game is based on a client / server architecture where client only sends input and receives server output. Server has to keep track of the game, updating the world etc. But also listen to clients ...
1
vote
0answers
111 views

Cocos2d-x : Socket.io-client-cpp crashes after creating scene

I'm using https://github.com/socketio/socket.io-client-cpp with cocos, because the built-in socket.io doesn't support callback (http://discuss.cocos2d-x.org/t/doesnt-work-with-socketio-2-0-1-and-...
0
votes
1answer
1k views

Could a Peer-To-Peer network architecture be good for my fighting game

I am looking forward to developing a 2D spaceship-fighting, brawler game and I have so many ideas about it. I am going to make a single-player component anyway, but the core of this game would ...
1
vote
0answers
64 views

Unity won't Instantiate() outside of Start(), even though code is the same

I am trying to add a gameobject to my game using a socket connection. I have a SocketHandler class, which simply connects to my NodeJS socket server, which can also call a method on another class, ...
4
votes
0answers
96 views

Implementing a game in Unity without Unity Networking

I have been programming in Unity for a while, and ever since I started I could not wrap my head around the Unity Networking system. I understand on a whole how it works, I even made a small project ...
2
votes
1answer
142 views

How would a server handle sending entity updates to clients?

Lately I've been looking into networking and sockets and made small test programs to get the basics down. So far I've made a TCP turn-based game from where I learnt a lot and helped me getting some ...
1
vote
2answers
192 views

Network game like MMO - TPC or UDP [closed]

I saw this subject several times, however I will wish better understand. I am working on the development of a 2d game like a little MMO. (Currently I only do research). I see people who says it's ...
2
votes
1answer
534 views

unity, socketio, nodejs. amount of messages sent is multiplied by amount of NPcs that have ever spawned

I am building a 2d top down multiplayer mmo. very lightweight. a note on architecture I am using Unity as an engine, I have a backend Nodejs/socket.io websockets server. and a main Master client ...
1
vote
0answers
309 views

Node.js in LibGDX project [closed]

I'm developing a game with LibGDX, and right now I'm trying the multiplayer part. I have managed to connect several players through Node.js and socketIO but when I try to make the lobby I am doubting ...
0
votes
1answer
537 views

How do I make my offline socket.io server go online?

I've made a simple multiplayer game using socket.io, and took a lot of help from YouTube and the Internet on how to do it. However, the tutorials only talk about how to run the server locally, and ...
2
votes
3answers
481 views

Synchronizing object states over .NET sockets

What I want to achieve is synchronize the state of a list of objects between two applications using sockets. All my attempts, but failed. One of my methods was to send each object each update to the ...
0
votes
1answer
67 views

How to solve this card game turn requestes clashing issue

So I am developing a poker card game using JS +node.js + socket.io. It is turn-based game. There will be a host and 4 other players.The flow is the players need to make a yes/no choice, then the host ...
1
vote
0answers
26 views

Socket.io emit textfield

Hello everyone I learned how to emit from socket.io website guides but I was wondering how does the chat example receive its input? For example in my cocos2dx app how do I pass a text field over to ...
0
votes
1answer
2k views

SocketException: No connection could be made because the target machine actively refused it

I am working on connecting a client to a server using socket connection. I have a button, when I click on the button, it's giving the below exception in Unity. "SocketException: No connection could ...
1
vote
0answers
80 views

Delay in connecting to server in Unity

I have a button, when I press the connect button, it gets connected to the server. When I press the connect button again, it's getting delay in connecting to the server. Below is the code to connect ...
0
votes
1answer
654 views

Try to connect to Game Maker server

I'm trying to make a simple multiplayer experience with Game Maker, using a local network, and the basic idea is to use Game Maker's built-in networking functions. Using a simple client-server ...
0
votes
1answer
6k views

TCP Socket communication with unity

I am working on communicating unity application with an PC app. Since I doesn't know how socket programming can be implemented in unity.Can anybody please help me in creating a simple small ...
1
vote
1answer
1k views

Best client/server architecture for a mobile management game?

For the past year I have worked on a small company that develops a traditional browser based strategy game, of the likes of Travian or Ogame, but using a more interactive approach like Tribal Wars 2. ...
0
votes
2answers
335 views

Unity WebGL build throws errors

I am working on a multiplayer game for WebGL platform and I am using SocketIo & node.js server for handling the game. I am facing issues, as shown in the attached image. I have no idea about what ...
0
votes
1answer
680 views

what is the best way to code an online multiplayer game?

so i want to create a simple game that runs over a network but I am having trouble deciding what needs to be done in terms of what the server needs to do and what the clients need to do. I understand ...
3
votes
1answer
177 views

Slick2D Networking Crash

This is my first post, so I apologize if it's been put in the wrong place or something. Anyways, here's my problem: I've run into an issue with running my client-side code in one of my game-states. ...
1
vote
2answers
222 views

Do I need TCP socket?

My game uses UDP sockets to stream updates between server and client and I've also made a reliable channel that resends messages if there's no response and makes sure same message isn't processed ...
3
votes
1answer
2k views

How should I send packets to multiple clients on UDP? [closed]

I'm developing a 2D action side-scroller shoot-em-up game and I recently implemented the multiplayer aspect. When the server sends packets containing the game state (which are about 500-700 bytes) ...
-1
votes
1answer
852 views

What is the best way to send/receive data about user coordinates and other properties?

For example If I have 2 users, and each of them have an object, and that object has: x coordinates, y coordinates, angle, state, and other properties... I use java let'say the game changes at 30 ...
15
votes
2answers
13k views

How to keep server-client clocks in-sync for precision networked games like Quake 3?

I'm working on a 2D top-down-shooter and doing my best to copy concepts used in networked games like Quake 3. I have an authoritative server. The server sends snapshots to clients. Snapshots contain ...
7
votes
3answers
5k views

How do I access a Unity class from an Android Activity?

I have made my own C# classes in Unity. How can I access them from the Android Activity that starts the UnityPlayer? Example: I have a C# class called ...
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 ...
1
vote
0answers
348 views

Delay command execution over sockets

I've been trying to fix the game loop in a real time (tick delay) MUD. I realized using Thread.Sleep would seem clunky when the user spammed commands through their ...
1
vote
2answers
707 views

Should I use threads to check sockets for multiplayer game?

In a multiplayer game does the code to get/send info from/to sockets reside in the game loop or does it belong in its own thread?
0
votes
3answers
860 views

Why is my client laggy despite 60 update packets a second? [closed]

I am developing a small multiplayer game with XNA. It's a usual client-server architecture -- I have a server and many clients communicating with it through UDP (via .NET's ...
7
votes
2answers
7k views

UDP vs TCP in multiplayer mobile game

I'm working on a networked multiplayer game, initially for iOS. Even with TCP_NODELAY there are large fluctuations in latency. I can't be sure of the reason, but I would not be surprised if it was ...
5
votes
2answers
3k views

Mobile Multiplayer games and coping with high latency

I'm currently researching regarding a design for an online (realtime) mobile multiplayer game. As such, i'm taking into consideration that latencies (lag) is going to be high (perhaps higher than PC/...
2
votes
2answers
550 views

Adobe Air turn based multiplayer Game, sockets vs http bandwidth

I am developing an Adobe Air multiplayer game for iPad. It is turn based and not realtime. It is like checkers game. I want to use a client server model. I have found 2 options to connect to server so ...
3
votes
1answer
1k views

Unity editor stalling on second attempt to play

I am attempting to use a Tobii TX300 eye-tracker as an input device for Unity. This device is connected via LAN (TCP connection managed by Tobii SDK). The Tobii SDK has appropriate methods (I am ...
3
votes
1answer
3k views

Google Cloud Messaging (GCM) for turn-based mobile multiplayer server?

I'm designing a multiplayer turn-based game for Android (over 3g). I'm thinking the clients will send data to a central server over a socket or http, and receive data via GCM push messaging. I'd like ...
1
vote
1answer
332 views

network programming: simultaneous IO over sockets?

In my curses based game, I decided to add multiplayer functionality over net, in addition to one-keyboard mulitiplayer game. I use switch loop and in case it's 1st user's buttons, user 1 is acting ...
0
votes
1answer
497 views

Multiplayer Game Data Serialization Problems

I want to create a simple game that can be played with one to two player. I plan on using TCP sockets, Farseer Physics, XNA, a BinaryFormater and a Memorystream. as far as i know i can't do the ...
0
votes
1answer
3k views

C# multi-player socket server (need clarification/suggestions)

I've been working on an 2D-RPG for a while and I recently decided to make it into an MMO (not really massive, but multi-player). Anyways, I'm attempting to write a game server in C#. Yes, I know I ...
1
vote
5answers
4k views

Is it possible to use 3G internet for a TCP/IP game server?

I'm working on a turned based multiplayer android game with a friend. I started working on the game server and client using socket programming. I found a few tutorials on how to implement a basic chat ...