If bots are created before the real User joins the Room then there will be no USER_ENTER_ROOM.
The USER_ENTER_ROOM only triggers for Users that join the Room after I have joined.
Can you please describe the sequence of events you're testing, step by step?
I know that USER_ENTER_ROOM triggers if user already connected to the game room
The sequence is as follows:
User creates a game room, waiting for opponent for 10 seconds (timer starts), if no any opponent connecting then NPC automatically adding to this room (by extension request from client: new SFS2X.ExtensionRequest("addnpc", obj, sfs.lastJoinedRoom))
When another player join game the USER_ENTER_ROOM fires fine, but not for npc (in admin I see that NPC entered)
I am not able to reproduce the problem.
I tested with our standard chat example in Javascript as client, and triggered the creation of an NPC from server side. The User appears in the Room, triggering the expected USER_ENTER_ROOM event.
Unless you have some error on client or server side I wouldn't expect this to fail. Additionally you said you can see the NPC being logged in the server and joined in the Room via the AdminTool which means that your server side code works.
As regards the client side it should work perfectly fine because NPCs are just regular User objects as real players. The only exception to this would be if you were using an MMORoom, which doesn't use the USER_ENTER_ROOM event...
Thanks,
if you want you can send us a project that reproduces the issue, provided it's a simple example and not an entire project with tons of other dependencies.
You can send it zipped to our support@... email box with a referenct to this forum thread.