Resource icon

[Open Assets] Account System 1.3

What permissions do you give others to modify and/or maintain your submission?
Modify: YES - Maintain: YES - I give permission for my entire submission to be modified by others or used in their own work. I give permission for my entire submission to be maintained by others as well.
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 !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.

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.

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. <<

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.gif
    ezgif-2-6d90461013.gif
    5.2 MB · Views: 235
Author
SabreTheWolf
Downloads
109
Views
1,362
Extension type
lua
File size
9.5 KB
MD5 Hash
d704d4a2fbb78d5d3133546cc403fbc5
First release
Last update
Rating
5.00 star(s) 1 ratings

Share this resource

Latest updates

  1. Login bugfix.

    On the 1.2 update I tried fixing the relogin problem but I forgot to put spawned in the player...
  2. Attempting to fixed an exploit.

    Players were able to use !login to get super if they got all the emeralds. I had stopped it by...
  3. Replace !sync with !savedata.

    New update replaces the !sync with !savedata for the sayto 0 command list.

Latest reviews

Good! even very good! if you want, I can try to make a hud for your mod, well, like you press TossFlag and a menu opens for Login, Registration, Reset, Save and everything that you created, but in the menu, yes, it may not be convenient to use because of the WASDSpaceSpin system familiar to everyone, but I'll try to make a system that's in the menu, that is click on the arrows and maybe this command will be called bruh at the time of Alpha testing.
SabreTheWolf
SabreTheWolf
That would be nice to have for a hud even if it might not be convenient to use it might be useful to have so users wouldn't have to go into console to type sayto.
Upvote 0
Back
Top