Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Login #155

Closed
YourLocalBeanDealer opened this issue Jan 28, 2022 · 7 comments
Closed

Login #155

YourLocalBeanDealer opened this issue Jan 28, 2022 · 7 comments

Comments

@YourLocalBeanDealer
Copy link

What is the current behavior?
I am unable to login with my username/password. I also cannot use the guest login.
If the current behavior is a bug, please provide the exact steps to reproduce.
I go into Delaford, right? Unclick Guest Login, enter my username/password. It says I entered something wrong when I click Login. I use Googles 'Saved Passwords' thing, and that doesn't work either.
What is the expected behavior?
I'd expect to be able to login. I'm not.
Additional context
Add any other context about the problem here.
Guest Login is also useless.
Screenshot 2022-01-28 10 59 42 AM

@naknode
Copy link
Member

naknode commented Feb 3, 2022

Hmm. Interesting. Somehow the droppedItems variable on the world map has a map ID of 281 when it should be a string thus causing the getItemData function to look for a number which doesn't exist thus giving no graphics to reference and causing the error.

Will try to reset the server to see if it fixes it.

PS - You can always download to play it.

@naknode
Copy link
Member

naknode commented Feb 3, 2022

Looks like resetting the server did the trick and there's a bug when logging off with the guest account.

You should be able to login now.

@anbraten
Copy link

anbraten commented Feb 3, 2022

I am only getting the following error if trying to login:

map.js:259 Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'graphics')
    at a (map.js:259:22)
    at G.<anonymous> (map.js:274:9)
    at Array.forEach (<anonymous>)
    at G.drawItems (map.js:248:17)
    at qt.paintCanvas (engine.js:90:19)
    at qt.loop (engine.js:69:10)
    at qt.start (engine.js:79:10)
    at Delaford.vue:218:1
    at Generator.next (<anonymous>)
    at r (asyncToGenerator.js:3:20)

@mteam88
Copy link
Contributor

mteam88 commented Feb 3, 2022

Trying to log in with guest, no response when clicking login. May be related.

@naknode
Copy link
Member

naknode commented Feb 4, 2022

OK. There seems to be a bug then. Verified.

On the map.js file at the drawMap():

    const nearbyItems = this.droppedItems.filter((item) => {
      const foundItems = (this.player.x <= (8 + item.x))
        && (this.player.x >= (item.x - 8))
        && (this.player.y <= (6 + item.y))
        && (this.player.y >= (item.y - 6));

      return foundItems;
    });

Somehow world.droppedItems's array is getting an object that has an id of 281 which is wrong because it is looking for strings and not numbers. That's the issue.

281 refers to, perhaps, the Copper/Tin rock. But how is the world.droppedItem's array getting it?

@YourLocalBeanDealer
Copy link
Author

Just tried it and it works now. Thanks!

@InvertedBeans
Copy link

Mine just wont give me any message when i log in,just registered, help pls? i cant use the inspect element to fix so help if u can pls

@naknode naknode closed this as completed May 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants
@naknode @anbraten @mteam88 @YourLocalBeanDealer @InvertedBeans and others