Skip to content
This repository was archived by the owner on Dec 20, 2021. It is now read-only.
This repository was archived by the owner on Dec 20, 2021. It is now read-only.

Bug in TranslateString method #935

Open

Description

@PushUpek

Describe the bug
There is a problem with the TranslateString method in the asset manager. When a key exists in another *.tbl. We only get the first appearance. Keys like # + idx have duplicates. So we have no control over which table we get the translation from.

Activity

  1. gravestench commented on Dec 21, 2020

    @gravestench
    Contributor

    I'll agree that there are identical keys in multiple tables, but I don't feel that this is an issue. The MPQ's share many files, and the load-order of the MPQ determine's which file is used (this is by blizzard's design).

    This is just a hunch, but I think the real issue here is the order in which we load all of the string tables.

    @PushUpek Do you have an example of a particular key+string and which possible tables it can come from vs where it should come from?

  2. added
    BugSomething isn't working
    Low PriorityFor issues that are nice to have, but not essential.
    on Dec 21, 2020
  3. gucio321 commented on Dec 21, 2020

    @gucio321
    Contributor

    see d2game/d2gamescreen/select_hero_class.go:706

                    // here is a problem with polish language: in polish string table, there are two items with key "#304"
    
  4. gucio321 commented on Dec 21, 2020

    @gucio321
    Contributor

    Instead of druid description, we can see some string from battle.net game (sth like "character with name %s already exists in this realm")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't workingLow PriorityFor issues that are nice to have, but not essential.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions