.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Air Assault Task Force- Save $8.00
World Supremacy- Save $10.00

   







Go Back   .com.unity Forums > Shrapnel Community > Space Empires: IV & V

Reply
 
Thread Tools Display Modes
  #1  
Old November 8th, 2006, 07:38 PM
Fyron's Avatar

Fyron Fyron is offline
Shrapnel Fanatic
 
Join Date: Jul 2001
Location: Southern CA, USA
Posts: 18,394
Thanks: 0
Thanked 12 Times in 10 Posts
Fyron is an unknown quantity at this point
Default Play by P2P

With the massive size of combat replays (25 MB, 75 MB...), PBEM with SE5 is a bit inconvenient to do (not to mention impossible with many email providers to use 75 MB email attachments). Thus, the only way to do it is to manually transfer the files, such as via an FTP server.

But, there is a better way, especially for larger numbers of players in a game: Bit Torrent! Some BT clients and trackers use RSS feeds for automation these days. Azureus' embedded tracker, for example, publishes an RSS feed. Thus, all the host has to do is create a torrent for the turn, and all the players will automatically get the savegame files through RSS. It will work much better than the SE4 TCP/IP system (and probably SE5) because the upload bandwidth of the players will be used to help spread the savegame files.

So, the host of the game needs to run Azureus (and enable the embedded tracker). I'd recommend disallowing the "enable external torrents" option.

Each time he processes the turn, he needs to create a torrent of the savegame files (including those pesky combat logs), then "host" the torrent in Azureus. This is a simple process using the built-in torrent creation tool. You create the torrent using the New Torrent wizard in the file menu. Once the torrent is created, open it in Azureus and start it. Then, right click on the torrent and click on "Host" to host it on the embedded tracker.

It would be a good idea for the host to register a free dynamic domain redirection to avoid the hassle of IP numbers (such as dyndns or no-ip).

Torrent file names should be in a standardized format, such as "savegame.turnnumber". For example, you might have turn 34 of the game "lowtech", so you would create the torrent and name it "lowtech.34".

Each player needs to use a Bit Torrent client with an embedded RSS reader. I will use uTorrent for illustration, because I am most familiar with it. To set up automated retrieval of torrented turns:

1) Go into the RSS Downloader configuration (there is a RSS-like button in the toolbar).

2) Add the feed on the Feeds tab. It will be something like:

FyronSE5|http://kazharii.no-ip.com:6969/rss_feed.xml

3) Create a new Favorite for the savegame.

3a) In the Filter box, put the name of the savegame (eg: lowtech).
3b) Put the location of SE5's savegame folder in the Location box.
3c) Choose the appropriate feed (eg: FyronSE5).
3d) Possibly set a label for the favorite in the label box, such as "SE5 Savegames", or maybe the name of the savegame, whatever you like.

4) Go to Releases tab and click "update now". Check if you have the savegame files listed (assuming the game has started already; otherwise wait til the game has started).

5) Watch as new savegame turns are automatically downloaded!

External Links:

Azureus
uTorrent
dyndns
no-ip
__________________
It's not whether you win or lose that counts: it's how much pain you inflict along the way.
--- SpaceEmpires.net --- RSS --- SEnet ModWorks --- SEIV Modding 101 Tutorial
--- Join us in the #SpaceEmpires IRC channel on the Freenode IRC network.
--- Due to restrictively low sig limits, you must visit this link to view the rest of my signature.
Reply With Quote
  #2  
Old November 8th, 2006, 07:53 PM
Sivran's Avatar

Sivran Sivran is offline
Sergeant
 
Join Date: Dec 2003
Posts: 251
Thanks: 0
Thanked 0 Times in 0 Posts
Sivran is on a distinguished road
Default Re: Play by P2P

Or perhaps more simply, emule can do the same thing, easier.

Someone only need run an ed2k server (not even necessary really) and publish ed2k links for the savegame file(s). Anyone with emule could then click the link (or copy to clipboard) and emule would take over from there, grabbing the file from as many sources have even a piece of it and dropping it whereever the user specifies, like the \savegame directory, for example.

The torrent I think is actually more complicated.

Caveat: ANY p2p works better with its appropriate ports forwarded. Some users may not be able to do this for various reasons.
Reply With Quote
  #3  
Old November 8th, 2006, 09:17 PM
Fyron's Avatar

Fyron Fyron is offline
Shrapnel Fanatic
 
Join Date: Jul 2001
Location: Southern CA, USA
Posts: 18,394
Thanks: 0
Thanked 12 Times in 10 Posts
Fyron is an unknown quantity at this point
Default Re: Play by P2P

