Search found 23 matches

by claudiu.m
09 Nov 2013, 13:50
Forum: SFS2X C++ API
Topic: How to implement the C++ API into Visual Studio 2013
Replies: 3
Views: 2700

Re: How to implement the C++ API into Visual Studio 2013

Thank you MBagnati I will try this.
by claudiu.m
07 Nov 2013, 11:33
Forum: SFS2X C++ API
Topic: How to implement the C++ API into Visual Studio 2013
Replies: 3
Views: 2700

How to implement the C++ API into Visual Studio 2013

Hello, I want to use SmartFoxServer 2X with C++ on the client side so I downloaded the C++ API from here: http://www.smartfoxserver.com/download/sfs2x#p=client . It would be very nice if anyone can tell me how to use the API with Visual Studio 2013. I created a new project but how to use the API? Do...
by claudiu.m
21 Oct 2013, 15:31
Forum: SFS2X Questions
Topic: Execute server data on multiple clients
Replies: 2
Views: 699

Re: Execute server data on multiple clients

Hi Lapo, yes you are right this is the way to do it.
my problem was that the command I got from the server was "undefined" for the second client so that is why it did not work for me.

Thank you again for replying :)
by claudiu.m
21 Oct 2013, 09:28
Forum: SFS2X Questions
Topic: Execute server data on multiple clients
Replies: 2
Views: 699

Execute server data on multiple clients

Hello, I have a dice game where on both client sides should execute the same code. For example this function: this.sfs.send(new SFS2X.Requests.System.ExtensionRequest(DICE_GAME.GAME_COMMANDS.GET_MYRAND_NR)); this.myRandF = function(evt) { /**GET DATA VOM SERVER **/ var first = evt.params.myRand[0]; ...
by claudiu.m
14 Oct 2013, 08:18
Forum: SFS2X Questions
Topic: Request Handler not found??
Replies: 8
Views: 2199

Re: Request Handler not found??

Thank you very much Lapo, this clarified my question.
I will let you know if I have further questions.
Thank you again !
by claudiu.m
10 Oct 2013, 09:10
Forum: SFS2X Questions
Topic: Request Handler not found??
Replies: 8
Views: 2199

Re: Request Handler not found??

Hi Lapo, I have a question about how to better organize my code. Do I have to create for every ClientRequest a new ClientRequestHandler Class or am I able to clasify them like that: /**REQUEST HANDLER**/ this.addRequestHandler(String.valueOf(Commands.GET_USER_DATA.ordinal()), GetUserData.class); /**...
by claudiu.m
10 Oct 2013, 08:23
Forum: SFS2X Questions
Topic: Can not create an instance of ExtensionHelper!
Replies: 2
Views: 535

Re: Can not create an instance of ExtensionHelper!

Hi Bax,
yes you are right, I worked with all the versions of SmartFox so I totally forgot that I was using wrong documentation.
Thank you for taking you time to answer.
by claudiu.m
09 Oct 2013, 15:09
Forum: SFS2X Questions
Topic: Request Handler not found??
Replies: 8
Views: 2199

Re: Request Handler not found??

Oh I just did not saw that, i am sorry.
Is there a possibility to organize the code like in the example from SFSX1?
Thank you for taking your time to help me.
by claudiu.m
09 Oct 2013, 14:41
Forum: SFS2X Questions
Topic: Request Handler not found??
Replies: 8
Views: 2199

Re: Request Handler not found??

Hi Lapo,
I found this : http://www.smartfoxserver.com/docs/1x/index.htm?http://www.smartfoxserver.com/docs/1x/docPages/sfsPro/recipes_RequestDispatching.htm and I found it very nice but it looks like I am not able to use it because of that error.
by claudiu.m
09 Oct 2013, 12:47
Forum: SFS2X Questions
Topic: Request Handler not found??
Replies: 8
Views: 2199

Request Handler not found??

Hello, I have a problem with my extension. I used the tutorial you posted on this page http://www.smartfoxserver.com/docs/1x/index.htm?http://www.smartfoxserver.com/docs/1x/docPages/sfsPro/recipes_RequestDispatching.htm and for my it's not working because I get this error: Request handler not found ...
by claudiu.m
09 Oct 2013, 11:17
Forum: SFS2X Questions
Topic: Can not create an instance of ExtensionHelper!
Replies: 2
Views: 535

Can not create an instance of ExtensionHelper!

Hello, I am working at an extension and I was trying to create an instance of ExtensionHelper like this: private ExtensionHelper helper; I am not able to do this because I get this error : ExtensionHelper cannnot be resolved to a type I have seen that you used this in the SFS documentation. Do you k...
by claudiu.m
25 Sep 2013, 13:30
Forum: SFS2X Questions
Topic: Collection<Integer> is null
Replies: 3
Views: 869

Re: Collection<Integer> is null

Hi Lapo,
sorry about this dumb questions but I am new to programming and OOP and networkprogramming is for me now overwhelming.
Thank you for taking your time to answer such questions.
by claudiu.m
24 Sep 2013, 14:17
Forum: SFS2X Questions
Topic: Collection<Integer> is null
Replies: 3
Views: 869

Collection<Integer> is null

Hello, i am trying to send an array of integers to the server. On the client side i have done it like this: var myarr = {positions:this.pos_arr}; this.sfs.addEventListener(SFS2X.SFSEvent.EXTENSION_RESPONSE, this.new_positions,this); this.sfs.send(new SFS2X.Requests.System.ExtensionRequest(DICE_GAME....
by claudiu.m
16 Sep 2013, 10:21
Forum: SFS2X Questions
Topic: c[d].listener is undefined on EXTENSION_REQUEST
Replies: 3
Views: 813

Re: c[d].listener is undefined on EXTENSION_REQUEST

I put the function for the EventListener out of the main function and now it works fine. It is hard to look for an error because the JavaScript Client API is not readable, it looks like this: Dowload attachment to see the error! If you have another version on the API it would be nice because it is p...

Go to advanced search