Jump to content
The Dark Mod Forums

Recommended Posts

Posted

Hmm. There is a material "textures/darkmod/stone/flat/smooth/marble_white01_glow" in the "gatehouse decorative" material

that was added to TDM. I guess that the "textures/darkmod/stone/flat/smooth_marble_white01_ed" might be picked-up by the media

surface inspector.

Please visit TDM's IndieDB site and help promote the mod:

 

http://www.indiedb.com/mods/the-dark-mod

 

(Yeah, shameless promotion... but traffic is traffic folks...)

Posted

Here is the infamous glowing bookshelf.  This is the `models/darkmod/furniture/shelves/bookshelf_wide01_alt` model with the `mansion_dark_redwood` skin.

Problematic texture seems to be `textures/darkmod/wood/boards/dark_redwood`. Applying this texture to a brush also reproduces the same glowing effect.  Shame, really, just based on the renderings in Dark Radiant this wood looks really nice.

crusher1_2020-05-26_23_30_19.thumb.jpg.6cd791da9be970389f814c185281889c.jpg

 

crusher1_2020-05-26_23.38.21.jpg

Posted

@krrg

Again I can only select that texture in the surface inspector and not in the media browser ... so something seems to be messed up with that.

The bookcase seems to be a bit transparent also, looking from the side  ...

Posted
Quote

Btw textures/darkmod/stone/flat/smooth_marble_white01 is not to be found in the media browser,

 

Hold on.  "textures/darkmod/stone/flat/smooth_marble_white01" is the actual name of the diffuse texture file.  The material shader name is "textures/darkmod/stone/flat/smooth/marble_white01"

The skin should be pointing to the material shader, not the file.  That's the problem there.

 

Quote

Problematic texture seems to be `textures/darkmod/wood/boards/dark_redwood`

Again, I see nothing wrong with the material shader.  And the skin seems to be correct too.  I just tried it in game and it worked fine.  Why are the books black in yours?

Posted (edited)
1 hour ago, Springheel said:

Hold on.  "textures/darkmod/stone/flat/smooth_marble_white01" is the actual name of the diffuse texture file.  The material shader name is "textures/darkmod/stone/flat/smooth/marble_white01"

Small tangent here, but using suffixes for diffuse textures would probably make things easier to grasp, especially for new mappers. I use simple _d, _n, _s, _em (emissive mask) notation in all my materials, never had any problems with it.

Edited by peter_spy
  • Like 1
Posted (edited)

@peter_spy @Springheel

Ok, so this is a original skin for the cup:

skin cup_marble_shiny
{
model models/darkmod/decorative/vases/cup_marble.ase
model models/darkmod/decorative/vases/cup_stone_large.ase
model models/darkmod/decorative/vases/cup_stone_small.ase

textures/darkmod/stone/natural/dark_dirty	  textures/darkmod/stone/flat/smooth_marble_white01
textures/darkmod/stone/flat/rough_marble_light01  textures/darkmod/stone/flat/smooth_marble_white01
}

textures/darkmod/stone/flat/smooth_marble_white01 here should point to the material/shader right? But there is no smooth_marble_white01 in the media browser, however there is a image file in that location in tdm_textures_stone_flat01.pk4 named "smooth_marble_white01_ed.jpg" (but not smooth_marble_white01.* (dunno what extention that should be)).

textures/darkmod/stone/flat/smooth/marble_white01 does exist in the media browser and this is it's shader definition:

Spoiler

textures/darkmod/stone/flat/smooth/marble_white01
{

    surftype15
    description "tile"

    qer_editorimage textures/darkmod/stone/flat/smooth_marble_white01_ed
    diffusemap      textures/darkmod/stone/flat/smooth_marble_white01
    bumpmap         textures/darkmod/stone/flat/smooth_marble_grey01_local

    {
        if ( parm11 > 0 )
        blend       gl_dst_color, gl_one
        map         _white
        rgb         0.40 * parm11
    }
    {
        if ( parm11 > 0 )
        blend       add
        map         textures/darkmod/stone/flat/smooth_marble_white01
        rgb         0.15 * parm11
    }

    // TDM Ambient Method Related
    {                            
        if (global5 == 1)        
        blend add                
        map                textures/darkmod/stone/flat/smooth_marble_white01        
        scale            1, 1        
        red                global2    
        green            global3    
        blue            global4    
    }                            
    {                            
        if (global5 == 2)        
        blend add                
        program    ambientEnvironment.vfp    
        vertexParm        0        1, 1, 1, 1        // UV Scales for Diffuse and Bump    
        vertexParm        1        1, 1, 1, 1    // (X,Y) UV Scale for specular        
        vertexParm        2        global2, global3, global4, 1    
                                                                
        fragmentMap        0        cubeMap env/gen1                
        fragmentMap        1        textures/darkmod/stone/flat/smooth_marble_grey01_local            // Bump                
        fragmentMap        2        textures/darkmod/stone/flat/smooth_marble_white01            // Diffuse            
        fragmentMap        3        _black            // Specular            
    }


}

