SourceOP
Custom Models Issue - Printable Version

+- SourceOP (http://forums.sourceop.com)
+-- Forum: SourceOP Plugin (http://forums.sourceop.com/SourceOP-Plugin-forum)
+--- Forum: General Chat (http://forums.sourceop.com/General-Chat-forum)
+--- Thread: Custom Models Issue (/Custom-Models-Issue-thread)



Custom Models Issue - FearEngine676 - Aug 14, 2010

The wiki is fail, the blogs are dead, and thiers only one almost
useful post on this forum about adding custom props to the game
through sourceop.

1. Can it be done ?
2. Is this the correct way of doing it if so ?

custom1
{
model = models/cs_market2/caddie_physics.mdl
spawnmode = 0
category = egn_content { I also tried misc }
}

The model is a physics prop and I tested it in game with prop_physics_create. The files are all added in the correct places.
The message I get is - [SourceOP] Spawn Failed.
This is for HL2DM - Server


Custom Models Issue - Drunken F00l - Aug 14, 2010

1. Yes
2. Yes. Try changing spawnmode to 1 or 2.


Custom Models Issue - FearEngine676 - Aug 14, 2010

Drunken_F00l Wrote:1. Yes
2. Yes. Try changing spawnmode to 1 or 2.

Tried both 0,1,2 still got nothing.

Can you explain to me at all how your code pulls these models ?

Does any of the custom content have to be under sourceOP
models folder ?

Does it matter if the model is Dynamic, Phys, and Static ?
I'm guessing thats what the modes are for.

I use alot of custom plugins, but nothing that should conflict with
your mod so im lost here. The only other thing I can think of is that I
use eventscripts to forcedownload files, not your txt file. Does the plugin need to see the models in your forcedownloads txt ?


Custom Models Issue - Drunken F00l - Aug 15, 2010

Type 0 will spawn a prop_physics_multiplayer
Type 1 will spawn a prop_physics
Type 2 will spawn a prop_dynamic

The server console should have some clue saying why the prop was deleted.


Custom Models Issue - FearEngine676 - Aug 15, 2010

Drunken_F00l Wrote:Type 0 will spawn a prop_physics_multiplayer
Type 1 will spawn a prop_physics
Type 2 will spawn a prop_dynamic

The server console should have some clue saying why the prop was deleted.

Here's what it said:

Late Precache of models/error.mdl
ERROR! Can't create physics object for models/error.mdl

After seeing this I thought I was a jackass for not adding it
to the DF_precache.txt, but sadly I dont think that was the case, this is how I put it in the txt. But still it's giving me the same error.

1 models/cs_market2/caddie_physics.mdl

Now it's either the model isnt precaching or the model is
not going to work period idk you tell me. Wouldnt make any sense
to say its corrupted, or incompatible since it spawns fine with prop_physics_create.


Custom Models Issue - Drunken F00l - Aug 15, 2010

You shouldn't need to precache it. Check that you have the right path to the model and that there are no trailing spaces or weird characters or something. Error.mdl is spawned by the engine when the model used does not exist or can't be loaded.


Custom Models Issue - FearEngine676 - Aug 15, 2010

Drunken_F00l Wrote:You shouldn't need to precache it. Check that you have the right path to the model and that there are no trailing spaces or weird characters or something. Error.mdl is spawned by the engine when the model used does not exist or can't be loaded.

Well, I'm just gonna call it quits until I can find someone else
that uses sourceop spawnalias and see if its the model thats screwed
up.

Thanks for your help


Custom Models Issue - fapsauss - Apr 13, 2011

cant get any to work lol