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

This Month's Specials

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

   







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

Reply
 
Thread Tools Display Modes
  #1  
Old October 27th, 2003, 01:12 PM
geoschmo's Avatar

geoschmo geoschmo is offline
National Security Advisor
 
Join Date: Jan 2001
Location: Ohio
Posts: 8,450
Thanks: 0
Thanked 4 Times in 1 Post
geoschmo is on a distinguished road
Default Re: PBW Emergency Site files v1.51 Finished and fixed.

Adding the Yes to the config file did it. I got the email. The only odd thing is that the email appeared to come from geoschmo @ s2.ebart.net. Is there a way I can change that? If I can't it's not a big deal. just looks odd.

The only other things I'd really like to see then are two things I think you already have planned. One would be a button to download all the .plr files at once for the host. The other would be a button to upload the new gamefile.zip. This button should remove the current .plr files which will reset the list for the players, replace the gamefile, and email all the players a message that there is a new turn. I think you were planning on doing this from an admin page or something? These two buttons would eliminate the need for my ftp program after I have the game all setup.

Geoschmo
__________________
I used to be somebody but now I am somebody else
Who I'll be tomorrow is anybody's guess
Reply With Quote
  #2  
Old October 27th, 2003, 01:39 PM
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: PBW Emergency Site files v1.51 Finished and fixed.

Sure, I can set the sender to something generic.

Working some on a admin page:
Progress here
Admin page example (work in progress)
Reply With Quote
  #3  
Old October 28th, 2003, 02:21 AM
geoschmo's Avatar

geoschmo geoschmo is offline
National Security Advisor
 
Join Date: Jan 2001
Location: Ohio
Posts: 8,450
Thanks: 0
Thanked 4 Times in 1 Post
geoschmo is on a distinguished road
Default Re: PBW Emergency Site files v1.51 Finished and fixed.

Well, generic wasn't really what I was looking for. I wanted to be able to set that and make it show my email as the return address. I imagine that's possible right? Maybe another line in the mail.php file?
__________________
I used to be somebody but now I am somebody else
Who I'll be tomorrow is anybody's guess
Reply With Quote
  #4  
Old October 27th, 2003, 09:47 PM
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: PBW Emergency Site files v1.51 Finished and fixed.

I've set the Host's e-mail as sender, so you'll send the mail to yourself.
I've finished most of the admin screen.
Now you can:
-Change all data in configuration.txt
-Change all data in deadline.txt including deadline length
-Download all player files zipped into one, clear turnfiles dir.
-upload new turnfile and notify all players that new turn is out.

What to do before I post:
-Ability to change all player data.
-Password protect admin screen.
-Update readme.txt


=will be fixed tomorrow.
Nightie
Reply With Quote
  #5  
Old October 28th, 2003, 07:28 AM
Rambie's Avatar

Rambie Rambie is offline
Sergeant
 
Join Date: Jul 2000
Location: Centerville, Utah, USA
Posts: 316
Thanks: 0
Thanked 0 Times in 0 Posts
Rambie is on a distinguished road
Default Re: PBW Emergency Site files v1.51 Finished and fixed.

Ruatha, you are doing a great job, keep it up! You're much appreciated by us addicted PBW players.

I don't know PHP, nor any programming language that well, so this may be a elementary question... but here goes anyway.

I was having a hard time getting the upload flag to work right. It looked like the IF test for the game name wasn't assigning a value to $testname if the $test1 and $test2 variables were equal. Thus throwing off the second IF statement. So I changed the code in Index.php

---From this---
$test1=strtolower(substr($file,0,-9));
$test2=strtolower("$gamename");
$ett=strlen($test1);
$tva=strlen($test2);
$tre=$tva-$ett;

if ($tre>0)
{
$testname=substr($gamename,0,-$tre);
}

if (strtolower(substr($file,0,-9)) == strtolower("$testname"))


---To this---
$test1=strtolower(substr($file,0,-9));
$test2=strtolower("$gamename");
$ett=strlen($test1);
$tva=strlen($test2);
$tre=$tva-$ett;

if ($tre>0)
{
$testname=substr($test2,0,-$tre);
}
else
{
$testname = $test2;
}

if ($test1 == $testname)


After making the changes the upload verification did seem to work OK. I changed the second IF statement so it wouldn't have to process the 'strtolower' (Convert string to lowercse I guess?) command again when the lowercase data was already in the $test1 and $test2 variables. I'm afraid to say this minor little change took me over 1-hour to figure out.

I don't know why the upload notification wasn't working for me, especially since I didn't see anyone else report any problems with it. But, I thought I would let you know incase anyone else was having this problem.

[ October 28, 2003, 05:32: Message edited by: Rambie ]
__________________
Rambie
www.xmission.com/~rstulce
Reply With Quote
  #6  
Old October 28th, 2003, 10:54 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: PBW Emergency Site files v1.51 Finished and fixed.

Thanks Rambie.
This site wasn't supposed to be this complex, so it's bad code.
I'm impressed you understood it, I almost doesn't anymore!

Included your change in thi s Last Version:
Complete ver 1.5

Patch 1.5

What's new?

Complete admin page, no more text files editing.
Upload and download turnfiles for the host through admin page.

Added history page.

All new readme.

Problems, report them.

I know the host get's the turnfiles in ACE compressed format, but I can't find a zip utility that supports long filenames through the command line??? (it must be a small exe file)!

The totally rewritten ver 2 is aimed at next PBW downtime, may it never come!

[ October 28, 2003, 08:55: Message edited by: Ruatha ]
Reply With Quote
  #7  
Old October 28th, 2003, 04:06 PM
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: PBW Emergency Site files v1.51 Finished and fixed.

For all who has older Versions than 1.4 and need all files except CONFIGURATION.TXT DEADLINE.TXT and PLAYERDATA.TXT

here is your Version:
Get up to date to ver 1.5

It's the same as patch 1.5 but with MAIL.PHP included.

MAIL.PHP is the configuration file for automatic mails sent out from the server.
If you've already set up auto mails in MAIL.PHP use patch 1.5 instead.
(In MAIL.PHP data for the SMTP server and server mail account is entered, and auto mail must be enabled manually there to work!)


Hmm, I realized something - there was a Bug:
When turn was uploaded, deadline was old deadline + lenght of deadline, should be current time+ deadline length.
Is fixed now in all three archives.

Latest Version is now 1.51 (in zipfiles 1.5)

[ October 28, 2003, 14:56: Message edited by: Ruatha ]
Reply With Quote
Reply

Bookmarks


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 07:42 PM.


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