Search found 97 matches

by dingo
09 Sep 2009, 18:36
Forum: Server Side Extension Development
Topic: ArrayList > JSONObject
Replies: 1
Views: 1031

ok i think i've found a way: ArrayList<DataRow> queryRes = dbManager.executeQuery(sql); if (queryRes != null && queryRes.size() > 0) { int queryResLength = queryRes.size(); for(int i=0; i < queryResLength; i++) { DataRow row = queryRes.get...
by dingo
09 Sep 2009, 16:40
Forum: Server Side Extension Development
Topic: ArrayList > JSONObject
Replies: 1
Views: 1031

ArrayList > JSONObject

hi,

just a quick question from a java newbie.

what would be the easiest way to cast the output from the dbManager.executeQuery (an ArrayList) to a JSONObject so i can send it back to the client.

Do i have to cycle through each row in the ArrayList and add the items manually?

thanks.
by dingo
17 Aug 2009, 09:05
Forum: SmartFoxServer 1.x Discussions and Help
Topic: a few questions
Replies: 3
Views: 1566

you're right lapo, it was a bad design idea.

i missed the point that TCP packets are not lost, so all players should have the same game state, in my case, there's no need for the server to store the state for each room.

When a user joins, i will send him the game state from another user.
by dingo
13 Aug 2009, 19:02
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Questions about getting the right vps package.
Replies: 7
Views: 2540

i've found two interesting hosts:

http://vps.net and http://www.10tb.com

i like the offer from vps, that they will help you setup your server for i think another 80 dollars. 10tb has nice bandwidth though....
by dingo
13 Aug 2009, 13:39
Forum: SmartFoxServer 1.x Discussions and Help
Topic: a few questions
Replies: 3
Views: 1566

a few questions

Hi there, i'm not quite sure how/where/if to store my room states/variables, perhaps i can get some suggestions. I'm creating a game with about 6 people per Room. I'm planning to have a lot of rooms open, so i decided to go with one zone extension, currently in AS, later on i will port it to Java. T...
by dingo
06 Feb 2009, 16:06
Forum: SmartFoxServer 1.x Discussions and Help
Topic: some questions
Replies: 2
Views: 1134

ah ok, i get it now.

I was missing the point that getAllRooms is just using the Local RoomList, thanks Lapo.
by dingo
06 Feb 2009, 12:30
Forum: SmartFoxServer 1.x Discussions and Help
Topic: some questions
Replies: 2
Views: 1134

some questions

Hi, i'm new to SFS, but first of all i have to say that i am amazed with this product. The clear documentation, the examples, the very simple API - everything is simply amazing! now to my question: 1. does data that is sent with sendObject go directly to the users (peer to peer)? without putting muc...

Go to advanced search