Skip to content
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

Save chat history on server and client sides #5562

Open
14 tasks
JayDi85 opened this issue Jan 30, 2019 · 1 comment
Open
14 tasks

Save chat history on server and client sides #5562

JayDi85 opened this issue Jan 30, 2019 · 1 comment
Labels

Comments

@JayDi85
Copy link
Member

JayDi85 commented Jan 30, 2019

WIP, you can modifies or adds new feature here, or start to work on some tasks (feel free to comments).

Server and client sides TODO:

  • save chat history in files (date-time, username, message -- ???use text, html or json format -- see gamelogJson???);
  • it's a stream (append data to the end of file, create on not found);
  • ???add first "info" message about game/players in game/tournament logs???
  • each server have own folder (server's address);
  • each account have own folder in client side (account's name);
  • make following file types:
    • lobby.xxx -- save all in/out lobby messages;
    • private_username.xxx -- save private in/out messages with user (whisper feature);
    • ??? game_guid.xxx -- save game's in/out messages???;
    • ??? tournament_guid.xxx -- save tournament's in/out messages???;

Server side TODO:

  • add config options for chat history dir and for enables that feature (save lobby, default is false);
  • save lobby;
  • folder struct example:
    • .\lobby.xxx;

Client side TODO:

  • add preferences options for chat history dir and for enables that feature (save lobby, save game/tournament, save private -- default is true for all);
  • save lobby, game and tournament, private logs;
  • folder struct example:
    • .\server\account\lobby.xxx;
    • .\server\account\private\private_username.xxx;
    • .\server\account\games\game_guid.xxx;
    • .\server\account\games\tournament_guid.xxx;
@siyiye
Copy link

siyiye commented Feb 11, 2019

Can you save the game log and prepare for the later replay function?
THX~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants