Addon icon

[Re-Usable] Account System 1.4

Read the Submission Rules before posting otherwise the mod may be rejected if it doesn't comply with these rules. (Updated February 10, 2023)
  1. I'm aware of the current Submission Rules
Author does not approve the use of his content in other addons without his permission
  1. No
WARNING: This mod uses Bastardized SHA-1 and HMAC-SHA1 Routines in Pure Lua
for hashing the password. >> Add this mod before using the Account System mod. <<

The lua mod that enables users to login/register an account to allow data synchronization to the server. When players log out their rings, scores and lives reset back to zero and starting from scratch.

To read the list of commands just type in chat "!help" and you'll receive a list of commands in console.

List of commands:
sayto 0 !login <username> <password> - Logs in and sets the account's rings, lives and scores.
sayto 0 !register <username> <password> - Registers an account on the server side.
sayto 0 !newpassword <password> - Changes the logged in account's password to the new one.
sayto 0 !delete_account - Deletes the account from the server. (If logged in)
sayto 0 !resetdata - Resets the account's rings, scores to zero and resets the lives back to three.
sayto 0 !sync - Saves your account's data to the server. (It will not resync your game from the dedicated server.) (This command has been replaced with !savedata)
sayto 0 !savedata - Saves your account's data to the server.
sayto 0 !adminhelp - Displays a list of commands as admin to execute. (Must be admin on the server in order to execute them).

Fair warning: Entering "sayto 0 !login" or "sayto 0 !resetdata" in console will cause the player to die on the clientside. The server still sees you as "Alive", it's for resyncing your game. Also do not use this on a singleplayer game you will actually lose that life as it's meant for dedicated servers only.

Recommendation for those who do use the mod for saving and loading your data is to use a different password and never use the same password that you use on any website.

(I'm still learning as I go so the script may change at some point.)
  • ezgif-2-6d90461013 (1).gif
    ezgif-2-6d90461013 (1).gif
    5.2 MB · Views: 101
Author
CottonLED
Downloads
346
Views
718
First release
Last update
Rating
0.00 star(s) 0 ratings

Share this addon

Latest updates

  1. More sayto account commands added.

    - Admin commands were added. To see them type sayto 0 !adminhelp in console. - Added a way to...
  2. Gotta upload the current version.

    I had posted this before 1.3 so same thing I just fixed login issue is all.
Top