-
Posts
67 -
Joined
-
Last visited
-
Days Won
3
Community Answers
-
Skaveron's post in Change tiles picker background color was marked as the answer
I don't think this is possible. Might be a good one for the suggestions board.
-
Skaveron's post in Password hashing was marked as the answer
Yeah, first of all you need to write your own hash function.
public function make($value) { return hash("sha256", $value); } Also, the password is double hashed. You first need to hash the password and then hash the result with the salt, so something like this; (EDIT: Ah, I see you already got that far!)
Â
public function validateCredentials(Authenticatable $user, array $credentials) { // Check that given credentials belong to the given user $username= $credentials['username']; $pass = $credentials['password']; $hashedPass = strtoupper(str_replace(["-", "–"], '', Hash::make($pass))); $saltedPass = strtoupper(str_replace(["-", "–"], '', Hash::make(strtoupper($hashedPass) . $user->salt))); $valid_user = IntersectUser::where(['username' => $username, 'pass' => $saltedPass])->first(); if ($valid_user) { return TRUE; } return FALSE; } Â
Once the source is released, I'm going to pick up work on the web companion again.
-
Skaveron's post in Client login screen was marked as the answer
In the folder "Client and Editor\resources\gui", replace the file background.png  with your own background.
-
Skaveron's post in Placing NPCs Stationary? was marked as the answer
I had this as a suggestion a while ago, but as far as I'm aware, at the moment it's not possible to make stationary NPCs.
Â
HOWEVER, NPCs are as far as I'm aware strictly used as enemies or guards, because all they can do is fight. A shopkeeper should be an event instead, which can remain stationary and can do a number of other things.
-
Skaveron's post in Registration was marked as the answer
Oh. Derp. Right, you have to wait for the source in that case!
-
Skaveron's post in Game Testing was marked as the answer
I think he wants updates made to a class in the editor to automatically reflect on existing characters in-game. Currently that doesn't happen.
Â
I think making an event that adds the spells you want to test to the character's spell books is your best bet.
