Search found 204 matches
- 26 Apr 2017, 18:42
- Forum: SFS2X Questions
- Topic: Cannot convert 293 to com.smartfoxserver.v2.entities.variables.UserVariable.
- Replies: 11
- Views: 17052
Re: Cannot convert 293 to com.smartfoxserver.v2.entities.variables.UserVariable.
Hey guys, I have ran into a new problem, I cannot convert (293) half of my stage to successfully spawn in my avatars. Any value I give it, it won't let me use. Any ideas? Here's my code: if (! sfs.mySelf.containsVariable(this.USERVAR_X) && ! sfs.mySelf.containsVariable(this.USERVAR_Y)) { va...
- 23 Apr 2017, 13:29
- Forum: SFS2X Questions
- Topic: Cannot convert 293 to com.smartfoxserver.v2.entities.variables.UserVariable.
- Replies: 11
- Views: 17052
Re: Cannot convert 293 to com.smartfoxserver.v2.entities.variables.UserVariable.
This would be what you're talking about right? private const USERVAR_X:String = "x"; private const USERVAR_Y:String = "y"; Yep, those look correct... What about the code where your creating the user variables? That error says your sending smartFox a number instead of a user vari...
- 23 Apr 2017, 00:44
- Forum: SFS2X Questions
- Topic: Cannot convert 293 to com.smartfoxserver.v2.entities.variables.UserVariable.
- Replies: 11
- Views: 17052
Re: Cannot convert 293 to com.smartfoxserver.v2.entities.variables.UserVariable.
You need to provide a user variable formatted properly with a smartFox class, not a number... The problem is in your setAvatarVariables() function, or the next function, not here... Somewhere you went wrong with these... Are you sure USERVAR_? are all strings? The first input for creating a instanc...
- 22 Apr 2017, 23:07
- Forum: SFS2X Questions
- Topic: Cannot convert 293 to com.smartfoxserver.v2.entities.variables.UserVariable.
- Replies: 11
- Views: 17052
Cannot convert 293 to com.smartfoxserver.v2.entities.variables.UserVariable.
Hey guys, I have ran into a new problem, I cannot convert (293) half of my stage to successfully spawn in my avatars. Any value I give it, it won't let me use. Any ideas? Here's my code: if (! sfs.mySelf.containsVariable(this.USERVAR_X) && ! sfs.mySelf.containsVariable(this.USERVAR_Y)) { var...
- 22 Apr 2017, 17:23
- Forum: 2X Features Wish List
- Topic: Can config activation code
- Replies: 5
- Views: 12891
Re: Can config activation code
Lapo wrote:Thanks for your feedback.
We'll include this in the next release.
Cheers
Did this ever happen?
- 22 Apr 2017, 17:22
- Forum: SFS2X Questions
- Topic: (SOLVED)Parameter value must be non-null.
- Replies: 1
- Views: 3606
(SOLVED)Parameter value must be non-null.
Hey guys, I'm having more issues with avatars. I am using the following code: function onJoin(evt:SFSEvent):void { trace("Room joined successfully"); if (! sfs.mySelf.containsVariable(this.USERVAR_X) && ! sfs.mySelf.containsVariable(this.USERVAR_Y)) { var px:int = Math.round(Math.r...
- 04 Mar 2017, 02:27
- Forum: SFS2X Questions
- Topic: Any way to automatically upload the updated .swf file to...
- Replies: 2
- Views: 4383
Any way to automatically upload the updated .swf file to...
Hey guys, I was wondering with SFS2X if there's a way to automatically upload a .swf file that's been updated in Flash to my web server? And if so, could I get some possible examples? If not, I think it would be a nice thing to investigate maybe through HTTP requests, and possibly add it to SFS arse...
- 04 Mar 2017, 02:24
- Forum: SFS2X Questions
- Topic: sfs.connect returns a 1009 error in .as file.
- Replies: 4
- Views: 5703
Re: sfs.connect returns a 1009 error in .as file.
Lapo wrote:Please show me the entire code that causes the issue, and the full stack trace of the exception.
You were right, I overlooked it. Rookie mistake.
- 01 Mar 2017, 18:44
- Forum: SFS2X Questions
- Topic: sfs.connect returns a 1009 error in .as file.
- Replies: 4
- Views: 5703
Re: sfs.connect returns a 1009 error in .as file.
Yep, it's initialized at the top.
- 01 Mar 2017, 16:56
- Forum: SFS2X Questions
- Topic: sfs.connect returns a 1009 error in .as file.
- Replies: 4
- Views: 5703
sfs.connect returns a 1009 error in .as file.
Hi again, Today my problems pretty puzzling to me, I have started writing my code into a .as file. However when I try to put sfs.connect("iphere", porthere); into the initConnect() function it returns a error #1009 which translates to: Cannot access a property or method of a null object re...
- 15 Feb 2017, 18:53
- Forum: SFS2X Questions
- Topic: Random no error shutdown after patch 2.12.3
- Replies: 1
- Views: 3612
Random no error shutdown after patch 2.12.3
Hey guys, After updating to the new patch 2.12.3 I'm having struggles starting my server on a Ubuntu server. The following is my logs: 15 Feb 2017 | 18:50:10,565 | INFO | main | smartfoxserver.v2.SmartFoxServer | | Boot sequence starts... 15 Feb 2017 | 18:50:11,222 | INFO | main | v2.core.SFSEventMa...
- 08 Jan 2017, 22:18
- Forum: SFS2X Questions
- Topic: Game purchases
- Replies: 2
- Views: 4344
Re: Game purchases
Lapo wrote:Hi,
Apple and Google respectively offer their native API for this. If you're using Unity I am pretty sure there are multiple options in the Asset Store to setup in-app purchases.
cheers
Thanks for that Lapo!
- 03 Jan 2017, 01:55
- Forum: SFS2X Questions
- Topic: Game purchases
- Replies: 2
- Views: 4344
Game purchases
Hi there,
I was wondering if there was a simple way to go about getting in-game purchases going for my Virtual World.
I was wondering if there was a simple way to go about getting in-game purchases going for my Virtual World.
- 27 Dec 2016, 16:21
- Forum: SFS2X Questions
- Topic: 12 errors of Access of undefined property, all having to do with User Variables.
- Replies: 5
- Views: 6720
Re: 12 errors of Access of undefined property, all having to do with User Variables.
Which avatars exactly? Are you referring to our "Avatar Chat example": http://docs2x.smartfoxserver.com/ExamplesFlash/avatar-chat or something else? Thanks I'm building my own MMO with my own avatars and I'm not exactly sure on how to get them to show on the stage and have that work with ...
- 26 Dec 2016, 22:46
- Forum: SFS2X Questions
- Topic: 12 errors of Access of undefined property, all having to do with User Variables.
- Replies: 5
- Views: 6720
Re: 12 errors of Access of undefined property, all having to do with User Variables.
Hi, are you sure you have linked the swc to your project? Make sure you've followed the directions found here: http://docs2x.smartfoxserver.com/GettingStarted/client-api-as3 Also many of the referenced names in the 12 errors you have reported have nothing to do with the SFS API, so there must be so...