Giter Site home page Giter Site logo

Login about game HOT 7 OPEN

YourLocalBeanDealer avatar YourLocalBeanDealer commented on June 8, 2024 1
Login

from game.

Comments (7)

mteam88 avatar mteam88 commented on June 8, 2024 1

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

from game.

naknode avatar naknode commented on June 8, 2024 1

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?

from game.

naknode avatar naknode commented on June 8, 2024

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.

from game.

naknode avatar naknode commented on June 8, 2024

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.

from game.

anbraten avatar anbraten commented on June 8, 2024

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)

from game.

YourLocalBeanDealer avatar YourLocalBeanDealer commented on June 8, 2024

Just tried it and it works now. Thanks!

from game.

InvertedBeans avatar InvertedBeans commented on June 8, 2024

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

from game.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.