Problem With Custom Model (Solved)

Avatar
LuckyRJ
78 Posts
Posted Sep 09, 2013
Hi all,

I started a new map a few days ago, I am going to be using custom textures and models.

The problem is a elevator door model my friend gave me is basically making my game crash, I tried a lot of things.

Lpfreaky90 said try making a dx90.vtx version, which half worked the model shown up, but then came the crash issue :sad:

My game crashes when I try and use the dx90.vtx version and when I use the original file the sw.vtx - the model is invisible in hammer and in game - but when I use the dx90.vtx my game crashes and the model shows up in hammer - so a catch 22 situation :sad:.

portal 2/portal 2/models/props_lab

elevatordoor.mdl
elevatordoor.sw.vtx (changed to dx90.vtx)
elevatordoor.phy
elevatordoor.vvd

portal 2/portal 2/materials/models/props_lab (reason these need props_lab folder is because inside the vmt file it is this code)

"VertexLitGeneric"
{
   "$baseTexture" "Models/props_lab/elevatordoor_sheet"
}

elevatordoor_sheet.vmt
elevatordoor_sheet.vtf

I have tried everything, I cant work out what's wrong??

I also tried some different custom models and they work no problem, I am starting to think maybe this elevatordoor model is bugged in some way :sad:

if anyone has any idea what I can do I would appreciate it.

Thanks

LuckyRJ

Advertisement
Registered users don’t see ads! Register now!
Avatar
josepezdj
2,386 Posts
Posted Sep 09, 2013
Replied 1 hour later
Hmmm.... I can't find that model (nor into the portal2 folder pak01_dir.VPK or into dlc1 or dlc2)... Is it a Portal2 model? some sort of an update? Is it from other Source game?
Avatar
LuckyRJ
78 Posts
Posted Sep 09, 2013
Replied 21 minutes later

josepezdj wrote:
Hmmm.... I can't find that model (nor into the portal2 folder pak01_dir.VPK or into dlc1 or dlc2)... Is it a Portal2 model? some sort of an update? Is it from other Source game?

It is a custom model, I think its from counter strike - but im not sure.

My friend had it working in his mod he is making for portal 2 I saw it working a long time ago, so i know it works.

Basically this model when the animation is playing it has 2 sides and they fold in on themselves the model is metal and is see-through

picture is attached to this post

any suggestions would be welcome on how to fix this problem with this dx90.vtx file :smile:

thanks again

Avatar
josepezdj
2,386 Posts
Posted Sep 09, 2013
Replied 58 minutes later
I see. That model reminds me of another one from HL or Portal... I think I saw it in a custom map quite some time ago...

If you could post all the model files, I could try to decompile it and then recompile it for Portal2. The weird thing is that your friend can use it into P2 but not you...

Avatar
LuckyRJ
78 Posts
Posted Sep 09, 2013
Replied 14 minutes later

josepezdj wrote:
I see. That model reminds me of another one from HL or Portal... I think I saw it in a custom map quite some time ago...

If you could post all the model files, I could try to decompile it and then recompile it for Portal2. The weird thing is that your friend can use it into P2 but not you...

ok, i shouldnt really do this maybe, but this is the link my friend gave me when he gave me the files, it is on drop box

EDITED: REMOVED LINK :smile:

i dont know how long this will stay here for though, so be quick

thanks soo much for your help.

cant wait to see if this works when you decompile it :smile: i will cross my fingers :smile:

Avatar
josepezdj
2,386 Posts
Posted Sep 09, 2013
Replied 25 minutes later
Got it. Let me arrive home and try it :wink:
Avatar
Gemarakup
1,183 Posts
Posted Sep 09, 2013
Replied 28 minutes later
You could have PMed it if you don't want people to steal it.
Avatar
LuckyRJ
78 Posts
Posted Sep 09, 2013
Replied 10 minutes later

josepezdj wrote:
Got it. Let me arrive home and try it :wink:

ok thanks, i will edit and remove the link now,

yishbarr wrote:
You could have PMed it if you don't want people to steal it.

yes i forgot about pm :razz:

