remove the mp3player.cpp and vgui_mp3player.cpp files from the project. also delete them and vgui_mp3player.h.
open up hud.h and look for this:
/**
* Mp3 Player
* @version 25-8-2001
* @author Herwin 'harSens' van Welbergen
*/
class CHudMp3Player: public CHudBase
{
public:
/**
* initializes
* @return int: always 1
*/
int Init( void );
/**
* think function, used to change tracks
*/
void Think( void );
/**
* deinitializes
*/
void DeInit();
///Shows Mp3Player menu
void _cdecl UserCmd_ShowMp3Menu( void );
///plays current song
void Play();
///pauses playing
void Pause();
///stop playing
void Stop();
///select next song
void Next();
///select previous song
void Previous();
private:
int m_iMenuOpen;
int m_iChannel;
int m_iError;
int m_iPlaylistLength;
int m_iCurrentSong;
char m_pPlaylist[255][255];
FSOUND_STREAM *stream;
enum {MP3_NONE,MP3_STOP, MP3_PLAY, MP3_PAUSE}m_eStatus;
};
get rid of it! then look in the CHud object for this
//mp3player by harSens
CHudMp3Player m_Mp3Player;
Now try and compile the client.dll. Dont expect it to work. We are trying to compile so that the error messages guide us to where the rest of the client.dll references the mp3 player.
hud.cpp
j:\mods\alpha_20\cl_dll\hud.cpp(301) : error C2065: 'm_Mp3Player' : undeclared identifier
j:\mods\alpha_20\cl_dll\hud.cpp(301) : error C2228: left of '.Init' must have class/struct/union type
j:\mods\alpha_20\cl_dll\hud.cpp(324) : error C2228: left of '.DeInit' must have class/struct/union type
j:\mods\alpha_20\cl_dll\hud.cpp(465) : error C2228: left of '.VidInit' must have class/struct/union type
this means that hud.cpp is trying to use 3 m_Mp3Player methods that MSVC cant find. so just nip to lines 301, 324 and 465 and get rid of those calls O_O.
nearly there. it turns out vgui_teamfortressviewport.cpp makes a lot of refs to the mp3 player. so open up that file and search for m_pMp3Menu. Delete all of those bits. VOILA!
u shud also get rid of these:
CMenuPanel* TeamFortressViewport::ShowMp3Menu()
{
// Don't open menus in demo playback
if ( gEngfuncs.pDemoAPI->IsPlayingback() )
return NULL;
m_pMp3Menu->Reset();
return m_pMp3Menu;
}
void TeamFortressViewport::CreateMp3Menu()
{ // Create the panel
m_pMp3Menu = new CMp3MenuPanel(0, false, 0, 0, ScreenWidth, ScreenHeight);
m_pMp3Menu->setParent(this);
m_pMp3Menu->setVisible( false );
}
//end harSens add
of course if you do know C++ then you should be able to fill in the deliberate vagueness of this guide.