Search found 19 matches
- 19 Oct 2019, 05:04
- Forum: SmartFoxServer 1.x Discussions and Help
- Topic: [SFS 1.x | AS3] How to handle failure to connect
- Replies: 1
- Views: 4074
[SFS 1.x | AS3] How to handle failure to connect
When the user clicks a button, it runs fox.connect("127.0.0.1", 9339); etc.. But upon connecting, even if the server is on or off, it goes to the next scene. I saw in the sfs 1.x API / docs that there was an example but it was in AS2 and for whatever reason I wasn't able to get it to work ...
- 02 Mar 2019, 03:36
- Forum: SmartFoxServer 1.x Discussions and Help
- Topic: <RoomNameAvoidChars> not working.
- Replies: 4
- Views: 6591
Re: <RoomNameAvoidChars> not working.
@Lapo Nevermind, I figured it all out. This is solved! thank you.
- 01 Mar 2019, 11:06
- Forum: SmartFoxServer 1.x Discussions and Help
- Topic: <RoomNameAvoidChars> not working.
- Replies: 4
- Views: 6591
Re: <RoomNameAvoidChars> not working.
I misunderstood, I thought this would PREVENT the user rather then just remove the words, so it would say "hey you can't do this action" in a messagebox window. How would I go about doing this then?
This is solved.
This is solved.
- 25 Feb 2019, 10:15
- Forum: SmartFoxServer 1.x Discussions and Help
- Topic: <RoomNameAvoidChars> not working.
- Replies: 4
- Views: 6591
<RoomNameAvoidChars> not working.
<RoomNameAvoidChars> doesn't seem to be working in my config. I create a room with the Chars I wanted it to avoid. I use: <RoomNameAvoidChars><![CDATA[,.:]]></RoomNameAvoidChars> I can still use these characters and the room is made with no problem and is still accessible by everyone. I have tried t...
- 04 Feb 2019, 07:17
- Forum: Server Side Extension Development
- Topic: [AS3] - What am I doing wrong here?
- Replies: 8
- Views: 14297
Re: [AS3] - What am I doing wrong here?
Okay, after trying many things.. I have figured out the issue: User A (the creator of the room) is treated differently then the 3 other players (User B, C, and D) When User A starts the game, he is kept in the 'Limbo' room, and for some reason gets removed from the lobby he was in, which he needs to...
- 31 Jan 2019, 12:43
- Forum: Server Side Extension Development
- Topic: [AS3] - What am I doing wrong here?
- Replies: 8
- Views: 14297
Re: [AS3] - What am I doing wrong here?
From any of the code I've shown, would there be anything in it that showcases why the repEx isn't being ran? I have added traces in repEx and it doesn't work. For my extension, the extension does seem to be running in the zone that the room is in, and it does read the traces and such whenever the ex...
- 30 Jan 2019, 00:18
- Forum: Server Side Extension Development
- Topic: [AS3] - What am I doing wrong here?
- Replies: 8
- Views: 14297
Re: [AS3] - What am I doing wrong here?
Body is returned as nothing, I'm not actually sure what it is.. but it probably isn't that important since I haven't touched any of this stuff from the original code. cmd sends back 0. And how would I send the params back without a new object? I mean, because of the fact I never changed any of the c...
- 29 Jan 2019, 02:27
- Forum: Server Side Extension Development
- Topic: [AS3] - What am I doing wrong here?
- Replies: 8
- Views: 14297
Re: [AS3] - What am I doing wrong here?
Sorry, this is what is sent from the client side, this is sent every time a player clicks on a building. public static function sendOpt(v:Object) : void { var vars:Object = new Object(); vars.option = v.option; vars.pos = v.pos; vars.body = v.body; vars.cmd = v.cmd; fox.sendXtMessage("exRoom2&q...
- 27 Jan 2019, 07:41
- Forum: Server Side Extension Development
- Topic: [AS3] - What am I doing wrong here?
- Replies: 8
- Views: 14297
[AS3] - What am I doing wrong here?
Hey again, I'm wondering what I may be doing wrong here? SWF File: private static function repEx(evt:SFSEvent) : void { var vah:Object = null; var extType:String = null; var roomId:String = null; var optionId:Number = NaN; var pos:uint = 0; var callCommand:uint = 0; var option:Object = null; var pla...
- 25 Jan 2019, 05:32
- Forum: SFS2X Questions
- Topic: Any multiplayer building examples?
- Replies: 1
- Views: 4307
Any multiplayer building examples?
Are there any examples or publicly viewable source for any multiplayer games that communicate with a server extension that can reply for a user to build something? In the game I have, a user can build something when in Multiplayer, but it must go through an extension that I do not have, since the ex...
- 01 Apr 2018, 02:14
- Forum: Server Side Extension Development
- Topic: Converting this Code to work with Extension (ActionScript)
- Replies: 6
- Views: 8768
Re: Converting this Code to work with Extension (ActionScript)
Oh! I'm sorry for the confusion, I did try all lowercase, that did not fix the issue either. This is such a weird occasion! Either way, the issue was solved and all that stuffs. Thank you!
(I managed to do some stuff to get it to work anyway)
(I managed to do some stuff to get it to work anyway)
- 30 Mar 2018, 05:13
- Forum: Server Side Extension Development
- Topic: Converting this Code to work with Extension (ActionScript)
- Replies: 6
- Views: 8768
Re: Converting this Code to work with Extension (ActionScript)
You see, that's actually what I thought. I was looking into it and realized that IS isn't actually really a thing. So I looked into using 'instanceOf' which did not work, same error. I tried 'typeOf' and that did not work. But I tried == and I didn't get any errors... So maybe that solves it! :shock:
- 29 Mar 2018, 12:08
- Forum: Server Side Extension Development
- Topic: Converting this Code to work with Extension (ActionScript)
- Replies: 6
- Views: 8768
Re: Converting this Code to work with Extension (ActionScript)
Yeah that's what I thought. :? but a new challenger appears! 2018/03/29 02:48:49.059 - [ WARNING ] [id: 10] (JavascriptExtension.logASError): Error in extension [ colonyExRoom.as ]: missing ) after condition (colonyExRoom.as#1600) Internal: 25 -- Line number: 24 in file: colonyExRoom.as Line '24' be...
- 28 Mar 2018, 05:41
- Forum: BlueBox
- Topic: [HTTP Send Request Error] BlueBox
- Replies: 9
- Views: 15221
Re: [HTTP Send Request Error] BlueBox
Apologies, I didn't really you must have the 'Pro' version of SmartFoxServer for extensions to work, da-doi.
Thanks for the help anyway
Thanks for the help anyway
- 28 Mar 2018, 05:40
- Forum: Server Side Extension Development
- Topic: Converting this Code to work with Extension (ActionScript)
- Replies: 6
- Views: 8768
Converting this Code to work with Extension (ActionScript)
{ var sendA:Array = null; var i:* = undefined; var user:User = null; updateUserList(); if(reacher.gameRoomMode) { sendA = new Array(); for(i in userList) { if(userList[i] is User) { user = userList[i]; sendA.push({ "name":user.getName(), "id":user.getId() }); } } reacher.updateC...