It'd be nice if we could access the info on the debug screens, like FPS/UPS or script update time, via the Lua API. This would be useful for monitoring server performance via console, and recording benchmark data.
Maybe this post should be in "Modding API Requests"... but I wouldn't imagine this change to be actually used by mods.
Add debug info to Lua API
Moderator: ickputzdirwech
-
- Long Handed Inserter
- Posts: 90
- Joined: Sat Jan 21, 2017 12:01 am
- Contact:
Re: Add debug info to Lua API
None of that information is part of the game state and as such would cause desyncs if a mod ever tried to use it.
If you want to get ahold of me I'm almost always on Discord.
-
- Long Handed Inserter
- Posts: 90
- Joined: Sat Jan 21, 2017 12:01 am
- Contact:
Re: Add debug info to Lua API
Makes sense. Could it be made available only from the console, but not from mods? Similar to how game.player can be accessed only from the console.
Re: Add debug info to Lua API
There is no way to do that, cause the same program is running on all clients at the same time. If one has different data it can calculate things with it which breaks the determinism.
Something like that can only be implement in a way, that the information is an event, which is shared over all clients. Which is quite expensive.
Moved to won't implement.![Smile :)](./images/smilies/icon_e_smile.gif)
Something like that can only be implement in a way, that the information is an event, which is shared over all clients. Which is quite expensive.
Moved to won't implement.
![Smile :)](./images/smilies/icon_e_smile.gif)
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...