Search found 192 matches

by Ninjaoninja2
18 May 2017, 21:34
Forum: SFS2X Questions
Topic: SFS2X starts with no errors but cannot access it
Replies: 2
Views: 1000

SFS2X starts with no errors but cannot access it

Hey guys, I've encountered an interesting issue between my server and SFS2X, I just did a basic install of 2X on my test server (version 2.13) and for some reason everything starts without ANY errors I've scrolled up and down the log, nothing. So I'm wondering why cannot I reach the 2X welcome page ...
by Ninjaoninja2
18 May 2017, 21:31
Forum: 2X Features Wish List
Topic: Can config activation code
Replies: 5
Views: 2973

Re: Can config activation code

Lapo wrote:It is coming with SFS2X 2.13, due in a few days.
Stay tuned

Hey Lapo, 2.13 came out but I didn't see it in the changelog? Are you guys updating the docs to match it?
by Ninjaoninja2
26 Apr 2017, 23:24
Forum: SFS2X Questions
Topic: Cannot convert 293 to com.smartfoxserver.v2.entities.variables.UserVariable.
Replies: 11
Views: 3107

Re: Cannot convert 293 to com.smartfoxserver.v2.entities.variables.UserVariable.

You sending numbers, where there should only be instances of SFSUserVariable's... var userVars:Array =[px, py];//Problem is right here. userVars.push(new SFSUserVariable(this.USERVAR_X, px)); userVars.push(new SFSUserVariable(this.USERVAR_Y, py)); //Change that to... var userVars:Array = new Array(...
by Ninjaoninja2
26 Apr 2017, 18:42
Forum: SFS2X Questions
Topic: Cannot convert 293 to com.smartfoxserver.v2.entities.variables.UserVariable.
Replies: 11
Views: 3107

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...
by Ninjaoninja2
23 Apr 2017, 13:29
Forum: SFS2X Questions
Topic: Cannot convert 293 to com.smartfoxserver.v2.entities.variables.UserVariable.
Replies: 11
Views: 3107

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...
by Ninjaoninja2
23 Apr 2017, 00:44
Forum: SFS2X Questions
Topic: Cannot convert 293 to com.smartfoxserver.v2.entities.variables.UserVariable.
Replies: 11
Views: 3107

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...
by Ninjaoninja2
22 Apr 2017, 23:07
Forum: SFS2X Questions
Topic: Cannot convert 293 to com.smartfoxserver.v2.entities.variables.UserVariable.
Replies: 11
Views: 3107

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...
by Ninjaoninja2
22 Apr 2017, 17:23
Forum: 2X Features Wish List
Topic: Can config activation code
Replies: 5
Views: 2973

Re: Can config activation code

Lapo wrote:Thanks for your feedback.
We'll include this in the next release.

Cheers

Did this ever happen?
by Ninjaoninja2
22 Apr 2017, 17:22
Forum: SFS2X Questions
Topic: (SOLVED)Parameter value must be non-null.
Replies: 1
Views: 893

(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...
by Ninjaoninja2
04 Mar 2017, 02:27
Forum: SFS2X Questions
Topic: Any way to automatically upload the updated .swf file to...
Replies: 2
Views: 925

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...
by Ninjaoninja2
04 Mar 2017, 02:24
Forum: SFS2X Questions
Topic: sfs.connect returns a 1009 error in .as file.
Replies: 4
Views: 1405

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. ;)
by Ninjaoninja2
01 Mar 2017, 18:44
Forum: SFS2X Questions
Topic: sfs.connect returns a 1009 error in .as file.
Replies: 4
Views: 1405

Re: sfs.connect returns a 1009 error in .as file.

Lapo wrote:Is sfs initialized?
Such as:

Code: Select all

sfs = new SmartFox()

Yep, it's initialized at the top.
by Ninjaoninja2
01 Mar 2017, 16:56
Forum: SFS2X Questions
Topic: sfs.connect returns a 1009 error in .as file.
Replies: 4
Views: 1405

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...
by Ninjaoninja2
15 Feb 2017, 18:53
Forum: SFS2X Questions
Topic: Random no error shutdown after patch 2.12.3
Replies: 1
Views: 899

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...
by Ninjaoninja2
08 Jan 2017, 22:18
Forum: SFS2X Questions
Topic: Game purchases
Replies: 2
Views: 1106

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!

Go to advanced search