.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   Space Empires: IV & V (http://forum.shrapnelgames.com/forumdisplay.php?f=20)
-   -   Ruatha: PBW Alternate Scripts (http://forum.shrapnelgames.com/showthread.php?t=10603)

Ruatha October 24th, 2003 07:13 PM

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

<font size="2" face="sans-serif, arial, verdana">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 ]

Ruatha October 24th, 2003 07:52 PM

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.

Fyron October 25th, 2003 12:05 AM

Re: Ruatha: PBW Alternate Scripts
 
I added a news.html file that the host can edit to post up some nice news info. http://forum.shrapnelgames.com/images/icons/icon12.gif 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. http://forum.shrapnelgames.com/images/icons/icon12.gif

[ October 24, 2003, 23:10: Message edited by: Imperator Fyron ]

Ruatha October 25th, 2003 12:13 AM

Re: Ruatha: PBW Alternate Scripts
 
How stupid can I be allowed to be??? http://forum.shrapnelgames.com/images/icons/icon8.gif

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 ]

Fyron October 25th, 2003 12:20 AM

Re: Ruatha: PBW Alternate Scripts
 
I started on some of the php for the newer Version. http://forum.shrapnelgames.com/images/icons/icon12.gif 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. http://forum.shrapnelgames.com/images/icons/icon12.gif

[ October 24, 2003, 23:28: Message edited by: Imperator Fyron ]

Ruatha October 25th, 2003 12:26 AM

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 ]

Fyron October 25th, 2003 12:29 AM

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."...

Ruatha October 25th, 2003 12:33 AM

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 ]

Fyron October 25th, 2003 01:01 AM

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://forum.shrapnelgames.com/images/icons/icon12.gif :

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 ]

Ruatha October 25th, 2003 04:16 AM

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"


All times are GMT -4. The time now is 10:40 PM.

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