Hi, Need some information please

Post here all your questions related with beta Silverlight API

Moderators: Lapo, Bax

lordali
Posts: 41
Joined: 25 Mar 2008, 08:32

Hi, Need some information please

Postby lordali » 04 Dec 2009, 12:10

I been looking for multiplayer game support for silverlight everywhere but none is giving ATM. Photon Server is giving but its not as flexible as SmartFoxServer. They don't have forum as well.

SmartFox server is best out there with very good forum support and I was hoping and waiting that some day silverlight support will be there.

I have few questions.
1 - Lapo will you be answering questions for silverlight here?
2 - Need more examples.
3 - Do you have any list or things to do when comparing to current Flash version of SmartFoxServer client API. I mean SilverLight Client API support all the functionality used for Flash Client API like extensions?
4 - More documentation.

I successfully connected.

Code: Select all


[SFS DEBUG] Trying to connect
[SFS DEBUG] Socket success
[SFS DEBUG] [Sending]: <msg t='sys'><body action='verChk' r='0'><ver v='154' /></body></msg>

[SFS DEBUG] [ RECEIVED ]: <cross-domain-policy><allow-access-from domain='*' to-ports='4502' /></cross-domain-policy>, (len: 91)
[SFS DEBUG] XML Handler null reference exception System.NullReferenceException: Object reference not set to an instance of an object.
   at SmartFoxClientAPI.SmartFoxClient.XmlReceived(String msg)
[SFS DEBUG] [ RECEIVED ]: <msg t='sys'><body action='apiOK' r='0'></body></msg>, (len: 53)
Connected
Trying to login
[SFS DEBUG] [Sending]: <msg t='sys'><body action='login' r='0'><login z='simpleChat'><nick><![CDATA[]]></nick><pword><![CDATA[]]></pword></login></body></msg>

[SFS DEBUG] [ RECEIVED ]: <msg t='sys'><body action='logOK' r='0'><login n='guest_3' id='2' mod='0'/></body></msg>, (len: 88)
[SFS DEBUG] [Sending]: <msg t='sys'><body action='getRmList' r='-1'></body></msg>
On Login callback got: True :  : guest_3
[SFS DEBUG] [ RECEIVED ]: <msg t='sys'><body action='rmList' r='0'><rmList><rm id='2' priv='0' temp='0' game='0' ucnt='0' maxu='50' maxs='0'><n><![CDATA[The Hall]]></n></rm><rm id='3' priv='0' temp='0' game='0' ucnt='0' maxu='50' maxs='0'><n><![CDATA[The Kitchen]]></n></rm><rm id='4' priv='0' temp='0' game='0' ucnt='0' maxu='50' maxs='0'><n><![CDATA[The Garden]]></n></rm><rm id='5' priv='0' temp='0' game='0' ucnt='0' maxu='50' maxs='0'><n><![CDATA[The Bathroom]]></n></rm><rm id='6' priv='0' temp='0' game='0' ucnt='0' maxu='50' maxs='0'><n><![CDATA[The Garage]]></n></rm><rm id='7' priv='1' temp='0' game='0' ucnt='0' maxu='50' maxs='0'><n><![CDATA[The Living Room]]></n></rm></rmList></body></msg>, (len: 677)
Room list updated with rooms:
 - The Hall
 - The Kitchen
 - The Garden
 - The Bathroom
 - The Garage
 - The Living Room
[SFS DEBUG] [Sending]: <msg t='sys'><body action='joinRoom' r='-1'><room id='2' pwd='' spec='0' leave='0' old='-1' /></body></msg>

[SFS DEBUG] [ RECEIVED ]: <msg t='sys'><body action='joinOK' r='2'><pid id='0'/><vars /><uLs r='2'><u i='2' m='0'><n><![CDATA[guest_3]]></n><vars></vars></u></uLs></body></msg>, (len: 150)
Joined room The Hall
[SFS DEBUG] [ RECEIVED ]: <msg t='sys'><body action='uCount' r='2' u='1'></body></msg>, (len: 60)
User count changed for room The Hall count: 1
[SFS DEBUG] [Sending]: <msg t='sys'><body action='rndK' r='-1'></body></msg>

