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!

[Release]V19 Minimap

Newbie Spellweaver
Joined
Dec 12, 2011
Messages
13
Reaction score
16
Here u got



+

Code:
#ifdef __VCINEMASCOPE
int m_nCinemaScopeCnt = -100;
#endif
HRESULT CNeuzApp::Render()
{
	_PROFILE("CNeuzApp::Render()");

	if(	m_bActive == FALSE )
		return S_FALSE;
	// Clear the viewport
	m_pd3dDevice->Clear(0, NULL, D3DCLEAR_ZBUFFER | D3DCLEAR_TARGET, CWndBase::m_Theme.m_d3dcBackground, 1.0f, 0 ) ;
	
	CWndWorld* pWndWorld = (CWndWorld*)g_WndMng.GetWndBase( APP_WORLD );
	
	if( pWndWorld )
		pWndWorld ->ClearFlyTarget();		// ºñÇට °ø°Ý°¡´ÉÇÑ Å¸°Ùµé ¸®½ºÆ® Áö¿öÁÜ.	

	//pd3dDevice->Clear(0, NULL, D3DCLEAR_ZBUFFER | D3DCLEAR_TARGET, D3DCOLOR_ARGB( 255, 90, 146, 222 ), 1.0f, 0 ) ;
	//m_pd3dDevice->Clear(0, NULL, D3DCLEAR_ZBUFFER | D3DCLEAR_TARGET, D3DCOLOR_ARGB( 255, 255, 255, 255 ), 1.0f, 0 ) ;
	//m_pd3dDevice->Clear(0, NULL, D3DCLEAR_ZBUFFER | D3DCLEAR_TARGET, D3DCOLOR_ARGB( 255, 0, 0, 0 ), 1.0f, 0 ) ;
	// Begin the scene
	
	if( g_Option.m_nShadow < 2 )		// ³ôÀ½/Áß°£ ¸¸ ½¦µµ¿ì ¸ÊÀ» ¸¸µç´Ù.
	{
		_PROFILE("Make Shadow Map");
		CHECK1();
		void RenderShadowMap( LPDIRECT3DDEVICE9 pd3dDevice, CObj **pList, int nMax );
		if( g_pPlayer )
		{
			CWorld *pWorld = g_pPlayer->GetWorld();
			if( pWorld )
			{
#if __VER >= 13 // __HOUSING

#if __VER >= 14 // __BS_FIX_SHADOW_ONOBJECT
		if( pWorld->GetID() != WI_WORLD_MINIROOM ) // 7.28±âȹ¿äû : ÇÏ¿ì¡ ±×¸²ÀÚ Á¦°Å
			RenderShadowMap( m_pd3dDevice, pWorld->m_aobjCull, pWorld->m_nObjCullSize );
#else 
		if(pWorld->GetID() != WI_WORLD_MINIROOM && pWorld->GetID() != WI_INSTANCE_OMINOUS && pWorld->GetID() != WI_INSTANCE_OMINOUS_1)
			RenderShadowMap( m_pd3dDevice, pWorld->m_aobjCull, pWorld->m_nObjCullSize );

#endif	//__VER >= 14

#endif	//__VER >= 13
			}

		}
		CHECK2( " Render ShadowMap" );
	}

	// »Ç»þ½Ã ¿É¼ÇÀÌ ÄÑÁ®ÀÖÀ¸¸é ·»´õŸ°Ù¿¡ °ÔÀÓÈ­¸éÀ» ·»´õÇÔ.
	if( g_Option.m_nBloom )
	{
		_PROFILE("Make Bloom");
		CWorld* pWorld = g_WorldMng.Get();
		if( pWorld && g_pPlayer && g_Glare.m_bActive )
		{
			pWorld->Projection( m_pd3dDevice, g_Glare.m_Src.m_nWidth, g_Glare.m_Src.m_nHeight );
			pWorld->SetCamera( &m_camera );
			g_Glare.m_Src.BeginScene();
			DWORD dwColor = CWorld::GetDiffuseColor();
			m_2DRender.m_pd3dDevice->Clear(0, NULL, D3DCLEAR_ZBUFFER | D3DCLEAR_TARGET, dwColor /*D3DCOLOR_ARGB( 255, 255, 255, 255 )*/, 1.0f, 0 ) ;
			pWorld->RenderBase( m_pd3dDevice, g_WndMng.m_Theme.m_pFontWorld );		// ÁöÇü°ú ¿ÀºêÁ§Æ®¸¦ ¹Ì¸® ·»´õ¸µ ÇصÒ.
			g_Glare.m_Src.EndScene();

			g_Glare.Blur( m_pd3dDevice );		// m_Src¸¦ m_Surface[0]¿¡ ºí·¯ÇÔ.		
		}
	}

	CHECK1();
#ifdef __NEW_THEME
	CWndNavigator* pWndNavigator = (CWndNavigator*)g_WndMng.GetWndBase(APP_NAVIGATOR);
	if(pWndNavigator)
	{
		pWndNavigator->Render(m_pd3dDevice);
	}
#endif
	if(SUCCEEDED(m_pd3dDevice->BeginScene()))
	{
		_PROFILE("BeginScene");

		CHECK2( "Begin" );
 
Newbie Spellweaver
Joined
Feb 13, 2009
Messages
9
Reaction score
2
i have no source actually to test it: Is it Complete? (Only a Question :) )

btw: Thanks for this Release Jopsi :)

