Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Flyff > Flyff Private Server
You last visited: Today at 16:34

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Wikipedia Job Picture problem.

Discussion on Wikipedia Job Picture problem. within the Flyff Private Server forum part of the Flyff category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Oct 2019
Posts: 47
Received Thanks: 7
Wikipedia Job Picture problem.

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);
Attached Images
File Type: png Wikipedia.png (36.7 KB, 26 views)
Miracle` is offline  
Old 08/16/2021, 02:54   #2
 
Tamus's Avatar
 
elite*gold: 0
Join Date: Aug 2020
Posts: 102
Received Thanks: 8
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.,
Tamus is offline  
Thanks
1 User
Old 08/16/2021, 11:01   #3
 
elite*gold: 0
Join Date: Mar 2013
Posts: 204
Received Thanks: 38
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
flyffdev is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
[Buying] Profile picture + Cover fb picture
04/09/2017 - Artist Trading - 3 Replies
Hello guys, this is one of my pages and im looking for a good design: https://www.facebook.com/BROTHER.BGG/ Theme is about mafia, about thug life, about brotherhood etc. Show me ur arts and i will buy the best created from you :)



All times are GMT +1. The time now is 16:34.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.