![]() |
Ruatha: PBW Alternate Scripts
So... could you point me to the latest Version of those scripts you had written to use when PBW is down? http://forum.shrapnelgames.com/images/icons/icon7.gif
|
Re: Ruatha: PBW Alternate Scripts
Syre Fyron, will do as soon as I get home from work (Approx 12 hours now).
|
Re: Ruatha: PBW Alternate Scripts
I sent you an email about this also. It would be easier to run my games this way. Please send them on over to me as well.
|
Re: Ruatha: PBW Alternate Scripts
Here comes as requested, if you don't understand what it 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! http://forum.shrapnelgames.com/images/icons/tongue.gif Download all files here: http://pbw.ath.cx/Site.zip This is the readme, also included: [i] 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 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. Ruatha |
Re: Ruatha: PBW Alternate Scripts
Well this sucks... the get turn file script (oddly named upload.php... http://forum.shrapnelgames.com/images/icons/tongue.gif ) is not working for me. I set the gamename in the configuration info to adamant010. I uploaded a file named adamant010_24.zip to the gamefile turn, but it is not reading the file. http://forum.shrapnelgames.com/images/icons/icon9.gif
Also, on your sample site, it seems to be appending ".php" to the end of the turn file zip... [ October 23, 2003, 21:29: Message edited by: Imperator Fyron ] |
Re: Ruatha: PBW Alternate Scripts
I see the problem... http://forum.shrapnelgames.com/images/icons/tongue.gif
In upload.txt, you have this code: // Format and output the file name and link. $dl = "ngc3_".$latest.".zip"; This is BAD BAD BAD, as it forces the game to think that the file name is ngc3... http://forum.shrapnelgames.com/images/icons/tongue.gif Well, that is not the only problem... it is just going to make it impossible to get the right filename for anyone running a game not named "ngc3"... I still can't get it to recognize my file... It is sending gamefile/adamant010 _24.zip to the send_file function... [ October 23, 2003, 21:44: Message edited by: Imperator Fyron ] |
Re: Ruatha: PBW Alternate Scripts
Ok, I have uploaded a fixed Version of the upload.php file for you. http://forum.shrapnelgames.com/images/icons/icon12.gif
http://pbw.spaceempires.net/upload.zip |
Re: Ruatha: PBW Alternate Scripts
Quote:
|
Re: Ruatha: PBW Alternate Scripts
Quote:
|
Re: Ruatha: PBW Alternate Scripts
Updated hopefully fixed Version, thanx Fyron!
The only problem now is timeout errors when uploading plr files for some, migth just be my server, I don't know? You need a HTTP server with PHP capabilty. You can see it working here Newbie Galactic combat 3 PBW Emergency Site Download all files here (v 1.0): Site ver 1.0 This is the readme, also included: [i] 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 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. Ruatha [ October 24, 2003, 05:41: Message edited by: Ruatha ] |
All times are GMT -4. The time now is 03:53 PM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.