[SFS DEBUG] [ RECEIVED ]: <msg t='sys'><body action='rndK' r='-1'><k>iWsdLzVwR}r]o]</k></body></msg>, (len: 74)
Random key: iWsdLzVwR}r]o]
[SFS DEBUG] [Sending]: <msg t='sys'><body action='roundTrip' r='2'></body></msg>

[SFS DEBUG] [ RECEIVED ]: <msg t='sys'><body action='roundTripRes' r='2'></body></msg>, (len: 60)
Round trip time: 0 seconds
[SFS DEBUG] [Sending]: <msg t='sys'><body action='createRoom' r='2'><room tmp='1' gam='0' spec='0' exit='1'><name><![CDATA[New room]]></name><pwd><![CDATA[]]></pwd><max>10</max><uCnt>0</uCnt><vars></vars></room></body></msg>

[SFS DEBUG] [ RECEIVED ]: <msg t='sys'><body action='roomAdd' r='0'><rm id='39' priv='0' temp='1' game='0' max='10' spec='0' limbo='0'><name><![CDATA[New room]]></name><vars /></rm></body></msg>, (len: 168)
Room created: New room
[SFS DEBUG] [Sending]: <msg t='sys'><body action='joinRoom' r='2'><room id='39' pwd='' spec='0' leave='1' old='2' /></body></msg>

[SFS DEBUG] [ RECEIVED ]: <msg t='sys'><body action='joinOK' r='39'><pid id='0'/><vars /><uLs r='39'><u i='2' m='0'><n><![CDATA[guest_3]]></n><vars></vars></u></uLs></body></msg>, (len: 152)
Joined room New room
[SFS DEBUG] [Sending]: <msg t='sys'><body action='pubMsg' r='39'><txt><![CDATA[I&apos;m alive!!!]]></txt></body></msg>

[SFS DEBUG] [ RECEIVED ]: <msg t='sys'><body action='pubMsg' r='39'><user id='2' /><txt><![CDATA[I&apos;m alive!!!]]></txt></body></msg>, (len: 110)
User guest_3 in room New room said: I'm alive!!!
[SFS DEBUG] [Sending]: <msg t='sys'><body action='asObj' r='39'><![CDATA[<dataObj><var n='name' t='s'>New object</var><var n='num' t='n'>10.3000001907349</var><var n='new' t='b'>1</var></dataObj>]]></body></msg>

[SFS DEBUG] [Sending]: <msg t='sys'><body action='logout' r='-1'></body></msg>

[SFS DEBUG] [ RECEIVED ]: <msg t='sys'><body action='logout' r='0'></body></msg>, (len: 54)
Logged out
[SFS DEBUG] Disconnect due to lost socket connection

User avatar
Lapo
Site Admin
Posts: 23007
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 07 Dec 2009, 11:17

I have few questions.
1 - Lapo will you be answering questions for silverlight here?

Thomas Lund and me will answer most questions here. Thomas is the C# guy

2 - Need more examples.

Ah yes of course.
We have just launched this beta so at the moment we offer only one basic test example without too many bells and whistles. We'll be adding more examples as the beta evolves.

3 - Do you have any list or things to do when comparing to current Flash version of SmartFoxServer client API. I mean SilverLight Client API support all the functionality used for Flash Client API like extensions?


Hope it helps
Yes it does, 100% of the features.
4 - More documentation.

Absolutely. This will come very soon and it is on top of our priorities.
Lapo
--
gotoAndPlay()
...addicted to flash games
User avatar
Lapo
Site Admin
Posts: 23007
Joined: 21 Mar 2005, 09:50
Location: Italy

Postby Lapo » 07 Dec 2009, 11:35

One more thing as regards the documentation.
The Silverlight API is derived from our C#/.Net API
We couldn't use the same exact code because SL is .Net 3.0,socket classes work differently and there are some other small differences.
Anyways as regards the API doc the C#/.Net API documentation should work 95% of the times.

I would recommend to download it.
Meanwhile we'll work on a final set of documentation to bundle with the next SL beta release.

Thanks
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “Silverlight API”

Who is online

Users browsing this forum: No registered users and 10 guests