This repository has been archived by the owner on Oct 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
87 changed files
with
5,006 additions
and
438 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,3 +39,7 @@ doc/latex/ | |
|
||
# Configuration file | ||
config.yaml | ||
|
||
# Local build script | ||
localbuild.sh | ||
localmake.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
0.3.0: Database and ManiaLink support | ||
* Database support (MySQL) | ||
* Includes: maps, players, records, karma, times | ||
* ManiaLink support | ||
* Easy action handling | ||
* Easy-to-use ManiaLink list (UIList) | ||
* Chat command support | ||
* Support for plugin configuration via .yaml-file | ||
* Improved access from plugins to controller features | ||
* Added Jukebox/Map list plugin | ||
* Added Karma plugin | ||
* Karma widget (Eyepiece-style) | ||
* WhoKarma overview | ||
* Added Local Records plugin | ||
* Local Records widget (Eyepiece-style) | ||
* Added Map Widget plugin (Eyepiece-style) | ||
|
||
0.2.0: Plugin system | ||
* Plugin system | ||
* (Dynamically) loading shared object files | ||
* CallBack events | ||
* Access to methods, playerlist and maplist | ||
* Proper CallBack handling | ||
* Easy way to call server methods (via Methods) | ||
|
||
0.1.0: GbxRemote, request/callback handling | ||
* GbxRemote | ||
* Socket connection with the server | ||
* Send requests and receive responses | ||
* Receive callbacks | ||
* Handling of callbacks | ||
* Keeping playerlist up-to-date | ||
* Reading configuration file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; | ||
SET time_zone = "+00:00"; | ||
|
||
-- | ||
-- Database: `maniapp` | ||
-- | ||
|
||
-- -------------------------------------------------------- | ||
|
||
-- | ||
-- Tablestructure for table `karma` | ||
-- | ||
|
||
CREATE TABLE IF NOT EXISTS `karma` ( | ||
`Id` int(11) NOT NULL AUTO_INCREMENT, | ||
`MapId` mediumint(9) NOT NULL DEFAULT '0', | ||
`PlayerId` mediumint(9) NOT NULL DEFAULT '0', | ||
`Score` tinyint(3) NOT NULL DEFAULT '0', | ||
PRIMARY KEY (`Id`), | ||
UNIQUE KEY `PlayerId` (`PlayerId`,`MapId`), | ||
KEY `MapId` (`MapId`), | ||
KEY `Score` (`Score`) | ||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ; | ||
|
||
-- -------------------------------------------------------- | ||
|
||
-- | ||
-- Tablestructure for table `maps` | ||
-- | ||
|
||
CREATE TABLE IF NOT EXISTS `maps` ( | ||
`Id` mediumint(9) NOT NULL AUTO_INCREMENT, | ||
`Uid` varchar(27) NOT NULL DEFAULT '', | ||
`Name` varchar(100) NOT NULL DEFAULT '', | ||
`Author` varchar(30) NOT NULL DEFAULT '', | ||
`Environment` varchar(10) NOT NULL DEFAULT '', | ||
`RoundsJuke` tinyint(1) NOT NULL DEFAULT '0', | ||
PRIMARY KEY (`Id`), | ||
UNIQUE KEY `Uid` (`Uid`) | ||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ; | ||
|
||
-- -------------------------------------------------------- | ||
|
||
-- | ||
-- Tablestructure for table `players` | ||
-- | ||
|
||
CREATE TABLE IF NOT EXISTS `players` ( | ||
`Id` mediumint(9) NOT NULL AUTO_INCREMENT, | ||
`Login` varchar(50) NOT NULL DEFAULT '', | ||
`NickName` varchar(100) DEFAULT NULL, | ||
`Nation` varchar(150) NOT NULL DEFAULT '', | ||
`UpdatedAt` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', | ||
`Wins` mediumint(9) NOT NULL DEFAULT '0', | ||
`TimePlayed` int(10) unsigned NOT NULL DEFAULT '0', | ||
PRIMARY KEY (`Id`), | ||
UNIQUE KEY `Login` (`Login`), | ||
KEY `Nation` (`Nation`), | ||
KEY `Wins` (`Wins`), | ||
KEY `UpdatedAt` (`UpdatedAt`) | ||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ; | ||
|
||
-- -------------------------------------------------------- | ||
|
||
-- | ||
-- Tablestructure for table `records` | ||
-- | ||
|
||
CREATE TABLE IF NOT EXISTS `records` ( | ||
`Id` int(11) NOT NULL AUTO_INCREMENT, | ||
`MapId` mediumint(9) NOT NULL DEFAULT '0', | ||
`PlayerId` mediumint(9) NOT NULL DEFAULT '0', | ||
`Score` int(11) NOT NULL DEFAULT '0', | ||
`Date` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', | ||
`Checkpoints` text NOT NULL, | ||
PRIMARY KEY (`Id`), | ||
UNIQUE KEY `PlayerId` (`PlayerId`,`MapId`), | ||
KEY `MapId` (`MapId`), | ||
KEY `Score` (`Score`) | ||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ; | ||
|
||
-- -------------------------------------------------------- | ||
|
||
-- | ||
-- Tablestructure for table `times` | ||
-- | ||
|
||
CREATE TABLE IF NOT EXISTS `times` ( | ||
`Id` int(11) NOT NULL AUTO_INCREMENT, | ||
`MapId` mediumint(9) NOT NULL DEFAULT '0', | ||
`PlayerId` mediumint(9) NOT NULL DEFAULT '0', | ||
`Score` int(11) NOT NULL DEFAULT '0', | ||
`Date` int(10) unsigned NOT NULL DEFAULT '0', | ||
`Checkpoints` text NOT NULL, | ||
PRIMARY KEY (`Id`), | ||
KEY `PlayerId` (`PlayerId`,`MapId`), | ||
KEY `MapId` (`MapId`), | ||
KEY `Score` (`Score`) | ||
) ENGINE=MyISAM DEFAULT CHARSET=utf8 ; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
cmake_minimum_required (VERSION 2.6) | ||
project (JukeboxPlugin) | ||
|
||
add_definitions(-std=c++11) | ||
add_definitions(-Wno-deprecated) | ||
add_definitions(-Wl,--export-dynamic) | ||
add_definitions(-rdynamic) | ||
|
||
set (LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}) | ||
link_directories(${PROJECT_SOURCE_DIR}/../../lib/yaml/build) | ||
include_directories("${PROJECT_SOURCE_DIR}/../../lib/yaml/include") | ||
set (PROJECT_SOURCE_DIR ${PROJECT_SOURCE_DIR}/src) | ||
|
||
include_directories("${PROJECT_BINARY_DIR}") | ||
include_directories("${PROJECT_SOURCE_DIR}/../../../src") | ||
|
||
file(GLOB_RECURSE SOURCES src/*.cpp) | ||
|
||
add_library(JukeboxPlugin SHARED ${SOURCES}) | ||
target_link_libraries(JukeboxPlugin yaml-cpp mysqlcppconn) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
cmake -DCMAKE_BUILD_TYPE=Debug -H. -Bbuild | ||
|
||
cd ./build | ||
make |
Oops, something went wrong.