]>
git.sesse.net Git - ccbs/log
Steinar H. Gunderson [Wed, 30 Mar 2005 14:05:35 +0000 (14:05 +0000)]
DDR Europe tournament parser now by default sets all players to Norway. Syntax fixes for SQL. Update example SQL.
Steinar H. Gunderson [Wed, 30 Mar 2005 13:49:52 +0000 (13:49 +0000)]
Add a script (and output SQL) for getting the country list from Wikipedia.
Steinar H. Gunderson [Wed, 30 Mar 2005 13:37:08 +0000 (13:37 +0000)]
Begin changing the country stuff.
- All players must now have a country.
- There are clubs.
- Countries have three-letter IOC country codes.
The changes are not yet reflected in the data.
Steinar H. Gunderson [Wed, 30 Mar 2005 02:37:46 +0000 (02:37 +0000)]
Don't show bigscreen controls in public mode.
Steinar H. Gunderson [Wed, 30 Mar 2005 02:31:03 +0000 (02:31 +0000)]
The last do-finish-tournament fix was completely wrong, try to do it properly this time.
Steinar H. Gunderson [Wed, 30 Mar 2005 01:24:46 +0000 (01:24 +0000)]
Fix UTF-8.
Steinar H. Gunderson [Wed, 30 Mar 2005 01:22:49 +0000 (01:22 +0000)]
Make the DDR Europe parsing scripts distinguish tournaments based on their season as well, not just the name.
Steinar H. Gunderson [Wed, 30 Mar 2005 01:18:43 +0000 (01:18 +0000)]
Make more room for the players in the "top 10 scores" screen.
Steinar H. Gunderson [Wed, 30 Mar 2005 01:16:52 +0000 (01:16 +0000)]
Fix crash in RotateScreen when there are no subscreens.
Steinar H. Gunderson [Wed, 30 Mar 2005 01:15:58 +0000 (01:15 +0000)]
Fix max score for players; only chosen songs can't be selected twice.
Steinar H. Gunderson [Wed, 30 Mar 2005 01:14:29 +0000 (01:14 +0000)]
Fix list of finished groups; don't show elimination/seeding groups, show finished parallels even if they are in a non-finished round.
Steinar H. Gunderson [Sat, 5 Mar 2005 03:16:15 +0000 (03:16 +0000)]
Cache revision.
21:15-04:00
Steinar H. Gunderson [Sat, 5 Mar 2005 03:13:13 +0000 (03:13 +0000)]
Add an SQL snippet for fixing some stuff related to chosen/random songs in the data from DDR Europe.
Steinar H. Gunderson [Sat, 5 Mar 2005 02:59:39 +0000 (02:59 +0000)]
Added CC04-8 data.
Steinar H. Gunderson [Sat, 5 Mar 2005 02:50:40 +0000 (02:50 +0000)]
"Candy" now has a white star by it; updated parsers and all relevant SQL.
Steinar H. Gunderson [Sat, 5 Mar 2005 02:17:23 +0000 (02:17 +0000)]
Added a simple flag in ccbs.pm to make the system suitable for public viewing (ie. no changes).
Steinar H. Gunderson [Sat, 5 Mar 2005 01:47:10 +0000 (01:47 +0000)]
When there's only one group, insert it with ID 0, not ID 1, so the rest of the scripts understand it's special.
Steinar H. Gunderson [Sat, 5 Mar 2005 01:20:45 +0000 (01:20 +0000)]
Set all songs to single expert per default (this will break when we go to DDREx, though..)
Steinar H. Gunderson [Sat, 5 Mar 2005 01:14:31 +0000 (01:14 +0000)]
Don't show total if we only have one song.
Steinar H. Gunderson [Sat, 5 Mar 2005 01:09:11 +0000 (01:09 +0000)]
Fix off-by-one for "needs to lead" code.
Steinar H. Gunderson [Sat, 5 Mar 2005 01:08:39 +0000 (01:08 +0000)]
Don't show "needs to qualify" if all in group qualify.
Steinar H. Gunderson [Sat, 5 Mar 2005 01:05:57 +0000 (01:05 +0000)]
Fixed "number of played songs" detection for bigscreen, making the "needs to lead" etc. work again.
Steinar H. Gunderson [Sat, 5 Mar 2005 01:05:23 +0000 (01:05 +0000)]
Hack the rotate screen so it doesn't delay new updates of a screen any longer just because that screen contained new info at the time (see the comments).
Steinar H. Gunderson [Sat, 5 Mar 2005 00:48:17 +0000 (00:48 +0000)]
Remove versus item from the TODO, it should be okay now.
Steinar H. Gunderson [Sat, 5 Mar 2005 00:47:39 +0000 (00:47 +0000)]
Clarified the meaning of players_per_machine in the templates.
Steinar H. Gunderson [Sat, 5 Mar 2005 00:46:19 +0000 (00:46 +0000)]
Actually fetch the number of players on the machine at a time, so the versus code works.
Steinar H. Gunderson [Sat, 5 Mar 2005 00:40:01 +0000 (00:40 +0000)]
Add code in the bigscreen for supporting versus groups (not finished yet).
Steinar H. Gunderson [Sat, 5 Mar 2005 00:19:15 +0000 (00:19 +0000)]
Refactoring, always refactoring...
Steinar H. Gunderson [Sat, 5 Mar 2005 00:09:27 +0000 (00:09 +0000)]
Remove an obsolete comment.
Steinar H. Gunderson [Sat, 5 Mar 2005 00:09:06 +0000 (00:09 +0000)]
Yet more refactoring.
Steinar H. Gunderson [Fri, 4 Mar 2005 23:52:10 +0000 (23:52 +0000)]
Yet more refactoring.
Steinar H. Gunderson [Fri, 4 Mar 2005 23:37:37 +0000 (23:37 +0000)]
Added refactoring comment
Steinar H. Gunderson [Fri, 4 Mar 2005 23:36:54 +0000 (23:36 +0000)]
More refactoring.
Steinar H. Gunderson [Fri, 4 Mar 2005 23:26:22 +0000 (23:26 +0000)]
More refactoring.
Steinar H. Gunderson [Fri, 4 Mar 2005 23:17:58 +0000 (23:17 +0000)]
Mild refactoring.
Steinar H. Gunderson [Fri, 4 Mar 2005 22:47:22 +0000 (22:47 +0000)]
Make the bigscreen application read in the number of players per machine, but don't do anything useful with it yet.
Steinar H. Gunderson [Fri, 4 Mar 2005 22:38:17 +0000 (22:38 +0000)]
The front end can now choose how many players play per machine (1 or 2).
Steinar H. Gunderson [Fri, 4 Mar 2005 22:23:25 +0000 (22:23 +0000)]
Added a field in the bigscreen active groups allowing for versus play.
Steinar H. Gunderson [Fri, 4 Mar 2005 22:20:34 +0000 (22:20 +0000)]
Added note to TODO
Steinar H. Gunderson [Tue, 1 Mar 2005 03:04:18 +0000 (03:04 +0000)]
Let each screen get width and height in as a parameter on draw() instead of hardcoding it to SCREEN_WIDTH * SCREEN_HEIGHT.
This is quite ugly at places, but it seems to work well. This isn't really done for the speed
boost (although fades etc. are quite a lot smoother when the split screen can do all its work
in the native resolution instead of fading and _then_ downscaling), but primarily for the
legibility (ie. let FreeType _understand_ that we are on a smaller screen, so get hinting etc.
right), which seems to have improved by quite a lot (the overall "polish" look is a bit down,
though, probably the autohinter is evil).
19:30-04:00
Steinar H. Gunderson [Tue, 1 Mar 2005 02:21:33 +0000 (02:21 +0000)]
Forgot to add the prototype for set_screen_size().
Steinar H. Gunderson [Tue, 1 Mar 2005 02:21:04 +0000 (02:21 +0000)]
Let the font system take in a physical resolution, instead of #define-ing it (quite ugly).
Steinar H. Gunderson [Tue, 1 Mar 2005 02:14:33 +0000 (02:14 +0000)]
Set default resolution to 1024x768.
Steinar H. Gunderson [Tue, 1 Mar 2005 02:14:09 +0000 (02:14 +0000)]
Make a "logical resolution" (yuck!) of 800x600 for all the screens, and make fonts.cpp compensate for that.
Steinar H. Gunderson [Tue, 1 Mar 2005 01:59:31 +0000 (01:59 +0000)]
Replace 800x600 width a resolution from a .h file. Lots of positions are still hardcoded, though.
Steinar H. Gunderson [Tue, 1 Mar 2005 01:12:51 +0000 (01:12 +0000)]
Implement a simple priority system.
The priority system is used to determine which screen is shown first if two or more screens
have updated information (ie. a group screen is more important than a "today's high scores"
screen, which is in turn more important than "today's most chosen songs", as the latter is
mainly a curiosity).
- Add a get_priority() to GenericScreen, default 0.
- Implement get_priority() for GroupScreen and Top10ScoreScreen, set to 10 and 5 resp.
- Make RotateScreen automatically pick the screen with the highest priority if two or more
have forced updates.
Steinar H. Gunderson [Tue, 1 Mar 2005 01:02:20 +0000 (01:02 +0000)]
Make sure each screen stays on for a minimum of three seconds (eight if it contains new info).
Steinar H. Gunderson [Tue, 1 Mar 2005 00:57:33 +0000 (00:57 +0000)]
Rename same_fade to fade_to_new_info, plus minor code cleanup.
Steinar H. Gunderson [Tue, 1 Mar 2005 00:55:12 +0000 (00:55 +0000)]
Fix "slowly to red" fading (aka same_fade) when we have a forced transition.
Steinar H. Gunderson [Tue, 1 Mar 2005 00:51:32 +0000 (00:51 +0000)]
Make the "top 10 scores" and "top 5 chosen songs" screens only say they're updated if there is actual new data.
Steinar H. Gunderson [Tue, 1 Mar 2005 00:35:48 +0000 (00:35 +0000)]
Fix a bug where all new screens would be cycled on start.
Steinar H. Gunderson [Tue, 1 Mar 2005 00:24:48 +0000 (00:24 +0000)]
The auxilliary screen now also shows all finished groups.
Steinar H. Gunderson [Mon, 28 Feb 2005 23:51:42 +0000 (23:51 +0000)]
Stop RotateScreen from crashing when it has no subscreens.
Steinar H. Gunderson [Mon, 28 Feb 2005 23:35:58 +0000 (23:35 +0000)]
Adjusted the columns in the top 5 chosen songs a bit.
Steinar H. Gunderson [Mon, 28 Feb 2005 23:20:25 +0000 (23:20 +0000)]
Added a "top 5 chosen songs this tournament" screen.
Steinar H. Gunderson [Mon, 28 Feb 2005 22:50:54 +0000 (22:50 +0000)]
Added TODO list from e-mail.
Steinar H. Gunderson [Mon, 28 Feb 2005 22:26:00 +0000 (22:26 +0000)]
Put all the auxilliary screens in a rotate screen.
Steinar H. Gunderson [Mon, 28 Feb 2005 22:21:11 +0000 (22:21 +0000)]
Split the bigscreen objects in the Makefile into slightly more manageable groups.
Steinar H. Gunderson [Mon, 28 Feb 2005 22:17:55 +0000 (22:17 +0000)]
Actually fetch and display the top 10 scores.
Steinar H. Gunderson [Mon, 28 Feb 2005 21:05:33 +0000 (21:05 +0000)]
Add the framework for a top 10 screen.
Steinar H. Gunderson [Mon, 28 Feb 2005 20:23:12 +0000 (20:23 +0000)]
Added a primary key for the "active screens" table.
Steinar H. Gunderson [Mon, 28 Feb 2005 20:16:42 +0000 (20:16 +0000)]
Fetch the list of auxilliary screens.
Steinar H. Gunderson [Mon, 28 Feb 2005 19:51:18 +0000 (19:51 +0000)]
Added a new mini-table for auxilliary bigscreen screens.
Steinar H. Gunderson [Mon, 28 Feb 2005 19:27:54 +0000 (19:27 +0000)]
When editing scores in the web interface, put the web browser approximately back at the group.
Steinar H. Gunderson [Mon, 28 Feb 2005 19:22:32 +0000 (19:22 +0000)]
Write the machine number (if any) in the header.
Steinar H. Gunderson [Mon, 28 Feb 2005 19:12:35 +0000 (19:12 +0000)]
Make the bigscreen application support running groups on multiple machines.
Steinar H. Gunderson [Mon, 28 Feb 2005 18:18:27 +0000 (18:18 +0000)]
Make the number of machines settable via the web interface.
Steinar H. Gunderson [Mon, 28 Feb 2005 18:12:46 +0000 (18:12 +0000)]
Steinar H. Gunderson [Mon, 21 Feb 2005 17:49:48 +0000 (17:49 +0000)]
Compile TinyPTC with Xshm.
Steinar H. Gunderson [Sun, 20 Feb 2005 23:04:08 +0000 (23:04 +0000)]
Fix two signed/unsigned warnings.
20:00-20:30
22:00-00:00
Steinar H. Gunderson [Sun, 20 Feb 2005 22:58:00 +0000 (22:58 +0000)]
Adjust the fade time back to 0.5 again, after the "starting fade time" fix.
Steinar H. Gunderson [Sun, 20 Feb 2005 22:52:45 +0000 (22:52 +0000)]
Start the fade when we can display the first frame of it, not when we know that there is a new page. This gets rid of the "kink" we find at the start of a fade if the new screen tok a bit to generate.
Steinar H. Gunderson [Sun, 20 Feb 2005 22:47:27 +0000 (22:47 +0000)]
Read max score for all players in one shot as well, with a new query and an index which speeds up that query a lot.
Steinar H. Gunderson [Sun, 20 Feb 2005 22:06:56 +0000 (22:06 +0000)]
Fetch all the "max score for song" entries in one go instead of one at a time.
Steinar H. Gunderson [Sun, 20 Feb 2005 19:53:20 +0000 (19:53 +0000)]
Clamp number of players shown to nine. Squeeze players a bit more together when we're over seven, to get room for up to nine.
Steinar H. Gunderson [Sun, 20 Feb 2005 19:45:52 +0000 (19:45 +0000)]
Don't use split screen if we only have one screen.
Steinar H. Gunderson [Sun, 20 Feb 2005 19:09:44 +0000 (19:09 +0000)]
Removed some debugging printf-s, converted some sprintf to std::sprintf.
Steinar H. Gunderson [Sun, 20 Feb 2005 19:07:47 +0000 (19:07 +0000)]
Make "mode" a local variable to the for loop, now that we don't need it anymore.
Steinar H. Gunderson [Sun, 20 Feb 2005 19:05:49 +0000 (19:05 +0000)]
Allow a mix of long and short names in the display of the chosen songs.
Steinar H. Gunderson [Sun, 20 Feb 2005 17:42:52 +0000 (17:42 +0000)]
Cache revision.
18:00-18:45
Steinar H. Gunderson [Sun, 20 Feb 2005 17:40:28 +0000 (17:40 +0000)]
Adjusted the fade times a bit.
Steinar H. Gunderson [Sun, 20 Feb 2005 17:35:24 +0000 (17:35 +0000)]
Fetch the actual high score from the database when showing high score on the group screen.
Steinar H. Gunderson [Sun, 20 Feb 2005 17:15:53 +0000 (17:15 +0000)]
Correct the logic for finding out what songs a player can choose (only random songs in the same parallel count)
Steinar H. Gunderson [Sun, 20 Feb 2005 17:05:28 +0000 (17:05 +0000)]
Don't show "need to qualify" if it's identical to "need to win"
Steinar H. Gunderson [Sun, 20 Feb 2005 17:04:27 +0000 (17:04 +0000)]
Moved the bottom text a bit up, to get it more readable.
Steinar H. Gunderson [Sun, 20 Feb 2005 16:54:37 +0000 (16:54 +0000)]
Add a line for "needed to secure qualifiction"/"needed to qualify". SQL cleanups. Don't show "to lead" line if it's identical to "to win".
Steinar H. Gunderson [Sun, 20 Feb 2005 16:00:09 +0000 (16:00 +0000)]
Add preliminary "needs to qualify/win" text.
14:00-17:00
Steinar H. Gunderson [Sun, 20 Feb 2005 15:29:01 +0000 (15:29 +0000)]
Try to make the column for the chosen songs as fixed-width as possible.
Steinar H. Gunderson [Sun, 20 Feb 2005 15:22:22 +0000 (15:22 +0000)]
Find out which player is playing next (and which song), but don't print it yet.
Steinar H. Gunderson [Sun, 20 Feb 2005 14:40:35 +0000 (14:40 +0000)]
The main screen is now a split screen of rotation screens (each with a single group)
Steinar H. Gunderson [Sun, 20 Feb 2005 14:33:21 +0000 (14:33 +0000)]
Make the "red stuff is new stuff" fade a lot prettier.
Steinar H. Gunderson [Sun, 20 Feb 2005 14:22:11 +0000 (14:22 +0000)]
Add a better framework for showing what's changed.
Steinar H. Gunderson [Sun, 20 Feb 2005 14:08:10 +0000 (14:08 +0000)]
Actually check in changes from last time...
Steinar H. Gunderson [Sun, 20 Feb 2005 14:07:33 +0000 (14:07 +0000)]
Do the same number of my_draw_text() in all cases, to prepare for the "show differences in red" code.
Steinar H. Gunderson [Sun, 20 Feb 2005 13:59:08 +0000 (13:59 +0000)]
Do some funky channel magic on fading between different versions of the same screen. This needs a lot more work; it should be done on a lower level, really.
Steinar H. Gunderson [Sun, 20 Feb 2005 13:47:06 +0000 (13:47 +0000)]
Change await_notifications() timeout if something is invalidated (less CPU used when there's no action)
Steinar H. Gunderson [Sun, 20 Feb 2005 13:42:10 +0000 (13:42 +0000)]
Make RotateScreen fade between the individual screens.
Steinar H. Gunderson [Sun, 20 Feb 2005 02:09:44 +0000 (02:09 +0000)]
Cache revision.
18:45-03:15
Steinar H. Gunderson [Sun, 20 Feb 2005 02:06:44 +0000 (02:06 +0000)]
GroupScreen now checks the "last updated" information.
Steinar H. Gunderson [Sun, 20 Feb 2005 01:29:43 +0000 (01:29 +0000)]
Add information to the SQL schema saying when the group was last updated. Make the web interface update that information.