Search found 54 matches

by gl0om
29 Sep 2010, 20:31
Forum: Server Side Extension Development
Topic: helper.getUserById throws Exception (not string issue)
Replies: 6
Views: 2912

oops, my inattention, helper was uninitialized...
by gl0om
29 Sep 2010, 19:56
Forum: Server Side Extension Development
Topic: helper.getUserById throws Exception (not string issue)
Replies: 6
Views: 2912

No, data is ok. First thing I checked was data. Tracing avatar_id shows me correct number.
by gl0om
29 Sep 2010, 12:29
Forum: Server Side Extension Development
Topic: helper.getUserById throws Exception (not string issue)
Replies: 6
Views: 2912

helper.getUserById throws Exception (not string issue)

public void _handleRequest(String cmd, org.json.JSONObject data, User fromUser, int fromRoom) { ... skipped ... int avatar_id = data.getInt("avatar_id"); User target = helper.getUserById(avatar_id); //line 195 ... skipped ... } throws java.lang.NullPointe...
by gl0om
28 Sep 2010, 15:55
Forum: OpenSpace v2 discussions and help
Topic: Pets
Replies: 16
Views: 7806

Yes, you are right, I use 1 task per User. I tried to figure out what's happening inside doTask.. public void doTask(Task task) throws Exception { String id = (String) task.id; String message = "Handling Task >>> { " + id + " }"; Map params = task.p...
by gl0om
27 Sep 2010, 08:59
Forum: OpenSpace v2 discussions and help
Topic: Pets
Replies: 16
Views: 7806

Lapo wrote:task.active = false
is correct, but... are you absolutely sure you are pointing to the right task?

I suppose that task is correct. It's an argument for doTask(Task task)
by gl0om
24 Sep 2010, 20:44
Forum: OpenSpace v2 discussions and help
Topic: Pets
Replies: 16
Views: 7806

I met a problem. I pass Npc-user as parameter to Task and perform moveAvatar in it. When I kick user Task doesn't stop and I begin to receive warnings like "moveAvatar is ignored because user is not in room". I tried to do such tricks inside doTask if (!npc.isInRoom(npc.getRoom(...
by gl0om
24 Sep 2010, 12:25
Forum: OpenSpace v2 discussions and help
Topic: Pets
Replies: 16
Views: 7806

Seems like you answered on my unedited reply... Actually I found in docs article about scheduler, hope it'll help me in controlling my army of npc
by gl0om
22 Sep 2010, 20:07
Forum: OpenSpace v2 discussions and help
Topic: Pets
Replies: 16
Views: 7806

I use Vector<User> for controlled avatars and Timer for controlling them, but I suppose it's too ugly approach for making npc with "brain"... Please, bax, can you suggest better idea for this?
by gl0om
23 Jun 2010, 07:31
Forum: Java2SE / Android Client API
Topic: SFSEvent.onLogin doesn't work
Replies: 3
Views: 5240

I begin to imagine that everybody knows what's wrong and quietly giggling on me :roll:
by gl0om
21 Jun 2010, 08:04
Forum: Java2SE / Android Client API
Topic: SFSEvent.onLogin doesn't work
Replies: 3
Views: 5240

any ideas?
by gl0om
18 Jun 2010, 09:58
Forum: Java2SE / Android Client API
Topic: SFSEvent.onLogin doesn't work
Replies: 3
Views: 5240

SFSEvent.onLogin doesn't work

When I change customLogin to true, SFSEvent.onLogin doesn't work. I'm sure that custom login extension is 100% correct.
by gl0om
15 Jun 2010, 05:53
Forum: OpenSpace v2 discussions and help
Topic: How to save object's skin state, broadcast the skin change?
Replies: 8
Views: 3919

I don't know what ix is too, but I found it in json object during saving the map. It looks something like {"ix":131,"ii":"lamp2","i":"t54"}
by gl0om
14 Jun 2010, 20:29
Forum: OpenSpace v2 discussions and help
Topic: How to save object's skin state, broadcast the skin change?
Replies: 8
Views: 3919

What should I use as unique ID of our "lamp"? Does "ix" value from map's json data can be used as a key to store in db? I'm afraid that ix value may be changed after editing the map.
by gl0om
14 Jun 2010, 14:14
Forum: OpenSpace v2 discussions and help
Topic: How to save object's skin state, broadcast the skin change?
Replies: 8
Views: 3919

How to save object's skin state, broadcast the skin change?

Is it possible to broadcast event of changing object's skin? I mean clicking on lamp to switch the light on or off. It would be great to broadcast this event to other clients inside room. And also it'd be great to save lamp's state in database whether it turned on or off. And then load lamp's state ...
by gl0om
29 May 2010, 20:49
Forum: OpenSpace v2 discussions and help
Topic: Avatar Creation in Flash
Replies: 43
Views: 20627

I suggest I didn't understand the solution you adviced, or it just doesn't work :?

I'm waiting for you example very much. I hope it'll set all my questions.

Go to advanced search