greetz,
yahama/Cross
 
Newbie Spellweaver
Joined
Sep 27, 2008
Messages
30
Reaction score
0
Thank for code

how to fix it

2014/ 1/ 4 03:33:20 FLYFF V15

Neuz.exe caused an EXCEPTION_ACCESS_VIOLATION in module Neuz.exe at 0023:005894C9

- Registers

EAX=0018FB7C EBX=7EFDE000 ECX=00000000 EDX=0018FB7C ESI=00000000
EDI=75501245 EBP=0018FD4C ESP=0018FB54 EIP=005894C9 FLG=00210297
CS=0023 DS=002B SS=002B ES=002B FS=0053 GS=002B

0023:005894C9 Neuz.exe
0023:0046DA97 Neuz.exe
0023:0048D89F Neuz.exe
0023:0048D6B5 Neuz.exe
0023:004754EC Neuz.exe
0023:009250BC Neuz.exe
0023:7550336A kernel32.dll
0023:772D9F72 ntdll.dll
0023:772D9F45 ntdll.dll

error render CWndNavigator
 
Newbie Spellweaver
Joined
Dec 12, 2011
Messages
13
Reaction score
16
this is the official Minimap + V19 Code. Not from adeilson

u only need the offi theme alphacircle.tga map.tga map_1.tga map_2.tga

and this

resdata.inc
Code:
APP_NAVIGATOR "" "" 0 256 256 0x2410000 26
{
// Title String
IDS_RESDATA_INC_002400
}
{
// Help Key
IDS_RESDATA_INC_002401
}
{

}
 
Newbie Spellweaver
Joined
Jan 3, 2014
Messages
6
Reaction score
0
jopsi its still the same. the minimap is circled. but there is showing semi transparent square minimap
 
Junior Spellweaver
Joined
Dec 14, 2011
Messages
148
Reaction score
10
incomplete :D

tested to my friend :)
-no NAVIGATOR name
- x and ? button :D HAHAHHAHA

fix it if you want this one to be useful :)

Jopsi332 - [Release]V19 Minimap - RaGEZONE Forums
 
Junior Spellweaver
Joined
Dec 14, 2011
Messages
148
Reaction score
10
All of which is around 3 minutes of fixes lol...
yeah. i know but for me is to tell what is something wrong. so that those who will use this they know what is wrong :)

don't worry i already fix my navigator before and also i don't need this anymore :p :)
 
Newbie Spellweaver
Joined
Jul 19, 2012
Messages
22
Reaction score
2
All of which is around 3 minutes of fixes lol...
I don't really think it's around 3 minutes only if you are a really talented coder lol..
And it's not only the title that is bugged, but the buttons are not placed correctly, and as i tryed, if you open the neuz in a high resolution, they will get miss-placed.

Here's my result:
Jopsi332 - [Release]V19 Minimap - RaGEZONE Forums

But i still gotta align the title, which i've been lazy to do. xD
 
Junior Spellweaver
Joined
Dec 14, 2011
Messages
148
Reaction score
10
I don't really think it's around 3 minutes only if you are a really talented coder lol..
And it's not only the title that is bugged, but the buttons are not placed correctly, and as i tryed, if you open the neuz in a high resolution, they will get miss-placed.

Here's my result:
Jopsi332 - [Release]V19 Minimap - RaGEZONE Forums

But i still gotta align the title, which i've been lazy to do. xD
Code:
void CWndNavigator::SetRegionName( TCHAR *tszName )
{
	CString strTitle = tszName;
    CWndStatic STitle;

	if( strTitle.IsEmpty() )
		strTitle = prj.GetText( TID_APP_NAVIGATOR );

	STitle.Create( strTitle,0,CRect(0,8,256,8),this,110);
	SetTitle( strTitle );
}

