Hi everyone,
I have always wanted to make my own game and so i found byond. I think for now mostly of the codings i learned but i dont know how i can get a logging system the way i want.
As the title already says i want people to create an account and then loggin to it by username and password, after that they have 3 slots to create or load their characters.
Could someone perhaps help me with this?
I already made a skin for it so it would be made so you type it in and click login and the system checks the username and password.
I really hope someone can explain to me with help of some code as example how i could do this or maybe show me the whole thing?
Greetings,
Dmasterzz (Programming apprentice :p)
ID:1351833
![]() Aug 13 2013, 3:18 am (Edited on Aug 13 2013, 3:23 am)
(See the best response by Danny Roe.)
|
|
One advantage is allowing players to load their character using any key. But I can only see this as being useful for people who regularly play using Guest keys from more than one computer.
|
Right, but one huge disadvantage to that is allowing the developer free reign over how those passwords exist and are stored. If the developer is using a database, hashing, salting, etc - fine. I suspect that won't often be the case, and that they'll be stored instead in plaintext. This can lead to "hacking" and other unsavory things.
|
Right. I've never liked the idea of using a Username & Password Login System within a BYOND game because far too many people use the same password for many things. Someone gaining access to a players character on a game is one thing, but having access to their BYOND account, emails, social media or worse is something else entirely.
|
First i wanna say thank you for the two demos i managed to make it myself now.
Second i would agree that the developer could use the passwords, which i would never do but i havent thought of that so i put a little something in for the players to remind that they should use a different password then they use on byond or any other online website/programm. Once again thank you both, your comments made me think alot about this. |
Code:
/* Problem description: I thought i got it but now i saw a little problem when i create a character it does say its created, but when i logout and then start the game again and try to create the same character it doesnt say its already in use it just creates it again. Where did i put something wrong? |
I think I may see the problem.
Your using local.username and local.password, then you are saving using mob.username, mob.password. You need to set mob.username so that you can use it in your save. |
Password Login Demo
Found in the Developer Resources section of the website.