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

This Month's Specials

Air Command 3.0- Save $12.00
War Plan Pacific- Save $7.00

   







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

Reply
 
Thread Tools Display Modes
  #1  
Old October 25th, 2003, 12:13 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: 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 ]
Reply With Quote
  #2  
Old October 25th, 2003, 12:20 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: 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 ]
__________________
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
  #3  
Old October 25th, 2003, 12:26 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: 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 ]
Reply With Quote
  #4  
Old October 25th, 2003, 12:29 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: 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."...
__________________
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 October 25th, 2003, 12:33 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: 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 ]
Reply With Quote
  #6  
Old October 25th, 2003, 01:01 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: 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 ]
__________________
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 October 25th, 2003, 04:16 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: 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"
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 05:08 AM.


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