Enter in debug mode
This article has been made for those who have a non-understandable issue in support ticket, when I told to people to read there and follow this article.
Some of you have a server console error, or a client console error when trying to launch the television / training / doing anything. It looks like a conflicting issue, so we always try to get the conflicting addon, but it appears the conflicting addon is always different, and when testing on my dev server, it still works with the "conflicting" addon.
As I need more data about your issue, you will need to enter in a debug mode.
To do so, open the file in the_perfect_training_system/lua/diablos_training/init/sh_init.lua.
Then, look for:
Diablos.TS.DebugSupport = false
and set it to true.
Don't set the Diablos.TS.DebugDev variable to true
When it's done, restart the server.
After it's done, the Debug mode will print messages in the server & console.
You need to join the server, which will print a lot of data. The data always starts with "[Training System]" (except when it's printing tables).
SERVERSIDE
What should appear (after you joined the server!) is:
[Training System] --- Launching Client Spawn Detection ---
[Training System] --- Client Spawn Detection ---
[Training System] --- Client Spawn Detection Without Char System --- [optional: please answer in ticket if this line appears or not]
The game detected the client joined. The last line is only shown if no compatible char system has been detected!
[Training System] --- Beg SQL Result ---
...
[Training System] --- End SQL Result ---
The game is trying to retrieve SQL data for the player. The content in ... is very important and SUCCESS should be written. If FAIL is written instead, please tell us through the support ticket. A table will also be printed.
[Training System] --- Beg Table Generation ---
...
[Training System] --- End Table Generation ---
The game is organizing SQL data to a readable format to insert it on the player data. The ... is very important as it should properly write data. Give us that table through the support ticket.
[Training System] --- Updating training data to the client (Chris Redfield) ---
The data is sent to the client. As the error also comes to the client, we need to see if the issue is serverside or clientside.
You have read everything on the server console (all those messages are being written again everytime a client joins), but now you need to open your client console (F12).
CLIENTSIDE
You will see:
[Training System] --- Beg Table Retrieve for Client ---
...
[Training System] --- End Table Retrieve for Client ---
The ... content is very important as it needs to be the exact same data than what was written in the Table Generation part, serverside. Please send that part.
You don't need to consider the Retrieving & Generating the logo cases.
If you are afraid of all those messages, you can turn Diablos.TS.Debug to false whenever you want after you sent me all the data.