Jump to content

Official Abort Traceback Update [REVERSED]


Recommended Posts

  • Honorable Member

This is the hidden content, please

Reversed From 22.5.7.0

This is the hidden content, please

 

Old

Spoiler
Quote

0131 12:59:00866 :: ============================================================================================================
0131 12:59:00867 :: Abort!!!!

 

 

New

Spoiler

 

Quote

0131 12:59:00866 :: ============================================================================================================
0131 12:59:00867 :: Abort!!!!


0131 12:59:00867 :: filename=root/black_test.py, name=__LoadWindow
0131 12:59:00867 :: filename=root/black_test.py, name=__init__
0131 12:59:00867 :: filename=root/black_test.py, name=<module>
0131 12:59:00867 :: filename=root/system.py, name=_process_result
0131 12:59:00867 :: filename=root/system.py, name=__pack_import
0131 12:59:00867 :: filename=root/introLogin.py, name=Open
0131 12:59:00867 :: filename=root/networkModule.py, name=__ChangePhaseWindow
0131 12:59:00867 :: filename=root/uiPhaseCurtain.py, name=OnUpdate
0131 12:59:00867 :: filename=root/prototype.py, name=RunApp
0131 12:59:00867 :: filename=root/prototype.py, name=<module>
0131 12:59:00867 :: filename=root/system.py, name=Run
0131 12:59:00867 :: filename=root/system.py, name=execfile
0131 12:59:00867 :: filename=root/system.py, name=RunMainScript
0131 12:59:00867 :: filename=root/system.py, name=<module>
0131 12:59:00867 :: filename=<string>, name=<module>
 

 

Edited by Mali
  • Metin2 Dev 172
  • Eyes 3
  • Scream 1
  • Good 25
  • Love 4
  • Love 61

 

Link to comment
Share on other sites

2 hours ago, Mali said:

This is the hidden content, please

Reversed From 22.5.7.0

Hidden Content

 

///@@@UserInterface/PythonApplication.cpp:

//Find
void CPythonApplication::Abort()
{
	...
}

///Change
void CPythonApplication::Abort()
{
	TraceError("============================================================================================================");
	TraceError("Abort!!!!\n\n");

	PyThreadState* tstate = PyThreadState_GET();
	if (tstate)
	{
		for (PyFrameObject* frame = tstate->frame; frame; frame = frame->f_back)
		{
			PyCodeObject* f_code = frame->f_code;
			if (!f_code || !f_code->co_filename || !f_code->co_name)
				continue;

			const char* filename = PyString_AsString(f_code->co_filename);
			const char* funcname = PyString_AsString(f_code->co_name);
			TraceError("filename=%s, name=%s", filename, funcname);
		}
	}

	PostQuitMessage(0);
}

 

 

 

Old

  Hide contents

 

 

New

  Hide contents

 

 

Whats purpose of this? 😅

  • Metin2 Dev 1
  • Love 1
Link to comment
Share on other sites

thx

extra func:

pythonitemmodule.cpp open

search

TraceError("Cannot find item by %d", iIndex);

add above

 

	PyThreadState* tstate = PyThreadState_GET();
	if (tstate)
	{
		for (PyFrameObject* frame = tstate->frame; frame; frame = frame->f_back)
		{
			PyCodeObject* f_code = frame->f_code;
			if (!f_code || !f_code->co_filename || !f_code->co_name)
				continue;

			const char* filename = PyString_AsString(f_code->co_filename);
			const char* funcname = PyString_AsString(f_code->co_name);
			TraceError("filename=%s, name=%s", filename, funcname);
		}
	}

 

  • Good 1
  • Love 1
  • Love 1
Link to comment
Share on other sites

  • Forum Moderator

For those of you who want to also print the line:

Spoiler

This is the hidden content, please

 

Edited by Gurgarath
  • Metin2 Dev 105
  • Eyes 1
  • Think 2
  • Good 12
  • Love 2
  • Love 22

Gurgarath
coming soon

Link to comment
Share on other sites

  • 11 months later...
  • 3 weeks later...

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.