i will edit and remove the link now

thanks again :smile:

Avatar
Skotty
671 Posts
Posted Sep 09, 2013
Replied 1 hour later
This is a default model of Half-Life 2. And since Source is downwards compatible, you can just use that one from HL2 with all it's files.

LuckyRJ wrote:
Lpfreaky90 said try making a dx90.vtx version, which half worked the model shown up, but then came the crash issue :sad:

Totally wrong. This model already has one. And just changing an existing file to that can't work.

LuckyRJ wrote:
elevatordoor.mdl
elevatordoor.sw.vtx (changed to dx90.vtx)
elevatordoor.phy
elevatordoor.vvd

The problem: Your friend didn't send you all files of the model.

I attached a HL2-Elevatordoor.7z which includes all files. It must work.

Attachments
HL2-Elevatordoor.7z
0.08 MB 42 downloads
Avatar
LuckyRJ
78 Posts
Posted Sep 09, 2013
Replied 10 minutes later

Skotty wrote:
This is a default model of Half-Life 2. And since Source is downwards compatible, you can just use that one from HL2 with all it's files.
LuckyRJ wrote:

Lpfreaky90 said try making a dx90.vtx version, which half worked the model shown up, but then came the crash issue :sad:

Totally wrong. This model already has one. And just changing an existing file to that can't work.

LuckyRJ wrote:

elevatordoor.mdl
elevatordoor.sw.vtx (changed to dx90.vtx)
elevatordoor.phy
elevatordoor.vvd

The problem: Your friend didn't send you all files of the model.

I attached a HL2-Elevatordoor.7z which includes all files. It must work.

Awesome Skotty

Thanks soo much for your help,

Also thanks to josepezdj too :smile:

Also updated thread as (Solved)

LuckyRJ

Avatar
josepezdj
2,386 Posts
Posted Sep 09, 2013
Replied 6 minutes later
Good to know it's already solved.
Avatar
Skotty
671 Posts
Posted Sep 09, 2013
Replied 11 minutes later

josepezdj wrote:
Good to know it's already solved.

Even if: Your decompiler would had crashed every time since half of the files were missing :biggrin:

Avatar
josepezdj
2,386 Posts
Posted Sep 09, 2013
Replied 8 minutes later

Skotty wrote:
Even if: Your decompiler would had crashed every time since half of the files were missing :biggrin:

I would have first changed the same file you changed to elevatordoor.dx90.vtx and would use your fixed decompiler :biggrin: I still remember *your* lessons :p

Avatar
LuckyRJ
78 Posts
Posted Sep 09, 2013
Replied 6 minutes later
I am soo happy this is working now, this model looks sooo sweet with a projected texture when it opens :smile:, the shadows move with the gate opening :smile:

Thanks soo much again :smile:

Avatar
Skotty
671 Posts
Posted Sep 09, 2013
Replied 7 minutes later

josepezdj wrote:
I would have first changed the same file you changed to elevatordoor.dx90.vtx and would use your fixed decompiler :biggrin: I still remember *your* lessons :p

Wrong!
*My* lesson was to change .dx90.vtx to .dx80.vtx. But his dx90.vtx didn't even exist! Ha!

Avatar
Gemarakup
1,183 Posts
Posted Sep 09, 2013
Replied 22 minutes later
Basically, someone made a few obvious mistakes because of mistakes caused by a mistake and I don't care who it was. It's solved already. You don't need to decrypt anything either.
Advertisement
Registered users don’t see ads! Register now!
Avatar
josepezdj
2,386 Posts
Posted Sep 09, 2013
Replied 5 minutes later

Skotty wrote:
Wrong!
*My* lesson was to change .dx90.vtx to .dx80.vtx. But his dx90.vtx didn't even exist! Ha!

Hahaha... shit! you're right Erik! >.< I meant to change the only .vtx file there was to dx80.vtx :biggrin: And I didn't even state that I will achieve it, I was only saying I would try. If you say I would have failed anyways, I believe your word. :thumbup:

For those interested, who want to play with decompiling-recompiling models, this is the post by Skotty.