Where the diffusemap is textures/darkmod/stone/flat/smooth_marble_white01

So I think this diffusemap is missing in tdm_textures_stone_flat01.pk4 AND the skin is pointing to a none existing material/shader ... is this right or am I missing something?

 

In case of the glowing bookcase it seems krrg and I are just missing a material/shader, or do you perhaps do have this "textures/darkmod/stone/flat/smooth_marble_white01" in the media browser and are we just missing an other material/shader and therefore have this glowing cup?

Trying to understand how this all works : )

Edited by STRUNK
Posted

There isn't a tga file for smooth_marble_white01, but there is a DDS file for it in the dds folder inside of `tdm_textures_stone_flat01.pk4`.

Screenshot_20200527_094050.thumb.png.c2faf5387ea3ca5207b843581b74d568.png

 

Posted
25 minutes ago, STRUNK said:

@peter_spy @Springheel

 

So I think this diffusemap is missing in tdm_textures_stone_flat01.pk4 AND the skin is pointing to a none existing material/shader ... is this right or am I missing something?

 

 

No, the texture file is there.  The problem is that skin files should reference material entries, not texture files.  To correct it, replace "textures/darkmod/stone/flat/smooth_marble_white01" in the skin with "textures/darkmod/stone/flat/smooth/marble_white01".  That should fix it.

 

 

25 minutes ago, STRUNK said:

In case of the glowing bookcase it seems krrg and I are just missing a material/shader, or do you perhaps do have this "textures/darkmod/stone/flat/smooth_marble_white01" in the media browser and are we just missing an other material/shader and therefore have this glowing cup?

Trying to understand how this all works : )

 

The redwood issue seems to be a problem with something missing.  I'm pretty sure the redwood texture was uploaded for 2.07, as it is used in all the interior mansion models.  I'll have to look into it.  Perhaps someone else can confirm whether they see it or not.

  • Like 1
Posted

@Springheel

Thanx, it seems I'm starting to understand a bit what's happening : )

@krrg Do you have dark_redwood in your media browser, or only in the surface inspector, defined nowhere, when you have that bookcase in your map?

dark-redwood.png

 

Posted

Hmm, for some reason, while the texture files is present, the material entry seems to be missing from 2.08.  Maybe it was just never uploaded?  Not sure, but I've added it now.

  • Thanks 3
Posted
4 hours ago, Springheel said:

Hmm, for some reason, while the texture files is present, the material entry seems to be missing from 2.08.  Maybe it was just never uploaded?  Not sure, but I've added it now.

Thanks! You're talking about the `dark_redwood` material, correct @Springheel?

If so, there is still the matter of the smooth marble that started this whole discussion.

9 hours ago, Springheel said:

The problem is that skin files should reference material entries, not texture files.  To correct it, replace "textures/darkmod/stone/flat/smooth_marble_white01" in the skin with "textures/darkmod/stone/flat/smooth/marble_white01".  That should fix it.

Can this skin also get fixed for 2.08? I'd be happy to submit the change myself, but I think the asset definitions are part of a private repository.

Posted

Quick question, is there a way to add a custom item into the player's inventory? I see a target_itemremove in the entity list but no "itemadd". I want to have the game add a specific item to the player's inventory when an objective is completed. I have made the custom item, which doesn't need to be dropable. There are also four fragments of this item that need to be removed from the inventory at the same time, though I assume the itemremove would do that for me?

My Fan Missions:

   Series:                                                                           Standalone:

Chronicles of Skulduggery 0: To Catch a Thief                     The Night of Reluctant Benefaction

Chronicles of Skulduggery 1: Pearls and Swine                    Langhorne Lodge

Chronicles of Skulduggery 2: A Precarious Position              

Chronicles of Skulduggery 3: Sacricide

 

 

 

Posted
1 hour ago, Bienie said:

Quick question, is there a way to add a custom item into the player's inventory? I see a target_itemremove in the entity list but no "itemadd". I want to have the game add a specific item to the player's inventory when an objective is completed. I have made the custom item, which doesn't need to be dropable. There are also four fragments of this item that need to be removed from the inventory at the same time, though I assume the itemremove would do that for me?

In that case you can specify a completion script for the objective in the objective editor, i.e. bienie_add_item. The script could look like below:

void bienie_add_item()
{
	$player1.replaceInvItem($bienie_custom_item_part1, $null_entity);
	$player1.replaceInvItem($bienie_custom_item_part2, $null_entity);
	$player1.replaceInvItem($bienie_custom_item_part3, $null_entity);
	$player1.replaceInvItem($bienie_custom_item_part4, $null_entity);
	$player1.addInvItem($bienie_custom_item_complete);
}

