Jump to content
The Dark Mod Forums

moveable straw_mattress: what am I doing wrong?


Bikerdude

Recommended Posts

Trying to make a moveable version of the straw mattress model -

 

entityDef atdm:moveable_mattress_straw
{
"inherit"					"atdm:moveable_furniture_base"
"editor_displayFolder"		"Moveables/Furniture"
"model"					 "models/darkmod/furniture/beds/mattress_straw.lwo"
"mass"						"12"
"friction"					"0.5"
"bouncyness"				"0.01"
"snd_bounce"				"tdm_impact_package_small"
"snd_bounce_carpet"			"tdm_impact_carpet_heavy"
"spr_object_hardness"		 "soft"
"spr_object_size"			 "large"
}

 

When I attempt to load the map, I get an error saying "it cannot load the collision model models/darkmod/furniture/beds/mattress_straw.lwo, but that model already has a collesion brush, so why dosent it work.

Link to comment
Share on other sites

Add

"clipmodel" "models/darkmod/furniture/beds/mattress_straw.lwo"

FM's: Builder Roads, Old Habits, Old Habits Rebuild

Mapping and Scripting: Apples and Peaches

Sculptris Models and Tutorials: Obsttortes Models

My wiki articles: Obstipedia

Texture Blending in DR: DR ASE Blend Exporter

Link to comment
Share on other sites

How many sides does the cm have? I don't remember adding one, but if I did it certainly wouldn't have been with it being movable in mind. Movable cms have to have a limited number of faces, and I forget what the limit is atm.

Link to comment
Share on other sites

Try using

"inherit" "atdm:moveable_custom_item"

instead.

FM's: Builder Roads, Old Habits, Old Habits Rebuild

Mapping and Scripting: Apples and Peaches

Sculptris Models and Tutorials: Obsttortes Models

My wiki articles: Obstipedia

Texture Blending in DR: DR ASE Blend Exporter

Link to comment
Share on other sites

How many sides does the cm have? I don't remember adding one, but if I did it certainly wouldn't have been with it being movable in mind. Movable cms have to have a limited number of faces, and I forget what the limit is atm.

The wiki article on moveables isn't sure about the limits either. I'm 99% sure the limit on moveable cms is the limit on the stored clip tracemodel which is 32 verts, 32 edges, and 16 polys which are each limited to 16 edges. I'll update the wiki article later after checking there are no other limits. One thing I didn't realise until reading the wiki on moveables just now is that you can make and save a clip model in DR. But it doesn't say whether your new clip model will override a cm embedded in the model, with or without the clipmodel spawnarg. Worth trying if you haven't already Biker.

Link to comment
Share on other sites

How many sides does the cm have? I don't remember adding one, but if I did it certainly wouldn't have been with it being movable in mind. Movable cms have to have a limited number of faces, and I forget what the limit is atm.

It has eight, but am gonna try Obs "inherit" "atdm:moveable_custom_item" suggestion.

 

[update] that didnt work either, so untill a moveable version of said matress is made Im gonna have to stick with the "bind & frob" method.

Link to comment
Share on other sites

Biker did you spot this bit of the wiki article? It's in a section talking about that specific error:

 

What you must do is DELETE the map cm file (in maps folder mymap.cm) then DMAP again. Dmap doesn't know if you changed anything so you need to force it to recreate the map collision file.
Link to comment
Share on other sites

Gonna try Xcen model, but in the meantime I have found a work arounded based on the original method used by Fidcal. the original had the issue that the matress would not frob_highlight, now it does and at the correct distance.

 

heart_bed.pfb.txt

 

[update] @ Xcen, thanks anyway mister but Im getting the error with the low poly version as well.

Link to comment
Share on other sites

I just got it working too... The problem with the straw mattress clipmodel is that it apparently has 18 polys. Only 8 visible flat faces, but looks like all the tris are being counted.

 

My method:

Create Entity > atdm:moveable_package_small

Set spawnarg "model" "models/darkmod/furniture/beds/mattress_straw.lwo"

Set spawnarg "clipmodel" "models/darkmod/containers/package_small.lwo"

 

Unfortunately the package_small clip model isn't a good fit. When you throw the mattress it ends up resting 8 inches above the floor. But it's definitely the clipmodel having 18 polys or tris that's the problem, so you could make a simple clip model in DR and set the clipmodel spawnarg to point to it.

Link to comment
Share on other sites

http://www.mediafire...tress_straw.def

 

entityDef atdm:moveable_mattress_straw

{

"inherit" "atdm:moveable_furniture_base"

"editor_displayFolder" "Moveables/Furniture"

"model" "models/darkmod/furniture/beds/mattress_straw.lwo"

"mass" "12"

"friction" "0.5"

"bouncyness" "0.01"

"snd_bounce" "tdm_impact_package_small"

"snd_bounce_carpet" "tdm_impact_carpet_heavy"

"spr_object_hardness" "soft"

"spr_object_size" "large"

}

Link to comment
Share on other sites

@Biker: Did that fix it? I want to find out how if so.

 

@Steve ah I see, thats cheating though and not useal with the mattress floating 8 units of the floor etc. :-P

 

Hang on, my suggestion was to make a new clipmodel in DR not use the package_small clipmodel! The experiment with package_small was just to demonstrate that the existing clipmodel was the problem :-P

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recent Status Updates

    • OrbWeaver

      Does anyone actually use the Normalise button in the Surface inspector? Even after looking at the code I'm not quite sure what it's for.
      · 2 replies
    • Ansome

      Turns out my 15th anniversary mission idea has already been done once or twice before! I've been beaten to the punch once again, but I suppose that's to be expected when there's over 170 FMs out there, eh? I'm not complaining though, I love learning new tricks and taking inspiration from past FMs. Best of luck on your own fan missions!
      · 4 replies
    • The Black Arrow

      I wanna play Doom 3, but fhDoom has much better features than dhewm3, yet fhDoom is old, outdated and probably not supported. Damn!
      Makes me think that TDM engine for Doom 3 itself would actually be perfect.
      · 6 replies
    • Petike the Taffer

      Maybe a bit of advice ? In the FM series I'm preparing, the two main characters have the given names Toby and Agnes (it's the protagonist and deuteragonist, respectively), I've been toying with the idea of giving them family names as well, since many of the FM series have named protagonists who have surnames. Toby's from a family who were usually farriers, though he eventually wound up working as a cobbler (this serves as a daylight "front" for his night time thieving). Would it make sense if the man's popularly accepted family name was Farrier ? It's an existing, though less common English surname, and it directly refers to the profession practiced by his relatives. Your suggestions ?
      · 9 replies
    • nbohr1more

      Looks like the "Reverse April Fools" releases were too well hidden. Darkfate still hasn't acknowledge all the new releases. Did you play any of the new April Fools missions?
      · 5 replies
×
×
  • Create New...