Page 4 of 6

Posted: Mon Sep 29, 2008 10:44 am
by Testing Account
Hmm.. that doesn't look good.
I'm not sure if it will be possible to host the game server here any more. I could try switching it to a file backend (which means you have to register)

It some point, it may be worthwhile to set up a redirection to a different server.

Posted: Fri Oct 10, 2008 7:57 pm
by SiroDJ
Would it be possible for me to post a link to a working account server I have hosted, or is this against a rule that I'm unaware of?

Posted: Fri Oct 10, 2008 9:49 pm
by ace123
I can set up a redirect from http://vegastrike.sourceforge.net/cgi-b ... .py?sirodj to your accountserver



Does yours need registration or are you making it create an account the first time you login?

Posted: Fri Oct 10, 2008 9:49 pm
by loki1950
Welcome SiroDJ i am quite sure that is possible but i don't know the specifics ace123 should be by later to add those :wink:

Edit:Faster at the keyboard you are ace :lol:

Enjoy the Choice :)

Posted: Sat Oct 11, 2008 12:42 am
by SiroDJ
Yes, a CGI account server is all set up to run. After a day and a half of muddling about, I figured a way to run it. Works great, I found the user files in the directory where saved data is sent. It loaded to the Crucible system, as I connected to the server remotely. I considered it a successes once I came to that point.

After coming to the conclusion that I probably didn't follow the readme correctly, I had run a slightly modified version of the account server, using a script called CGIHTTPServer.py, which is found in Python v2.5.2.

The setup was pretty simple. A very nice friend of mine kindly setup an SQL database, sparing me from hair loss. I then:

Created a folder arbitrarily called, /PythonHTTPServer/... and .../cgi-bin/, within.
Placed the account server files inside .../cgi-bin/, and,
CGIHTTPServer.py within the /PythonHTTPServer/ folder and ran it.

The only problem I have with using the modified account server is that it uses the same port as a SHOUTCast server, on 8000, as opposed to 8080 with the original intended setup. Easy to fix, I suppose. I only saw this once checking for replies here, and to see if the vega strike servers were still up.

I just have to semi-ask my friend for permission to move the port of the SHOUTCast server, or figure a way to move the account server port within CGIHTTPServer.py. So yes, I shall PM Ace123 with the details for the redirect, once one or the other solution occurs. Hopefully that will give me time to clear up the port problem with little delay.

EDIT:
Also, as a complement, I admire this community and it's development team. I've been following Vega Strike for some time now, and I thought you all deserved some gravitas. :]

Posted: Sat Oct 11, 2008 1:08 am
by loki1950
We are still dealing with fallout from souceforge's move and PM and e-mail notifications are affected so it will have to be direct e-mail :shock: so use ace123@users.sourceforge.net that at least still works :?

And thanks for the ego boos :D

Enjoy the Choice :)

Posted: Sat Oct 11, 2008 1:46 am
by SiroDJ
Thank you!

In addition, the port problem is fixed whereas the CGIHTTPServer.py file accepts an argument specially for ports, otherwise, defaulting to 8000.

Posted: Sat Oct 11, 2008 4:20 am
by ace123
I added a redirect to your server.

Could you enable creation the first time you login? It is much simpler than the going through the register.py page.
www2 is working on a new version of the accountserver, but for now this is what we have.

To do this, put in your mysql_dbconfig:

Code: Select all

        'create_user': True,
But I suppose the problem is that then most people will be in Llamas and there is currently no way to buy a ship (it will be implemented in the future)

Posted: Sat Oct 11, 2008 6:10 am
by Derrick
Hey its derrick im the one hosting all the stuff with SiroDJ...
Just wanted to know if you can help us link the user db to a phpbb db..
Because that would make things a lot easier..
I do plane on setting up a phpbb site for users to register for the game and post stuff about there in game player life and stuff..
So maybe you guys could give me some pointers to get it set up ..

Thanks Derrick
ace123 wrote:I added a redirect to your server.

Could you enable creation the first time you login? It is much simpler than the going through the register.py page.
www2 is working on a new version of the accountserver, but for now this is what we have.

To do this, put in your mysql_dbconfig:

Code: Select all

        'create_user': True,
But I suppose the problem is that then most people will be in Llamas and there is currently no way to buy a ship (it will be implemented in the future)

Re: Online multiplayer is now working.

Posted: Sat Oct 11, 2008 2:28 pm
by loki1950
Luck with the MP server guys :D

Enjoy the Choice :D

Re: Online multiplayer is now working.

Posted: Mon Feb 16, 2009 1:12 am
by Captain{}Blood
I need to link the server I am testing on a hosted site to the account server, what do I need to do that with?

Re:

Posted: Wed May 06, 2009 11:11 pm
by KillerB
loki1950 wrote:We are still dealing with fallout from souceforge's move and PM and e-mail notifications are affected so it will have to be direct e-mail :shock: so use ace123@users.sourceforge.net that at least still works :?

And thanks for the ego boos :D

Enjoy the Choice :)
I sent the email request w/ a username and password. Now when I try to log in using them, I get an error message "server encountered unexpected socket request" or some such.
I tried it with the username but no password, with the password but no username, and with leaving both fields blank and got "incorrect password" message....so apparently it RECOGNIZED my info, it just didn't know what to do with it?

Re: Online multiplayer is now working.

Posted: Thu May 07, 2009 12:33 am
by loki1950
I have feeling that there is still not a server online.

Enjoy the Choice :)

Re: Online multiplayer is now working.

Posted: Thu May 07, 2009 3:03 am
by KillerB
hmmm kinda wierd it doesn't just say 'failure to connect' or 'no response'....
*edited* on a hunch i tried entering the username i had submitted in all smallcase...this time the message was something like
"the server says you should register at http://vegastrike.sourceforge.net
as an alpha you should expect some downtime"
so apparently the server is THERE and it has my account info in it now....it just isn't able to do anything with it :?

Re: Online multiplayer is now working.

Posted: Fri May 29, 2009 6:49 pm
by DucksofGrass
I get this when it try to register here:http://vegastrike.sourceforge.net/cgi-b ... _submit.py


AttributeError Python 2.4.3: /usr/bin/python
Fri May 29 17:42:23 2009

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

/home/groups/v/ve/vegastrike/cgi-bin/register_submit.py
76 mod = os.environ.get('QUERY_STRING','')

77 conn = db.connect(settings.dbconfig, mod)

78 if post_args:

79 execute(conn, mod, post_args)

80

execute = <function execute>, conn = <db.FileDB instance>, mod = '', post_args = {'faction': 'aera', 'password': 'tigger01', 'type': 'Beholder', 'username': 'DucksofGrass'}
/home/groups/v/ve/vegastrike/cgi-bin/register_submit.py in execute(dbconn=<db.FileDB instance>, mod='', form={'faction': 'aera', 'password': 'tigger01', 'type': 'Beholder', 'username': 'DucksofGrass'})
42 type = dbconn.check_string( form.get("type",'') )

43

44 if not dbconn.check_password(username, password, True):

45 raise db.DBError,"Error password for username "+username+" does not match our records"

46

dbconn = <db.FileDB instance>, dbconn.check_password = <bound method FileDB.check_password of <db.FileDB instance>>, username = 'DucksofGrass', password = 'tigger01', builtin True = True
/home/groups/v/ve/vegastrike/cgi-bin/db.py in check_password(self=<db.FileDB instance>, username='DucksofGrass', password='tigger01', can_create=True)
228 s=f.read()

229 f.close()

230 if self.compare_password(s, password):

231 success=True

232 except IOError:

self = <db.FileDB instance>, self.compare_password = <bound method FileDB.compare_password of <db.FileDB instance>>, s = '', password = 'tigger01'
/home/groups/v/ve/vegastrike/cgi-bin/db.py in compare_password(self=<db.FileDB instance>, hash='', password='tigger01')
107

108 def compare_password(self, hash, password):

109 phash = self.hash_password(password)

110 if len(hash)<len(phash):

111 return password == hash

phash undefined, self = <db.FileDB instance>, self.hash_password = <bound method FileDB.hash_password of <db.FileDB instance>>, password = 'tigger01'
/home/groups/v/ve/vegastrike/cgi-bin/db.py in hash_password(self=<db.FileDB instance>, password='tigger01')
99 pass

100 def hash_password(self, password):

101 if settings.password_hash_methode == 'md5':

102 import md5

103 return md5.md5(password).hexdigest()

global settings = <module 'settings' from '/home/groups/v/ve/vegastrike/cgi-bin/settings.py'>, settings.password_hash_methode undefined

AttributeError: 'module' object has no attribute 'password_hash_methode'
args = ("'module' object has no attribute 'password_hash_methode'",)

And when i start the game it gives me NETWORK ERROR: Unexpected socket request!

What's wrong? or is this game basically just dead?

Re: Online multiplayer is now working.

Posted: Fri May 29, 2009 10:09 pm
by Greekgifted
I think that someone pretty much left half of the server running and that's why it looks like multiplayer is working. The web interface is up but all of the fun stuff (the game) is as far as I know, not being hosted anywhere.

