Search found 12 matches

by TreeTree
15 Jul 2010, 15:31
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Is it safe to edit SysHandler?
Replies: 2
Views: 5466

Oh yeah I could do that... talk about overcomplicating. Well just for future knowledge is it safe to edit SysHandler?
by TreeTree
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 ...
by TreeTree
12 Jul 2010, 16:23
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Character Walk Change
Replies: 11
Views: 18097

If you want the character to face left when he moves left, you just set the rotation of the character to face that angle. I don't think this has anything to do with SmartFox. :?
by TreeTree
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 ...
by TreeTree
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 ...
by TreeTree
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 ...
by TreeTree
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

I've been trying to create the lobby but I keep getting a problem, if I log on first, the player list shows just me, then when I log on with another program that program shows both players but the first program only shows the second player.

private function UpdatePlayerBox (room) {
while ...
by TreeTree
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

If that's the case would it be possible to achieve this:
A list of game rooms, when I click or hover my mouse over each room a list of the players in that room will be displayed?
Or will I have to make the lobby and all the rooms one big room so I can get a list of every player and create my own ...
by TreeTree
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 ...
by TreeTree
28 May 2010, 22:31
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Connecting to my server from another computer
Replies: 4
Views: 7720

Awesome! It seems to be working now. Port forwarded and firewall unblocked, I can connect from a laptop and from my friend's computer. Thanks a lot!
by TreeTree
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 ...
by TreeTree
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 ...