Photon Iphone objective c not working
Options
Hi, I am encountering many problem with photon iOS objective c API.
opJoinRandomRoom fails to join rooms on several occasions.
Can you please tell what is wrong with following code? Players not able to join with below code. Please help.
- (void) opCreateRoom
{
NSString * roomname= [NSString stringWithFormat:@%d,arc4random()%2000];
NSDictionary* dictGameRoomProps = [NSDictionary dictionaryWithObjectsAndKeys:
[NSNumber numberWithInt:1212],@Random_Seed,
@myfilter,@RoomFilter,
nil];
EGArray * roomProps= [EGArray arrayWithObject:@RoomFilter];
[mLoadBalancingClient opCreateRoom:roomname :true :true :4:dictGameRoomProps :roomProps];
mStateAccessor.State = STATE_JOINING;
}
- (void) opJoinRandomRoom
{
NSDictionary* dictGameRoomProps = [NSDictionary dictionaryWithObjectsAndKeys:
@myfilter,@RoomFilter,
nil];
[mLoadBalancingClient opJoinRandomRoom:dictGameRoomProps];
}
opJoinRandomRoom fails to join rooms on several occasions.
Can you please tell what is wrong with following code? Players not able to join with below code. Please help.
- (void) opCreateRoom
{
NSString * roomname= [NSString stringWithFormat:@%d,arc4random()%2000];
NSDictionary* dictGameRoomProps = [NSDictionary dictionaryWithObjectsAndKeys:
[NSNumber numberWithInt:1212],@Random_Seed,
@myfilter,@RoomFilter,
nil];
EGArray * roomProps= [EGArray arrayWithObject:@RoomFilter];
[mLoadBalancingClient opCreateRoom:roomname :true :true :4:dictGameRoomProps :roomProps];
mStateAccessor.State = STATE_JOINING;
}
- (void) opJoinRandomRoom
{
NSDictionary* dictGameRoomProps = [NSDictionary dictionaryWithObjectsAndKeys:
@myfilter,@RoomFilter,
nil];
[mLoadBalancingClient opJoinRandomRoom:dictGameRoomProps];
}
0
Comments
-
Hi Shakthi.
Could you please provide us with the log of the Photon libraries? Thanks.
You should therefor set the debug level to at least DebugLevel::ALL at print everything that you receive in debugReturn() into a separate file (so that it doesn't mix up with logs from other code than Photon).0