I don't think it would be hard to "plug in" the actual server, we just need someone with a decent internet connection and a spare computer to get it running.

Re: Online multiplayer is now working.

Posted: Fri May 29, 2009 10:59 pm
by MC707
Greekgifted wrote:we just need someone with a decent internet connection and a spare computer to get it running.
I could spare my pentium III or my current box if I bought a new one, but my internet connection sucks badly.

Re: Online multiplayer is now working.

Posted: Sat May 30, 2009 1:21 am
by Greekgifted
Yeah that's the thing, I don't know what we would need for connection speed. If your connection is stable and doesn't randomly quit, then we could try it and see what the requirements might be. And I don't even know if a Pentium III will work for a lot of people, I only tried it with 2 clients so.... If you want to try it then we can see if www2 can link the already running httpserver to it.

Re: Online multiplayer is now working.

Posted: Sat May 30, 2009 4:54 am
by MC707
actually, for now we could try with my monster box (check sig), cuz my crappy (I really wanted to use something stronger then 'crappy', but meh :roll: ) ISP only lets us have three PCs connected to the same switch, and my brothers are already using 2 slots with mine being the third. My pentium III would be a fourth so not for now I guess. nevertheless, we could try. My connection is a crappy 1 Mbps down, 256 kbps up. can download at 130 KBps, but only upload 30 KBps. We shall see then, just gimme the info on what I need to do to get the server up and then link the httpserver to it. Will stop my torrents for the moment :lol: I owe some 4GB worth of ROMS to the torrent community, but thats off topic so I shut my mouth now :lol:

Re: Online multiplayer is now working.

Posted: Sat May 30, 2009 10:11 am
by www2
I heft current i heft only a host space and buy the domains for vega strike that current linkt to the main page of this site.
But i plan to buy a second-hand or me be even new server and rent a Colocatie in a data center in Amsterdam.

Re: Online multiplayer is now working.

Posted: Sat May 30, 2009 5:52 pm
by Greekgifted
So that's cool, looks like we're gonna get this going. And with a quad core too it looks like, after all that....
So to set up the server, the first thing you gotta make sure is that people can get to you. I don't know how you would do this with your router or whatever you use, so I'll assume you know! :P

Along with that there are some changes to vegastrike.config that need to be made in the server and networking sections down at the bottom:
- make sure "useaccountserver" in the server section is set to true.
- "account_server_url" will be set to the full url of the account server that it looks like www2 is going to get going.
- can't hurt to have "use_account_server" set to true.

I think that's all other stuff can be left at defaults like the server_ip and server_port, or at least I think so. Maybe we should make sure "server_port" is set to 6777 and "server_ip" set to the ip of your machine. We can tweak some of the other settings later for a different galaxy or update periods. And I think this will overwrite any single player game you have going, so you might want to do it in a different user, with a different set of data.

Big thanks to both of you :D I feel like I need to be setting something up, but that may not be for a while.

Oh and which version are we going to use? Or does it not make a difference? Are we going to use the stable or an svn build?

Re: Online multiplayer is now working.

Posted: Sun May 31, 2009 1:43 am
by MC707
well, SVN seems to be the best bet, since it probably has an update to the mp engine or something like that and the fact that I will have SVN installed. Oh, and the server that comes with the *stable* release doesn't work (neither vssetup nor vegastrike :roll: ). So what I have to do now is wait for the url www2 will give us, right? In the mean time, I will pay off the torrents, back up everything and install a fresh 64 bit vista and a 64 bit kubuntu. my current ubuntu is fu***d up, and my current vista is 32 bits (im wasting 1 GB ram). Oh I already updated my bios and surprisingly enough my boot time is a blink!!! but thats off topic so shush :lol:

Re: Online multiplayer is now working.

Posted: Sun May 31, 2009 2:02 am
by Greekgifted
I only mentioned using 0.5 because someone eventually might try to connect with a new svn version, and I don't know if that will affect gameplay. And I've looked at the network stuff for both svn and stable. I may be wrong but I think it's pretty much exactly the same so it should have worked all you have to do is run vegaserver. I don't think you need vssetup or vegastrike (the binary).

So yeah I guess we just have to wait for www2 to say he's got the server up and we can get yours going! :D

Re: Online multiplayer is now working.

Posted: Sun May 31, 2009 2:56 am
by MC707
sounds like a plan. :D

Re: Online multiplayer is now working.

Posted: Sun May 31, 2009 12:51 pm
by www2
My current problem is that my hosting provider dont suport python and money for buying a server.