Source SDK

Source SDK

This topic has been locked
violently Mar 30, 2014 @ 6:54am
Adding mod FGD file to hammer.. undefined base class Targetname error?
Hey,

I tried to get someone else to use the FGD file that I use for my mod, and when he loads hammer, he gets an error like "undefined base class: Targetname" when hammer starts, and he's unable to make the custom entities.

On my systems, the FGD file works with no problem though. Any ideas?
< >
Showing 1-5 of 5 comments
Callum Mar 30, 2014 @ 11:51am 
Wait... Hammer has a console? I've never came across it in my 5 years!
violently Mar 30, 2014 @ 12:49pm 
It must have popped up an error window or something. The problem seemed to fix itself when the mod folder was moved out of sourcemods...

Maybe you need to have include directives in the FGD file if it's going to be placed in the sourcemods folder?
Wazanator Mar 30, 2014 @ 1:46pm 
Originally posted by violently:
It must have popped up an error window or something. The problem seemed to fix itself when the mod folder was moved out of sourcemods...

Maybe you need to have include directives in the FGD file if it's going to be placed in the sourcemods folder?

If something in your FGD is based on another entity you need to make sure you use

@include

for the file that the code is based on. Typically it's

@include "base.fgd"
MrGeRoI Jan 9, 2023 @ 8:56am 
This solved problem for me

Add this to your FGD mod file at top (write steam location):
@include "<your steam location>/Steam/steamapps/common/Source SDK Base 2013 Singleplayer/bin/base.fgd" @include "<your steam location>/Steam/steamapps/common/Source SDK Base 2013 Singleplayer/bin/halflife2.fgd"
Leo Jan 9, 2023 @ 10:05am 
This thread was quite old before the recent post, so we're locking it to prevent confusion.
< >
Showing 1-5 of 5 comments
Per page: 1530 50

Date Posted: Mar 30, 2014 @ 6:54am
Posts: 5