aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/5000Points/Until5000.dpr104
-rw-r--r--plugins/Blind/Blind.dpr112
-rw-r--r--plugins/Don't_Get_Worse/Hold_The_Line.dpr227
-rw-r--r--plugins/Don't_Get_Worse/dismissed.mp3bin5433 -> 0 bytes
-rw-r--r--plugins/Duell/Duell.dpr106
-rw-r--r--plugins/Makefile.in146
-rw-r--r--plugins/README(Plugins Status).txt12
-rw-r--r--plugins/Team_Duell/TeamDuell.dpr274
8 files changed, 0 insertions, 981 deletions
diff --git a/plugins/5000Points/Until5000.dpr b/plugins/5000Points/Until5000.dpr
deleted file mode 100644
index 83bc1007..00000000
--- a/plugins/5000Points/Until5000.dpr
+++ /dev/null
@@ -1,104 +0,0 @@
-library Until5000;
-
-{$IFDEF FPC}
- {$MODE Delphi}
-{$ENDIF}
-
-uses
- ModiSDK in '..\SDK\ModiSDK.pas';
-
-// give the plugin's info
-procedure PluginInfo (var Info: TPluginInfo); {$IFDEF MSWINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
-begin
- Info.Name := 'PLUGIN_UNTIL5000_NAME';
-
- Info.Creator := 'Whiteshark';
- Info.PluginDesc := 'PLUGIN_UNTIL5000_DESC';
-
- // set to party modus plugin
- Info.Typ := 8;
-
- Info.NumPlayers := 31;
- // options
- Info.LoadSong := true; // whether or not a song should be loaded
- // only when song is loaded:
- Info.ShowScore := true; // whether or not the score should be shown
- Info.ShowNotes := true; // whether the note lines should be displayed
- Info.LoadVideo := true; // should the video be loaded?
- Info.LoadBack := true; // should the background be loaded?
-
- Info.BGShowFull := false; // whether the background or the video should be shown full size
- Info.BGShowFull_O := true; // whether the background or the video should be shown full size
-
- Info.ShowRateBar := true; // whether the bar that shows how good the player was should be displayed
- Info.ShowRateBar_O := true; // load from ini whether the bar should be displayed
-
- Info.EnLineBonus := false; // whether line bonus should be enabled
- Info.EnLineBonus_O := true; // load from ini whether line bonus should be enabled
-
- // options even when song is not loaded
- Info.ShowBars := false; // whether the white bars on top and bottom should be drawn
- Info.TeamModeOnly := false; // if true the plugin can only be played in team mode
- Info.GetSoundData := false; // if true the rdata procedure is called when new sound data is available
- Info.Dummy := false; // should be set to false... for updateing plugin interface
-end;
-
-// executed on game start; if true game begins, else failure
-function Init (const TeamInfo: TTeamInfo;
- var Playerinfo: TPlayerinfo;
- const Sentences: TSentences;
- const Methods: TMethodRec)
- : boolean; {$IFDEF MSWINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
-begin
- Result := true;
-end;
-
-// executed everytime the screen is drawn; if false the game finishes
-function Draw (var Playerinfo: TPlayerinfo;
- const CurSentence: cardinal)
- : boolean; {$IFDEF MSWINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
-var
- Index: integer;
-begin
- Result := false;
- for Index := 0 to PlayerInfo.NumPlayers-1 do
- begin
- PlayerInfo.Playerinfo[Index].Bar := PlayerInfo.Playerinfo[Index].Score div 50;
- PlayerInfo.Playerinfo[Index].Percentage := PlayerInfo.Playerinfo[Index].Bar;
- if (PlayerInfo.Playerinfo[Index].Score >= 5000) then
- Exit;
- end;
- Result := true;
-end;
-
-// is executed on finish, returns the player number of the winner
-function Finish (var Playerinfo: TPlayerinfo): byte; {$IFDEF MSWINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
-var
- Index: integer;
-begin
- Result := 0;
- for Index := 0 to PlayerInfo.NumPlayers-1 do
- begin
- if (PlayerInfo.Playerinfo[Index].Score >= 5000) then
- begin
- case Index of
- 0: Result := Result or 1;
- 1: Result := Result or 2;
- 2: Result := Result or 4;
- 3: Result := Result or 8;
- 4: Result := Result or 16;
- 5: Result := Result or 32;
- end;
- end;
- end;
-end;
-
-exports
- PluginInfo,
- Init,
- Draw,
- Finish;
-
-begin
-
-end. \ No newline at end of file
diff --git a/plugins/Blind/Blind.dpr b/plugins/Blind/Blind.dpr
deleted file mode 100644
index 3c68374c..00000000
--- a/plugins/Blind/Blind.dpr
+++ /dev/null
@@ -1,112 +0,0 @@
-library Blind;
-
-{$IFDEF FPC}
- {$MODE Delphi}
-{$ENDIF}
-
-uses
- ModiSDK in '..\SDK\ModiSDK.pas';
-
-// give the plugin's info
-procedure PluginInfo (var Info: TPluginInfo); {$IFDEF MSWINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
-begin
- Info.Name := 'PLUGIN_BLIND_NAME';
- Info.Creator := 'Whiteshark';
- Info.PluginDesc := 'PLUGIN_BLIND_DESC';
-
- // set to party modus plugin
- Info.Typ := 8;
-
- Info.NumPlayers := 31;
-
- // options
- Info.LoadSong := true; // whether or not a song should be loaded
- // only when song is loaded:
- Info.ShowScore := true; // whether or not the score should be shown
- Info.ShowNotes := false; // whether the note lines should be displayed
- Info.LoadVideo := true; // should the video be loaded?
- Info.LoadBack := true; // should the background be loaded?
-
- Info.BGShowFull := false; // whether the background or the video should be shown in full size
- Info.BGShowFull_O := true; // whether the background or the video should be shown in full size
-
- Info.ShowRateBar := false; // whether the bar that shows how good the player was should be displayed
- Info.ShowRateBar_O := true; // load from ini whether the bar should be displayed
-
- Info.EnLineBonus := false; // whether line bonus should be enabled
- Info.EnLineBonus_O := true; // load from ini whether line bonus should be enabled
-
- // options even when song is not loaded
- Info.ShowBars := false; // whether the white bars on top and bottom should be drawn
- Info.TeamModeOnly := false; // if true the plugin can only be played in team mode
- Info.GetSoundData := false; // if true the rdata procedure is called when new sound data is available
- Info.Dummy := false; // should be set to false... for updating plugin interface
-end;
-
-// executed on game start. if true game begins, else failure
-function Init (const TeamInfo: TTeamInfo;
- var Playerinfo: TPlayerinfo;
- const Sentences: TSentences;
- const Methods: TMethodRec)
- : boolean; {$IFDEF MSWINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
-begin
- Result := true;
-end;
-
-// executed every time the screen is drawn. if false the game finishes
-function Draw (var Playerinfo: TPlayerinfo;
- const CurSentence: cardinal)
- : boolean; {$IFDEF MSWINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
-begin
- Result := true;
-end;
-
-// is executed on finish, returns the player number of the winner
-function Finish (var Playerinfo: TPlayerinfo): byte; {$IFDEF MSWINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
-var
- Index: integer;
- MaxScore: word;
-begin
- Result := 0;
- MaxScore := 0;
- for Index := 0 to PlayerInfo.NumPlayers - 1 do
- begin
- PlayerInfo.Playerinfo[Index].Percentage := PlayerInfo.Playerinfo[Index].Score div 9999;
- if (PlayerInfo.Playerinfo[Index].Score > MaxScore) then
- begin
- MaxScore := PlayerInfo.Playerinfo[Index].Score;
- case Index of
- 0: Result := 1;
- 1: Result := 2;
- 2: Result := 4;
- 3: Result := 8;
- 4: Result := 16;
- 5: Result := 32;
- end;
- end
- else if (PlayerInfo.Playerinfo[Index].Score = MaxScore) and (PlayerInfo.Playerinfo[Index].Score <> 0) then
- begin
- case Index of
- 0: Result := Result or 1;
- 1: Result := Result or 2;
- 2: Result := Result or 4;
- 3: Result := Result or 8;
- 4: Result := Result or 16;
- 5: Result := Result or 32;
- end;
- end;
- end;
- // if everybody has 0 points nobody wins
- if (MaxScore = 0) then
- Result := 0;
-end;
-
-exports
- PluginInfo,
- Init,
- Draw,
- Finish;
-
-begin
-
-end. \ No newline at end of file
diff --git a/plugins/Don't_Get_Worse/Hold_The_Line.dpr b/plugins/Don't_Get_Worse/Hold_The_Line.dpr
deleted file mode 100644
index a7828f8e..00000000
--- a/plugins/Don't_Get_Worse/Hold_The_Line.dpr
+++ /dev/null
@@ -1,227 +0,0 @@
-library Hold_The_Line;
-
-{$IFDEF FPC}
- {$MODE Delphi}
-{$ENDIF}
-
-uses
- SysUtils,
- ModiSDK in '..\SDK\ModiSDK.pas',
- gl in '..\..\src\lib\JEDI-SDL\OpenGL\Pas\gl.pas';
-
-var
- PointerTex: TSmallTexture;
- CountSentences: cardinal;
- Limit: byte;
- MethodRec: TMethodRec;
-// Frame: integer;
- PlayerTimes: array[0..5] of integer;
- LastTick: cardinal;
- PointerVisible: boolean;
-
- DismissedSound: cardinal;
-
-// Give the plugin's info
-procedure PluginInfo (var Info: TPluginInfo); {$IFDEF MSWINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
-begin
- Info.Name := 'PLUGIN_HDL_NAME';
-
- Info.Creator := 'Whiteshark';
- Info.PluginDesc := 'PLUGIN_HDL_DESC';
-
- // Set to Party Modi Plugin
- Info.Typ := 8;
-
- Info.NumPlayers := 31;
- // Options
- Info.LoadSong := true; // Whether or not a song should be loaded
- // Only when song is loaded:
- Info.ShowScore := true; // Whether or not the score should be shown
- Info.ShowNotes := true; // Whether the note lines should be displayed
- Info.LoadVideo := true; // Should the video be loaded?
- Info.LoadBack := true; // Should the background be loaded?
-
- Info.BGShowFull := false; // Whether the background or the video should be shown full size
- Info.BGShowFull_O := true; // Whether the Background or the Video should be shown full size
-
- Info.ShowRateBar := true; // Whether the bar that shows how good the player was should be displayed
- Info.ShowRateBar_O := false; // Load from ini whether the bar should be displayed
-
- Info.EnLineBonus := false; // Whether line bonus should be enabled
- Info.EnLineBonus_O := true; // Load from ini whether line bonus should be enabled
-
- // Options even when song is not loaded
- Info.ShowBars := false; // Whether the white bars on top and bottom should be drawn
- Info.TeamModeOnly := false; // if true the plugin can only be played in team mode
- Info.GetSoundData := false; // if true the rdata procedure is called when new sound data is available
- Info.Dummy := false; // Should be set to false... for updating plugin interface
-end;
-
-// executed on game start. if true game begins, else failure
-function Init (const TeamInfo: TTeamInfo;
- var Playerinfo: TPlayerinfo;
- const Sentences: TSentences;
- const Methods: TMethodRec)
- : boolean; {$IFDEF MSWINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
-
-const
- TextureName : PChar = 'HDL_Pointer';
- SoundName : PChar = 'dismissed.mp3';
-var
- Index: integer;
-// Texname: PChar;
- TexType: TTextureType;
-begin
-{
- TexName := CreateStr(PChar('HDL_Pointer'));
- TexType := TEXTURE_TYPE_TRANSPARENT;
- PointerTex := Methods.LoadTex(TexName, TexType);
-
- FreeStr(TexName);
-
- TexName := CreateStr(PChar('dismissed.mp3'));
- DismissedSound := Methods.LoadSound (TexName);
- FreeStr(TexName);
-}
- TexType := TEXTURE_TYPE_TRANSPARENT;
- PointerTex := Methods.LoadTex(TextureName, TexType);
-
- DismissedSound := Methods.LoadSound (SoundName);
-
- CountSentences := Sentences.High;
- Limit := 0;
-// Frame := 0;
-
- MethodRec := Methods;
-
- for Index := 0 to PlayerInfo.NumPlayers-1 do
- begin
- PlayerInfo.Playerinfo[Index].Enabled := true;
- PlayerInfo.Playerinfo[Index].Percentage := 100;
- PlayerTimes[Index] := 0;
- end;
-
- Result := true;
-end;
-
-function Draw (var Playerinfo: TPlayerinfo;
- const CurSentence: cardinal)
- : boolean; {$IFDEF MSWINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
-const
- SoundName : PChar = 'PARTY_DISMISSED';
-var
- Index: integer;
- L: byte;
- C: byte;
- Tick: cardinal;
-begin
- // activate blink
- if (CurSentence = CountSentences div 5 * 2 - 1) or (CurSentence = CountSentences div 3 * 2 - 1) then
- begin
- Tick := round(TimeStampToMSecs(DateTimeToTimeStamp(Now))) div 400;
- if (Tick <> LastTick) then
- begin
- LastTick := Tick;
- PointerVisible := not PointerVisible;
- end;
- end
- else
- PointerVisible := true;
-
- // inc limit
- if (Limit = 0) and (CurSentence >= CountSentences div 5 * 2) then
- Inc(Limit)
- else if (Limit = 1) and (CurSentence >= CountSentences div 3 * 2) then
- Inc(Limit);
-
- case Limit of
- 0: L := 20;
- 1: L := 50;
- 2: L := 75;
- end;
-
- C:= 0;
-
- Result := true;
-
- for Index := 0 to PlayerInfo.NumPlayers-1 do
- begin
- if PlayerInfo.Playerinfo[Index].Enabled then
- begin
- if PlayerInfo.Playerinfo[Index].Bar < L then
- begin
- PlayerInfo.Playerinfo[Index].Enabled := false;
- Inc(C);
- PlayerTimes[Index] := CurSentence; // Save Time of Dismission
- // PlaySound
- MethodRec.PlaySound (DismissedSound);
- end;
-
- // Draw pointer
- if (PointerVisible) then
- begin
- glColor4f (0.2, 0.8, 0.1, 1);
-
- glEnable(GL_TEXTURE_2D);
- glEnable(GL_BLEND);
- glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
-
- glBindTexture(GL_TEXTURE_2D, PointerTex.TexNum);
-
- glBegin(GL_QUADS);
- glTexCoord2f(1/32, 0); glVertex2f(PlayerInfo.Playerinfo[Index].PosX + L - 3, PlayerInfo.Playerinfo[Index].PosY - 4);
- glTexCoord2f(1/32, 1); glVertex2f(PlayerInfo.Playerinfo[Index].PosX + L - 3, PlayerInfo.Playerinfo[Index].PosY + 12);
- glTexCoord2f(31/32, 1); glVertex2f(PlayerInfo.Playerinfo[Index].PosX+ L + 3, PlayerInfo.Playerinfo[Index].PosY + 12);
- glTexCoord2f(31/32, 0); glVertex2f(PlayerInfo.Playerinfo[Index].PosX+ L + 3, PlayerInfo.Playerinfo[Index].PosY - 4);
- glEnd;
-
- glDisable(GL_TEXTURE_2D);
- glDisable(GL_BLEND);
- end;
-
- end
- else
- begin
- Inc(C);
- // Draw dismissed
- glColor4f (0.8, 0.8, 0.8, 1);
- MethodRec.Print (1, 18, PlayerInfo.Playerinfo[Index].PosX, PlayerInfo.Playerinfo[Index].PosY-8, SoundName);
- end;
- end;
- if (C >= PlayerInfo.NumPlayers-1) then
- Result := false;
-end;
-
-// is executed on finish, returns the player number of the winner
-function Finish (var Playerinfo: TPlayerinfo): byte; {$IFDEF MSWINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
-var
- Index: integer;
-begin
- Result := 0;
- for Index := 0 to PlayerInfo.NumPlayers-1 do
- begin
- PlayerInfo.Playerinfo[Index].Percentage := (PlayerTimes[Index] * 100) div CountSentences;
- if (PlayerInfo.Playerinfo[Index].Enabled) then
- begin
- PlayerInfo.Playerinfo[Index].Percentage := 100;
- case Index of
- 0: Result := Result or 1;
- 1: Result := Result or 2;
- 2: Result := Result or 4;
- 3: Result := Result or 8;
- 4: Result := Result or 16;
- 5: Result := Result or 32;
- end;
- end;
- end;
-end;
-
-exports
- PluginInfo,
- Init,
- Draw,
- Finish;
-
-begin
-
-end.
diff --git a/plugins/Don't_Get_Worse/dismissed.mp3 b/plugins/Don't_Get_Worse/dismissed.mp3
deleted file mode 100644
index f478e7a3..00000000
--- a/plugins/Don't_Get_Worse/dismissed.mp3
+++ /dev/null
Binary files differ
diff --git a/plugins/Duell/Duell.dpr b/plugins/Duell/Duell.dpr
deleted file mode 100644
index f54edea8..00000000
--- a/plugins/Duell/Duell.dpr
+++ /dev/null
@@ -1,106 +0,0 @@
-library Duell;
-
-{$IFDEF FPC}
- {$MODE Delphi}
-{$ENDIF}
-
-uses
- ModiSDK in '..\SDK\ModiSDK.pas';
-
-//Gave the Plugins Info
-procedure PluginInfo (var Info: TPluginInfo); {$IFDEF MSWINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
-begin
- Info.Name := 'PLUGIN_DUELL_NAME';
-
- Info.Creator := 'Whiteshark';
- Info.PluginDesc := 'PLUGIN_DUELL_DESC';
-
- Info.Typ := 8;
-
- Info.NumPlayers := 31;
- //Options
- Info.LoadSong := True; //Whether or not a Song should be Loaded
- //Only When Song is Loaded:
- Info.ShowScore := True; //Whether or not the Score should be shown
- Info.ShowNotes := True; //Whether the Note Lines should be displayed
- Info.LoadVideo := True; //Should the Video be loaded ?
- Info.LoadBack := True; //Should the Background be loaded ?
-
- Info.BGShowFull := False; //Whether the Background or the Video should be shown Fullsize
- Info.BGShowFull_O := True; //Whether the Background or the Video should be shown Fullsize
-
- Info.ShowRateBar := False; //Whether the Bar that shows how good the player was sould be displayed
- Info.ShowRateBar_O := True; //Load from Ini whether the Bar should be Displayed
-
- Info.EnLineBonus := False; //Whether LineBonus Should be enabled
- Info.EnLineBonus_O := True; //Load from Ini whether LineBonus Should be enabled
-
- //Options even when song is Not loaded
- Info.ShowBars := False; //Whether the White Bars on Top and Bottom should be Drawn
- Info.TeamModeOnly := False; //If True the Plugin can only be Played in Team Mode
- Info.GetSoundData := False; //If True the RData Procedure is called when new SoundData is available
- Info.Dummy := False; //Should be Set to False... for Updateing Plugin Interface
-end;
-
-//Executed on Game Start //If True Game begins, else Failure
-function Init (const TeamInfo: TTeamInfo; var Playerinfo: TPlayerinfo; const Sentences: TSentences; const Methods: TMethodRec): boolean; {$IFDEF MSWINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
-begin
- Result := True;
-end;
-
-//Executed everytime the Screen is Drawed //If False The Game finishes
-function Draw (var Playerinfo: TPlayerinfo; const CurSentence: Cardinal): boolean; {$IFDEF MSWINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
-begin
- Result := True;
-end;
-
-//Is Executed on Finish, Returns the Playernum of the Winner
-function Finish (var Playerinfo: TPlayerinfo): byte; {$IFDEF MSWINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
-var
- I: Integer;
- MaxScore: Word;
-begin
- Result := 0;
- MaxScore := 0;
- for I := 0 to PlayerInfo.NumPlayers-1 do
- begin
- PlayerInfo.Playerinfo[I].Percentage := PlayerInfo.Playerinfo[I].Score div 9999;
- if (PlayerInfo.Playerinfo[I].Score > MaxScore) then
- begin
- MaxScore := PlayerInfo.Playerinfo[I].Score;
- Case I of
- 0: Result := 1;
- 1: Result := 2;
- 2: Result := 4;
- 3: Result := 8;
- 4: Result := 16;
- 5: Result := 32;
- end;
- end
- else if (PlayerInfo.Playerinfo[I].Score = MaxScore) AND (PlayerInfo.Playerinfo[I].Score <> 0) then
- begin
- Case I of
- 0: Result := Result OR 1;
- 1: Result := Result OR 2;
- 2: Result := Result OR 4;
- 3: Result := Result OR 8;
- 4: Result := Result OR 16;
- 5: Result := Result OR 32;
- end;
- end;
- end;
-
- //When nobody has Points -> Everybody loose
- if (MaxScore = 0) then
- Result := 0;
-end;
-
-exports
- PluginInfo,
- Init,
- Draw,
- Finish;
-
-begin
-
-end. \ No newline at end of file
diff --git a/plugins/Makefile.in b/plugins/Makefile.in
deleted file mode 100644
index 0fc49745..00000000
--- a/plugins/Makefile.in
+++ /dev/null
@@ -1,146 +0,0 @@
-#################################################
-# @PACKAGE_STRING@
-# @configure_input@
-#################################################
-
-@SET_MAKE@
-SHELL = /bin/sh
-
-#################################################
-# Standard definitions
-#################################################
-
-top_srcdir ?= @top_srcdir@
-srcdir ?= @srcdir@
-
-#################################################
-# Tools
-#################################################
-
-RM ?= rm -f
-
-#################################################
-# USDX Paths
-#################################################
-
-USDX_SRC_DIR := $(top_srcdir)/src
-USDX_BUILD_DIR := $(top_srcdir)/build
-USDX_LIB_DIR := $(USDX_SRC_DIR)/lib
-
-#################################################
-# FPC config
-#################################################
-
-# Free Pascal compiler binary
-PPC := @PPC@
-# FPC target platform and processor
-PPLATFORM := @FPC_PLATFORM@
-PPROCESSOR := @FPC_PROCESSOR@
-
-# Directories added to the unit path
-PUNIT_FLAGS := -FE../game/plugins -Fu../build/fpc-$(PPROCESSOR)-$(PPLATFORM)
-
-# Directory where compiled units (.ppu, .o and library files) are stored
-PCUNIT_DIR := $(USDX_BUILD_DIR)/fpc-$(PPROCESSOR)-$(PPLATFORM)
-PCUNIT_FLAGS := -FU$(PCUNIT_DIR)
-
-##
-# PFLAGS
-##
-
-# Defined on debug mode
-ENABLE_DEBUG := @ENABLE_DEBUG@
-
-# Note:
-# - PFLAGS/PFLAGS_* defaults to $(PFLAGS_XYZ_DEFAULT) if not set by the user
-# - if PFLAGS is defined, PFLAGS_* will be ignored on "make all"
-PFLAGS ?= @PFLAGS@
-PFLAGS_BASE ?= @PFLAGS_BASE@
-PFLAGS_DEBUG ?= @PFLAGS_DEBUG@
-PFLAGS_RELEASE ?= @PFLAGS_RELEASE@
-
-# Do not overwrite, just add extra flags
-PFLAGS_EXTRA += @PFLAGS_EXTRA@
-
-# Default PFLAGS, used if PFLAGS/PFLAGS_* was not set by the user
-# - Do not use -dDEBUG because it will enable unwanted features
-# - Do not strip executable (-Xs, set by fpc.cfg) to be GNU make conformant
-# - Use DEBUG_MODE instead of DEBUG to avoid enabling the fpc.cfg DEBUG preset
-# - The flag -vB appends the full path to filenames
-# - Note that fpc.cfg already defines -vinw, so add -v0 first
-# - The stack check (-Ct) might not work with enabled threading
-# - Do we need -Coi?
-PFLAGS_BASE_DEFAULT := -Si -Sg- -Sc- -v0Binwe
-PFLAGS_DEBUG_DEFAULT := -Xs- -g -gl -dDEBUG_MODE
-PFLAGS_RELEASE_DEFAULT := -Xs- -O2
-PFLAGS_EXTRA_DEFAULT :=
-
-# Debug/Release mode flags
-# Note that flags will overwrite previously specified flags,
-# e.g. "-vinwe -vi-" is the same as "-vnwe"
-PFLAGS_DEBUG_ALL := $(PFLAGS_BASE) $(PFLAGS_DEBUG) $(PFLAGS_EXTRA)
-PFLAGS_RELEASE_ALL := $(PFLAGS_BASE) $(PFLAGS_RELEASE) $(PFLAGS_EXTRA)
-
-# Choose default PFLAGS, depending on debug mode.
-# Only used if PFLAGS was not set by the user.
-ifdef ENABLE_DEBUG
-PFLAGS_DEFAULT := $(PFLAGS_DEBUG_ALL)
-else
-PFLAGS_DEFAULT := $(PFLAGS_RELEASE_ALL)
-endif
-
-PFLAGS_ALL = $(PFLAGS) $(PDEFINES) $(PINC_FLAGS) $(PUNIT_FLAGS) $(PCUNIT_FLAGS)
-
-.PHONY: all
-all: SDK 5000Points Blind Dont_Get_Worse Duell Team_Duell
-
-.PHONY: SDK
-SDK: clean-SDK
- $(PPC) $(strip $(PFLAGS_ALL)) SDK/ModiSDK.pas
-
-.PHONY: 5000Points
-5000Points: SDK clean-5000Points
- $(PPC) $(strip $(PFLAGS_ALL)) 5000Points/Until5000.dpr
-
-.PHONY: Blind
-Blind: SDK clean-Blind
- $(PPC) $(strip $(PFLAGS_ALL)) Blind/Blind.dpr
-
-.PHONY: Duell
-Duell: SDK clean-Duell
- $(PPC) $(strip $(PFLAGS_ALL)) Duell/Duell.dpr
-
-.PHONY: Team_Duell
-Team_Duell: SDK clean-Team_Duell
- $(PPC) $(strip $(PFLAGS_ALL)) Team_Duell/TeamDuell.dpr
-
-.PHONY: Dont_Get_Worse
-Dont_Get_Worse: SDK clean-Dont_Get_Worse
- $(PPC) $(strip $(PFLAGS_ALL)) Don\'t_Get_Worse/Hold_The_Line.dpr
-
-.PHONY: clean-plugins
-clean-plugins: clean-SDK clean-5000Points clean-Blind clean-Dont_Get_Worse clean-Duell clean-Team_Duell
-
-.PHONY: clean-SDK
-clean-SDK:
- $(RM) $(PCUNIT_DIR)/ModiSDK.o $(PCUNIT_DIR)/ModiSDK.ppu
-
-.PHONY: clean-5000Points
-clean-5000Points:
- $(RM) $(PCUNIT_DIR)/Until5000.o $(PCUNIT_DIR)/libUntil5000.*
-
-.PHONY: clean-Blind
-clean-Blind:
- $(RM) $(PCUNIT_DIR)/Blind.o $(PCUNIT_DIR)/libBlind.*
-
-.PHONY: clean-Duell
-clean-Duell:
- $(RM) $(PCUNIT_DIR)/Duell.o $(PCUNIT_DIR)/libDuell.*
-
-.PHONY: clean-Team_Duell
-clean-Team_Duell:
- $(RM) $(PCUNIT_DIR)/TeamDuell.o $(PCUNIT_DIR)/libTeamDuell.*
-
-.PHONY: clean-Dont_Get_Worse
-clean-Dont_Get_Worse:
- $(RM) $(PCUNIT_DIR)/Hold_The_Line.o $(PCUNIT_DIR)/libHold_The_Line.*
diff --git a/plugins/README(Plugins Status).txt b/plugins/README(Plugins Status).txt
deleted file mode 100644
index a6756832..00000000
--- a/plugins/README(Plugins Status).txt
+++ /dev/null
@@ -1,12 +0,0 @@
-All plugins are cleared off the SDL stuff (basically SDL_GetTicks), the StrUtils and moduleloader unit and should work on all platforms.
-2009-May-23 KMS
-
-Mac OS X:
-The following plugins can be compiled and used after being put in to the plugins folder: Blind, 5000Points, Duell
-
-2009-Apr-8 KMS
-
-The plugins are currently disabled until the party mode is working again.
-This applies to all platforms supported (Windows, Linux, Mac OS X, FreeBSD).
-
-2009-Jan-20 Karl-Michael Schindler aka Mischi.
diff --git a/plugins/Team_Duell/TeamDuell.dpr b/plugins/Team_Duell/TeamDuell.dpr
deleted file mode 100644
index 1371c95d..00000000
--- a/plugins/Team_Duell/TeamDuell.dpr
+++ /dev/null
@@ -1,274 +0,0 @@
-library TeamDuell ;
-
-{$IFDEF FPC}
- {$MODE Delphi}
-{$ENDIF}
-
-uses
- SysUtils,
- ModiSDK in '..\SDK\ModiSDK.pas',
- gl in '..\..\src\lib\JEDI-SDL\OpenGL\Pas\gl.pas';
-
-var
- TeamPlayer: array of array of string;
- StartPoints: array of integer;
- CurSinger, NextSinger: array[0..2] of integer;
- MethodRec: TMethodRec;
- SPT, PlayerSelected: array[0..2] of integer;
- TimeToNextChange, starttick, endtick, ChangeOnSentence: cardinal;
- bps, RTimeToNextChange: double;
- firsttime, secondtime: boolean;
-
-function GetTicks: cardinal;
-// returns a time stamp in milliseconds
-begin
- GetTicks := round(TimeStampToMSecs(DateTimeToTimeStamp(Now)));
-end;
-
-// Give the plugin's info
-procedure PluginInfo (var Info: TPluginInfo); {$IFDEF MSWINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
-begin
- Info.Name := 'PLUGIN_TEAMDUELL_NAME';
-
- Info.Creator := 'jekatt';
- Info.PluginDesc := 'PLUGIN_TEAMDUELL_DESC';
-
- Info.Typ := 8;
-
- Info.NumPlayers := 31;
- // Options
- Info.LoadSong := true; // Whether or not a song should be loaded
- // Only when song is loaded:
- Info.ShowScore := true; // Whether or not the score should be shown
- Info.ShowNotes := true; // Whether the note lines should be displayed
- Info.LoadVideo := true; // Should the video be loaded ?
- Info.LoadBack := true; // Should the background be loaded ?
-
- Info.BGShowFull := false; // Whether the background or the video should be shown full size
- Info.BGShowFull_O := true; // Whether the background or the video should be shown full size
-
- Info.ShowRateBar := true; // Whether the bar that shows how good the player was should be displayed
- Info.ShowRateBar_O := false; // Load from ini whether the bar should be displayed
-
- Info.EnLineBonus := false; // Whether line bonus should be enabled
- Info.EnLineBonus_O := true; // Load from ini whether line bonus should be enabled
-
- // Options even when song is not loaded
- Info.ShowBars := false; // Whether the white bars on top and bottom should be drawn
- Info.TeamModeOnly := true; // if true the plugin can only be played in team mode
- Info.GetSoundData := false; // if true the rdata procedure is called when new sounddata is available
- Info.Dummy := false; // Should be set to false... for updating plugin interface
-end;
-
-// executed on game start. if true game begins, else failure
-function Init (const TeamInfo: TTeamInfo;
- var Playerinfo: TPlayerinfo;
- const Sentences: TSentences;
- const Methods: TMethodRec)
- : boolean; {$IFDEF MSWINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
-var
- Index, J: integer;
-begin
-// Get beginning of sentences
- for Index := 0 to Sentences.High do
- begin
- SetLength(Startpoints, Index+1);
- Startpoints[Index]:=Sentences.Sentence[Index].Start;
- end;
- // Get teams and players
- for Index := 0 to TeamInfo.NumTeams-1 do
- begin
- SetLength(TeamPlayer, Index+1);
- for J := 0 to TeamInfo.Teaminfo[Index].NumPlayers-1 do
- begin
- SetLength(TeamPlayer[Index], J+1);
- TeamPlayer[Index,J] := Copy(string(TeamInfo.Teaminfo[Index].Playerinfo[J].Name), 1, 8);
- if (not(TeamPlayer[Index,J] = (string(TeamInfo.Teaminfo[Index].Playerinfo[J].Name)))) then
- TeamPlayer[Index,J] := TeamPlayer[Index,J]+'.';
- SPT[Index]:=J+1;
- end;
- CurSinger[Index] := TeamInfo.Teaminfo[Index].CurPlayer;
- repeat
- NextSinger[Index] := random(SPT[Index]);
- until not(NextSinger[Index] = CurSinger[Index]) or (SPT[Index] = 1);
- end;
- ChangeOnSentence := 8;
- starttick := GetTicks;
- firsttime := true;
- secondtime := true;
- bps := 1;
- MethodRec := Methods;
- Result := true;
-end;
-
-// Executed every time the screen is drawn; if false the game finishes
-function Draw (var Playerinfo: TPlayerinfo;
- const CurSentence: cardinal)
- : boolean; {$IFDEF MSWINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
-var
- Index, timeline, x, y: integer;
- display: PChar;
- TimeString: PChar;
- start: boolean;
-begin
- // TickCount(firstSentence) (not zero!)
- if (CurSentence = ChangeOnSentence - 7) and (firsttime) then
- begin
- firsttime := false;
- starttick := GetTicks;
- end;
- start := false;
- // show first singer for 5 sec
- if (CurSentence < 1) and ((starttick + 5000) > GetTicks) then
- start := true;
-
- // TickCount(thirdSentence)
- if (CurSentence = 3) and (secondtime) then
- begin
- secondtime := false;
- firsttime := true;
- endtick := GetTicks;
- bps := (Startpoints[3]-Startpoints[1]) * 1000 / (endtick-starttick); // BeatsPerSecond
- end;
-
- // Time to next change
- RTimeToNextChange := ((Startpoints[ChangeOnSentence]-Startpoints[ChangeOnSentence - 7]) / bps) - ((GetTicks - starttick) / 1000);
- TimeToNextChange := Trunc(RTimeToNextChange) + 1;
-
- // Next singer for team I
- for Index := 0 to High(TeamPlayer) do
- begin
- if (CurSentence = ChangeOnSentence) and not(PlayerSelected[Index] = CurSentence) then
- begin
- PlayerSelected[Index] := CurSentence;
- CurSinger[Index] := NextSinger[Index];
- repeat
- NextSinger[Index] := random(SPT[Index]);
- until not(NextSinger[Index] = CurSinger[Index]) or (SPT[Index] = 1) ;
- end;
-
- // display background
- glColor4f (0.8, 0.8, 0.8, 1);
- display := PChar(TeamPlayer[Index,CurSinger[Index]]);
- if (TimeToNextChange <= 11) or (start = true) then
- begin
- glEnable(GL_TEXTURE_2D);
- glDisable(GL_BLEND);
- glColor4f(0, 0, 0, 1);
- glBegin(GL_QUADS);
- glVertex2f(PlayerInfo.Playerinfo[Index].PosX, PlayerInfo.Playerinfo[Index].PosY + 8);
- glVertex2f(PlayerInfo.Playerinfo[Index].PosX, PlayerInfo.Playerinfo[Index].PosY + 30);
- glVertex2f(PlayerInfo.Playerinfo[Index].PosX + 100, PlayerInfo.Playerinfo[Index].PosY + 30);
- glVertex2f(PlayerInfo.Playerinfo[Index].PosX + 100, PlayerInfo.Playerinfo[Index].PosY + 8);
- glEnd;
- display := 'Next Singer';
-
- // timeline
- x := 270;
- y := 472;
- if (TimeToNextChange <= 5) and (RTimeToNextChange > 0) then
- begin
- timeline := Trunc(RTimeToNextChange*50);
- glColor3f(0, 0, 0);
- glBegin(GL_QUADS);
- glVertex2f(x, y);
- glVertex2f(x, y + 18);
- glVertex2f(x + 6 + 250, y + 18);
- glVertex2f(x + 6 + 250, y);
- glEnd;
- glColor3f(0.2, 0.2, 0.2);
- glBegin(GL_QUADS);
- glVertex2f(x + 3, y + 3);
- glVertex2f(x + 3, y + 15);
- glVertex2f(x + 3 + 250, y + 15);
- glVertex2f(x + 3 + 250, y + 3);
- glEnd;
- glColor3f(0.8, 0.2, 0.2);
- glBegin(GL_QUADS);
- glColor3f(0.9, 0, 0); glVertex2f(x + 3, y + 3);
- glColor3f(0.8, 0.3, 0.3); glVertex2f(x + 3, y + 15);
- glColor3f(0.8, 0.3, 0.3); glVertex2f(x + 3 + timeline, y + 15);
- glColor3f(0.9, 0, 0); glVertex2f(x + 3 + timeline, y + 3);
- glEnd;
- end;
- glDisable(GL_TEXTURE_2D);
- end;
-
- // Names, Timer
- if (TimeToNextChange <= 9) then
- begin display := PChar(TeamPlayer[Index,NextSinger[Index]]);
- glColor4f(0.8, 0.1, 0.2, 1);
-// KMS aka Mischi:
-// try to replace the use of the unit USDXStrUtils
-// original:
-// MethodRec.Print (1, 18, PlayerInfo.Playerinfo[Index].PosX+85, PlayerInfo.Playerinfo[Index].PosY+10, CreateStr(PChar(IntToStr(Trunc(TimeToNextChange)))));
-// replacement: Is this correct?
- TimeString := PChar(IntToStr(Trunc(TimeToNextChange)));
- MethodRec.Print (1, 18, PlayerInfo.Playerinfo[Index].PosX+85, PlayerInfo.Playerinfo[Index].PosY+10, TimeString);
- end;
- glColor4f(0.8, 0.8, 0.8, 1);
- if (CurSentence = 0) then
- display := PChar(TeamPlayer[Index,CurSinger[Index]]);
- if (TimeToNextChange <= 11) or (start) then
- MethodRec.Print (1, 18, PlayerInfo.Playerinfo[Index].PosX+5, PlayerInfo.Playerinfo[Index].PosY+10, display);
- end;
- if (CurSentence = ChangeOnSentence) then
- begin
- ChangeOnSentence := CurSentence + 7;
- firsttime := true;
- end;
- Result := true;
-end;
-
-// is executed on finish, returns the player number of the winner
-function Finish (var Playerinfo: TPlayerinfo): byte; {$IFDEF MSWINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
-var
- Index: integer;
- MaxScore: word;
-begin
- Result := 0;
- MaxScore := 0;
- for Index := 0 to PlayerInfo.NumPlayers-1 do
- begin
- PlayerInfo.Playerinfo[Index].Percentage := PlayerInfo.Playerinfo[Index].Score div 9999;
- if (PlayerInfo.Playerinfo[Index].Score > MaxScore) then
- begin
- MaxScore := PlayerInfo.Playerinfo[Index].Score;
- case Index of
- 0: Result := 1;
- 1: Result := 2;
- 2: Result := 4;
- 3: Result := 8;
- 4: Result := 16;
- 5: Result := 32;
- end;
- end
- else if (PlayerInfo.Playerinfo[Index].Score = MaxScore) and (PlayerInfo.Playerinfo[Index].Score <> 0) then
- begin
- case Index of
- 0: Result := Result or 1;
- 1: Result := Result or 2;
- 2: Result := Result or 4;
- 3: Result := Result or 8;
- 4: Result := Result or 16;
- 5: Result := Result or 32;
- end;
- end;
- end;
-
- // When nobody has points -> everybody looses
- if (MaxScore = 0) then
- Result := 0;
-end;
-
-exports
- PluginInfo,
- Init,
- Draw,
- Finish;
-
-begin
-
-end.
-
-