Jump to content
The Dark Mod Forums

Material Files


greebo

Recommended Posts

I'm going to rename a few shader files in SVN so that they fit the tdm_ naming convention. This change should be transparent to anybody, provided that nobody is currently working on one of the .mtr files.

 

The affected files are all those which don't have the tdm_ prefix yet and which are not overriding any vanilla D3 files (which obviously must stay as they are).

 

So my question is: does anybody have changes in his working copy of the materials/*.mtr files? I don't know 100% what happens to your local file during SVN update after I renamed the file in the repository.

 

Please make a backup of your current materials/ folder in any case and check in your changes if appropriate. I figure it will mainly be Springheel and Baddcog who might have local work in progress files, but there might be others too. Let me know when I can go ahead.

Link to comment
Share on other sites

As long as you leave springheels_characters.mtr alone I'll be fine for today. That file will eventually be removed and entries move to other files.

Link to comment
Share on other sites

Hm I was thinking about introducing two naming schemes, one for textures and one for models:

 

Right now, we have the tdm_* textures (since the texture reorg one and a half year ago), which contains all the textures/darkmod/* declarations. Example: tdm_nature_dirt.mtr

 

And we have a bunch of files without any prefix, which contain the model textures (not following any convention). One could be tempted to say it's a real mess.

 

Should I rename the model material files to tdm_models_waterworks.mtr, for instance, so that it's clear what they contain?

Link to comment
Share on other sites

The model materials follow the naming convention of the model folders, for the most part. I don't see any problem with adding tdm_models to distinguish them from other textures, however.

Link to comment
Share on other sites

Ok, I'm through with my changes. I cleaned the files from a few old unused or broken ones, merged a few shaders and renamed a lot of files.

 

I left springheels_characters.mtr and springheels_old_skin_series.mtr alone for the moment being. Eventually they should be renamed to test_springheel_chars.mtr or something similar using the test_ prefix.

 

The naming convention I came up with can be found here on the wiki: Material File Naming Convention

Link to comment
Share on other sites

Ok, I'm through with my changes. I cleaned the files from a few old unused or broken ones, merged a few shaders and renamed a lot of files.

 

I left springheels_characters.mtr and springheels_old_skin_series.mtr alone for the moment being. Eventually they should be renamed to test_springheel_chars.mtr or something similar using the test_ prefix.

 

The naming convention I came up with can be found here on the wiki: Material File Naming Convention

 

Very good work! After running extract-assets.pl, I noticed the new test_something files are included in the manifest, which means the maps use shaders from inside them. We shouldmove these shaders out of these files and put them into the proper place (maybe renaming them too)

"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

Very good work! After running extract-assets.pl, I noticed the new test_something files are included in the manifest, which means the maps use shaders from inside them. We shouldmove these shaders out of these files and put them into the proper place (maybe renaming them too)

Which ones are these?

Link to comment
Share on other sites

Which ones are these?

 

I have had no enough time to check, but I can modify my script to print them out and tell you tomorrow.

"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

I have had no enough time to check, but I can modify my script to print them out and tell you tomorrow.

 

Added a check and a warning to extract-assets.pl and it outputs this list:

 

Warning: 'bc_chain_link_rusty' inside test file: 'materials/test_baddcog.mtr'.
Warning: 'bc_gargoyle' inside test file: 'materials/test_baddcog.mtr'.
Warning: 'bc_gargoyle_wing' inside test file: 'materials/test_baddcog.mtr'.
Warning: 'candle_wick' inside test file: 'materials/test_baddcog.mtr'.
Warning: 'lights/jdude_church512x256' inside test file: 'materials/test_jdude.mtr'.
Warning: 'lights/roundhalf' inside test file: 'materials/test_jdude.mtr'.

 

Edit:

 

Since there are also these warnings:

 

Warning! Cannot find DDS, TGA nor JPG for 'models/darkmod/props/textures/bc_gargoyle_wing_ed'

Warning! Cannot find DDS, TGA nor JPG for 'models/darkmod/props/textures/bc_gargoyle_wing'

 

I think these shaders should be just deleted.

 

Second edit:

 

The reason my script includes these shaders (and subsequentially tries to find the material files) in the first place is this model:

 

models/darkmod/decorative/statues/gargoyle_roof_corner.ase

 

which in turn contains this as a base material:

 

//base/bc_gargoyle

 

which is no longer working. In the map, however, this material is replaced with a skin, so you don't see that the base material is not there anymore.

 

We either need to make the base material point to one of the existing skins by default, and nuke the bc_gargoyle shader, or fix it :)

"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

Should be resolved, apart from bc_gargoyle_wings, which I'm awaiting an answer from Baddcog for.

 

Thanx! I am currently writing a script which can take care of renaming models or shaders automatically. The first step was to add devel/manifests/fixup.txt which will hole a list of "popular" renamings. Added the chests from badcogg as a first step there.

"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

  • 3 weeks later...
  • 2 weeks later...

@Springheel: I finally got around to do the renaming, this is what has changed:

 

- All official files use the tdm_ prefix now, as all the other files.

- All test/WIP files use the test_ prefix.

- I split the characters.skin file into parts tdm_ai_*.skin as corresponding to the .def files.

- I renamed characters.skin to test_springheel.skin

- I read from the comments in test_springheel.skin that the townsfolk_male char would be removed, I left it there.

- I left the wench and stockey character skins in test_springheel too, as these models are not in SVN.

- I fixed a couple of bad model references in tdm_wearables.skin.

 

The rest should be self-explanatory. Let me know if you have trouble finding a skin, but I guess you'll easily find anything using text search.

Link to comment
Share on other sites

Sorry greebo, never saw this post.

 

I guess I was under the impression when I was working on the gargoyle that nobody really cared if it was in the mod or not. Never finalized it so I probably didn't upload the textures. Not even sure I uploaded the model/s.

 

The material probably made it in there just because I was keeping all my test materials in one spot until I was done with them.

 

Adding test_ to those files is fine if it needs done.

 

I think the naming convention looks good and needed done so... Good job ;)

Dark is the sway that mows like a harvest

Link to comment
Share on other sites

@Baddcog: I elaborated the gargoyle statue shader issue here: http://forums.thedarkmod.com/index.php?s=&am...st&p=160680

 

edit: and I totally do care about your models, they are always awesome. Actually, I'd like to see more of your models in the game, and I'd love to activate your lantern bot whenever I can find the time.

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

      The FAQ wiki is almost a proper FAQ now. Probably need to spin-off a bunch of the "remedies" for playing older TDM versions into their own article.
      · 1 reply
    • 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 )
      · 3 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
       
      · 7 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
×
×
  • Create New...