bienie_custom_item_complete would need to exist somewhere in your map, i.e. your blue room.

 

 

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

    • datiswous

      I moved from Manjaro Linux (rolling release) to Linux Mint (LTS). One of the reasons was that I found the updates a bit too often and long. But now on Mint I get updates every day, although they're usually small updates.
      · 3 replies
    • JackFarmer

      "Hidden Hands: Vitalic Fever" - new update available including subtitles & compressed briefing video (thanks to @datiswous) and several fixes.
      · 0 replies
    • Wolfmond

      🇬🇧

      2025-04-20
      I'd like to track my level design progress a bit more often now, so I'm using the feed in my profile here.
      I've been working intensively on Springheel's YouTube course over the past few days. I'm currently up to lesson 8. There is so much information that needs to be processed and practiced. 
      I have started to create my own house. As I don't have the imagination to create a good floor plan, I grabbed a floor plan generator from Watabou and experimented with it. I chose a floor plan that I will modify slightly, but at least I now have an initial idea. 
      I used two guards as a measuring tape: The rooms are two guards high. It turned out that I can simply double the number of boxes in DarkRadiant in grid size 8 that are drawn in the floor plan. 
      I practiced the simplest things on the floor plan first. Drawing walls, cutting walls, inserting doors, cutting out frames, creating VisPortals, furnishing rooms.
      I have had my first success in creating a book. Creating a book was easier than I thought. I have a few ideas with books. The level I'm creating will be more or less a chill level, just for me, where I'll try out a few things. I don't have an idea for my own mission yet. I want to start small first.
      For the cellar, I wanted to have a second entrance, which should be on the outside. I'm fascinated by these basement doors from the USA, I think they're called Bilco basement doors. They are very unusual in Germany, but this type of access is sometimes used for deliveries to restaurants etc., where barrels can be rolled or lifted into the cellar. 
      I used two Hatch Doors, but they got completely disoriented after turning. I have since got them reasonably tamed. It's not perfect, but it's acceptable. 
      In the cellar today I experimented with a trap door that leads to a shaft system. The rooms aren't practically finished yet, but I want to continue working on the floor plan for now. I'll be starting on the upper floor very soon.

      __________________________________________________________________________________
      🇩🇪

      2025-04-20

      Ich möchte nun mal öfters ein bisschen meinen Werdegang beim Leveldesign tracken, dazu nutze ich hier den Feed in meinem Profil.
      Ich habe mich in den vergangenen Tagen intensiv mit dem Youtube-Kurs von Springheel beschäftigt. Aktuell bin ich bis zu Lektion 8 gekommen. Das sind so viele Informationen, die erstmal verarbeitet werden wollen und trainiert werden wollen. 

      Ich habe mich daran gemacht, ein eigenes Haus zu erstellen. Da mir die Fantasie fehlt, einen guten Raumplan zu erstellen, habe ich mir einen Grundrissgenerator von Watabou geschnappt und damit experimentiert. Ich habe mich für einen Grundriss entschieden, den ich noch leicht abwandeln werde, aber zumindest habe ich nun eine erste Idee. 

      Als Maßband habe ich zwei Wächter genommen: Die Räume sind zwei Wächter hoch. Es hat sich herausgestellt, dass ich in DarkRadiant in Gittergröße 8 einfach die doppelte Anzahl an Kästchen übernehmen kann, die im Grundriss eingezeichnet sind. 

      Ich habe bei dem Grundriss erstmal die einfachsten Sachen geübt. Wände ziehen, Wände zerschneiden, Türen einsetzen, Zargen herausschneiden, VisPortals erstellen, Räume einrichten.

      Ich habe erste Erfolge mit einem Buch gehabt. Das Erstellen eines Buchs ging leichter als gedacht. Ich habe ein paar Ideen mit Bücher. Das Level, das ich gerade erstelle, wird mehr oder weniger ein Chill-Level, einfach nur für mich, bei dem ich ein paar Sachen ausprobieren werde. Ich habe noch keine Idee für eine eigene Mission. Ich möchte erst einmal klein anfangen.

      Beim Keller wollte ich gerne einen zweiten Zugang haben, der sich außen befinden soll. Mich faszinieren diese Kellertüren aus den USA, Bilco basement doors heißen die, glaube ich. Diese sind in Deutschland sehr unüblich, diese Art von Zugängen gibt es aber manchmal zur Anlieferung bei Restaurants etc., wo Fässer dann in den Keller gerollt oder gehoben werden können. 
      Ich habe zwei Hatch Doors verwendet, die allerdings nach dem Drehen vollkommen aus dem Ruder liefen. Inzwischen habe ich sie einigermaßen gebändigt bekommen. Es ist nicht perfekt, aber annehmbar. 
      Im Keller habe ich heute mit einer Falltür experimentiert, die zu einem Schachtsystem führt. Die Räume sind noch quasi nicht eingerichtet, aber ich möchte erstmal am Grundriss weiterarbeiten. In Kürze fange ich das Obergeschoss an.



      · 2 replies
    • JackFarmer

      On a lighter note, thanks to my cat-like reflexes, my superior puzzle skills and my perfect memory, I was able to beat the remastered version of "Tomb Raider: The Last Revelation" in a new superhuman record time of 23 h : 35 m, worship me!
      · 3 replies
    • Goblin of Akenash

      My mapping discord if anyone is interested, its more of a general modding thing rather than just for TDM 
      https://discord.gg/T4Jt4DdmUb

       
      · 0 replies
×
×
  • Create New...