|
|
|
 |

August 15th, 2003, 06:42 PM
|
 |
Major General
|
|
Join Date: May 2002
Location: Linghem, Östergötland, Sweden
Posts: 2,255
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
PBW Emergency game sites server files
[ August 15, 2003, 19:55: Message edited by: Ruatha ]
|

August 15th, 2003, 07:20 PM
|
 |
Major General
|
|
Join Date: May 2002
Location: Linghem, Östergötland, Sweden
Posts: 2,255
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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 ]
|

August 16th, 2003, 12:08 AM
|
 |
Second Lieutenant
|
|
Join Date: Sep 2001
Location: Vancouver WA
Posts: 407
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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?
|

August 16th, 2003, 12:10 AM
|
 |
Shrapnel Fanatic
|
|
Join Date: Jul 2001
Location: Southern CA, USA
Posts: 18,394
Thanks: 0
Thanked 12 Times in 10 Posts
|
|
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 ]
|

August 16th, 2003, 12:27 AM
|
 |
Second Lieutenant
|
|
Join Date: Sep 2001
Location: Vancouver WA
Posts: 407
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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?
|

August 16th, 2003, 12:32 AM
|
 |
Shrapnel Fanatic
|
|
Join Date: Jul 2001
Location: Southern CA, USA
Posts: 18,394
Thanks: 0
Thanked 12 Times in 10 Posts
|
|
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 ]
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is On
|
|
|
|
|