Skip to content

Fix BARE_DISALLOWED So Paths For VMT Dont have Syntax Errors#46

Open
theredenemy wants to merge 2 commits into
TeamSpen210:masterfrom
theredenemy:fix/bare_disallowed_path
Open

Fix BARE_DISALLOWED So Paths For VMT Dont have Syntax Errors#46
theredenemy wants to merge 2 commits into
TeamSpen210:masterfrom
theredenemy:fix/bare_disallowed_path

Conversation

@theredenemy

Copy link
Copy Markdown

No description provided.

@TeamSpen210

Copy link
Copy Markdown
Owner

What specific VMTs are breaking here? This doesn't seem like it'll help things, it'll actually make stuff worse. Furthermore tokenizer.py isn't normally used, it's a fallback in case the C extension couldn't be compiled.

@theredenemy

theredenemy commented May 25, 2026

Copy link
Copy Markdown
Author

When trying to put a path for $basetexture it will not quote it. So it will cause a syntax error in the Source engine and vtfedit it should look like this "video/badapple" with quotes

@theredenemy

Copy link
Copy Markdown
Author

I might try different fix though. I'll make a new pull request

@theredenemy theredenemy reopened this May 28, 2026
@theredenemy theredenemy marked this pull request as draft May 28, 2026 20:52
@theredenemy

theredenemy commented May 28, 2026

Copy link
Copy Markdown
Author

did you mean to do \ for Bare disallowed in the fallback?

	modified:   src/srctools/tokenizer.py
@theredenemy theredenemy marked this pull request as ready for review May 28, 2026 21:03
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

Successfully merging this pull request may close these issues.

2 participants