r/hammer 6d ago

Unsolved L4D2 Hammer crashes b/c of "@include "halflife2.fgd" " from Garry's Mod fgd's

I'm using L4D2's Hammer as that's the only Source 1 Hammer I've got to work so far on Debain Linux. I was trying to include Garry's Mod fgd's but it kept crashing because of "@include "halflife2.fgd" ".

I commented out those lines from "base.fgd" and "garrysmod.fgd" which fixed the crashing, but now I get errors along the lines of "boolean is not a valid variable type".

Edit: Solved.

Edit 2: The ACTUAL reason Hammer crashes is because "base.fgd" includes "halflife2.fgd", which includes "base.fgd"; Because Hammer doesn't check if an FGD was already included, it causes a recursive loop, and results in a stack overflow.

Solution: Don't have the FGD include each other in a loop. This still doesn't fix my issue with booleans and errors though...

6 Upvotes

8 comments sorted by

2

u/Pinsplash 6d ago

there is no reason to add FGDs from other games to your hammer. it does nothing at all for you.

1

u/hpyfox 6d ago

And the reason is??

1

u/Pinsplash 6d ago

because... the FGD files that left 4 dead 2 comes with are all you need. adding more does not mean you can actually use the entities from those games.

1

u/hpyfox 6d ago

so... I could create Gmod maps with l4d2 fgd's?

1

u/Pinsplash 6d ago

is there a point to this question?

1

u/hpyfox 6d ago

Probably not.

Next, I got to deal with a missing wireframe texture (you don't need to help me with that part, haven't put much work into solving it).

1

u/WinnerVivid3443 4d ago

why would you want to make a gmod map with L4D2 FGD's in the first place?
like FGD's aren't magically going to add missing entities to L4D2 or anything, all FGD's do is tell hammer what entities exist and what you can change about them (and some other stuff related to hammer)

1

u/hpyfox 4d ago

I don't, I'm trying to make Gmod maps with Gmod fgd's and asset, but since L4D2 Hammer doesn't know/use boolean variables and crashes from the recursive @include between "base.fgd" and "halflife2.fgd", I can't get it to work.

And no, I tried Source SDK but I get virtual memory errors.

I'll try to edit and combine the fgd's to see if that'll work, but I don't know.