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

invalid path specified for DB context line #1

Open
N1nj4R4bb1D opened this issue Dec 30, 2015 · 1 comment
Open

invalid path specified for DB context line #1

N1nj4R4bb1D opened this issue Dec 30, 2015 · 1 comment

Comments

@N1nj4R4bb1D
Copy link

wolftrans-0.2.0/lib/wolftrans/context.rb:178:in `from_string': invalid path specified for DB context line (line 5) (RuntimeError)

This problem crops up with many games because some Type names in User database contain "/" character. I fixed it for myself with a small dirty edit in context.rb:178

    if path.size != 4
      path = path.join("/")
      path = path.split(/\/(?=\[\d+\])/)
      if path.size != 4
        raise "invalid path specified for DB context line"
      end
    end

Maybe it's worth loking into!?

@ikarosf
Copy link

ikarosf commented Mar 26, 2020

thank for fix

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

2 participants