FarWest Ranch example can't run

Post here your questions about the OpenSpace 1.x or notify bugs and suggestions.

Moderators: Lapo, Bax

Post Reply
philc
Posts: 3
Joined: 09 Mar 2009, 19:55

FarWest Ranch example can't run

Post by philc »

Hi,

I try to run FarWest Ranch example.

1/ SFS is started correctly on localhost
> debug=true in sfsConfig.xml

2/ fla file is compiled under CS3

3/ swf launched, click to join button
Flash output:

Join button clicked, now loading config...
[Sending]: <msg t='sys'><body action='verChk' r='0'><ver v='156' /></body></msg>

[ RECEIVED ]: <cross-domain-policy><allow-access-from domain='*' to-ports='9339' /></cross-domain-policy>, (len: 91)
[ RECEIVED ]: <msg t='sys'><body action='apiOK' r='0'></body></msg>, (len: 53)
Connection successful: true
[Sending]: <msg t='sys'><body action='login' r='0'><login z='openspace'><nick><![CDATA[ggg]]></nick><pword><![CDATA[]]></pword></login></body></msg>

No graphics is displayed (map, avatar ...) => the OpenSpace logo and progress bar are in the center of the screen.

Thanks for your help.

Phil
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Post by Bax »

It seems you didn't configure the openspace zone in the SFS config file. You will find the zone configuration in a text file in the root folder of the examples.
Paolo Bax
The SmartFoxServer Team
philc
Posts: 3
Joined: 09 Mar 2009, 19:55

Post by philc »

I have the following files:

..\OpenSpace_trial\Examples\_SFSZoneConfig.txt

Code: Select all

<Zone name="openspace" uCountUpdate="true" maxUsers="200" customLogin="false">
	<Rooms>
		<Room name="Ranch (inside)" maxUsers="50" isPrivate="false" isTemp="false" uCountUpdate="true" />
		<Room name="Ranch (outside)" maxUsers="50" isPrivate="false" isTemp="false" uCountUpdate="true" />
		<Room name="Slopes area" maxUsers="50" isPrivate="false" isTemp="false" uCountUpdate="true" />
	</Rooms>
</Zone>
..\OpenSpace_trial\Examples\FarWest_Ranch\config\sfsClient.xml

Code: Select all

<SmartFoxClient>
    <ip>127.0.0.1</ip>
    <port>9339</port>
    <zone>openspace</zone>
    <debug>true</debug>
    <smartConnect>false</smartConnect>
</SmartFoxClient>
Everything sounds good except the fact I don't see the link between the 2 files regarding the zone parameter.

Thanks.
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Post by Bax »

You have to copy the content of the _SFSZoneConfig.txt file in the proper position inside the SmartFoxServer configuration file, and restart SmartFoxServer.
Paolo Bax
The SmartFoxServer Team
philc
Posts: 3
Joined: 09 Mar 2009, 19:55

It's running!

Post by philc »

Thanks Paolo.

I just read the SFS documentation, everything was in front of me!

Sorry for the inconvenience.
Post Reply