Model Error Created 14 years ago2010-01-26 00:10:53 UTC by Half Kill Half Kill

Created 14 years ago2010-01-26 00:10:53 UTC by Half Kill Half Kill

Posted 14 years ago2010-01-26 00:13:27 UTC Post #278415
I've been following a tutorial on modelling for goldsource ( http://www.twhl.co.za/tutorial.php?id=147 ) and put it into half life, but I've bumped into an error.

Basically it's all compiled with a texture and animation but when I try to load it into Jed's half life model viewer an error comes up saying " Error Post-loading Model".

I've tried searching on google and in the comments for the tutorial but I can't find anything. I don't know what cause this error because when I go into half life models folder alot of models come up with the same error. ( except instead of post-loading model it just says loading model)

Thanks.
Posted 14 years ago2010-01-26 00:43:48 UTC Post #278417
Shoot Rimrook a PM. He's the one who wrote the tutorial; should be able to help you out.

And does the model work in-game or just not in Jed's?
Tetsu0 Tetsu0Positive Chaos
Posted 14 years ago2010-01-26 04:34:19 UTC Post #278422
I'm not exactly sure if it works in-game because I don't know how to put it in hammer.

And I'll give Rimrook a pm then.
Posted 14 years ago2010-01-26 05:53:48 UTC Post #278423
I have been searching around for a way to put my model into hammer and it all comes down to the entity env_model, but I can't find that in my list of entities.

I've searched google for updated fdg files and I've gotten a few but none of them have env_model, and yes they are hammer 3.5 fdg's (and i have hammer 3.5)
Posted 14 years ago2010-01-26 06:11:54 UTC Post #278425
If I understood this correctly, a monster_furniture should do what I think you want. Otherwise, well, I don't know.
Jessie JessieTrans Rights <3
Posted 14 years ago2010-01-26 09:13:30 UTC Post #278426
thanks Darkie, I tried that out but when I try to load the map with the model in Half Life crashes and comes up with this error.

Mod_NumForName: C:/half_life_crate/firstcrate.mdl not found

I also still have the problem where i can't open it in the model viewer...

EDIT: I think i found my problem, when i re-compile my qc file i found out i first have to delete the original model file (woops), so i did that but now it says error unknown graphics type Vcrate.jpeg in the compile window.

I'm guessing it says that because it isn't saved as 8-bit? I don't see 8-bit in my extentions, the lowest i have is 16 bit, if any knows the name of the 8-bit extension (for all i know it's called 8-bit ) then please tell me.

I'm getting closer!
Posted 14 years ago2010-01-26 09:54:23 UTC Post #278427
It has to be 8-bit BMP for HL models.
Notewell NotewellGIASFELFEBREHBER
Posted 14 years ago2010-01-26 10:05:23 UTC Post #278429
the only bmp extensions i have are

16 colour bitmap
256 colour bitmap
24-bit bitmap
Monochrome bitmap

I don't really know which one of them to use (maybe not the 24-bit one)
Posted 14 years ago2010-01-26 10:06:21 UTC Post #278430
256 = 2^8.
Oskar Potatis Oskar Potatis🦔
Posted 14 years ago2010-01-26 10:14:32 UTC Post #278431
thanks, i tried that and the image error has disappeared, but unfortuantly another has appeared.

This time it says
********** ERROR **********
Error opening half_life_crate/firstcrate.mdl: No such file or directory

I don't know why it is trying to open that when it should be trying to create it, if it helps here is my QC file

$modelname "half_life_crate/firstcrate.mdl"
$cd ".\"
$cdtexture ".\"
$scale 1.0
$cliptotextures

$bbox 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
$cbox 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
$eyeposition 0.000000 0.000000 0.000000
$origin 0 0 0

//reference mesh(es)
$body "studio" "half_life_crate_first"

// 1 animation sequence(s)
$sequence "idle1" "crate_idle1" fps 30

// End of QC script.

