void
void copied to clipboard
Logging, Telemetry & Statistics
- Shouldn't impact the game loop performance
- Should be able to trace through what all entities were doing
- ~Ideally a replay command to walk a bot through what a player was doing~
~Store player instructions for replaying~ Log all entities events for manual checks - Not all events can be logged, events containing entity instances for example. Store statistics in separate or just as perm entity values? e.g total items dropped, damage dealt, npcs killed per type etc...
Useful statistics:
- Tracking logins (incl account creation)
Easy first step would be to write all instructions to a text file /data/logs/player-name.txt
Replaying is a nice dream but would need to rearchitect so much for that.
Would be good to have log levels per character, so you can toggle debug for an individual
Logging should also contain enough information to replicate. Could conceivably use player.copy() to log the players state.
Goes hand in hand with achievement diaries