Client hangs when people join as soon as you start a song

Information and error posts in regards to testing.
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
User avatar
blind
Posts: 157
Joined: Mon Oct 01, 2012 3:38 pm
Contact:

Client hangs when people join as soon as you start a song

Postby blind » Sun Oct 07, 2012 7:54 pm

Pretty much the thread topic. That and you shouldn't be able to join games when people are in a song at any point in time. It happens often (to me at least) and they assume you're afk. I'm not sure what it is to make this happen, but the other servers I played on while this was down, had a lock on the server so that wouldn't happen.
First to get 1,000,000 xp.
R.I.P. first place. :(

User avatar
Cube
Site Admin
Posts: 354
Joined: Mon Sep 24, 2012 10:18 am
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Client hangs when people join as soon as you start a son

Postby Cube » Mon Oct 08, 2012 10:06 am

Yeah, I have seen this occur as well. Gimme some time to do some digging.

User avatar
foxfire667
Moderator
Posts: 557
Joined: Sat Sep 29, 2012 5:09 pm
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Client hangs when people join as soon as you start a son

Postby foxfire667 » Mon Oct 08, 2012 7:43 pm


User avatar
Mezz
Posts: 32
Joined: Fri Oct 05, 2012 9:15 pm
Location: Vancouver, BC
Contact:

Re: Client hangs when people join as soon as you start a son

Postby Mezz » Tue Oct 09, 2012 6:22 pm

I thought the red font rooms indicated that the room was Private. O.o I tried to enter a few, and it always pops up with "Enter Room Password". I sat in the lobby for a bit and didn't notice any of the rooms changing colours, and according to the room stats, songs were being played.
Regardless, it would be really handy if they did change to show when songs are being played, because I've had the same problem of players joining and assuming I'm afk.

User avatar
Izzy
Moderator
Posts: 531
Joined: Thu Sep 27, 2012 3:03 pm
Location: Leawood, Kansas
Contact:

Re: Client hangs when people join as soon as you start a son

Postby Izzy » Tue Oct 09, 2012 8:10 pm

The room being red is supposed to indicate that there is a song currently being played, but if people aren't commonly aware of this it doesn't do a lot of good. On smo.com you weren't able to join a room that was busy, but I kind of like it this way better.

A decent option is to make a message appear to people joining a red room that says "A song is currently being played" or anything similar to that.

User avatar
Cube
Site Admin
Posts: 354
Joined: Mon Sep 24, 2012 10:18 am
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Client hangs when people join as soon as you start a son

Postby Cube » Tue Oct 09, 2012 9:37 pm

The room is set to locked when it is Red, but when you enter the room this is not being checked. Trying to get a Windows VM going so I can recompile the server since its running on Mono C#...

It should be pretty easy to implement the 'Song is currently being played.' I will play around with it tonight.

User avatar
Angelo
Posts: 72
Joined: Sat Oct 06, 2012 4:31 am
Location: The Netherlands
Contact:

Re: Client hangs when people join as soon as you start a son

Postby Angelo » Wed Oct 10, 2012 10:42 am

Cube, that feature can be implemented with a Python script as well.

Check out the example code here: http://opensmo.com/forum/index.php?topic=3.0
- Angelo
developer

User avatar
Cube
Site Admin
Posts: 354
Joined: Mon Sep 24, 2012 10:18 am
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Client hangs when people join as soon as you start a son

Postby Cube » Wed Oct 10, 2012 3:56 pm

Thanks, that's simple enough!

User avatar
Angelo
Posts: 72
Joined: Sat Oct 06, 2012 4:31 am
Location: The Netherlands
Contact:

Re: Client hangs when people join as soon as you start a son

Postby Angelo » Fri Oct 12, 2012 7:03 am

Hey Cube, did you ever implement that feature yesterday?
- Angelo
developer

User avatar
Cube
Site Admin
Posts: 354
Joined: Mon Sep 24, 2012 10:18 am
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Client hangs when people join as soon as you start a son

Postby Cube » Fri Oct 12, 2012 12:36 pm

I got busy, just got a test server up and running and a could test python scripts working. I will hit you up if I get stuck.

User avatar
Angelo
Posts: 72
Joined: Sat Oct 06, 2012 4:31 am
Location: The Netherlands
Contact:

Re: Client hangs when people join as soon as you start a son

Postby Angelo » Fri Oct 12, 2012 2:27 pm

I'm starting work on fixing the bug mentioned in the OP.
- Angelo
developer

User avatar
Cube
Site Admin
Posts: 354
Joined: Mon Sep 24, 2012 10:18 am
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Client hangs when people join as soon as you start a son

Postby Cube » Fri Oct 12, 2012 3:19 pm

Cool, as for tossing in a message when a song is currently being played. It seems like it would be much easier in the application then with the Python script. I am still trying to figure out exactly how it's all working.

I have been playing around with the Python scripts. I am not really sure how to get the RoomStatus. I am also guessing I would need to use the Screen Changed NSCommand hook?


[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Return to “Bug Reports ONLY”

Who is online

Users browsing this forum: No registered users and 3 guests