Code:
BOOL CWndNavigator::Initialize(CWndBase* pWndParent,DWORD dwWndId)
{
	CRect rectWindow = m_pWndRoot->GetWindowRect();
	CRect rect( 0, 0, 200, 200);//115, 110 ); // 1024 768

Code:
void CWndBase::PaintFrame(C2DRender* p2DRender)
{
	{
		CRect rect = GetWindowRect();

		if( m_pTexture )
		{
			RenderWnd();
			// ¿©±â´Â ŸÀÌƲ ¹ÙÀÇ ÅؽºÆ®¸¦ Ãâ·ÂÇÏ´Â °÷ 
			if( IsWndStyle( WBS_CAPTION ) )	
			{
#ifdef __WINDOWS_V19
			CPoint newpoint;
			CSize sizeTitle = p2DRender->m_pFont->GetTextExtent( m_strTitle );
			CRect rect	= GetWindowRect();
			newpoint = (rect.Width() - sizeTitle.cx) / 2;

			CD3DFont* pOldFont = p2DRender->GetFont();
			p2DRender->SetFont( CWndBase::m_Theme.m_pFontWndNewTitle );
#if __VER >= 19
	        if( this->GetWndId() == APP_NAVIGATOR )
			{
            		p2DRender->TextOut( newpoint.x - 7 , 5, m_strTitle, 0xffffffff );
			}
			else
#endif
			{
            		p2DRender->TextOut( newpoint.x - 7 , 6, m_strTitle, 0xffffffff );
			}
			p2DRender->SetFont( pOldFont );
#else
			CD3DFont* pOldFont = p2DRender->GetFont();
			p2DRender->SetFont( CWndBase::m_Theme.m_pFontWndTitle );
			p2DRender->TextOut( 10, 4, m_strTitle, m_dwColor );
			p2DRender->SetFont( pOldFont );

#endif// __WINDOWS_V19
			}				
				
		}
		else
		if( m_strTexture.IsEmpty() )
		{
			m_pTheme->RenderWndBaseFrame( p2DRender, &rect );
			if( IsWndStyle( WBS_CAPTION ) )
			{
				// ŸÀÌƲ ¹Ù 
				rect.bottom = 21;
				{
					m_pTheme->RenderWndBaseTitleBar( p2DRender, &rect, m_strTitle, m_dwColor );
				}
			}
		}
	}
}

try that :)
 
Last edited:
Newbie Spellweaver
Joined
Aug 28, 2012
Messages
31
Reaction score
0
My problem is Render in Neuz.cpp , Plz help me :(

zrnVB7 - [Release]V19 Minimap - RaGEZONE Forums
 

Attachments

You must be registered for see attachments list
Newbie Spellweaver
Joined
Jan 20, 2013
Messages
8
Reaction score
0
Same Problem here.

What might be the problem?
LciNQo - [Release]V19 Minimap - RaGEZONE Forums



Anyone with good heart?
 

Attachments

You must be registered for see attachments list
Newbie Spellweaver
Joined
Apr 6, 2013
Messages
68
Reaction score
1
My problem is Render in Neuz.cpp , Plz help me :(

"Render is not a member of CWndNavigator " maybe you dont link the wndnavigator .. or try to find the fix in wndnavigator or wndfield ..
 
Last edited:
Newbie Spellweaver
Joined
Jul 19, 2012
Messages
22
Reaction score
2
Code:
void CWndNavigator::SetRegionName( TCHAR *tszName )
{
	CString strTitle = tszName;
    CWndStatic STitle;

	if( strTitle.IsEmpty() )
		strTitle = prj.GetText( TID_APP_NAVIGATOR );

	STitle.Create( strTitle,0,CRect(0,8,256,8),this,110);
	SetTitle( strTitle );
}

Code:
BOOL CWndNavigator::Initialize(CWndBase* pWndParent,DWORD dwWndId)
{
	CRect rectWindow = m_pWndRoot->GetWindowRect();
	CRect rect( 0, 0, 200, 200);//115, 110 ); // 1024 768

Code:
void CWndBase::PaintFrame(C2DRender* p2DRender)
{
	{
		CRect rect = GetWindowRect();

		if( m_pTexture )
		{
			RenderWnd();
			// ¿©±â´Â ŸÀÌƲ ¹ÙÀÇ ÅؽºÆ®¸¦ Ãâ·ÂÇÏ´Â °÷ 
			if( IsWndStyle( WBS_CAPTION ) )	
			{
#ifdef __WINDOWS_V19
			CPoint newpoint;
			CSize sizeTitle = p2DRender->m_pFont->GetTextExtent( m_strTitle );
			CRect rect	= GetWindowRect();
			newpoint = (rect.Width() - sizeTitle.cx) / 2;

			CD3DFont* pOldFont = p2DRender->GetFont();
			p2DRender->SetFont( CWndBase::m_Theme.m_pFontWndNewTitle );
#if __VER >= 19
	        if( this->GetWndId() == APP_NAVIGATOR )
			{
            		p2DRender->TextOut( newpoint.x - 7 , 5, m_strTitle, 0xffffffff );
			}
			else
#endif
			{
            		p2DRender->TextOut( newpoint.x - 7 , 6, m_strTitle, 0xffffffff );
			}
			p2DRender->SetFont( pOldFont );
#else
			CD3DFont* pOldFont = p2DRender->GetFont();
			p2DRender->SetFont( CWndBase::m_Theme.m_pFontWndTitle );
			p2DRender->TextOut( 10, 4, m_strTitle, m_dwColor );
			p2DRender->SetFont( pOldFont );

#endif// __WINDOWS_V19
			}				
				
		}
		else
		if( m_strTexture.IsEmpty() )
		{
			m_pTheme->RenderWndBaseFrame( p2DRender, &rect );
			if( IsWndStyle( WBS_CAPTION ) )
			{
				// ŸÀÌƲ ¹Ù 
				rect.bottom = 21;
				{
					m_pTheme->RenderWndBaseTitleBar( p2DRender, &rect, m_strTitle, m_dwColor );
				}
			}
		}
	}
}

try that :)

I already have that.
 
Back
Top