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

FGD parsing bug: FGD format is whitespace agnostic #125

Open
mfaizsyahmi opened this issue Aug 9, 2024 · 1 comment
Open

FGD parsing bug: FGD format is whitespace agnostic #125

mfaizsyahmi opened this issue Aug 9, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@mfaizsyahmi
Copy link

FGD format is whitespace agnostic. In reference implementation i.e. Hammer 3.x, as well as in JACK, you can spread a Class definition across several lines like so:

@PointClass 
	base(Target, Targetname, Light, ZHLT_point) 
	flags(Light) 
	iconsprite("sprites/light.spr") 
	= light : "Invisible lightsource." : "https://twhl.info/wiki/page/light"
[
	// entity attributes here
]

and it is valid FGD.

For some reason, bspguy's FGD parser doesn't do this, expecting the entire class definition to be on a single line.

@UnrealKaraulov UnrealKaraulov self-assigned this Nov 29, 2024
@UnrealKaraulov UnrealKaraulov added the enhancement New feature or request label Nov 29, 2024
@UnrealKaraulov
Copy link
Owner

@mfaizsyahmi yes... newbspguy fgd parser is very poor, and need fully rewrite, but I no has time at this moment, you can use normal fgds without spaces and newlines in class definitions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants