.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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #17  
Old October 24th, 2003, 03:49 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: Ruatha: PBW Alternate Scripts

Quote:
Originally posted by Imperator Fyron:
I suggest you not have any code read in the contents of text files to get variables. Instead, have files like "config.php" and "playerdata.php". Reading from text files is relatively slow, and prone to error, much more so than just having .php files included. And, it still just requires editing files to be installed, so it is not that big a change for the user of the script.

Also, it would be good to be able to have all the main .php files in a folder, and then have various folders for different games in subfolders, with their appropriate config files and gamefile etc. folders. So you have something like:

se.net/pbw contains the pure code .php, with nothing specific to any game
se.net/pbw/b5modgame contains the mentioned config.php and playerdata.php, as well as its subfolders of gamefile, turnfiles, etc.
The multiple folder thing will be fixed to next Version (in a day or two)
Thanx for the suggestion.
About the PHP instead of txt, will think of a good way to fix that, should be doable without to much hassle.
How where you thinking, that I should include variables in include.php where all names etc are entered and then include that file into the main index.php with the include instruction? That seems easiest.
And then make a web page to enter and alter the data in text boxes, so that no real text editing is necessary. Will do this!

[ October 24, 2003, 15:00: Message edited by: Ruatha ]
Reply With Quote
 

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 11:31 PM.


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