I'm building an OS off of the U-Kernel, er, kernel, and I am somewhat confused on how to make a logon system. The maker of the U-kernel hasn't made a demonstration OS, and he didn't provide much instructions on making all the systems work. Being relatively new to Scratch, I was at first stumped, but I figured out how to get the first login. It went like this:
when I receive [create admin account]
Offline
Sorry, I accidentally pressed "Submit".
when I receive [create admin account] ask [Enter Username:] and wait replace item (1) of [Usernames] with (answer) ask [Enter Password:] and wait replace item (1) of [Passwords] with (answer) broadcast [adminacccreated]Also, I need help with a another aspect of the logon system.
Offline
I wouldn'tuse the replace item block. Have a counter go through and check if the usernameis availabe. If its not, add it to the list. Variables in Scratch can be set by clicking on them. Ste a variable caleed "firsttime?" to true. If they login, set it to false. If the variable = false, they are new. Hope this helped.
Offline
Lists is a definite must when creating an account creation/logon system of this sort. I've actually developed my own engine for it. I'm pretty sure it works the way you're looking for. You can take a look at it, download it, and use it in future creations of your own if you'd like. Here's the link:
http://scratch.mit.edu/projects/Zparx/2616866
Tell me what you think! Also, if you find any bugs, please report them to me? Happy scratching (:
Offline
ZondaE85 wrote:
The U-Kernel comes with the lists required for the logon system. The problem I'm having is I don't know exactly what to do with them. But that is a good logon engine you have there.
Oh, my apologies! Good luck finding the answers you need (:
Offline
ZondaE85 wrote:
Thanks. I may recommend that engine to other OS makers.
That would be awesome! I'd like a lot of views and feedback (:
the only flaw in my engine is that it's not case sensitive, but I could easily implement that feature (:
Offline