Windows Server Installation

Problems, questions, or anything else related to the MV3D server.

Moderator: SirGolan

Re: Server Installation

Postby SirGolan » Tue Apr 08, 2008 6:11 am

OK! That's good (ish). I must have hard coded something in there about the URL for SetupAssets.py.

It's supposed to come from here: http://dev.mv3d.com/~mike/mv3d/Example/ ... pAssets.py

Maybe I put something different. Hmm, nope just checked the code, that's odd. Can you download that file from that url?
SirGolan
Site Admin
 
Posts: 214
Joined: Wed Mar 19, 2008 7:04 pm

Re: Server Installation

Postby multiverseuser » Tue Apr 08, 2008 2:33 pm

Ok,
So this is what I get so far. I placed the file you indicated in the server folder and the server doesn't seem to
give me any more errors but there is warning.

C:\mv3d-0_3\mv3d-0.3>twistd.py -n mv3d -i -n 1 -t 3
2008-04-08 07:22:57-0700 [-] Log opened.
2008-04-08 07:22:57-0700 [-] twistd 8.0.1 (C:\Python25\python.exe 2.5.2) starting up
2008-04-08 07:22:57-0700 [-] reactor class: <class 'twisted.internet.selectreactor.SelectReactor'>
2008-04-08 07:22:57-0700 [-] server MV3D Server initialization successful.
2008-04-08 07:22:57-0700 [-] server <mv3d.net.client.ServiceLoc instance at 0x0513E508> registered as a Asset.
2008-04-08 07:22:57-0700 [-] server <mv3d.net.client.ServiceLoc instance at 0x052360F8> registered as a Realm.
2008-04-08 07:22:57-0700 [-] nevow.appserver.NevowSite starting on 8080
2008-04-08 07:22:57-0700 [-] Starting factory <nevow.appserver.NevowSite instance at 0x05E44558>
2008-04-08 07:22:57-0700 [-] twisted.spread.pb.PBServerFactory starting on 1999
2008-04-08 07:22:57-0700 [-] Starting factory <twisted.spread.pb.PBServerFactory instance at 0x05E4A490>
2008-04-08 07:22:58-0700 [-] server Account added account called mike.
2008-04-08 07:22:58-0700 [-] warning The Realm has no secondary for new area.


On the client side, I modified the client.conf to to localhost

C:\mv3d-0_3\mv3d-0.3>RunClient.py
server MV3D Client initialization successful.
Unhandled error in Deferred:
Traceback (most recent call last):
--- <exception caught here> ---
File "c:\python25\lib\site-packages\twisted\internet\defer.py", line 323, in _runCallbacks
self.result = callback(self.result, *args, **kw)
File "C:\mv3d-0_3\mv3d-0.3\mv3d\util\conductor.py", line 287, in tryAgain
raise ConnectError("Out of services in getOneService!")
mv3d.util.conductor.ConnectError: Out of services in getOneService!
Unhandled error in Deferred:
Traceback (most recent call last):
Failure: twisted.internet.defer.FirstError: FirstError(<twisted.python.failure.Failure <class 'mv3d.util.conductor.ConnectError'>>, 0)
Unhandled error in Deferred:
Traceback (most recent call last):
--- <exception caught here> ---
File "c:\python25\lib\site-packages\twisted\internet\defer.py", line 323, in _runCallbacks
self.result = callback(self.result, *args, **kw)
File "C:\mv3d-0_3\mv3d-0.3\mv3d\util\conductor.py", line 287, in tryAgain
raise ConnectError("Out of services in getOneService!")
mv3d.util.conductor.ConnectError: Out of services in getOneService!
server MV3D Client shutting down.


There was only one realm available to me.
[0,11] mike 0 in MV3D Area 0 (The Realm) So click it.

When the client connected, the server screen shows this.

2008-04-08 07:23:47-0700 [HTTPChannel,0,127.0.0.1] session given the will to live for 60 more seconds
2008-04-08 07:23:47-0700 [HTTPChannel,0,127.0.0.1] 127.0.0.1 - - [08/Apr/2008:14:23:47 +0000] "POST /service/ HTTP/1.0" 302 336 "-" "MV3D"
2008-04-08 07:23:47-0700 [HTTPChannel,1,127.0.0.1] 127.0.0.1 - - [08/Apr/2008:14:23:47 +0000] "POST /__session_key__503474647226c66a86c09e0a9289d534/service/ HTTP/1.0" 302 240 "-" "MV3D"
2008-04-08 07:23:47-0700 [HTTPChannel,2,127.0.0.1] 127.0.0.1 - - [08/Apr/2008:14:23:47 +0000] "POST /service/ HTTP/1.0" 200 66 "-" "MV3D"
2008-04-08 07:23:47-0700 [HTTPChannel,3,127.0.0.1] 127.0.0.1 - - [08/Apr/2008:14:23:47 +0000] "POST /service/ HTTP/1.0" 200 102 "-" "MV3D"
2008-04-08 07:23:47-0700 [HTTPChannel,4,127.0.0.1] 127.0.0.1 - - [08/Apr/2008:14:23:47 +0000] "POST /service/ HTTP/1.0" 200 166 "-" "MV3D"
2008-04-08 07:24:47-0700 [-] session given the will to live for 3600 more seconds
2008-04-08 07:25:51-0700 [Broker,0,127.0.0.1] server mike becomes mike 0.
2008-04-08 07:25:53-0700 [HTTPChannel,5,127.0.0.1] 127.0.0.1 - - [08/Apr/2008:14:25:53 +0000] "POST /service/ HTTP/1.0" 200 166 "-" "MV3D"
2008-04-08 07:25:54-0700 [HTTPChannel,6,127.0.0.1] 127.0.0.1 - - [08/Apr/2008:14:25:53 +0000] "POST /service/ HTTP/1.0" 200 190 "-" "MV3D"
2008-04-08 07:26:31-0700 [-] server mike 0 leaves the game.


