Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Ep7 Ping/fps source

Experienced Elementalist
Joined
Jun 17, 2012
Messages
269
Reaction score
1
so here it is i've been working on a shared source here and i cant compile it heres the problem ihope youcan help me fix it.
RanClientUILib\Interface\MiniMap.cpp(6): fatal error C1083: Cannot open include file: 'icmpapi.h': No such file or directory
 
Experienced Elementalist
Joined
Jun 17, 2012
Messages
269
Reaction score
1
hey can i add you on facebook? it didnt work it finds some dll file can i add youon fb?
 
Experienced Elementalist
Joined
Jun 17, 2012
Messages
269
Reaction score
1
can we do pm?



RanManager fatal error LNK1104: cannot open file 'icmp.lib'
MobEdit fatal error LNK1104: cannot open file 'icmp.lib'
SkillEditor fatal error LNK1104: cannot open file 'icmp.lib'
NpcAction fatal error LNK1104: cannot open file 'icmp.lib'
RanManager fatal error LNK1104: cannot open file 'icmp.lib'
AgentServer fatal error LNK1104: cannot open file 'icmp.lib'
FieldServer fatal error LNK1104: cannot open file 'icmp.lib'
Basic fatal error LNK1104: cannot open file 'icmp.lib'

Emulator fatal error LNK1104: cannot open file 'icmp.lib'
 
Joined
Feb 19, 2013
Messages
527
Reaction score
101
well, let me help .
find minimap.cpp
1. add this more for
CMiniMap::CMiniMap()
Code:
[COLOR=#0000ff], m_pFPSText(NULL)
, m_fFPS (0.0f)[/COLOR]
2.add more for
void CMiniMap::CreateSubControl (){
Code:
[COLOR=#0000ff]CBasicTextBox* pFPSText = new CBasicTextBox;   
pFPSText->CreateSub ( this, "MINIMAP_FPS_TEXT" );
pFPSText->SetFont ( pFont );    
pFPSText->SetTextAlign ( TEXT_ALIGN_CENTER_X );    
RegisterControl ( pFPSText );    
m_pFPSText = pFPSText;[/COLOR]
3.find this
void CMiniMap::Update ( int x, int y, BYTE LB, BYTE MB, BYTE RB, int nScroll, float fElapsedTime, BOOL bFirstControl )
then add below line
RotateMap ();
Code:
[COLOR=#0000ff]CalcFPS(); 
CString strText;
strText.Format("%.02f FPS",m_fFPS);    
if ( m_fFPS <= 10 )        
{                m_pFPSText->SetOneLineText(strText,NS_UITEXTCOLOR::RED);
       }
    else if ( m_fFPS > 10 && m_fFPS <= 20 )       
 {            m_pFPSText->SetOneLineText(strText,NS_UITEXTCOLOR::DARKORANGE);
        }         else if ( m_fFPS >= 21 && m_fFPS <= 30 ) 
       {            m_pFPSText->SetOneLineText(strText,NS_UITEXTCOLOR::ORANGE); 
       }         else if ( m_fFPS >= 31 && m_fFPS <= 50 )        
{            m_pFPSText->SetOneLineText(strText,NS_UITEXTCOLOR::PALEGREEN); 
       }        else if ( m_fFPS >= 51 ) 
       {            m_pFPSText->SetOneLineText(strText,NS_UITEXTCOLOR::LIME);
       }[/COLOR]
4. and the last code for calculator fps , add in the end of map or every where !
Code:
[COLOR=#0000ff]inline float CMiniMap::CalcFPS()
{        static FLOAT fLastTime = 0.0f;
        static DWORD dwFrames  = 0L;
        FLOAT fTime = DXUtil_Timer( TIMER_GETABSOLUTETIME );
        ++dwFrames;
        if( fTime - fLastTime > 1.0f )
        {            m_fFPS    = dwFrames / (fTime - fLastTime); 
           fLastTime = fTime;  
         dwFrames  = 0L;  
                      return m_fFPS; 
       } 
   return m_fFPS;
}[/COLOR]
5... open minimap.h
add
Code:
[COLOR=#0000ff]private:
CBasicTextBox*  m_pFPSText;
public:
float    CalcFPS();float    m_fFPS;[/COLOR]
...rebuild source ...add this to gui : uiinnercfg01.xml
Code:
[COLOR=#0000ff]<CONTROL Local="Common" Id="MINIMAP_FPS_TEXT">
        <WINDOW_POS X="215" Y="100" W="115" H="14" />
</CONTROL>[/COLOR]
you can edit pos to compatible with your client !
Sorry, i don't have " ping ". i'm looking for it too :)
 
Experienced Elementalist
Joined
Jun 17, 2012
Messages
269
Reaction score
1
about my source i would like youto check it ..same
 
Experienced Elementalist
Joined
Jun 17, 2012
Messages
269
Reaction score
1
source have fps/ping but it have onlyone error for not building and i cant seem to find the solution
 
Joined
Feb 19, 2013
Messages
527
Reaction score
101
RanClientUILib\Interface\MiniMap.cpp(6): fatal error C1083: Cannot open include file: 'icmpapi.h': No such file or directory
this mean you doesn't have this file icmpapi.h in your source ,so minimap.cpp have #include " with that name " can't include that or all code of that file .h when building , you can try to remove anything of icmpapi.h or try to find one, i don't have that file, that's mean it have been created by someone owner it before :)
 
Newbie Spellweaver
Joined
Jan 5, 2018
Messages
45
Reaction score
6
Check this all
 
Back
Top