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

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $6.00

   







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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old October 25th, 2003, 11:53 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 PBW Emergency Site ver 2 Development

So far joint effort by Fyron and Ruatha, anyone else is welcome:


Here are betafiles:
betafiles
(Latest change: removed $date from deadline.php and moved $timezone from gaminfo.php to deadline.php
(Forgot deadline_check.php at work...)

---- In bold = Exists.
ELSEWHERE (OTHER DIRECTORY)
PASSWORD.CFG - Password for autoturn utility and main admin (Setup new games)

---------------
main Directory (Whatever name)

INDEX.PHP
Start page, choose game if more than one otherwise autodirect to MAIN.PHP

MAIN.PHP Main page where everything happens, display players, empires, uploaded, deadline, news, history.

GETTURN.PHP
Getturn script

PLAYERUPLOAD.PHP
Sendturn Script

DEADLINE_CHECK.PHP
Displays deadline in different timezones, each player can check his timezone.

ADMIN.PHP
Admin script, change player names, empires, e-mails, number of players, admin password, news, turns to backup.

AUTOTURN.EXE
Checks if turns has expired or all has uploaded and then autoexecutes them if needed, updates deadlines, checks all subdirectories for DEADLINE.PHP.
Creates new games by setting up subdirectories and placing the appropriate files there.
Password used to access this program is stored in PASSWORD.CFG
Can be used to customize the sites, i e colours and any page image (Same image all pages).
Program is trayable.


-------------------
Game Directories (Name = Gamename, subdirectories)

GAMEINFO.PHP
Used to store game variables;
// Name of savegame file, minus .gam.
$gamename = "name";
// Full title of the game.
$title = "title";
// Info on the host.
$host = "name";
$hostmail = "email";
// URL of alternate forum. If you do not have one to use, just leave the default pointing to Intel Forums.
$forum = "http://www.shrapnelgames.com/cgi-bin/ultimatebb.cgi?ubb=forum;f=23";
// Number of turns to keep backups of.
$numbackups = "1";
// Player information. Each player has 3 variables, name, email and empire. Do not worry about filling in info for players that do not exist (such as playername10 if you have only 9 players. The numplayers variable keeps track of the number of players in the game, so extra player info is ignored.
$numplayers = "13";

$playername1 = "SN";
$playermail1 = "email";
$playerempire1 = "empire name";
(repeat - to 20 players)

DEADLINE.PHP
File defining deadline and turn type (Manual, all uploaded and auto), Used in both PHP script and in AUTOTURN.EXE.
Date stored in Central European time, altered to the set timezone when displayed in each game.
// Date of the deadline.
$deadline_year = "";
$deadline_month = "";
$deadline_day = "";
$deadline_hour = "";
$deadline_minute = "";
// Default timezone.
$timezone = "";

TURNFILES
Directory for player turnfiles (PLR)

GAMEFILE
Directory for Gamefiles (ZIP)

BACKUP
Zipped old PLR and GAM files

---------

[ October 25, 2003, 11:00: Message edited by: Ruatha ]
Reply With Quote
 

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 04:41 PM.


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