.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 > Illwinter Game Design > Dominions 2: The Ascension Wars

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #11  
Old April 24th, 2004, 03:30 PM
Gandalf Parker's Avatar

Gandalf Parker Gandalf Parker is offline
Shrapnel Fanatic
 
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
Gandalf Parker is on a distinguished road
Default Re: New & raw web based Dominion II game server

Stopping overwrite:
Its kludgy but I was just doing some quick thinking on it.

Set the game to not be auto-started. Set a cron to watch the game directory and copy each upload to a safety directory renamed from name.2h to name+number+login.2h and when the game starts then copy them back to the game directory in reverse order for hosting. That way Man2joe.2h will be overwriteen by Man1bob.2h just before hosting.

Offer the Users login an option to delete a file created by their login so that Bob can delete Man1bob.2h allowing Man2bob.2h to be used when the game is created.

Like I said, kludgy. But something like that. Hole the uploaded files somewhere until the game is first hosted then select the ones which should be used. Heck its Linux. There is probably a hundred ways of doing it. Some use of RCS or CVS commands (which Ive always avoided). Probably the easiest would be to go to a php script or using zope to make uploads go thru the web page so you can control its actions.
__________________
-- DISCLAIMER:
This game is NOT suitable for students, interns, apprentices, or anyone else who is expected to pass tests on a regular basis. Do not think about strategies while operating heavy machinery. Before beginning this game make arrangements for someone to check on you daily. If you find that your game has continued for more than 36 hours straight then you should consult a physician immediately (Do NOT show him the game!)
 

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 10:57 AM.


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