TrenchBroom / TrenchBroom

Cross-Platform Level Editor
kristianduske.com/trenchbroom
GNU General Public License v3.0
1.88k stars 224 forks source link

Failure to load models on loading custom entity definitions #2377

Closed onetruepurple closed 5 years ago

onetruepurple commented 5 years ago

Happened to me with all FGD/DEF files that aren't the ones for the vanilla gamedir:

Cannot load model  ö.progs\artifact_envsuit.mdl: File not found: 'progs\artifact_envsuit.mdl'
Cannot load model  ö.progs\artifact_invis.mdl: File not found: 'progs\artifact_invis.mdl'
Cannot load model  ö.progs\artifact_pent.mdl: File not found: 'progs\artifact_pent.mdl'
Cannot load model  ö.progs\artifact_piercer.mdl: File not found: 'progs\artifact_piercer.mdl'
Cannot load model  ö.progs\artifact_sharp.mdl: File not found: 'progs\artifact_sharp.mdl'
(...)

And so on. This is in v2.1 RC1.

kduske commented 5 years ago

So which file is your example from?

kduske commented 5 years ago

Also what platform, what's the path to your Quake directory.

onetruepurple commented 5 years ago

Windows 10, D:\Games\Quake, literally any map including the one created by TB when you select File -> New.

kduske commented 5 years ago

No file in TrenchBroom contains the string "artifact_envsuit". What file are you loading?

onetruepurple commented 5 years ago

That was the custom made FGD for AD 1.7.1. But the same problem happens with Rubicon2.def:

Cannot load model  ö.progs\beacon.mdl: File not found: 'progs\beacon.mdl'
Cannot load model  ö.progs\fixture1.mdl: File not found: 'progs\fixture1.mdl'
Cannot load model  ö.progs\flag.mdl: File not found: 'progs\flag.mdl'
Cannot load model  ö.progs\cent.mdl: File not found: 'progs\cent.mdl'
Cannot load model  ö.progs\dread.mdl: File not found: 'progs\dread.mdl'
Cannot load model  ö.progs\floyd.mdl: File not found: 'progs\floyd.mdl'
Cannot load model  ö.progs\g_axe.mdl: File not found: 'progs\g_axe.mdl'
Cannot load model  ö.progs\g_shotgn.mdl: File not found: 'progs\g_shotgn.mdl'

As well as the currently broken Quoth2.fgd:

Cannot load model  ö.progs\corpse_imp.mdl: File not found: 'progs\corpse_imp.mdl'
Cannot load model  ö.progs\corpse_flay.mdl: File not found: 'progs\corpse_flay.mdl'
Cannot load model  ö.progs\corpse_lynch.mdl: File not found: 'progs\corpse_lynch.mdl'
Cannot load model  ö.progs\cross.mdl: File not found: 'progs\cross.mdl'
Cannot load model  ö.progs\trinity.mdl: File not found: 'progs\trinity.mdl'
Cannot load model  ö.progs\flashlight.mdl: File not found: 'progs\flashlight.mdl'
Cannot load model  ö.progs\brazshrt.mdl: File not found: 'progs\brazshrt.mdl'
Cannot load model  ö.progs\braztall.mdl: File not found: 'progs\braztall.mdl'
Cannot load model  ö.progs\lightpost.mdl: File not found: 'progs\lightpost.mdl'
Cannot load model  ö.progs\longtrch.mdl: File not found: 'progs\longtrch.mdl'
Cannot load model  ö.progs\lighttube.mdl: File not found: 'progs\lighttube.mdl'
Cannot load model  ö.progs\b_bio_l.bsp: File not found: 'progs\b_bio_l.bsp'
Cannot load model  ö.progs\b_bio_s.bsp: File not found: 'progs\b_bio_s.bsp'
Cannot load model  ö.progs\b_plas_l.bsp: File not found: 'progs\b_plas_l.bsp'
Cannot load model  ö.progs\b_plas_s.bsp: File not found: 'progs\b_plas_s.bsp'
kduske commented 5 years ago

Additional info: this is with unpacked pak files.

onetruepurple commented 5 years ago

I removed all unpacked content from my Rubicon 2 dir for testing and this issue persisted.

ericwa commented 5 years ago

Did you enable the mod directory after enabling the FGD/DEF? (TB Map inspector tab, Mods section, then double click on the mod directory). It's normal for the models to fail to load until that is set up for each map.

(2.1.0rc1 crashes on a model from Rubicon 2 models, but kduske just fixed that in https://github.com/kduske/TrenchBroom/pull/2383 )

kduske commented 5 years ago

@onetruepurple did you get a chance to try @ericwa's suggestion?

onetruepurple commented 5 years ago

I did now. The problem is now gone. Sorry for the trouble ;-)

kduske commented 5 years ago

:+1: