|
|
|
|
|
October 24th, 2003, 07:13 PM
|
|
Major General
|
|
Join Date: May 2002
Location: Linghem, �sterg�tland, Sweden
Posts: 2,255
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: Ruatha: PBW Alternate Scripts
Quote:
Originally posted by geoschmo:
Ruatha, fyi I am having the same problem with getting the game file on mine.
http://pbw.spaceempires.net/geoschmo/survivor2/
I got around it by modifing the index.php to look for the file directly instead of pulling up the upload.php file. But that's not a good permanent fix because I will have to modify the index file every turn.
Thanks so much for making these files available by the way. It's a big help.
What are the chances of adding a button to the index that will pull up a new email box and fill in all the player emails? It would make notifying them of a new turn very convienent. I guess you'd just need something to parse the player text file and populate a mailto command. Anyway, just a suggestion.
Geoschmo
|
It's an annoying BAD bug that needs to fixed fast, to bad I'm at work the next 25 hours (will still look at it some though...)
The mail button was a good idea, will do!
EDIT: Have included a crude "mail all" function, but I have nowhere to upload it (Haven't started the FTP server at home since the Last reformatation!, can't find the upload function here at the forum!)
[ October 24, 2003, 18:38: Message edited by: Ruatha ]
|
October 24th, 2003, 07:52 PM
|
|
Major General
|
|
Join Date: May 2002
Location: Linghem, �sterg�tland, Sweden
Posts: 2,255
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: Ruatha: PBW Alternate Scripts
A temporary fix one can make is to change the link from "upload.php" to the "gamefile" directory, ugly but it works while we fix it.
Have a Version of the index.php that does this aswell, but- have no way of testing it right now and nowhere to upload it.
|
October 25th, 2003, 12:05 AM
|
|
Shrapnel Fanatic
|
|
Join Date: Jul 2001
Location: Southern CA, USA
Posts: 18,394
Thanks: 0
Thanked 12 Times in 10 Posts
|
|
Re: Ruatha: PBW Alternate Scripts
I added a news.html file that the host can edit to post up some nice news info. Just put this in the folder over the old index.php.
http://pbw.spaceempires.net/newsfile.zip
Have you considered making use of a database? It would greatly simplify some things.
[ October 24, 2003, 23:10: Message edited by: Imperator Fyron ]
|
October 25th, 2003, 12:13 AM
|
|
Major General
|
|
Join Date: May 2002
Location: Linghem, �sterg�tland, Sweden
Posts: 2,255
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: Ruatha: PBW Alternate Scripts
How stupid can I be allowed to be???
Instead of making PHP start the download I can make PHP make a dynamic HREF link to the newest gamefile to the "get turn" button, it's so easy!!
Why didn't I see it?
I've made the script but can't upload it until I get home from work tomorrow, will incorporate your News section then Fyron.
This means that Upload.php is scrapped totally and incorporated into index.php.
Databases, have never used any, always made my own.
I'll make PHP files to include variables instead of txt files next though.
[ October 24, 2003, 23:24: Message edited by: Ruatha ]
|
October 25th, 2003, 12:20 AM
|
|
Shrapnel Fanatic
|
|
Join Date: Jul 2001
Location: Southern CA, USA
Posts: 18,394
Thanks: 0
Thanked 12 Times in 10 Posts
|
|
Re: Ruatha: PBW Alternate Scripts
I started on some of the php for the newer Version. I took the liberty of renaming some of the variables to have better names.
http://pbw.spaceempires.net/betafiles.zip
So far, I have a gameinfo.php and deadline.php. I did not put news in there, as I would rather see news handled via its own HTML file included in main.php.
Edit:
Email them to me and I can post them.
[ October 24, 2003, 23:28: Message edited by: Imperator Fyron ]
|
October 25th, 2003, 12:26 AM
|
|
Major General
|
|
Join Date: May 2002
Location: Linghem, �sterg�tland, Sweden
Posts: 2,255
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: Ruatha: PBW Alternate Scripts
Ok, the only new file is the index.php
Will mail it to you as soon as the patient I'm waiting for have come and gone.
(Will have to go to another computer in another room)
Will download the gameinfo and work out of that, thanx.
It's good that you change the variables, I'm usually sloppy about the varaible names.
This will be a total rewrite of the site so it's good to start fresh.
(my variables usually ends up having names like "trash1, trash2, trash3" etc but in swedish....)
[ October 24, 2003, 23:30: Message edited by: Ruatha ]
|
October 25th, 2003, 12:29 AM
|
|
Shrapnel Fanatic
|
|
Join Date: Jul 2001
Location: Southern CA, USA
Posts: 18,394
Thanks: 0
Thanked 12 Times in 10 Posts
|
|
Re: Ruatha: PBW Alternate Scripts
Added deadline.php, though I have no idea what you wanted with "Date in Central European time, altered to the set timezone when displayed in each game."...
|
October 25th, 2003, 12:33 AM
|
|
Major General
|
|
Join Date: May 2002
Location: Linghem, �sterg�tland, Sweden
Posts: 2,255
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: Ruatha: PBW Alternate Scripts
It just means that all deadlines will be stored in the same timezone, doesn't matter wich.
But when it is displayed on the web page it is changed to the timezone that the host has defined for that particular game (add or subtract hours)
.
The player will be able to press a button to have it converted to all the other time zones, to see his/hers local deadline time.
EDIT: Should the design be similar to PBW or should it be radically different?
EDIT2:
I really like the variable files. I'm thinking of counting the player names until the first "SN" name and checking that against $numplayers.
In deadline.php I'll change $date to $timezone
Edit 3.5: Mail is on the way.
Won't be able to check this site or mail for some 6-7 hours, work work work...
[ October 25, 2003, 00:04: Message edited by: Ruatha ]
|
October 25th, 2003, 01:01 AM
|
|
Shrapnel Fanatic
|
|
Join Date: Jul 2001
Location: Southern CA, USA
Posts: 18,394
Thanks: 0
Thanked 12 Times in 10 Posts
|
|
Re: Ruatha: PBW Alternate Scripts
I am working on and have uploaded a main.php (in that same betafiles.zip). But, I am having some problems with it... check out this test site to see what they are :
http://pbw.spaceempires.net/test/main.php
http://pbw.spaceempires.net/betafiles.zip
I am attempting to move all the plr file checking to a new file called "playerupload.php" to keep main uncluttered.
[ October 25, 2003, 00:03: Message edited by: Imperator Fyron ]
|
October 25th, 2003, 04:16 AM
|
|
Major General
|
|
Join Date: May 2002
Location: Linghem, �sterg�tland, Sweden
Posts: 2,255
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: Ruatha: PBW Alternate Scripts
I've made a deadline_check.php that checks the deadline.php in the $game directory against current time, displays this and what timezone is being used (So far only what the variable $timezone is, up to the host to define it so far) and a countdown in hours.
Also a link to a world timezone web page (External).
This is meant to be included in the Main.php
INCLUDE "deadline_check.php"
|
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
|
|
|
|
|