-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added print_idcount command to print how many ids are currently used #111
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As server administrator, i don't need this command. There is no way i can act as an administrator when i see something wrong with the output. I want this data only as a developer. Commands are there to help server administrators, not developers.
Could we please have this not as a command, but as a debug printout? Something like:
#ifdef DEBUG
Console()->print(get_number_of_ids());
#endif
This can happen every 10, 100 or 1000 tick.
As server administrator if you see the entity count is very high, you can restart the server and prevent a crash |
Most of the time you dont want to see this, when debugging its also important that the console doesnt get spammed with unimportant information.
This command does no harm, why dont you want to have more commands? |
With this command you can also check for id leaks better, for example: |
As server administrator, i
Debug logs are always very verbose. It is ok and accepted in all projects. For example, because of debug, logs for the project i work on are 100+ mb daily.
Because this command has no value to an administrator. This is code-specific, developer-focused information. Information like this belongs to debug logs. We can add hundreds of "harmless" commands, none of which will be of any value to administrator.
This is debugging of the game. Server administrators do not debug programs. Developers do. All the same information can be obtained from debugging logs. |
Duralakun, I suggest to you to leave this feature as is, contrary to Breton I think it is very important to have a tool that show ID-Leaks. However, please provide a debug output in the logfiles. I really look forward to see that. Make sure, the command is called after each round.
|
I thought about making it so that it outputs the id count in the terminal as soon as a wrong id crashes the server. But i dont want to do it anymore, you can use this pr or close it, idc anymore. |
bd56729
to
2067048
Compare
This allows you type "print_idcount" into rcon console and the server prints how many entity ids are currently used.
We need this to better debug issues related to entity ids, like #109
The output will look like this:
Percent shows how many percent of all ids are currently used, if it reaches 100% it might crash