Search found 43 matches

by hasbean
15 Jan 2011, 05:47
Forum: SFS2X Questions
Topic: SFSArray, Query problem or a bug
Replies: 12
Views: 16157

I have to thank you guys. I was pulling my hair out trying to figure out why I was getting this error. As soon as I removed all null values, everything worked.

Thanks! I'm not sure why this bug still exists 2 months later.
by hasbean
24 May 2010, 20:33
Forum: iPhone Objective-C API
Topic: Client not receiving certain messages - please help!
Replies: 2
Views: 11642

This has actually fixed an incredibly annoying bug where I'd get a BAD ACCESS when receiving a long room list with many variables (craps out at the xml parsing part.)

I just wanted to extend my thanks :D I'm using it and I don't see any adverse side effects
by hasbean
06 Mar 2010, 14:59
Forum: Server Side Extension Development
Topic: ClassCastException when reloading extension with an executor
Replies: 4
Views: 6180

Wow, I almost had a heart attack. I was depending heavily on the "npc" key in the user's properties! I got the same ClassCastException when the NPC moved to another room (therefore another extension). What actually happened was that start.sh didn't have javaExtensions/ included. Once I add...
by hasbean
06 Mar 2010, 10:26
Forum: Server Side Extension Development
Topic: ClassCastException when reloading extension with an executor
Replies: 4
Views: 6180

ClassCastException when reloading extension with an executor

I am having the strangest experience ever with this piece of code. I have a ScheduledThreadPoolExecutor running every 250 milliseconds to check users positions and broadcast it if anyone moved: executor = new ScheduledThreadPoolExecutor(15); task = executor.scheduleAtFixedRate(new doTask...
by hasbean
28 Nov 2009, 09:36
Forum: RedBox
Topic: RedBox didn't work when using Flash CS4's generated HTML
Replies: 0
Views: 3965

RedBox didn't work when using Flash CS4's generated HTML

I went blue in the face trying to get RedBox to work, but it just wouldn't give me the popup that says "Allow Microphone/Camera access." I tried and tried and tried and it just wouldn't work. After much hair pulling, it turns out when I publish and use the generated HTML file from Flash CS...
by hasbean
14 Oct 2009, 06:01
Forum: Server Side Extension Development
Topic: The Remove ban by username button fails in the AdminTool
Replies: 6
Views: 10000

Do I need to restart the server after deleting bannedUsers.sfs? The banned username still seems to show up on the ban manager.
by hasbean
06 Oct 2009, 11:55
Forum: RedBox
Topic: Fire event when done initializing Live Casts on room join
Replies: 3
Views: 9205

I did but the only difference is that the conference is joined as soon as the game room is joined, there is no "Join Conference" button. I think I'm running into a race condition. I looked into the code of AVCastManager.as and I see that my getAvailableCasts() (which sets castListRequested...
by hasbean
05 Oct 2009, 22:14
Forum: RedBox
Topic: Fire event when done initializing Live Casts on room join
Replies: 3
Views: 9205

Fire event when done initializing Live Casts on room join

Hello, I'm trying to create game rooms where people are added to the conference automatically as soon as they join. The problem I'm having is that events for onLiveCastPublished and onLiveCastUnpublished are not being fired. My assumption is because I'm running the avCastMan.getAvailableCasts() meth...
by hasbean
10 Sep 2009, 20:49
Forum: Server Side Extension Development
Topic: RoomVariable received but misinterpreted.
Replies: 2
Views: 4593

I went blue in the face trying to fix the same issue. It was evaluating true everywhere except in Flash I changed this vars.put("seat"+i.toString(), new RoomVariable("true", RoomVariable.TYPE_BOOLEAN, null, true, false)); to this vars.put("seat&qu...
by hasbean
02 Sep 2009, 19:13
Forum: Server Side Extension Development
Topic: sendResponse for NPCs?
Replies: 5
Views: 7509

Ok this is really bugging me :( I'm sure there's a simpler way to do this. I wonder if I've overcomplicated things. This is my class hierarchy: Server creates instance of Game Game creates 4 instances of players (Base class Player, extend by bot or human classes) My problem: Server determines that i...
by hasbean
02 Sep 2009, 14:33
Forum: Server Side Extension Development
Topic: sendResponse for NPCs?
Replies: 5
Views: 7509

Ok, apparently what I did doesn't work at all...
by hasbean
02 Sep 2009, 14:03
Forum: Server Side Extension Development
Topic: sendResponse for NPCs?
Replies: 5
Views: 7509

Ahhh, in my impatience I kinda went my own route :( I think all I need to do is add the NPCs. I implemented a handler for responses: public void sendOne(ActionscriptObject res, Integer position) { if (game.players.get(position).bot) { game.players.get(position&#...
by hasbean
02 Sep 2009, 11:52
Forum: Server Side Extension Development
Topic: sendResponse for NPCs?
Replies: 5
Views: 7509

sendResponse for NPCs?

Hello, I'm programming a card game and I would like to add bots to the mix. I noticed the createNPC method which is right up my alley. However, how do I make the NPC send an extension message back? normal players can play this way: server->client: your turn client->server: I play an ace of hearts se...

Go to advanced search