playlists_sql_examples
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
playlists_sql_examples [2023/03/29 16:53] – created A User Not Logged in | playlists_sql_examples [2024/05/26 22:41] (current) – [How to make a 'mature' sql playlist and hide them from others] scampa123 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== PlayLists Active SQL Examples ====== | ||
+ | |||
+ | One of the best features of PinUP Popper is the use of active sql playlists. These are different than regular playlists where you add/remove games manually to those. With Acitive SQL Playlists, they will query the sql database in realtime so that the list is populated based on data from game manager. That way you don't need to maintain the playlist. For example, An Active Playlist could list all games from 1990-2000….if you add a new table/game to your system and set its date field, the list will automatically update while you're in the frontend. | ||
+ | |||
+ | Sample Video by user showing example config: [[https:// | ||
+ | |||
+ | Here are some sample of Playlists and the SQL you can set to use them: | ||
+ | |||
+ | some threads: | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | If you are power user you can download a free sql util like : [[http:// | ||
+ | |||
+ | //note: do not change the modify the database structure or datatypes. If you need to add your own data into the sql, then add a new table and join.// | ||
+ | ==== How to make a ' | ||
+ | |||
+ | You want on each of these ' | ||
+ | |||
+ | Note: if you are using any active sql playlist make sure you filter out and use visible=1 so it doesn' | ||
+ | |||
+ | Here are the some columns for Games Table. | ||
+ | |||
+ | < | ||
+ | GameID | ||
+ | EMUID | ||
+ | GameName | ||
+ | GameFileName | ||
+ | GameDisplay | ||
+ | UseEmuDefaults | ||
+ | Visible | ||
+ | Notes TEXT, | ||
+ | DateAdded | ||
+ | GameYear | ||
+ | ROM | ||
+ | Manufact | ||
+ | NumPlayers | ||
+ | ResolutionX | ||
+ | ResolutionY | ||
+ | OutputScreen | ||
+ | ThemeColor | ||
+ | GameType | ||
+ | TAGS VARCHAR (200), | ||
+ | Category | ||
+ | Author | ||
+ | LaunchCustomVar VARCHAR (200), | ||
+ | GKeepDisplays | ||
+ | GameTheme | ||
+ | GameRating | ||
+ | Special | ||
+ | sysVolume | ||
+ | DOFStuff | ||
+ | MediaSearch | ||
+ | AudioChannels | ||
+ | CUSTOM2 | ||
+ | CUSTOM3 | ||
+ | GAMEVER | ||
+ | ALTEXE | ||
+ | IPDBNum | ||
+ | DateUpdated | ||
+ | DateFileUpdated DATETIME, | ||
+ | AutoRecFlag | ||
+ | AltRunMode | ||
+ | WebLinkURL | ||
+ | DesignedBy | ||
+ | |||
+ | </ | ||
+ | |||
+ | - Playlist that will show you the last 10 games you've updated in Popper (via drag/drop update method) | ||
+ | |||
+ | < | ||
+ | Select * from games where visible=1 order by datefileupdated DESC LIMIT 10 | ||
+ | |||
+ | </ | ||
+ | |||
+ | -List of all games that you haven' | ||
+ | |||
+ | < | ||
+ | SELECT * FROM Games JOIN GamesStats ON Games.GameID=GamesStats.GameID AND Visible=1 where lastplayed <= datetime(" | ||
+ | |||
+ | </ | ||
+ | |||
+ | - Based on GameType, list all DMD (and color DMD) games: | ||
+ | |||
+ | < | ||
+ | SELECT * FROM Games WHERE (GameType= " | ||
+ | |||
+ | </ | ||
+ | |||
+ | - Using the TAG " | ||
+ | |||
+ | < | ||
+ | SELECT * FROM Games WHERE (GameType= " | ||
+ | |||
+ | </ | ||
+ | |||
+ | - Playlist for Pinsound tables (using field LaunchCustomVar) | ||
+ | |||
+ | < | ||
+ | SELECT * FROM Games WHERE ( LaunchCustomVar LIKE " | ||
+ | |||
+ | </ | ||
+ | |||
+ | - Playlist for adult games: | ||
+ | |||
+ | < | ||
+ | select * from games JOIN Emulators on Games.EmuID = emulators.EmuID where TAGS LIKE " | ||
+ | |||
+ | </ | ||
+ | |||
+ | - Playlist for matching-named game files (VPW Example since all their file names contain VPW) | ||
+ | |||
+ | < | ||
+ | select * from Games where EMUID=1 AND visible=1 AND Games.GameFileName LIKE " | ||
+ | |||
+ | </ | ||
+ | |||