A few thoughts on creating a workable multiplayer for BSF

Discuss all things Battleships Forever that aren't Ships and Shipmaker - Missions, Development, etc.!

Moderators: th15, Moderators

Tsakara
Captain
Captain
Posts: 496
Joined: Thu Jan 03, 2008 1:25 pm
Location: The desert of the real

A few thoughts on creating a workable multiplayer for BSF

Post by Tsakara »

Hammachi, is a program developed by pirates for players who illegally downloaded games and want to play online. It forges a link between two computers, basically tricking the computer into think its in a LAN network with the other.
This could be used in BSF
the problem I see chiefly with a multiplayer BSF mostly stems from the server issue (ie: there are none)
But with Hammachi, we could get around that whole bit.

How would multiplayer be implemented?
well it could go a number of ways but I think the best would just be a duel sandbox, where both players can import ships and things, this is extremely open to abuse, so it would require both players to have a sense of honor and the like.
Eventually I could see multiplayer encounters being worked in, but I figure, one step at a time.

Idk, I might be completely off base, its 3 am. I can't think straight.
Aaganrmu
Lieutenant Commander
Lieutenant Commander
Posts: 80
Joined: Tue Dec 23, 2008 12:36 am
Location: Holland

Post by Aaganrmu »

Hammachi won't be too much help, I think. Instead of making a Hammachi connection, you can as well just give out your IP and make a connection that way. It'll probably be less of a bother.

As for the server: it isn't too hard to make one. A lot of (freeware) games use a setup like this:

The only thing needed is a small script which keeps a list of hosts online. When someone hosts a game, his IP is added to the list. When someone wants to play online, the game downloads that list, and shows a list of hosts. The player can then join a game from the list. He connects directly to the host, and the server has served it's function.

As for the multiplayer itself: have you ever tried making anything multiplayer? It isn't just a simple add-on to an existing game. All the programming has to be done with multiplayer in mind from the beginning, or it's going to suck big time. So I guess we won't be seeing multiplayer soon, unless BSF has already been designed with that in mind.

But it'd be fun! Sandbox battles ftw :)
AnnihilatorX
Commander
Commander
Posts: 116
Joined: Sat Mar 01, 2008 3:49 am

Post by AnnihilatorX »

Hamachi or not is not the main problem. People with proper firewall config doesn't even need to use Hamachi, they can just use regular IP.

Does GM even support TCP/IP or UDP?
User avatar
Arcalane
Pseudofeline Overlord
Posts: 4034
Joined: Thu Sep 13, 2007 10:37 am
Location: UK

Post by Arcalane »

1) I don't recall Hamachi being made by pirates of all people. Unless they're masquerading it as a completely legitimate revenue-generating business operation.

I suggest you check your sources.

2) Regardless of Hamachi, there's still the issue of actually making GM support multiplayer. Don't even think about suggesting how to start doing it, because I doubt you'll recieve anything but "you're a fucking idiot and know nothing about GM" from Kaelis. :P
  /l、
゙(゚、 。 7
 l、゙ ~ヽ
 じしf_, )ノ
Hypothetical Wisdom
Commander
Commander
Posts: 125
Joined: Thu Jan 29, 2009 5:06 am

Post by Hypothetical Wisdom »

Arcalane wrote:Don't even think about suggesting how to start doing it, because I doubt you'll recieve anything but "you're a fucking idiot and know nothing about GM" from Kaelis.
I made that mistake once, too :lol:
You might also get that kind of response from Seraph.
Will work for kewl sig/av

[i]There are only 10 kinds of people in the world, those who understand binary and those who don't.[/i]
Kaelis
Moderator
Posts: 1590
Joined: Fri Dec 14, 2007 4:46 am

Post by Kaelis »

Hamachi won't solve anything, because its not a solution to specific problem or difficulty that is needed. Its just that multiplayer takes a lot time, and BSF isnt really coded towards supporting it.
Arcalane wrote:Don't even think about suggesting how to start doing it, because I doubt you'll recieve anything but "you're a fucking idiot and know nothing about GM" from Kaelis. :P
Well at least im doing it in a mostly polite way!

But yeah, hes right. Unless you have deep knowledge of BSF source and GM in general, you can't really help.



Hypothetical Wisdom, FFS, will you stop spamming?
Draco18s
Lieutenant Commander
Lieutenant Commander
Posts: 73
Joined: Thu Jan 22, 2009 3:19 am

Post by Draco18s »

