Search found 31 matches

by duke
11 Aug 2009, 11:27
Forum: Server Side Extension Development
Topic: Extension-per-user
Replies: 1
Views: 4344

Ok, nevermind. Hibernate and Vector arrays are apparently the way to go :)
by duke
11 Aug 2009, 07:23
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Building MMO Virtual Worlds
Replies: 10
Views: 28948

If one were to store active users in an array (which would extend the SFS User with other info specific to your game), what would be the best way to store and refer to them by ID? For example, if I wanted to send a network message to another user via the main extension, I could do something like &qu...
by duke
10 Aug 2009, 07:01
Forum: Server Side Extension Development
Topic: Extension-per-user
Replies: 1
Views: 4344

Extension-per-user

This is probably a broader question of how object creation in an extension works. For example, using hibernate I treat all my users as "actors". Every time a user logs in, an Actor object should be created to track and handle him. There will be potentially hundreds and possibly thousands o...
by duke
09 Aug 2009, 02:00
Forum: Server Side Extension Development
Topic: Protecting against SQL injection
Replies: 7
Views: 13792

Sorry to raise this thread from the dead, but i'm curious to know - what's the advantage of using the escapeQuotes method over using Java's prepared statements?

http://java.sun.com/docs/books/tutorial ... pared.html
by duke
11 Jul 2009, 06:59
Forum: Server Side Extension Development
Topic: Thousands of NPC
Replies: 7
Views: 11433

To avoid the known bug, you can write an external application (better in Java using the SFS Java API) that simulates any number of NPCs which can be created and destroyed without problems. As regards the fixing of this problem we have no estimated date as it depends on a specific TCP issue, and is ...
by duke
02 Jul 2009, 09:31
Forum: Server Side Extension Development
Topic: handleInternalEvent details!
Replies: 2
Views: 6039

handleInternalEvent details!

I see I can intercept the following: loginRequest logOut userJoin userExit userLost spectatorSwitched newRoom roomLost pubMsg privMsg fileUpload serverReady playerSwitched would it be possible to add "login" event? There's one for if the user requests to login, and one if he logs out, but ...
by duke
01 Jul 2009, 05:34
Forum: Server Side Extension Development
Topic: How to block roomList updates?
Replies: 8
Views: 12065

Can't you make an extension that intercepts the RoomListUpdate (or something like that) event? Just like the login extension intercepts the login event.. Then do stuff to it and send it to the client, for example only give him the first room or a fixed, single room name.
by duke
31 May 2009, 07:26
Forum: .Net / Unity3D API
Topic: Switch/Case block for JSON?
Replies: 4
Views: 12201

The problem is a JSON obj isn't a SFSObject - so what is it? If it's JsonData, then I can't do a switch/case on it. My question is exactly as I put it in the first post - how do I do a switch/case for a json object.
by duke
19 May 2009, 08:18
Forum: .Net / Unity3D API
Topic: Switch/Case block for JSON?
Replies: 4
Views: 12201

To clarify, I can do this for xml: void OnExtensionResponse(object data, string type) { if (type == SmartFoxClient.XTMSG_TYPE_XML) { SFSObject xmlObj = (SFSObject)data; switch (xmlObj.GetString("cmd")) { case "actorMoveGet": ...
by duke
19 May 2009, 04:54
Forum: Server Side Extension Development
Topic: "simple" collisions library?
Replies: 1
Views: 4793

Actually I guess creating a list of object within a certain radius of the player is more spatial trigger detection... or something.
by duke
19 May 2009, 01:11
Forum: Server Side Extension Development
Topic: "simple" collisions library?
Replies: 1
Views: 4793

"simple" collisions library?

Could anyone recommend a java collision/simple physics library? It only needs to be 2D. Alternatively, maybe theres one for AS or Python I could use if it's any easier? The main purpose would be: -Spawn client in a fixed 2D space (with set bounds), server asks client for current position at 5fps or ...
by duke
19 May 2009, 01:06
Forum: Server Side Extension Development
Topic: Managing multi-extension Zone
Replies: 2
Views: 5715

Yeah that island demo is fantastic Thomas - thanks! I learnt about singletons and am using them successfully on both client and server. This question was more to do with serverside extensions than Unity (client). What i've got for now though, is a static GetZone function in my manager. So if i'm ins...
by duke
18 May 2009, 23:19
Forum: .Net / Unity3D API
Topic: Switch/Case block for JSON?
Replies: 4
Views: 12201

Switch/Case block for JSON?

I asked this in irc last night but went to sleep soon after! How do I go about doing a switch/case block for JSONData? Like for XML I go "SFSObject dataObj = (SFSObject)data (where data is an object input of OnExtensionResponse" and "dataObj.GetString("cmd")". How do I ...
by duke
17 May 2009, 23:16
Forum: Features Wish List
Topic: Automatic extension reload on filechange
Replies: 8
Views: 14391

Automatic extension reload on filechange

What would be great is if an active extension (one that is loaded into a currently active zone/room) would reload itself if it's file is changed. This would save navigating to the zone, then reloading that extension or series of extensions and would speed up development time! Alternatively, is there...
by duke
14 May 2009, 00:25
Forum: Server Side Extension Development
Topic: Managing multi-extension Zone
Replies: 2
Views: 5715

Managing multi-extension Zone

The questions here might be a bit vague - i'm at work so I can't look at my project to point out specifics. What is the best way to handle multiple extensions in one Zone? Right now, I have: Login Manager GameServer ..as extensions attached to the zone. The is an mmo project in Unity. Login manages ...

Go to advanced search