Client Crash on level 15

07/11/2020 12:34 theunrealz#1
Hi,
I have tried to copy
PHP Code:
#define __FASTJOBCHANGE           //ระบบเปลี่ยนอาชีพออโต้ 
from another source, and I ended up with a crashing client on lv.15.

Any idea how I can debug client crashes and see what's missing?

I think it's about this code:

PHP Code:
#ifdef __FASTJOBCHANGE
                            
if (GetLevel() == MAX_JOB_LEVEL || GetLevel() == (MAX_JOB_LEVEL MAX_EXP_LEVEL) || GetLevel() == MAX_LEGEND_LEVEL)
                            {
                                
SAFE_DELETE(g_WndMng.m_pJobChangeEx);
                                
g_WndMng.m_pJobChangeEx = new CWndJobChangeEx;
                                
g_WndMng.m_pJobChangeEx->Initialize();
                            }
            
#endif//__FASTJOBCHANGE 
But not sure why it crashes if compilation success.
07/11/2020 12:50 Lumi#2
Do you have any error logs in your client?
07/11/2020 12:55 Steffen Tequila#3
Quote:
Originally Posted by theunrealz View Post
if (GetLevel() == MAX_JOB_LEVEL || GetLevel() == (MAX_JOB_LEVEL + MAX_EXP_LEVEL) || GetLevel() == MAX_LEGEND_LEVEL)
{
SAFE_DELETE(g_WndMng.m_pJobChangeEx);
g_WndMng.m_pJobChangeEx = new CWndJobChangeEx;
g_WndMng.m_pJobChangeEx->Initialize();
}
#endif//__FASTJOBCHANGE[/php]

But not sure why it crashes if compilation success.

he tries to get the window if it doesn't have the right functions then he crashed.
make sure that you have the right resdata otherwise check your code again.
07/11/2020 13:07 theunrealz#4
Quote:
Originally Posted by Lumi View Post
Do you have any error logs in your client?
I don't see any ( Checked in the Log folder, only old once)

Quote:
Originally Posted by Steffen Tequila View Post
he tries to get the window if it doesn't have the right functions then he crashed.
make sure that you have the right resdata otherwise check your code again.
Thanks, when you say the right resdata, what do you mean exactly?
What I did is compiled the source, activated merge2.exe then moved the res files to the client.

Not sure if I missed something. Hard to shoot without a log that says why clien crashes :o
07/11/2020 13:11 Steffen Tequila#5
Quote:
Originally Posted by theunrealz View Post
Hi,
I have tried to copy
PHP Code:
#define __FASTJOBCHANGE           //ระบบเปลี่ยนอาชีพออโต้ 
from another source, and I ended up with a crashing client on lv.15.

Any idea how I can debug client crashes and see what's missing?

I think it's about this code:

PHP Code:
#ifdef __FASTJOBCHANGE
                            
if (GetLevel() == MAX_JOB_LEVEL || GetLevel() == (MAX_JOB_LEVEL MAX_EXP_LEVEL) || GetLevel() == MAX_LEGEND_LEVEL)
                            {
                                
SAFE_DELETE(g_WndMng.m_pJobChangeEx);
                                
g_WndMng.m_pJobChangeEx = new CWndJobChangeEx;
                                
g_WndMng.m_pJobChangeEx->Initialize();
                            }
            
#endif//__FASTJOBCHANGE 
But not sure why it crashes if compilation success.
Quote:
Originally Posted by theunrealz View Post
I don't see any ( Checked in the Log folder, only old once)



Thanks, when you say the right resdata, what do you mean exactly?
What I did is compiled the source, activated merge2.exe then moved the res files to the client.

Not sure if I missed something. Hard to shoot without a log that says why clien crashes :o


just PM me and i will solve the problem for you.
07/11/2020 14:34 Lumi#6
Quote:
Originally Posted by theunrealz View Post
I don't see any ( Checked in the Log folder, only old once)



Thanks, when you say the right resdata, what do you mean exactly?
What I did is compiled the source, activated merge2.exe then moved the res files to the client.

Not sure if I missed something. Hard to shoot without a log that says why clien crashes :o
Another question: what did you change in your resource? You will also need some resource entries to get it works.
07/11/2020 21:03 theunrealz#7
Quote:
Originally Posted by Steffen Tequila View Post
just PM me and i will solve the problem for you.
Sent.

Quote:
Originally Posted by Lumi View Post
Another question: what did you change in your resource? You will also need some resource entries to get it works.
Hi Lumi,
I have tried to copy all
PHP Code:
#ifdef __FASTJOBCHANGE 
related code from another source to a clean V18 source.

I bet I missed something else, I tried to verify everything is in and I don't see anything strange. All in place.
07/11/2020 22:29 cookie69#8
@[Only registered and activated users can see links. Click Here To Register...] just debug your Neuz with Visual Studio and you will break at the source code that generates the crash.
07/12/2020 08:15 theunrealz#9
Quote:
Originally Posted by cookie69 View Post
@[Only registered and activated users can see links. Click Here To Register...] just debug your Neuz with Visual Studio and you will break at the source code that generates the crash.
Hey thanks!
Can you please describe how to "debug the neuz with VS"?if I do right click on Neuz in Solution Explorer --> Debug, it shows errors (I bet because it's not placed in the folder..)

PHP Code:
'Neuz.exe' (Win32): Loaded '\Source\Source\Neuz\NeuzD.dll'Module was built without symbols.
'Neuz.exe' (Win32): Loaded 'C:\Windows\SysWOW64\dbghelp.dll'Cannot find or open the PDB file.
'Neuz.exe' (Win32): Loaded '\Source\Source\Neuz\mss32.dll'Cannot find or open the PDB file
Can you share the steps?
07/15/2020 20:59 Offspringfan1234#10
Hi there,

to debug your files - you are correct - you have to setup your debug location. In solution explorer rightclick any of the projects->Properties->Debugging->Working Directory
Use browse to setup the correct path of you output .exe's