Anyhelp would be appreciated.
Posted 14 years ago2010-01-26 11:12:25 UTC Post #278432
Ok, I've solved a little bit more on my own, I got rid of the error and the compiler makes a mdl file now (change name from half_life_crate/firstcrate.mdl to firstcrate.mdl) and I can view it in half life model viewer but heres my new problem.

I got rid of the error that crashed hl when i opened my map with my model (i put the model into the models folder in the valve folder) but my molder won't appear.

I've put in other models like computers and they came up, but my model is like invisible and there are no errors in my compiling for my map.

Any help would be appreciated.. again :)
Posted 14 years ago2010-01-26 11:30:59 UTC Post #278433
what entity are you using?
Notewell NotewellGIASFELFEBREHBER
Posted 14 years ago2010-01-26 11:50:01 UTC Post #278434
I am using monster_furniture like darkie suggested.
Posted 14 years ago2010-01-26 13:33:33 UTC Post #278435
try using cycler_sprite. It's not in the FGD, but it should still work.
EDIT:
[quote]@PointClass base(Targetname, Angles) = cycler_sprite : "Sprite Cycler"
[
model(sprite) : "Sprite"
framerate(integer) : "Frames per second" : 10
renderfx(choices) :"Render FX" : 0 =
[
	0: "Normal"
	1: "Slow Pulse"
	2: "Fast Pulse"
	3: "Slow Wide Pulse"
	4: "Fast Wide Pulse"
	9: "Slow Strobe"
	10: "Fast Strobe"
	11: "Faster Strobe"
	12: "Slow Flicker"
	13: "Fast Flicker"
	5: "Slow Fade Away"
	6: "Fast Fade Away"
	7: "Slow Become Solid"
	8: "Fast Become Solid"
	14: "Constant Glow"
	15: "Distort"
	16: "Hologram (Distort + fade)"
]
rendermode(choices) : "Render Mode" : 0 =
[
	0: "Normal"
	1: "Color"
	2: "Texture"
	3: "Glow"
	4: "Solid"
	5: "Additive"
]
renderamt(integer) : "FX Amount (1 - 255)"
rendercolor(color255) : "FX Color (R G B)" : "0 0 0"
][/quote]
try adding that to the FGD. It works on models too, if I remember correctly.
Notewell NotewellGIASFELFEBREHBER
Posted 14 years ago2010-01-26 14:44:35 UTC Post #278437
********** ERROR **********
Error opening half_life_crate/firstcrate.mdl: No such file or directory
To ease up the process, don't list long directories in the script. Keep all of the files related to your model in the same folder so it knows where to look. Also if you do that, you can compile anywhere. Automatically, QC scripts will look for resources in the same folder it is in. Anything else will get lost unless you type out a long directory like C:/users/rimrook/documents and setting/desktop/hl models/crate/etc/etc/etc... you get the idea.

The line that says
$modelname "half_life_crate/firstcrate.mdl"

Should say
$modelname "firstcrate.mdl"

Isn't that easier? :3

When you compile, it'll put the MDL file in the folder, then copy-paste it into your HL models folder for use.

I'll be buzzing around this thread from time to time. ^_^

EDIT: Wow. pays to read a bit.

Anyway, your new problem can be solved by using a "Cycler" entity, not cycler_sprite or the env_sprite entities. The reason it crashes your HL is because HL is looking for animations, hitboxes, AI, and all that stuff. Cyclers don't care. I've had that problem a few times, although I don't know why monster_furniture works with some models not with others. If it persists, send me your model and files.
Rimrook RimrookSince 2003
Posted 14 years ago2010-01-26 22:53:51 UTC Post #278443
lol I've already fixed the problem where hl crashes, bu thanks rimrook the cycler entity works!

it's pretty cool seeing something you worked on inside a game :P

Thanks to everyone who helped, now I'm going onto the second part of the modelling tut! :D
User posted image
Posted 14 years ago2010-01-27 00:41:23 UTC Post #278444
Its in game now :D

But work on that Texturing. Review the part about the UVW Mapping modifier. It'll clean up those stretches.

Otherwise congrats on your first model! There are many more to be made ahead of you.
Rimrook RimrookSince 2003
You must be logged in to post a response.