Jump to content
The Dark Mod Forums

Some entities/models missing


Recommended Posts

Just open candles.map and you will see what I mean:

 

post-144-1226684881_thumb.jpg

 

post-144-1226684897_thumb.jpg

 

Interestingly enough, the map still works fine in game, even after saving from DR and dmapping.

"The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man." -- George Bernard Shaw (1856 - 1950)

 

"Remember: If the game lets you do it, it's not cheating." -- Xarax

Link to comment
Share on other sites

Is this just this map or does the error occur on other occasions?

 

I seen some "shader missing" in other maps, too.

 

Wait, could this be the deprecated entities?

 

Not really, the "lantern_oil" is not depracted actually. Likewise the chandle holders are the new ones.

 

I saw and fixed a few warnings from DarkRadiant.log, maybe it is related to some parsing problem? (Some of the problems I fixed were silly ones like fixing it by inserting a newline in a skin etc.)

"The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man." -- George Bernard Shaw (1856 - 1950)

 

"Remember: If the game lets you do it, it's not cheating." -- Xarax

Link to comment
Share on other sites

It seems to be caused by the way the entityDefs are set up and the way DarkRadiant is interpreting the entity classes.

 

Right now, DarkRadiant tries to judge an entity in this order:

- Is it a light? Create a LightNode

- Is it not of "fixed size" (no editor_mins/maxs)? Create a Doom3Group (func_static-type)

- Is it an entity which inherits a "model" spawnarg? Create an eclass model

- Is there a "speaker" classname? Create a speakernode

- Else: Create a GenericEntityNode (the green boxes with arrows)

 

What we have here in for example atdm:moveable_lantern_oil_hand_colorme is the following:

- No non-inherited "model" spawnarg

- No "editor_mins/maxs"

- Not a light

- Not a speaker

 

DarkRadiant hence believes it is a "non-fixed size" entity and creates a Doom3Group, but this doesn't work as there are no child primitives or anything.

 

This reveals how wonky the "model" spawnarg support in DarkRadiant really is.

 

I can do the following: I teach the EClassModel entity node to request inherited "model" spawnargs, but this only fixes half of the problem (edit: change committed to SVN). DarkRadiant still believes it is a non-fixed-size entity, hence you need to add the "editor_mins" and "editor_maxs" spawnargs to the entityDef (somewhere in the hierarchy).

 

The good solution would be to redesign the entity classes (something I wanted to do anyway), but it's unrealistic assuming I would get around to do this in the near future.

Link to comment
Share on other sites

It seems to be caused by the way the entityDefs are set up and the way DarkRadiant is interpreting the entity classes.

 

I can do the following: I teach the EClassModel entity node to request inherited "model" spawnargs, but this only fixes half of the problem (edit: change committed to SVN). DarkRadiant still believes it is a non-fixed-size entity, hence you need to add the "editor_mins" and "editor_maxs" spawnargs to the entityDef (somewhere in the hierarchy).

 

The good solution would be to redesign the entity classes (something I wanted to do anyway), but it's unrealistic assuming I would get around to do this in the near future.

 

Thanx for the quick fix. But still ugh :( What I wonder is, why this has worked before but broke somehow when I reorganozed the entities? Still not quite clear on your explanation, it sounds quite confusing.

 

Adding the "min" max" editor params is:

 

* a lot of work!

* and creates these ugly orange (or colored) boxes, e.g. not the model of f.i. the candle holder

 

Is there a way to teach DR to see these as "model" entities?

"The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man." -- George Bernard Shaw (1856 - 1950)

 

"Remember: If the game lets you do it, it's not cheating." -- Xarax

Link to comment
Share on other sites

Ugh :( What I wonder is, why this has worked before but broke somehow when I reorganozed the entities?

I assume most other entityDefs have either the "model" spawnarg or the "editor_mins/maxs" spawnargs set on them.

 

Adding the "min" max" editor params is: * a lot of work!

You don't need to define it on every entity, just somewhere up the inheritance tree. This isn't a lot of work, is it?

 

* and creates these ugly orange (or colored) boxes, e.g. not the model of f.i. the candle holder

No, it shouldn't create these, as long as a "model" key is set somewhere on the inherited ones (the code I just checked in allows this).

 

Is there a way to teach DR to see these as "model" entities?

As I said, the entity classes should be consolidated and their behaviour improved, but this is a lot of work, and I won't get around to pull this off in just a few days. This takes an uninterrupted week of coding time, when I'm having a run. Right now, I'm trying to focus on the mod's inventory code.

Link to comment
Share on other sites

I just haven't understand what the actual problem is:

 

This is one of the entites that ends up as a box with "shader not found":

 

entityDef atdm:moveable_lantern_oil_hand
{
   "inherit"               "atdm:moveable_small_base"
   "editor_displayFolder"  "Lights/Moveables"
   "editor_usage"          "An unlit oil lantern that can be carried around and extinguished/relit by the player."

   "model"                 "models/darkmod/lights/non-extinguishable/lantern_oil_hand.ase"
   "mass"                  "5"
   "snd_bounce"            "material_metal_impact"
   "bouncyness"            "0"

   "def_attach"            "light_lantern_oil_omni_unlit"

   "skin"                  "lights/lantern_oil_hand_unlit"
   "skin_lit"              "lights/lantern_oil_hand_lit"
   "skin_unlit"            "lights/lantern_oil_hand_unlit"

   "equippable"            "1"
   "equip_action_script"   "frob_light_holder_toggle_light"
}

 

So where is the problem with that entity? :mellow:

 

Understand that you don't have time for DR now.

"The reasonable man adapts himself to the world; the unreasonable one persists in trying to adapt the world to himself. Therefore, all progress depends on the unreasonable man." -- George Bernard Shaw (1856 - 1950)

 

"Remember: If the game lets you do it, it's not cheating." -- Xarax

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

    • nbohr1more

      Was checking out old translation packs and decided to fire up TDM 1.07. Rightful Property with sub-20 FPS areas yay! ( same areas run at 180FPS with cranked eye candy on 2.12 )
      · 0 replies
    • taffernicus

      i am so euphoric to see new FMs keep coming out and I am keen to try it out in my leisure time, then suddenly my PC is spouting a couple of S.M.A.R.T errors...
      tbf i cannot afford myself to miss my network emulator image file&progress, important ebooks, hyper-v checkpoint & hyper-v export and the precious thief & TDM gamesaves. Don't fall yourself into & lay your hands on crappy SSD
       
      · 3 replies
    • 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.
      · 7 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
×
×
  • Create New...