The client dll!

New Member
Joined
Jun 14, 2003
Messages
65
Best answers
0
Hey guys please help.I downloaded the alpha 2.0 source and when i compile the client.dll esf alpha dosen't load it please help. :cry:
 
New Member
Joined
Nov 24, 2001
Messages
692
Best answers
0
You need an old version of fmod to run esf alpha 2.0. You can also remove the mp3player from the client and recompile it.
 
New Member
Joined
Jun 14, 2003
Messages
65
Best answers
0
Ok then harSens but from were could i get it?
 
New Member
Joined
Jun 14, 2003
Messages
65
Best answers
0
No harSens it's isin't with the alpha 2.0 maybe you could give me the sdk edited by you without the mp3 player?PLEASE?
 
New Member
Joined
Nov 24, 2001
Messages
692
Best answers
0
No offense, but if you're unable to remove the mp3player from my code, you shouldn't touch it at all.

Please learn C++ first.
 
Member
★ Black Lounger ★
🌟 Senior Member
Joined
Nov 28, 2002
Messages
437
Best answers
0
harSens said:
No offense, but if you're unable to remove the mp3player from my code, you shouldn't touch it at all.

Please learn C++ first.
the coder has spoken,
it's not that ard to get rid of the player.. :S...
just try to understand the code...
"what does this do what does that do..oh and if i do this that will show up ingame"


like that... :p
 
New Member
Joined
Jun 14, 2003
Messages
65
Best answers
0
i know c++ but i cant understand it im sory for beeing a noob so close this tread ill try to figure it out so thanx for the advice harsens.
 

jc

New Member
Joined
Sep 22, 2002
Messages
12
Best answers
0
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:
Code:
/**
* 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

Code:
	//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.

Code:
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:

Code:
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.
 
New Member
Joined
Jun 14, 2003
Messages
65
Best answers
0
Yes thanx it works could you give me your e-mail i want to talk to you about something ok?
 
Coder - Harsens sidekick
💻 Oldtimer
Joined
Nov 24, 2001
Messages
1,981
Best answers
0
Common JC, didn't have to spoon feed him -_-
 

jc

New Member
Joined
Sep 22, 2002
Messages
12
Best answers
0
=_= hey he had to figure out er..... but... errr..... ok sorry :p
 
New Member
Joined
Jun 14, 2003
Messages
65
Best answers
0
Maybe i would maybe not but he helped me and i apresiate it thanx again :):):)
 

Users who are viewing this thread

Top Bottom