BetaArchive Logo
Total Current Archive Size: 4765.54GB in 15409 files
Navigation Home Screenshots Image Uploader Server Info FTP Servers Wiki Forum RSS Feed Rules Please Donate
UP: 9d, 4h, 37m | CPU: 26% | MEM: 5344MB of 12279MB used
{The community for beta collectors}

Forum rules


Before you post, please make sure...

- ...you have first used Google to look for an answer, and you have asked other people you know via other methods (IM, e-mail, etc).
- ...your question has not been asked before. Search the forum first before posting.

If you meet those criteria, go ahead and post your question. Be sure to provide as much information you can about the problem and how to recreate it. Also provide information on hardware and software if applicable.


Post new topic Reply to topic  [ 7 posts ] 
Author Message
 PostPost subject: Multiplayer games w/o server        Posted: Mon Apr 30, 2012 12:35 pm 
Amateur Beta Collector
Amateur Beta Collector
User avatar
Offline

Joined
Sat May 28, 2011 5:06 pm

Posts
147

Location
Mol, belgium

Favourite OS
Windows 7 ultimate SP1
I was thinking about making a multiplayer game in HTML5/CSS3. I have enough experience using javascript and html5 to do this, but I'm really bad at the server side stuff , so I was thinking:
My wonderfull mind wrote:
A multiplayer game can be played using 2 pc's in the same local network or over the Internet through a web server. Wouldn't it be possible to have 2 pc's connect to each other over the internet without a server? 1 PC would act as both a client and the host(~server) and the other would just be a client.


Is this possible and how would you do it?

_________________
(\__/)
(='.'=)
(")_(")


Top  Profile
 PostPost subject: Re: Multiplayer games w/o server        Posted: Tue May 01, 2012 11:23 am 
Newbie Beta Collector
Newbie Beta Collector
User avatar
Offline

Joined
Thu Apr 05, 2012 1:11 pm

Posts
14

Location
Lab
BAV0 wrote:
My wonderfull mind wrote:
A multiplayer game can be played using 2 pc's in the same local network or over the Internet through a web server. Wouldn't it be possible to have 2 pc's connect to each other over the internet without a server? 1 PC would act as both a client and the host(~server) and the other would just be a client.



So basically you still have one server laying around :)
That makes this deployment no different than an ordinary webserver-based application.

If you plan to use html5/js, your communication primitives are based on XMLHttpRequest, which is meant for client-server communications. That, by design.

You will need some server-side support, perhaps minimal, from your language of choice.


Top  Profile
 PostPost subject: Re: Multiplayer games w/o server        Posted: Tue May 01, 2012 11:53 am 
Amateur Beta Collector
Amateur Beta Collector
User avatar
Offline

Joined
Sat May 28, 2011 5:06 pm

Posts
147

Location
Mol, belgium

Favourite OS
Windows 7 ultimate SP1
neta wrote:
BAV0 wrote:
My wonderfull mind wrote:
A multiplayer game can be played using 2 pc's in the same local network or over the Internet through a web server. Wouldn't it be possible to have 2 pc's connect to each other over the internet without a server? 1 PC would act as both a client and the host(~server) and the other would just be a client.



So basically you still have one server laying around :)
That makes this deployment no different than an ordinary webserver-based application.

If you plan to use html5/js, your communication primitives are based on XMLHttpRequest, which is meant for client-server communications. That, by design.

You will need some server-side support, perhaps minimal, from your language of choice.

The client/server PC wouldn't be mine, it would be the pc of the person that starts he game and invites his friends, my server would only be used to serve the html-page and the js.

_________________
(\__/)
(='.'=)
(")_(")


Top  Profile
 PostPost subject: Re: Multiplayer games w/o server        Posted: Tue May 01, 2012 12:58 pm 
Newbie Beta Collector
Newbie Beta Collector
User avatar
Offline

Joined
Tue May 01, 2012 10:56 am

Posts
36

Location
%systemroot%

Favourite OS
6.2.9200
I think it could not possible until you programming a game with other programming languages (e.g. Java, C++, VB).
They provides 'socket connection' between LAN clients or computers on the Internet. But HTML and JS are not.
Note that HTML is not a programming language, it's markup language ;) .


Top  Profile
 PostPost subject: Re: Multiplayer games w/o server        Posted: Tue May 01, 2012 3:13 pm 
Amateur Beta Collector
Amateur Beta Collector
User avatar
Offline

Joined
Sat May 28, 2011 5:06 pm

Posts
147

Location
Mol, belgium

Favourite OS
Windows 7 ultimate SP1
I know that html is not a programming language, first lesson in html: html=Hyper Text Markup Language. ;)
I was hoping something similar to java/c++/vb was possible in javascript, but if it can't be done, it cant be done!
Thanks for your help anyway :D

_________________
(\__/)
(='.'=)
(")_(")


Top  Profile
 PostPost subject: Re: Multiplayer games w/o server        Posted: Wed May 16, 2012 3:09 pm 
Newbie Beta Collector
Newbie Beta Collector
User avatar
Offline

Joined
Fri May 11, 2012 4:36 am

Posts
21

Location
Brazil

Favourite OS
Windows 7
While the new standards are not ready, we have to use a bit of Flash, and recommend that users use a specific browser (for this type of application).

_________________
Wanted: Microsoft Windows 95 OSR 2.5 PT-BR; Microsoft Windows ME Full OEM/Retail PT-BR


Top  Profile
 PostPost subject: Re: Multiplayer games w/o server        Posted: Tue Jun 05, 2012 6:23 am 
Newbie Beta Collector
Newbie Beta Collector
Offline

Joined
Sat Apr 28, 2012 6:45 am

Posts
25
I believe this could theoretically be done with HTML5 and web sockets, it's certainly something I would personally like to look into more as it seems like an incredibly useful feature and could replace Flash in many areas.


Top  Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 




Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

All views expressed in these forums are those of the author and do not necessarily represent the views of the BetaArchive site owner.

Powered by phpBB® Forum Software © phpBB Group

Copyright © 2006-2013

 

Sitemap | XML | RSS