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

Any one character after a backslash should be removed #8

Open
oskarlh opened this issue Dec 19, 2021 · 0 comments
Open

Any one character after a backslash should be removed #8

oskarlh opened this issue Dec 19, 2021 · 0 comments

Comments

@oskarlh
Copy link

oskarlh commented Dec 19, 2021

Half-Life simply removes any character after a backslash (unless it's \n which becomes a newline), so \x becomes \, \! becomes \ etc. Take this map for example: https://twhl.info/vault/view/2285 It contains

{
"origin" "-546 423 -402"
"framerate" "10"
"angles" "0 0 0"
"targetname" "skeleton1"
"model" "models\!uplant3.mdl"
"rendercolor" "0 0 0"
"classname" "cycler_sprite"
}

but models/uplant3.mdl (no exclamation mark) gets loaded by Half-Life. Resgen on the other hand, includes "models/!uplant3.mdl", even though uplant3.mdl is a model that comes with Half-Life.

I believe this is the code that's responsible https://github.com/id-Software/Quake/blob/bf4ac424ce754894ac8f1dae6a3981954bc9852d/WinQuake/pr_edict.c#L693-L717

@oskarlh oskarlh changed the title Exclamation marks should be ignored Exclamation marks should be ignored? Dec 19, 2021
@oskarlh oskarlh changed the title Exclamation marks should be ignored? Any one character after a backslash should be removed Dec 19, 2021
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