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

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $5.00

   







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

Reply
 
Thread Tools Display Modes
  #1  
Old August 15th, 2003, 06:42 PM
Ruatha's Avatar

Ruatha Ruatha is offline
Major General
 
Join Date: May 2002
Location: Linghem, Östergötland, Sweden
Posts: 2,255
Thanks: 0
Thanked 0 Times in 0 Posts
Ruatha is on a distinguished road
Default PBW Emergency game sites server files



[ August 15, 2003, 19:55: Message edited by: Ruatha ]
Reply With Quote
  #2  
Old August 15th, 2003, 07:20 PM
Ruatha's Avatar

Ruatha Ruatha is offline
Major General
 
Join Date: May 2002
Location: Linghem, Östergötland, Sweden
Posts: 2,255
Thanks: 0
Thanked 0 Times in 0 Posts
Ruatha is on a distinguished road
Default Re: PBW Emergency game sites server files

Here comes as requested, if you don't understand what the thread is about just ignore it!

You need a HTTP server with PHP capabilty.
You can see it working here
Newbie Galactic combat 3 PBW Emergency Site

Thanx to Fyron for dragging me into PHP scripting, screaming and kicking all the way though!

Download all files here:
http://forum.shrapnelgames.com/newup...1060967939.zip

This is the readme, also included:

You need a http server capable of handling php files.
The starting file is index.php
You can set up as many sites as you wish but each site needs their own directory ith a gamefile and turnfiles subdirectories.
You can alter all data in simple textfiles, the configuration.txt set up is before the site is turned on and then shouldn't have to be altered anymore.
The playerdata.txt needs to be altered when players drop and are replaced.
The deadline.txt needs to be alterd when the deadline is updated.
Hopefully I'll fix a better deadline handler in the future, and a progress bar for the uplaod turnfile, that script has been giving some players troubles, I'll look into that (Not working for some).

The gamefile that lies in the GAMEFILE directory must be named in PBW standard,
that is:
Gamename_turnnumber.zip
and the gamename the same as in configuration.txt

i e:
NGC3_57.zip

The uploaded turnfiles in TURNFILES directory should be named accrdingly in PBW standard:
Gamename_playernumber(4 numbers).plr

i e:
ngc3_0001.plr

These are the textfiles that needs to be altered:

#1. Configuration.txt:
Game name
Site name
Host name
Host e-mail
Info line

i e:
NGC3
Newbie Galactic Combat 3 PBW Emergency Site
Ruatha
james@visit.se
Made 2003 by James Johansson aka Ruatha with Wordpad.

#2. Playerdata.txt :
Number of players
Player1
Player1 e-mail
Player1 empire name

i e:
2
Ruatha
james@visit.se
Swedish Democracy
James
james@storuman.nu
Storuman Republic

#3. Deadline.txt
year
Month
Day
hour

i e:
2003
8
22
20

------------
Good luck.

James aka Ruatha


[ August 15, 2003, 18:21: Message edited by: Ruatha ]
Reply With Quote
  #3  
Old August 16th, 2003, 12:08 AM
CNCRaymond's Avatar

CNCRaymond CNCRaymond is offline
Second Lieutenant
 
Join Date: Sep 2001
Location: Vancouver WA
Posts: 407
Thanks: 0
Thanked 0 Times in 0 Posts
CNCRaymond is on a distinguished road
Default Re: PBW Emergency game sites server files

Thanks Ruatha for doing this, I have done as you said, and for some reason I get this error when testing the upload ability.

Warning: Unable to create 'turnfiles/ssff2_0001.plr': Permission denied in /home/httpd/vhosts/astmod.com/httpdocs/ssff2/turnfile.php on line 69
upload failed!

Any idea what might be causing it?
__________________
Developing the [i]Atrocities Star Trek Mod</i]
Reply With Quote
  #4  
Old August 16th, 2003, 12:10 AM
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: PBW Emergency game sites server files

You might need to fiddle with the chmod permissions of the PHP files and folders (esp. for being able to upload files to the server). The folder where the plr files get uploaded to will need 777 permissions.

[ August 15, 2003, 23:11: Message edited by: Imperator Fyron ]
__________________
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
  #5  
Old August 16th, 2003, 12:27 AM
CNCRaymond's Avatar

CNCRaymond CNCRaymond is offline
Second Lieutenant
 
Join Date: Sep 2001
Location: Vancouver WA
Posts: 407
Thanks: 0
Thanked 0 Times in 0 Posts
CNCRaymond is on a distinguished road
Default Re: PBW Emergency game sites server files

I will check this. Right now there is only the
Read & Write, Read Only, Write, etc options, with

Owner
Group
Public

Any suggestions?
__________________
Developing the [i]Atrocities Star Trek Mod</i]
Reply With Quote
  #6  
Old August 16th, 2003, 12:32 AM
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: PBW Emergency game sites server files

777 means that read, write and execute are on for all 3 types of Users. The folder for uploads needs to have read, write and execute access turned on for all 3 types of Users, or 777 chmod permissions.

What program are you using to see these? Most FTP programs provide an easy way to set the chmod permissions.

[ August 15, 2003, 23:33: Message edited by: Imperator Fyron ]
__________________
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
  #7  
Old August 16th, 2003, 12:36 AM
CNCRaymond's Avatar

CNCRaymond CNCRaymond is offline
Second Lieutenant
 
Join Date: Sep 2001
Location: Vancouver WA
Posts: 407
Thanks: 0
Thanked 0 Times in 0 Posts
CNCRaymond is on a distinguished road
Default Re: PBW Emergency game sites server files

That did it, and thank you very much. I can see why PCP recommends you as one of the more knowledgeable folks on this site.

My question now is what happens? The file is uploaded, IE a test, how do I receive it for processing?

[ August 15, 2003, 23:42: Message edited by: CNCRaymond ]
__________________
Developing the [i]Atrocities Star Trek Mod</i]
Reply With Quote
  #8  
Old August 16th, 2003, 12:46 AM
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: PBW Emergency game sites server files

I think you just have to connect to the folder and download all of the plr files manually.
__________________
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
  #9  
Old August 16th, 2003, 08:56 AM
Ruatha's Avatar

Ruatha Ruatha is offline
Major General
 
Join Date: May 2002
Location: Linghem, Östergötland, Sweden
Posts: 2,255
Thanks: 0
Thanked 0 Times in 0 Posts
Ruatha is on a distinguished road
Default Re: PBW Emergency game sites server files

Yep, tehre is no automatic functions, the purpose of the site is only to ease the transmission of files for the player.
I run it at home on my PC so when all files are here I just execute a turn manually and empty the turnfiles folder, replace the gamefile and update the deadline, mail a massmail to all players with the gamefile.
So it's still standard PBEM but with a HTML page as alternative.
Reply With Quote
  #10  
Old August 16th, 2003, 09:03 AM
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: PBW Emergency game sites server files

Ruatha, you need to update the link to the Newbie FAQ in your sig to the new thread number.
__________________
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
Reply

Bookmarks

Thread Tools
Display Modes

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 03:47 PM.


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