thanks,
multiverseuser
 
Posts: 103
Joined: Sun Mar 30, 2008 4:29 pm

Re: Server Installation

Postby multiverseuser » Tue Apr 08, 2008 2:53 pm

I should add that when I connect to the realm
I see the sky but nothing else
There is no terrain, characters or anything else
so I exited the game
multiverseuser
 
Posts: 103
Joined: Sun Mar 30, 2008 4:29 pm

Re: Server Installation

Postby SirGolan » Tue Apr 08, 2008 7:44 pm

That warning (The Realm has no secondary for new area.) just means that the server determined that you could not redundantly host an area on two simulation servers at once. Mostly this is because you only have one server running. :)

The client error you're getting looks a lot like there is still something in client.conf that points to the old server, or that is in some way incorrect. Can you post your client.conf here?

Thanks,

Mike
SirGolan
Site Admin
 
Posts: 214
Joined: Wed Mar 19, 2008 7:04 pm

Re: Server Installation

Postby multiverseuser » Wed Apr 09, 2008 3:18 am

Here is the file.


Code: Select all
[Client]
serviceNames=Asset, Player, Sim
connectionFactories=PBClient, HttpClient

name=MV3D Client
logs=["file", "gui"]

[Sim]
type=mv3d.client.sim.SimService

[Player]
type=mv3d.client.player.PlayerService
servers=["pb://localhost:1999/Player"]
#autoConnect=True
ac-server=pb://localhost:1999/Player
defaultLogin=mike:pass
#defaultPC=mike 0

[Asset]
type=mv3d.client.asset.AssetService
assetServices=pb://localhost.com:1999/Asset

[Graphics]
optionsWindow=False
#plugins=plugins.cfg
system=OpenGL Rendering Subsystem
Colour Depth=32
Display Frequency=N/A
FSAA=0
fullScreen=No
RTT Preferred Mode=FBO
VSync=No
resolution=1024x768

[PBClient]
type=mv3d.net.client.PBConFactory
defaultCredentials=mike:pass
loginServices=https://localhost:8080/service/

[HttpClient]
type=mv3d.net.client.JSONConFactory
protocol=https
multiverseuser
 
Posts: 103
Joined: Sun Mar 30, 2008 4:29 pm

Re: Server Installation

Postby SirGolan » Wed Apr 09, 2008 3:44 am

Heh, I think this is one of those times where a second pair of eyes is all you need:

Code: Select all
assetServices=pb://localhost.com:1999/Asset


Take away the .com and it should be fine. :)

Oh by the way, you mentioned looking for trees and grass-- you'll need to specify the -g and -T command line options (twistd mv3d --help will tell you more). I'm also not 100% sure I made all the assets required downloadable. I may have skipped the material and image files for the tree. I should really fix that though.

Mike
SirGolan
Site Admin
 
Posts: 214
Joined: Wed Mar 19, 2008 7:04 pm

Re: Server Installation

Postby multiverseuser » Wed Apr 09, 2008 6:13 am

yes, now it is working
the commands for grass and trees are not though.

I will update the wiki shortly

thanks,
multiverseuser
 
Posts: 103
Joined: Sun Mar 30, 2008 4:29 pm

Re: Server Installation

Postby multiverseuser » Wed Apr 09, 2008 6:17 am

Hello,

This topic "Server Installation" should be renamed to Windows Server Installation

Thanks,
multiverseuser
 
Posts: 103
Joined: Sun Mar 30, 2008 4:29 pm

Re: Server Installation

Postby SirGolan » Wed Apr 09, 2008 5:32 pm

It should be possible for you to edit the topic by editing the first post.
SirGolan
Site Admin
 
Posts: 214
Joined: Wed Mar 19, 2008 7:04 pm

Re: Server Installation

Postby SirGolan » Wed Apr 09, 2008 5:33 pm

By the way, you'll need to get the version of MV3D from SVN/trunk in order to get grass and trees to work. (dunno if you are using that now)
SirGolan
Site Admin
 
Posts: 214
Joined: Wed Mar 19, 2008 7:04 pm

PreviousNext

Return to Server Software

Who is online

Users browsing this forum: No registered users and 2 guests

cron