chip_playershop crash after adding item in vend

08/05/2018 11:48 cedrickaga#1
Hello,
Anyone can help me with chip_playershop?
I've been struggling with this one. I have compiled the codes without error and was able to get inside the game.
The thing is whenever I add items to sell in playershop the client freezes and then crash. Can anyone help me?
(The code is working before the addition of chip_playershop so I'm pretty sure that this is where the problem is)

Here's the error log in the client:
Code:
2018/ 8/ 5   17:38:25   g_pPlayer is ready

2018/ 8/ 5   17:38:27   CWndTaskBar::SetTaskBarTexture : test12 2010

2018/ 8/ 5   17:38:27   CWndTaskBar::SetTaskBarTexture : test12 581

2018/ 8/ 5   17:38:45   g_pPlayer is ready

2018/ 8/ 5   17:38:45   CWndTaskBar::SetTaskBarTexture : test12 581

2018/ 8/ 5   17:38:49   GetDlgItem : nID=931 not Found.

2018/ 8/ 5   17:38:49   GetDlgItem : nID=715 not Found.

2018/ 8/ 5   17:38:49   GetDlgItem : nID=708 not Found.

2018/ 8/ 5   17:38:49   Aug  5 2018 16:24:19 1 rCnt=1

Neuz.exe caused an EXCEPTION_ACCESS_VIOLATION in module Neuz.exe at 0023:004B0A7D, CWndBase::SetGroup()+0013 byte(s), e:\flyffcustom\v18\blessed source\official source\_interface\wndbase.h, line 0231+0013 byte(s)

 - Registers

EAX=00000000  EBX=0048A300  ECX=00000001  EDX=00000000  ESI=00000000
EDI=00000202  EBP=0019F090  ESP=0019F08C  EIP=004B0A7D  FLG=00210206
CS=0023   DS=002B  SS=002B  ES=002B   FS=0053  GS=002B

0023:004B0A7D Neuz.exe, CWndBase::SetGroup()+0013 byte(s)
0023:0061ED51 Neuz.exe, CWndRegVend::OnInitialUpdate()+0609 byte(s)
0023:0050C0ED Neuz.exe, CWndBase::Create()+0413 byte(s)
0023:004D5389 Neuz.exe, CWndNeuz::InitDialog()+0297 byte(s)
0023:0061EE0A Neuz.exe, CWndRegVend::Initialize()+0058 byte(s)
0023:00620DEF Neuz.exe, CWndVendor::OnChildNotify()+0623 byte(s)
0023:00624433 Neuz.exe, CWndVendorCtrl::OnDropIcon()+0371 byte(s)
0023:0050DA3E Neuz.exe, CWndBase::WindowRootProc()+1246 byte(s)
0023:0046DF62 Neuz.exe, CNeuzApp::MsgProc()+0338 byte(s)
0023:0048A324 Neuz.exe, WndProc()+0036 byte(s)
0023:765FBE6B USER32.dll, AddClipboardFormatListener()+1179 byte(s)
0023:765F833A USER32.dll, DispatchMessageW()+2426 byte(s)
0023:765F7BEE USER32.dll, DispatchMessageW()+0558 byte(s)
0023:765ECD30 USER32.dll, DispatchMessageA()+0016 byte(s)
0023:0048C5F7 Neuz.exe, CD3DApplication::Run()+0199 byte(s)
0023:0047446C Neuz.exe, WinMain()+0332 byte(s)
0023:0091728C Neuz.exe, WinMainCRTStartup()+0388 byte(s)
0023:77258484 KERNEL32.DLL, BaseThreadInitThunk()+0036 byte(s)
0023:77972FEA ntdll.dll, RtlValidSecurityDescriptor()+0282 byte(s)
0023:77972FBA ntdll.dll, RtlValidSecurityDescriptor()+0234 byte(s)
08/05/2018 12:11 Ecrypter#2
Quote:
Originally Posted by cedrickaga View Post
Hello,
Anyone can help me with chip_playershop?
I've been struggling with this one. I have compiled the codes without error and was able to get inside the game.
The thing is whenever I add items to sell in playershop the client freezes and then crash. Can anyone help me?
(The code is working before the addition of chip_playershop so I'm pretty sure that this is where the problem is)

Here's the error log in the client:
Code:
2018/ 8/ 5   17:38:25   g_pPlayer is ready

2018/ 8/ 5   17:38:27   CWndTaskBar::SetTaskBarTexture : test12 2010

2018/ 8/ 5   17:38:27   CWndTaskBar::SetTaskBarTexture : test12 581

2018/ 8/ 5   17:38:45   g_pPlayer is ready

2018/ 8/ 5   17:38:45   CWndTaskBar::SetTaskBarTexture : test12 581

2018/ 8/ 5   17:38:49   GetDlgItem : nID=931 not Found.

2018/ 8/ 5   17:38:49   GetDlgItem : nID=715 not Found.

2018/ 8/ 5   17:38:49   GetDlgItem : nID=708 not Found.

2018/ 8/ 5   17:38:49   Aug  5 2018 16:24:19 1 rCnt=1

Neuz.exe caused an EXCEPTION_ACCESS_VIOLATION in module Neuz.exe at 0023:004B0A7D, CWndBase::SetGroup()+0013 byte(s), e:\flyffcustom\v18\blessed source\official source\_interface\wndbase.h, line 0231+0013 byte(s)

 - Registers

EAX=00000000  EBX=0048A300  ECX=00000001  EDX=00000000  ESI=00000000
EDI=00000202  EBP=0019F090  ESP=0019F08C  EIP=004B0A7D  FLG=00210206
CS=0023   DS=002B  SS=002B  ES=002B   FS=0053  GS=002B

0023:004B0A7D Neuz.exe, CWndBase::SetGroup()+0013 byte(s)
0023:0061ED51 Neuz.exe, CWndRegVend::OnInitialUpdate()+0609 byte(s)
0023:0050C0ED Neuz.exe, CWndBase::Create()+0413 byte(s)
0023:004D5389 Neuz.exe, CWndNeuz::InitDialog()+0297 byte(s)
0023:0061EE0A Neuz.exe, CWndRegVend::Initialize()+0058 byte(s)
0023:00620DEF Neuz.exe, CWndVendor::OnChildNotify()+0623 byte(s)
0023:00624433 Neuz.exe, CWndVendorCtrl::OnDropIcon()+0371 byte(s)
0023:0050DA3E Neuz.exe, CWndBase::WindowRootProc()+1246 byte(s)
0023:0046DF62 Neuz.exe, CNeuzApp::MsgProc()+0338 byte(s)
0023:0048A324 Neuz.exe, WndProc()+0036 byte(s)
0023:765FBE6B USER32.dll, AddClipboardFormatListener()+1179 byte(s)
0023:765F833A USER32.dll, DispatchMessageW()+2426 byte(s)
0023:765F7BEE USER32.dll, DispatchMessageW()+0558 byte(s)
0023:765ECD30 USER32.dll, DispatchMessageA()+0016 byte(s)
0023:0048C5F7 Neuz.exe, CD3DApplication::Run()+0199 byte(s)
0023:0047446C Neuz.exe, WinMain()+0332 byte(s)
0023:0091728C Neuz.exe, WinMainCRTStartup()+0388 byte(s)
0023:77258484 KERNEL32.DLL, BaseThreadInitThunk()+0036 byte(s)
0023:77972FEA ntdll.dll, RtlValidSecurityDescriptor()+0282 byte(s)
0023:77972FBA ntdll.dll, RtlValidSecurityDescriptor()+0234 byte(s)
Look this in Neuz folder

DPClient.cpp
PHP Code:
void CDPClient::OnUpdateItemOBJID objidCAr ar )
{
    
CHAR cTypecParam;
    
BYTE nId;
    
DWORD dwValue;

    
ar >> cType >> nId >> cParam >> dwValue;
#if __VER >= 15 // __PETVIS
    
DWORD dwTime;
    
ar >> dwTime;
#endif // __PETVIS 
below the code add this
PHP Code:
#ifdef __CHIP_PLAYERSHOP
    
if( cParam == UI_NUM && dwValue == 9999 )
        
pMover->RemoveItemIdnId );
#endif 
08/06/2018 11:01 cedrickaga#3
Quote:
Originally Posted by Ecrypter View Post
Look this in Neuz folder

DPClient.cpp
PHP Code:
void CDPClient::OnUpdateItemOBJID objidCAr ar )
{
    
CHAR cTypecParam;
    
BYTE nId;
    
DWORD dwValue;

    
ar >> cType >> nId >> cParam >> dwValue;
#if __VER >= 15 // __PETVIS
    
DWORD dwTime;
    
ar >> dwTime;
#endif // __PETVIS 
below the code add this
PHP Code:
#ifdef __CHIP_PLAYERSHOP
    
if( cParam == UI_NUM && dwValue == 9999 )
        
pMover->RemoveItemIdnId );
#endif 
Hello, first thanks for trying to help me but I already have that in my code.
Here's the cdpclient method:

