Search found 12 matches
- 15 Jul 2010, 15:31
- Forum: SmartFoxServer 1.x Discussions and Help
- Topic: Is it safe to edit SysHandler?
- Replies: 2
- Views: 5466
- 14 Jul 2010, 18:38
- Forum: SmartFoxServer 1.x Discussions and Help
- Topic: Is it safe to edit SysHandler?
- Replies: 2
- Views: 5466
Is it safe to edit SysHandler?
I need to get a user variable from the player who just disconnected from a room. But the user gets disconnected before the onUserLeaveRoom event is fired so I can't get the user object. So will it mess up anything if I did this to the SysHandler code?
public function handleUserLeaveRoom(o:Object ...
public function handleUserLeaveRoom(o:Object ...
- 12 Jul 2010, 16:23
- Forum: SmartFoxServer 1.x Discussions and Help
- Topic: Character Walk Change
- Replies: 11
- Views: 18097
- 12 Jul 2010, 16:21
- Forum: SmartFoxServer 1.x Discussions and Help
- Topic: Updating variables is much slower for some reason
- Replies: 1
- Views: 4412
Updating variables is much slower for some reason
I've made 2 real time multiplayer games where it's just client to client style. In both those games I had an EnterFrame event that goes through the user list and updates the position of every other player in the game using getVariable (). Those 2 games updated the positions at a fast speed so when ...
- 09 Jul 2010, 14:56
- Forum: SmartFoxServer 1.x Discussions and Help
- Topic: Sending an object with arrays with objects in them
- Replies: 1
- Views: 4082
Sending an object with arrays with objects in them
Is that possible with the sendObjectToGroup method?
object.str = event.target.data.Str;
object.dex = event.target.data.Dex;
object.vit = event.target.data.Vit;
object.mag = event.target.data.Mag;
object.x = event.target.data.X;
object.y = event.target.data.Y;
var playerskillids:Array = event ...
object.str = event.target.data.Str;
object.dex = event.target.data.Dex;
object.vit = event.target.data.Vit;
object.mag = event.target.data.Mag;
object.x = event.target.data.X;
object.y = event.target.data.Y;
var playerskillids:Array = event ...
- 30 Jun 2010, 16:27
- Forum: SmartFoxServer 1.x Discussions and Help
- Topic: server.disconnect () and saving info
- Replies: 3
- Views: 6992
server.disconnect () and saving info
If I am connected to the server and I click the red X to close the entire program, will onConnectionLost run? I am creating an RPG which saves player information to a MySQL database when the player disconnects from the server. I am able to save the info when I click the back button on my character ...
- 05 Jun 2010, 15:22
- Forum: SmartFoxServer 1.x Discussions and Help
- Topic: getUserList returns an empty array when there is a user
- Replies: 24
- Views: 33524
- 04 Jun 2010, 23:02
- Forum: SmartFoxServer 1.x Discussions and Help
- Topic: getUserList returns an empty array when there is a user
- Replies: 24
- Views: 33524
- 04 Jun 2010, 20:21
- Forum: SmartFoxServer 1.x Discussions and Help
- Topic: getUserList returns an empty array when there is a user
- Replies: 24
- Views: 33524
getUserList returns an empty array when there is a user
I'm trying to make a lobby which displays a list of all the players in the zone and the game rooms they are in, like the game Gunz. When I call server.getRoomList and I go through the roomList that gets returned:
private function GotRooms (event:SFSEvent) {
for (var room in event.params.roomList ...
private function GotRooms (event:SFSEvent) {
for (var room in event.params.roomList ...
- 28 May 2010, 22:31
- Forum: SmartFoxServer 1.x Discussions and Help
- Topic: Connecting to my server from another computer
- Replies: 4
- Views: 7720
- 28 May 2010, 19:33
- Forum: SmartFoxServer 1.x Discussions and Help
- Topic: Connecting to my server from another computer
- Replies: 4
- Views: 7720
So I have to change smartFox.connect ("the ip from that website", 9339) and the * in config.xml to 192.168.0.2 which I got from ipconfig in the command prompt.
I did this and the server started with the 192.168.0.2 address but my flash application wasn't able to connect from my own computer. I ran ...
I did this and the server started with the 192.168.0.2 address but my flash application wasn't able to connect from my own computer. I ran ...
- 28 May 2010, 01:00
- Forum: SmartFoxServer 1.x Discussions and Help
- Topic: Connecting to my server from another computer
- Replies: 4
- Views: 7720
Connecting to my server from another computer
I'm starting my SmartFoxServer on my desktop computer at home and I'm using Flash AS3 with it but I just can't find out how to connect to the server from another computer. The server IP in my config.xml is * and I have in Flash smartFox.connect ("127.0.0.1", 9339). Works just fine from my computer ...