Home World Forum
Stars! AutoHost forums

Jump to Stars! AutoHost


 
Home » Stars! 2.6/7 » Questions about Stars! AutoHost » FTP gaming... (Feeling a bit daft...)
icon5.gif  FTP gaming... Mon, 19 November 2012 10:39 Go to next message
XAPBob is currently offline XAPBob

 
Lt. Commander

Messages: 957
Registered: August 2012
There are various places where using FTP for turn download is mentioned for SAH. However I can't actually see any details about host/port/username/password to be used.

Similarly I can't see any obvious details for emailing a turn back - I presume there must be some authentication (i.e. I can't just send back an empty file named for each other race in my universe from random email addresses) but I can't find any details about that either...

Is it just that I'm blind?

Basically I'm running Stars! under wine from a VPS. I am using NX to play Stars, but running firefox over NX is a bit of a palaver - the ability to just drag down files (and auto-archive last year) and upload files from scipts would be rather useful. It looks like SAH supports it, I just can't find the man pages Wink


(I've checked the Post Notifiction box this time, I wonder if it was my broken handle that caused earlier issues)

Report message to a moderator

Re: FTP gaming... Mon, 19 November 2012 12:38 Go to previous messageGo to next message
craebild is currently offline craebild

 
Lieutenant

Messages: 568
Registered: December 2003
Location: Copenhagen, Denmark
Hi,

E-mailing a turn back was IIRC disabled at the same time as passwords for turn upload was implemented (or perhaps it was when turn download was implemented), as there were problems with people uploading "bad" turns for other players in games.

As for turn download by FTP, I am not certain whether SAH supports that, though it may be that the Autohost Client uses FTP. I don't know about that, though. If it is possible it would gave to be a system where each player's turn required a separate user name and password to prevent cheating (for the same reasons HTTP download and upload requires a password).



Med venlig hilsen / Best regards / Mit freundlichen Grüßen
Christian Ræbild / Christian Raebild

Report message to a moderator

Re: FTP gaming... Wed, 21 November 2012 07:00 Go to previous messageGo to next message
XAPBob is currently offline XAPBob

 
Lt. Commander

Messages: 957
Registered: August 2012
Ah - I've spotted where links was running into difficulty - it doesn't like file references which start ~/

So I'm back to using http, but more easily. I might wrap the upload into a direct curl request - seeing as that isn't game specific...


Looks like:
curl -F password=<UPLOADPASSWORD> -F upload=@<GAMENAME>.x10 http://starsautohost.org/upload.htm

should do the job - just edit those bits in <>
I shall try it next turn...


Actually - is there a a "test" game anywhere?
That would be rather useful...

[Updated on: Wed, 21 November 2012 07:48]

Report message to a moderator

Re: FTP gaming... Wed, 21 November 2012 09:27 Go to previous message
XAPBob is currently offline XAPBob

 
Lt. Commander

Messages: 957
Registered: August 2012
As an example I'm spoofing player 17...
My password is also not #### (D'uh)

Upload:
curl -F filename=@lowtek.x17 -F password=#### http://starsautohost.org/cgi-bin/upload.pl


Download:
curl -F password=#### http://starsautohost.org/cgi-bin/downloadturn.php?file=lowtek.m17 > lowtek.m17


Check:
links -dump http://starsautohost.org/games/lowtek.htm


This prints out a ascii art style table of turns, easily readable Smile



PS - Err, why is the code tag making things invisible? Is it due to a default white colour f text, and a white background on the code tag? I've encapsulated them with colour tags...
PS - Err why have the #### I used in lieue of a password been replaced with a rude word for editting?

[Updated on: Wed, 21 November 2012 16:35]

Report message to a moderator

Previous Topic: Number of users online
Next Topic: Daylight Savings....
Goto Forum:
  


Current Time: Mon Dec 02 06:52:50 GMT-5 2024