Arcalane wrote:1) I don't recall Hamachi being made by pirates of all people. Unless they're masquerading it as a completely legitimate revenue-generating business operation.
VPN software (Virtual Private Network). Which is what Hamachi does, actually, it establishes a VPN with the connected computers. It just with a few other perks over other VPN softwares (such as not needing an existing LAN to connect with).
LukeRM
Commander
Commander
Posts: 105
Joined: Sun Aug 03, 2008 2:01 pm
Location: Adding engines on mah' spacestation.
Contact:

Post by LukeRM »

Multiplayer will be less of a problem when the game engine is not GameMaker. GameMaker also has the performance problem, so we have to wait 'till the devs recode BSF (or code BSF2) in a real engine. (Yay, no more lag!)

Be PATIENT.
[url=http://rm51-place.at.ua/]Some random site I made.[/url]

[url=http://www.wyrdysm.com/phpBB2/viewtopic.php?t=3301][img]http://i458.photobucket.com/albums/qq306/LukeRM/griatianflet.png[/img][/url][url=http://www.wyrdysm.com/phpBB2/viewtopic.php?p=88508#88508][img]http://i458.photobucket.com/albums/qq306/LukeRM/databanks.png[/img][/url]
Tsakara
Captain
Captain
Posts: 496
Joined: Thu Jan 03, 2008 1:25 pm
Location: The desert of the real

Post by Tsakara »

I had an interesting thought.
what if, instead of creating an 'ingame' multiplayer, you could find a way to see one players game from the others computer in real time, like a webcam for your screen.
Idk if such a program exists but if it does then you could at least sorta get the idea of multiplayer.
Squishy
Rear Admiral
Rear Admiral
Posts: 852
Joined: Mon Dec 03, 2007 4:32 am

Post by Squishy »

That's more like spectating rather than multiplayer.


There are programs that stream the state of a screen to others, but I doubt anyone would bother with that trouble just to watch someone else play with themselves.
Tsakara
Captain
Captain
Posts: 496
Joined: Thu Jan 03, 2008 1:25 pm
Location: The desert of the real

Post by Tsakara »

well it could help for tourneys, that way all the tourney ppl could watch the battle.
AidanAdv
Commodore
Commodore
Posts: 583
Joined: Fri Feb 15, 2008 6:49 am
Location: The Fields of Justice

Post by AidanAdv »

Tsakara wrote:well it could help for tourneys, that way all the tourney ppl could watch the battle.
Why would we need that when people running tournaments can and have just posted videos of the battles on Youtube?
The walls have eyes: the shadows we throw are the shadows we try to throw off.
Slayer0019
Commodore
Commodore
Posts: 535
Joined: Mon Jul 21, 2008 1:04 pm
Location: CT, America

Post by Slayer0019 »

If multiplayer ever gets up and running (big if, but I have faith in our developers), all I would ask for is something very similar to skirmish mode, where you get say 12 points, buy your stock ships, and have duels. I don't think we really need anything too in depth.
Got Steam?
Join the official BSF Steam group today!
Sign up [url=http://steamcommunity.com/groups/wyrdysm]here![/url]

[img]http://i192.photobucket.com/albums/z148/JohnDG/sig-1.png[/img]
User avatar
Arcalane
Pseudofeline Overlord
Posts: 4034
Joined: Thu Sep 13, 2007 10:37 am
Location: UK

Post by Arcalane »

Slayer0019 wrote:If multiplayer ever gets up and running (big if, but I have faith in our developers).
Hate to burst your bubble but MP for BSF1 is impractical and is incredibly unlikely. This is not a case of "th15 said it's unlikely but we did it anyway", it's a case of "it really is very unlikely". Save those wishes for BSF2.
Slayer0019 wrote:all I would ask for is something very similar to skirmish mode, where you get say 12 points, buy your stock ships, and have duels. I don't think we really need anything too in depth.
That'd be bloody boring though. Oh look, another unexciting stock ship duel. People would want to face their custom ships off against each other over the 'net, and if you don't let them do that, it could end up being worse than having no MP at all.
  /l、
゙(゚、 。 7
 l、゙ ~ヽ
 じしf_, )ノ
Slayer0019
Commodore
Commodore
Posts: 535
Joined: Mon Jul 21, 2008 1:04 pm
Location: CT, America

Post by Slayer0019 »

If multiplayer never goes live, I won't be offset. Shipbuilding will keep me occupied.

And stock duels really would get boring. But given the choice between that and no multiplayer, I'd take that.
Got Steam?
Join the official BSF Steam group today!
Sign up [url=http://steamcommunity.com/groups/wyrdysm]here![/url]

[img]http://i192.photobucket.com/albums/z148/JohnDG/sig-1.png[/img]
Locked