-
Posts
4 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Forums
Store
Third Party - Providers Directory
Feature Plan
Release Notes
Docs
Events
Posts posted by Sanjix9
-
-
What is this "Improved TraceError" ?
I always get bored with the coding style while coding.
Exmaple Old:import dbg value = 15 dbg.TraceError("Testing Code {}".format(value)) syserr output 0717 14:46:21398 :: Testing Code 15
This output is very difficult, and I constantly need to do "import" repeatedly.
It doesn't show in which file and on which line the output is given.
I have improved this significantly.
Exmaple New:
value = 15 printb("Testing Code {}".format(value)) syserr output 0717 14:46:21398 :: [Name:intrologin.py Line:188] Testing Code 15
- 47
- 6
- 2
- 6
-
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); } }
- 1
- 1
- 1
Looking for someone that can design & code an ingame interface.
in Paid Support / Searching / Recruiting
Posted
Hello, I can only do interface coding.
Discord:sanjix9_1