Code:
void CDPClient::OnUpdateItem( OBJID objid, CAr & ar )
{
	CHAR cType, cParam;
	BYTE nId;
	DWORD dwValue;

	ar >> cType >> nId >> cParam >> dwValue;
#if __VER >= 15 // __PETVIS
	DWORD dwTime;
	ar >> dwTime;
#endif // __PETVIS

	CMover* pMover	= prj.GetMover( objid );
	if( IsValidObj( (CObj*)pMover ) == FALSE )
		return;

#ifdef __CHIP_PLAYERSHOP
	if( cParam == UI_NUM && dwValue == 9999 )
		pMover->RemoveItemId( nId );
#endif

	if( cParam == UI_COOLTIME )
	{
		CMover* pPlayer	= CMover::GetActiveMover();
		if( !pPlayer ) 
			return;

		if( pMover == pPlayer )
		{
			CItemBase* pItemBase	= pPlayer->GetItemId( nId );
			if( !pItemBase )	
				return;

			ItemProp* pItemProp		= pItemBase->GetProp();
			if( !pItemProp )	
				return;

			DWORD dwGroup = g_pPlayer->m_cooltimeMgr.GetGroup( pItemProp );
			if( dwGroup )
				pPlayer->m_cooltimeMgr.SetTime( dwGroup, pItemProp->GetCoolTime() );	
		}
	}


#if __VER >= 15 // __PETVIS
	pMover->UpdateItem( nId, cParam, dwValue, dwTime );
#else // __PETVIS
	pMover->UpdateItem( nId, cParam, dwValue );
#endif // __PETVIS

#if __VER >= 15 // __IMPROVE_QUEST_INTERFACE
	CWndQuestDetail* pWndQuestDetail = g_WndMng.m_pWndQuestDetail;
	if( pWndQuestDetail )
		pWndQuestDetail->UpdateQuestText();

	CWndQuestQuickInfo* pWndQuestQuickInfo = g_WndMng.m_pWndQuestQuickInfo;
	if( pWndQuestQuickInfo )
		pWndQuestQuickInfo->SetUpdateTextSwitch( TRUE );
#else // __IMPROVE_QUEST_INTERFACE
	CWndQuest* pWndQuest = (CWndQuest*)g_WndMng.GetApplet( APP_QUEST );
	if( pWndQuest )  
		pWndQuest->UpdateText();
#endif // __IMPROVE_QUEST_INTERFACE
}
08/06/2018 11:24 Ecrypter#4
Check WndVendorBuy.cpp
08/08/2018 05:08 cedrickaga#5
Quote:
Originally Posted by Ecrypter View Post
Check WndVendorBuy.cpp
sorry for the late reply. I have checked each and every file and Am sure that all chip_player is added.

Anyhow what to check at WndVendorBuy?
08/12/2018 09:01 Burdenz2007#6
Quote:
Originally Posted by cedrickaga View Post
sorry for the late reply. I have checked each and every file and Am sure that all chip_player is added.

Anyhow what to check at WndVendorBuy?
Its either you messed up something with C&P or the code that you added is a total crap. Either both.

Right Cedric Gani?
08/12/2018 18:41 Nιgнтмαяε#7
Should check ResData.inc as you have some issues there. (Just a guess)

IE:
Code:
2018/ 8/ 5   17:38:49   GetDlgItem : nID=931 not Found.
2018/ 8/ 5   17:38:49   GetDlgItem : nID=715 not Found.
2018/ 8/ 5   17:38:49   GetDlgItem : nID=708 not Found.