Model not showing up in GZDoom map (RESOLVED)

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Locked
User avatar
Agentbromsnor
Posts: 265
Joined: Wed Mar 28, 2012 2:27 am

Model not showing up in GZDoom map (RESOLVED)

Post by Agentbromsnor »

Hello,

I have in the past successfully imported three models into my PK3 file to use with my GZDoom mod. However, today I tried importing a model of a toilet that I made myself (contrary to the other ones that I downloaded as OBJ's online and exported to MD2 using Misfit Model 3D), and it doesn't work.

Here's the modeldef for it:

Code: Select all

Model WC
{
	Path "Models/Toilet"
	Model 0 "toilet.md2"
	Skin 0 "toilet.tga"
	Scale 0.2 0.2 0.2
	Frameindex WC A 0 0
}
The DECORATE:

Code: Select all

Actor WC 4170
{
	States
	{
		Spawn:
		WC A -1
		stop
	}
}
The TEXTURES definition:

Code: Select all

sprite WCA0, 1, 1 { Patch TNT1A0, 0, 0 }
I followed this tutorial: https://sites.google.com/site/sicamores ... oom-part-2

It might also be worth noting that on importing my toilet model into Misfit Model 3D, it already showed up as textured, instead of having to select the texture inside Misfit Model 3D like the tutorial suggests. I'm not sure why this is.

If anybody could help me resolve this, I would greatly appreciate it!

Also, here's the PK3 file:
https://www.dropbox.com/s/x796m654ah88u ... s.pk3?dl=0


Greetings,
Last edited by Agentbromsnor on Mon Feb 15, 2016 9:26 am, edited 2 times in total.
User avatar
Mikk-
Posts: 2274
Joined: Tue Jun 30, 2009 1:31 pm

Re: Model not showing up in GZDoom map

Post by Mikk- »

If I'm not mistaken that couldn't possibly be a valid Sprite name? I was under the impression that Sprite names had to be 4 characters, ABCDA0; ABCD being the name, A being the frame and 0 being the rotation(in the example case, none)
User avatar
Agentbromsnor
Posts: 265
Joined: Wed Mar 28, 2012 2:27 am

Re: Model not showing up in GZDoom map

Post by Agentbromsnor »

Mikk- wrote:If I'm not mistaken that couldn't possibly be a valid Sprite name? I was under the impression that Sprite names had to be 4 characters, ABCDA0; ABCD being the name, A being the frame and 0 being the rotation(in the example case, none)
I also used the sprite name of the other models (BUSHA0) and it still didn't work. Even when the entire modeldef and decorate are the same as that of my previous models, it still wouldn't show up in GZDoom Builder, which leads me to believe there might be something wrong with my model file. However, I have no idea what this could be.
User avatar
MaxED
Posts: 2246
Joined: Tue Feb 28, 2012 12:55 pm

Re: Model not showing up in GZDoom map

Post by MaxED »

Your model is very small and you additionally scale it even smaller in MODELDEF. And yes, sprite name MUST be 4 chars long.
User avatar
Agentbromsnor
Posts: 265
Joined: Wed Mar 28, 2012 2:27 am

Re: Model not showing up in GZDoom map

Post by Agentbromsnor »

MaxED wrote:Your model is very small and you additionally scale it even smaller in MODELDEF. And yes, sprite name MUST be 4 chars long.
I shall keep the 4 character rule in mind!

What scale would you suggest I use in MODELDEF? As you can see in my PK3 file, I used 0.2 for the bushes, and they showed up fine, hence why I also used it for my toilet model.
User avatar
Agentbromsnor
Posts: 265
Joined: Wed Mar 28, 2012 2:27 am

Re: Model not showing up in GZDoom map

Post by Agentbromsnor »

Okay, MaxED was right, my model was very small. I cranked it up in the MODELDEF and it's showing up now. I also changed the sprite name to TOIL, in order to keep with the four character restriction.

The model size is something I should keep in mind when making models using Wings 3D.

Thank you guys very much!
Locked

Return to “Editing (Archive)”