.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, 12:55 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.

No I did not set a yes in the configuration file, only the mail file. I saw that you added an attribute to the config file but I did not see what it was for so I made it a NO just like your example file. I will try that.
__________________
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:00 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.

Yes, it was redundant, but added in case passwords is needed, then mail.php can be moved to another directory.
And both the owner of the server and the game both have an option of turning it off, sorry for that complex way, I'm not proud of it.
This ver 1 is a botch job....


Another update;
patch 1.421

Complete 1.421

What is new?
-Added new readme.
-Autodirects to main page after upload, pauses 5 seconds first.
-Refreshes main page when it's loaded.
-When all has uploaded, if mail notify host is set to Yes in both configuration.txt and mail.php a message will appear saying that the host is being notified.

[ October 27, 2003, 11:12: Message edited by: Ruatha ]
Reply With Quote
  #3  
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
  #4  
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
  #5  
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
  #6  
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
  #7  
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
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 08:54 PM.


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