Ok. I will wait for any news you´ll post.
I have started to implement all the new code:
The
overheat.h and
overheat.cpp are here:
http://pastebin.com/T88pSi31http://pastebin.com/dEKTrMxzI declared the server side elements in
player.cppint gmsgOverheat = 0;//ZWC OVERHEAT (c) Shepard 62700FR
gmsgOverheat = REG_USER_MSG( "Overheat", 1);//ZWC OVERHEAT (c) Shepard 72700FR
Yes, they´re (c)you. Admit no complaints about this.
Tried to compile server dll (which does flawlessly) and client dll, AND, I have no troubles now with the
FILLRGBA part, this part shows no problems and seemed to recognize the
m_iHeat integer, BUT: I,ve found several errors... In my defense I have to say that I performed several re-writing, and checks before posting this:
G:\DevZWC20\Elementos\Single-Player Source\cl_dll\hud.h(650) : error C2146: syntax error : missing ';' before identifier 'm_Overheat'
G:\DevZWC20\Elementos\Single-Player Source\cl_dll\hud.h(650) : error C2501: 'CHudOverheat' : missing storage-class or type specifiers
G:\DevZWC20\Elementos\Single-Player Source\cl_dll\hud.h(650) : error C2501: 'm_Overheat' : missing storage-class or type specifiers
Points here:
[quote]
int GetSpriteIndex( const char *SpriteName ); // gets a sprite index, for use in the m_rghSprites[] array
CHudAmmo m_Ammo;
CHudHealth m_Health;
CHudSpectator m_Spectator;
CHudGeiger m_Geiger;
CHudBattery m_Battery;
Here--> CHudOverheat m_Overheat;//ZWC Overheat (c) Shepard62700FR
[/quote]
Then I did also receive:
G:\DevZWC20\Elementos\Single-Player Source\cl_dll\overheat.cpp(39) : error C2039: 'm_Overheat' : is not a member of 'CHud'
G:\DevZWC20\Elementos\Single-Player Source\cl_dll\overheat.cpp(39) : error C2228: left of '.MsgFunc_Overheat' must have class/struct/union type
And ppints here:
DECLARE_MESSAGE(m_Overheat,Overheat)
Even if it is perfectly declared on
overheat.hint MsgFunc_Overheat(const char *pszName, int iSize, void *pbuf);
The next is also extrange (at least for me):
G:\DevZWC20\Elementos\Single-Player Source\cl_dll\overheat.cpp(45) : error C2653: 'CHudOverheat' : is not a class or namespace name
Points here:
int CHudOverheat::Init(void)
But it is on
Overheat.h !
Starting going nuts after two hours of re-writing all from scratch...
G:\DevZWC20\Elementos\Single-Player Source\cl_dll\overheat.cpp(48) : error C2065: 'm_iHeat' : undeclared identifier
Points here:
m_iHeat = 0;
Into the function
int CHudOverheat::Init(void)But, again, it is declared into
overheat.h as
int m_iHeat;.
as things go further I hit again with:
G:\DevZWC20\Elementos\Single-Player Source\cl_dll\overheat.cpp(49) : error C2673: 'Init' : global functions do not have 'this' pointers
Pointing to:
[quote]
gHUD.AddHudElem(this);
[/quote]
WTF? Why there´s no problem with this then?
[quote]
int CHudRadar::Init(void)
{
HOOK_MESSAGE(Radar);
gHUD.AddHudElem(this);
return 1;
}
[/quote]
And finally I started to surrender:
G:\DevZWC20\Elementos\Single-Player Source\cl_dll\overheat.cpp(55) : error C2065: 'm_hSprite' : undeclared identifier
That points to:
m_hSprite = 0;
But in
overheat.h...
[quote]
private:
HSPRITE m_hSprite;
[/quote]
I´m a total newb, I admit, but I think I can declare things properly, and all those things are in their places. (I did re-compile for doubts sake).
G:\DevZWC20\Elementos\Single-Player Source\cl_dll\overheat.cpp(59) : error C2653: 'CHudOverheat' : is not a class or namespace name
G:\DevZWC20\Elementos\Single-Player Source\cl_dll\overheat.cpp(60) : error C2373: 'MsgFunc_Overheat' : redefinition; different type modifiers
Here I started to think that I am a totally moron because it points to:
int CHudOverheat:: MsgFunc_Overheat(const char *pszName, int iSize, void *pbuf )
That is the same function that
CHudHealth...
And if you have any faith in me, here you are to bring you back to reality...
G:\DevZWC20\Elementos\Single-Player Source\cl_dll\overheat.cpp(69) : error C2653: 'CHudOverheat' : is not a class or namespace name
That points to:
int CHudOverheat::Draw(float flTime)
Believe me, I´m sure they all are on
overheat.cppI then quited, but not before taking note of this last:
G:\DevZWC20\Elementos\Single-Player Source\cl_dll\hud.cpp(354) : error C2065: 'm_Overheat' : undeclared identifier
G:\DevZWC20\Elementos\Single-Player Source\cl_dll\hud.cpp(354) : error C2228: left of '.Init' must have class/struct/union type
G:\DevZWC20\Elementos\Single-Player Source\cl_dll\hud.cpp(506) : error C2228: left of '.VidInit' must have class/struct/union type
That points to:
m_Overheat.Init();//ZWC OVERHEAT (c) Shepard 62700FR
and:
m_Overheat.VidInit();//ZWC OVERHEAT (c) Shepard 62700FR
That are already there, in
overheat.h.
As you can see, I did all neccesary, except the third part of the code that is starting the drawing via MESSAGE_BEGIN, etc in the server side, but the declarations are there, if necessary.
I know that those are too much errors, believe me if I checked ALL and EVERY of them, for missing ";", for function location and misspelling, declaration of every integer and function.
I better take a time to re-study all.