I don't see how running Azureus is any more complicated than emule. It has a tracker page, people can go to it to get the torrents if they don't want to try to set up the RSS reader. For the players, it is literally identical. For the host, it is about equivalent, I think.
__________________
It's not whether you win or lose that counts: it's how much pain you inflict along the way.
--- SpaceEmpires.net --- RSS --- SEnet ModWorks --- SEIV Modding 101 Tutorial
--- Join us in the #SpaceEmpires IRC channel on the Freenode IRC network.
--- Due to restrictively low sig limits, you must visit this link to view the rest of my signature.
Reply With Quote
  #4  
Old November 8th, 2006, 09:26 PM

Baron Munchausen Baron Munchausen is offline
General
 
Join Date: Aug 2000
Location: Ohio, USA
Posts: 4,323
Thanks: 0
Thanked 0 Times in 0 Posts
Baron Munchausen is on a distinguished road
Default Re: Play by P2P

This will still be a problem for people who don't have broadband. How about we pester MM to reduce the size of combat replay files?
Reply With Quote
  #5  
Old November 8th, 2006, 09:30 PM
Fyron's Avatar

Fyron Fyron is offline
Shrapnel Fanatic
 
Join Date: Jul 2001
Location: Southern CA, USA
Posts: 18,394
Thanks: 0
Thanked 12 Times in 10 Posts
Fyron is an unknown quantity at this point
Default Re: Play by P2P

We did in the chat, and he said he'd contemplate ways of doing so.
__________________
It's not whether you win or lose that counts: it's how much pain you inflict along the way.
--- SpaceEmpires.net --- RSS --- SEnet ModWorks --- SEIV Modding 101 Tutorial
--- Join us in the #SpaceEmpires IRC channel on the Freenode IRC network.
--- Due to restrictively low sig limits, you must visit this link to view the rest of my signature.
Reply With Quote
  #6  
Old November 9th, 2006, 01:01 AM

parabolize parabolize is offline
Second Lieutenant
 
Join Date: Aug 2003
Posts: 412
Thanks: 0
Thanked 0 Times in 0 Posts
parabolize is on a distinguished road
Default Re: Play by P2P

Compressing the cmb files more will help. The cmb file could also be chopped up into individual player files. But even if the cmb files get dropped to 1/10 the size users without broadband are still screwed.
__________________
King of the Hill League
Reply With Quote
  #7  
Old November 9th, 2006, 04:49 AM

pujal pujal is offline
Private
 
Join Date: Oct 2006
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
pujal is on a distinguished road
Default Re: Play by P2P

All these ideas for mp floating around yet no one seems to want to host a game using them. Im really eager to try a mp game, but alas, where are they?

I guess ill try your azereus idea, since I use that.
Reply With Quote
  #8  
Old November 9th, 2006, 11:11 PM
capnq's Avatar

capnq capnq is offline
General
 
Join Date: Feb 2001
Location: Pittsburgh, PA, USA
Posts: 3,070
Thanks: 13
Thanked 9 Times in 8 Posts
capnq is on a distinguished road
Default Re: Play by P2P

Quote:
Baron Munchausen said:
This will still be a problem for people who don't have broadband.
I thought the main purpose of torrents was to allow people without broadband to download large files. I couldn't have downloaded the Gold-to-Deluxe patch without it.
__________________
Cap'n Q

"Good morning, Pooh Bear," said Eeyore gloomily. "If it is a good morning," he said. "Which I doubt," said he.
Reply With Quote
  #9  
Old November 10th, 2006, 12:08 AM

Baron Munchausen Baron Munchausen is offline
General
 
Join Date: Aug 2000
Location: Ohio, USA
Posts: 4,323
Thanks: 0
Thanked 0 Times in 0 Posts
Baron Munchausen is on a distinguished road
Default Re: Play by P2P

With files that are not time sensitive this works fine. It doesn't much matter if I get a copy of the "Loose Change" 911 Documentary today or next week. No one is waiting for me to see it and respond. Turn files for an ongoing game is another matter entirely. Even with the ability to resume large files you don't get any faster performance than your modem can produce. 75 megabytes means a minimum of about 4 hours download time (with optimum performance) on a 56k link. With a '1 turn per day' game this might be manageable -- if you don't mind your line being tied up 4 hours a day. But any game moving faster than that is likely to be a problem. Playing multiple '1 turn per day' games is also unlikely to be possible, while it was before with SE IV.
Reply With Quote
  #10  
Old November 10th, 2006, 01:08 AM

shinigami shinigami is offline
Corporal
 
Join Date: Mar 2006
Posts: 117
Thanks: 0
Thanked 0 Times in 0 Posts
shinigami is on a distinguished road
Default Re: Play by P2P

Simply put, multiplayer is not practical for most people until the filesize comes waaaay down. Hopefully, MM will follow through on what was said about it in the chat.
Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 05:53 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.