Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / multiplayer

Author
Message
Rickyes
8
Years of Service
User Offline
Joined: 7th Sep 2015
Location:
Posted: 29th Sep 2015 21:04
Hello everyone.
I would like to create a multiplayer game in real time.
Clearly the game does not have to turn over local network but on a remote server.
Can someone help me in detail to understand what I need to do this?
Thanks to everyone.
Sorry for the translation. Are Italian


salve a tutti.
Vorrei creare un gioco multiplayer in real time.
Chiaramente il gioco non deve girare su rete locale ma su server remoto.
Qualcuno puo' aiutarmi in dettaglio a capire cosa mi serve per fare questo?
Un grazie a tutti.

Scusate la traduzione.
Sono Italiano
Markus
Valued Member
19
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 30th Sep 2015 09:01
you should start with a prototype.
in tier1 basic you need to host a agk app which act as server for client communication.
in c its possible to make your own server app which handle the agk multiplayer communication.
http://www.appgamekit.com/documentation/Reference/Multiplayer.htm
http://www.appgamekit.com/documentation/guides/8_networking.htm
http://www.appgamekit.com/documentation/examples/multiplayer/0_getting_started.htm
alternate
http://www.appgamekit.com/documentation/Reference/HTTP.htm


AGK (Steam) V2 Beta .. : Windows 10 Pro 64 Bit : AMD (15.7.1) Radeon R7 265 : Mac mini OS X 10.10 (Yosemite)
Rickyes
8
Years of Service
User Offline
Joined: 7th Sep 2015
Location:
Posted: 30th Sep 2015 18:00
Thanks Markus. Clearly I've seen that documentation and I also bought the book ' Hands ON AppGameKit BASIC '.
However the examples operate on a local area network (LAN).
I would like to know how, and if you can, create a multiplayer game outside the LAN.
example: a player (Italy), second player (Canada).
Not being an expert in network and having never broached the subject multiplayer I'm trying to learn and understand.
They told me I probably need A dedicated server or virtual too where to run the game.
I repeat not being an expert, I question who is more experienced and has already broached the subject.
Thanks to everyone again.

Grazie Markus.Chiaramente avevo gia' visto quella documentazione ed ho anche aquistato il libro "Hands ON AppGameKit BASIC".
Tuttavia gli esempi descritti funzionano su una rete Locale (LAN).
Io vorrei sapere come, e se è possibile,creare un gioco multiplayer fuori dalla rete LAN.
esempio : un giocatore (Italia) ,secondo giocatore (Canada).
Non essendo esperto di rete e non avendo mai affrontato l'argomento multiplayer sto cercando di apprendere e capire.
Mi hanno detto che probabilmente serve:
Un server dedicato o anche virtuale dove far girare il gioco.
Ribadisco non essendo esperto,rivolgo la domanda a chi è piu' esperto ed ha gia' affrontato l'argomento.
Ancora un grazie a tutti.
janbo
15
Years of Service
User Offline
Joined: 10th Nov 2008
Location: Germany
Posted: 30th Sep 2015 19:15
Hi,
of course you can make multiplayer games over internet with agk, but you must forward the port for the server router(IP v4).
But you can't find the server via broadcast... (Would be funny to broadcast the whole world wide web).
So you must find an other way, if you don't want to tell your friends the server IP annytime.
A good way is to host a php server(master server) wich is accessible over the internet, and each game server creates an entry on your master server list.
Now if a client want to join you, it can retrieve the list from your master server and search for the correct entry with your ip .

I have done this, but I'm waiting for some commands to get released, to publish the game.
Feel free to ask me directly.

Using AGKv2 Tier1
Markus
Valued Member
19
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 1st Oct 2015 07:44 Edited at: 1st Oct 2015 07:44
there is a 2 in 1 function, the one is for www the other for local network.
i believe in the first one you can use also a host name, if not you can use a static ip.
integer JoinNetwork( szIP, port, szMyName )
integer JoinNetwork( szNetworkName, szMyName )
AGK (Steam) V2 Beta .. : Windows 10 Pro 64 Bit : AMD (15.7.1) Radeon R7 265 : Mac mini OS X 10.10 (Yosemite)
BatVink
Moderator
20
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 1st Oct 2015 11:10
The first question is - how fast?

Realtime could be a fast shoot 'em up
Or it could be Chess
Or something in between
It is also important to know if every message must be delivered "on time"

HTTP is acceptable for many games, but is "slow" (e.g a few seconds per message must be allowed)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Quidquid latine dictum sit, altum sonatur
TutCity is being rebuilt
Rickyes
8
Years of Service
User Offline
Joined: 7th Sep 2015
Location:
Posted: 2nd Oct 2015 12:01
My idea is to have a communication as quickly as possible.
So it might be even a shooter or even a car game where each competitor plays in realtime.
Thank you all for your time.

La mia idea è di avere una comunicazione quanto piu' veloce possibile.
Quindi potrebbe essere anche uno sparatutto o anche un gioco di auto dove ogni concorrente gioca in realtime nella gara.
Ringrazio ancora tutti per la vostra disponibilita'.
xGEKKOx
AGK Master
15
Years of Service
User Offline
Joined: 7th Dec 2008
Location: Italy
Posted: 3rd Oct 2015 08:27
Ciao Rickyes, sei italiano?
Rickyes
8
Years of Service
User Offline
Joined: 7th Sep 2015
Location:
Posted: 3rd Oct 2015 09:50
Ciao Gekko,
Si sono Italiano.

Login to post a reply

Server time is: 2024-03-28 11:15:44
Your offset time is: 2024-03-28 11:15:44