Code Monkey home page Code Monkey logo

Comments (7)

howardchung avatar howardchung commented on June 23, 2024

I tried mapping chat messages to users in the parser, but ran into string encoding issues.

from core.

howardchung avatar howardchung commented on June 23, 2024

Spent some more time trying to fix this but couldn't. In the parser i attempt to construct a map of names to slots to enable mapping chat messages to players.

However, if the player has a unicode character in their name the hashmap fails. I don't know if it's an encoding issue, a hashing issue, or something else.

from core.

howardchung avatar howardchung commented on June 23, 2024

As a temporary fix I just set the slot to -1 if I can't find the slot in the map. If anyone wants to tackle this go ahead

from core.

howardchung avatar howardchung commented on June 23, 2024

Changed to a loop to compare element by element. Still not working. Probably gonna have to break down the string into bytes and see where they differ.

from core.

howardchung avatar howardchung commented on June 23, 2024

Match ID with this problem:
884544541

from core.

howardchung avatar howardchung commented on June 23, 2024

Think this is fixed in #162 , at least with regard to matching chat messages to players properly.

Don't know if you're still planning on "prettifying" it.

from core.

howardchung avatar howardchung commented on June 23, 2024

Albert wants to add colors for each player

from core.

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.