Wikipedia Job Picture problem.

08/15/2021 19:27 Miracle`#1
Hello guys! I have a problem with my Wikipedia Job System.


Code:
void CWndWikipediaJob::OnDraw( C2DRender* p2DRender )
{
	CWndNeuz::OnDraw( p2DRender );
	LPWNDCTRL pDrawCtrl = GetWndCtrl( WIDC_STATIC2 );
	if( pDrawCtrl )
	{
		JobProp* pProperty = prj.GetJobProp(m_nJob);
		if( pProperty )
		{
			CString strJob;
			strJob.Format( "%s.tga", pProperty->szJobIcon );
			CTexture pTex;
			pTex.LoadTexture(g_Neuz.m_pd3dDevice, MakePath( DIR_THEME, strJob ), 0xffff00ff, TRUE);
			pTex.Render( p2DRender, CPoint( pDrawCtrl->rect.left + 3, pDrawCtrl->rect.top + 3 ) );
		}
	}
}
Error

Quote:
2021/ 8/16 00:34:47 ::LoadTextureFromRes : Theme\Default\.tga not found

2021/ 8/16 00:34:47 CTexture::LoadTexture : Theme\Default\.tga read error
Full


Update: Fixed. Thank you guys for replying my post.

I fixed it by going to Project.cpp

In the function
Code:
BOOL CProject::LoadPropJob( LPCTSTR lpszFileName )
After
Code:
pProperty->fCritical = scanner.GetFloat();
I add
Code:
scanner.GetToken();
_tcscpy(pProperty->szJobIcon, scanner.token);
08/16/2021 02:54 Tamus#2
Quote:
Originally Posted by Miracle` View Post
Hello guys! I have a problem with my Wikipedia Job System.


Code:
void CWndWikipediaJob::OnDraw( C2DRender* p2DRender )
{
	CWndNeuz::OnDraw( p2DRender );
	LPWNDCTRL pDrawCtrl = GetWndCtrl( WIDC_STATIC2 );
	if( pDrawCtrl )
	{
		JobProp* pProperty = prj.GetJobProp(m_nJob);
		if( pProperty )
		{
			CString strJob;
			strJob.Format( "%s.tga", pProperty->szJobIcon );
			CTexture pTex;
			pTex.LoadTexture(g_Neuz.m_pd3dDevice, MakePath( DIR_THEME, strJob ), 0xffff00ff, TRUE);
			pTex.Render( p2DRender, CPoint( pDrawCtrl->rect.left + 3, pDrawCtrl->rect.top + 3 ) );
		}
	}
}
Error



Full

missing .tga icon. find your resdata and look the .tga icon on it and find where you copy that features on theme folder.,
08/16/2021 11:01 flyffdev#3
Check your PropJob.Inc and add the icon name there

Example:
Code:
//	공속	MaxHP관련	MaxMP관련	MaxFP관련	물리방어력관련	hp회복률관련	mp회복률관련	fp회복률관련	SWD	AXE	STAFF	STICK	KNUCKLE	WAND	BLOCKING	YOYO	CRITICAL	BOW	ICON
JOB_VAGRANT	75	0.9	0.3	0.3	1	1.2	0.5	0.5	4.5	5.5	0.8	3	5	6	0.2	4.2	1	1	JobVagrant