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

Not parsing dark blue (the ";" color code) in MW3 #418

Open
sungonetohell opened this issue Sep 24, 2020 · 0 comments
Open

Not parsing dark blue (the ";" color code) in MW3 #418

sungonetohell opened this issue Sep 24, 2020 · 0 comments

Comments

@sungonetohell
Copy link

sungonetohell commented Sep 24, 2020

Using:

  • b3: v1.12 IronPigeon
  • game: Call of Duty: Modern Warfare 3 (cod8 parser)

Issue:

  • the ; color code (dark blue) doesn't work

Hi,

I wanted to use dark blue to display messages but it seems like b3 isn't parsing this one color code at all... All the other colors work perfectly (0-9 and :). Also, game supports that color for sure, because non-b3 scripts based on InfinityScript display it properly.

I've tried to find the issue and fix that, but failed. Modifying these methods doesn't take any effect: _lineFormat = re.compile('^([a-z ]+): (.*?)', re.IGNORECASE) and _reColor = re.compile(r'\^[0-9a-z]') # regex used to strip out color codes from a given string.

So:

1. Is it possible to make it work somehow?
2. Is it possible to change the console: prefix?
3. Is there a way to change line color prefix? _line_color_prefix from parser.py doesn't change anything.

Attaching the screenshot where you can see the empty space after ^ while in the code of parser.py that looks like this pmPrefix = '^;[PM]:' # private message prefix.

b3_color_codes

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

1 participant