Search found 464 matches

by appels
29 Oct 2010, 12:40
Forum: SFS2X C# API
Topic: Island Demo
Replies: 47
Views: 18287

Its the much talked about FPS example which has autoritative server + uses TCP+UDP and has extrapolation code too.


promising and I appreciate the hard work you are doing Thomas :)
by appels
28 Oct 2010, 23:20
Forum: .Net / Unity3D API
Topic: SFSclient.SetUserVariables --> NullReferenceException ?
Replies: 15
Views: 7952

I'm also using uservars and they work fine for me also. I join a room after login, set the vars and then join the actual room i want. Hashtable Avatar = new Hashtable(); Avatar.Add("avatarType", hit.transform.name); Avatar.Add("outfit", outfitname); Avatar...
by appels
28 Oct 2010, 11:58
Forum: RedBox
Topic: Error when starting Redbox
Replies: 3
Views: 4571

there was no need to uninstall, just added the path to windows
by appels
26 Oct 2010, 16:03
Forum: .Net / Unity3D API
Topic: login doesnt work :(
Replies: 23
Views: 9915

you have to set them yourself, you already got the username from the login gui.
smartFox.myUserName = user.GetName

and my game is still on :
http://www.edje.net/AniLand/
by appels
26 Oct 2010, 11:09
Forum: .Net / Unity3D API
Topic: Disconnect/Reconnect
Replies: 4
Views: 2595

3.0
I did some more tests, when i quit my game in the pre-game room when my avatars havent spawned yet, it works.
It's only when i spawned my players and i quit and reconnect that it happens.

Eddy.
by appels
26 Oct 2010, 02:12
Forum: .Net / Unity3D API
Topic: Disconnect/Reconnect
Replies: 4
Views: 2595

Disconnect/Reconnect

Hi, I have a small problem when i try to reconnect to the server without reloading the webplayer. I call all this to make sure the client is disconnected : UnsubscribeEvents(); smartFoxClient.Logout(); smartFoxClient.Disconnect(); SmartFoxStatics.Connection = null; Login.conn...
by appels
23 Oct 2010, 12:42
Forum: .Net / Unity3D API
Topic: How to preserve smartfox client when switching scenes?
Replies: 6
Views: 4096

i'm not sure for a 100% but i think statics will keep working... tho like i said, the staic class is a cleaner way.
by appels
23 Oct 2010, 01:25
Forum: .Net / Unity3D API
Topic: How to preserve smartfox client when switching scenes?
Replies: 6
Views: 4096

yes thats one way of doing it, tho a static class is a cleaner way...
if you look at the SFSIsland demo you can see how it works.
the class holds the connection info which you can access from anywhere in your game and it won't be destroyed... you don't attach it to a gameobject at all.
by appels
20 Oct 2010, 10:52
Forum: .Net / Unity3D API
Topic: switching character at runtime with smartfox scripts
Replies: 2
Views: 1918

Great idea, thanks :)
by appels
19 Oct 2010, 13:05
Forum: .Net / Unity3D API
Topic: switching character at runtime with smartfox scripts
Replies: 2
Views: 1918

switching character at runtime with smartfox scripts

Hi, I'm trying to find a way to switch the current character to another one at runtime. What i tried so far is : spawn the localplayer with the 2 characters and disable the renderer on 1 of them and then switch the renderer on when needed. But i don't think thats the right way to handle it. I also t...
by appels
17 Oct 2010, 04:42
Forum: .Net / Unity3D API
Topic: smartfox unity API
Replies: 6
Views: 4694

The error is gone now, never found what it was.
Uploaded a demo :

http://www.edje.net/AniLand/

using user variables now for avatar texture sync but i'll probably change it back to an extension.
But for now it's ok lol
Thanks for the help :)
by appels
16 Oct 2010, 02:34
Forum: .Net / Unity3D API
Topic: smartfox unity API
Replies: 6
Views: 4694

smartfox unity API

Hi, I have an error and i'm unable to find what's causing it. The error is : NullReferenceException: Object reference not set to an instance of an object NetworkTransformSender.ForceSendTransform () (at Assets/Scripts/NetworkTransformSender.cs:41) UnityEngine.GameObject:SendMessage(String) GetVars:F...
by appels
16 Oct 2010, 00:41
Forum: .Net / Unity3D API
Topic: Island Demo Error.
Replies: 4
Views: 3464

yes, the island demo has not been updated for U3 and has some errors when you load it.
delete the lines which generate the errors ( i think there are 2 ) and it will start.
by appels
15 Oct 2010, 22:16
Forum: .Net / Unity3D API
Topic: user variables
Replies: 11
Views: 4847

ok, it's working now like it should :) all you need to do is set the user vars ( send them to the server ) and to retrieve them just call GetVariable on a user object : user.GetVariable("myhashkeyname"); and cast it to a string or anything else if needed : user.GetVariable("myhashkeyn...
by appels
15 Oct 2010, 18:28
Forum: .Net / Unity3D API
Topic: login doesnt work :(
Replies: 23
Views: 9915

dedicated server so i can install all i need.
it's not cheap no :)

Go to advanced search