Jump to content
The Dark Mod Forums

Skin Creation Help


Recommended Posts

I have been attempting to create a skin for a model. No matter how closely I follow the wiki tutorial, I can't seem to get it to work.

Here is a pic of the model directory, the skin directory, and the skin file I wrote.

 

image.png.71ed9abfd0e2eb6b9d18493bb2eee603.png

image.png.3b0a1765563412affc231e55ac307ac2.png

image.png.feea78072205f884c5f231ea23ffb80c.png

 

I even tried to make a standalone copy in the skins folder, in case DR doesn't like digging through folders when pulling up skins.

 

image.png.bde774a62fd6156c270fdfc940309da8.png

 

Am I missing something? Am I running into problems because skins cannot be made for .ase files?

 

 

Edited by Uncertain Title
File Type Correction
Link to comment
Share on other sites

5 hours ago, Uncertain Title said:

I have been attempting to create a skin for a model. No matter how closely I follow the wiki tutorial, I can't seem to get it to work.

Here is a pic of the model directory, the skin directory, and the skin file I wrote.

 

image.png.71ed9abfd0e2eb6b9d18493bb2eee603.png

image.png.3b0a1765563412affc231e55ac307ac2.png

image.png.feea78072205f884c5f231ea23ffb80c.png

 

I even tried to make a standalone copy in the skins folder, in case DR doesn't like digging through folders when pulling up skins.

 

image.png.bde774a62fd6156c270fdfc940309da8.png

 

Am I missing something? Am I running into problems because skins cannot be made for .ase files?

 

 

A couple of things you can try (yes .ase files should work):

  • I'm no expert with models, but do you have a field in the .ase file that looks something like this: *MATERIAL_NAME "textures\darkmod\plaster\plaster01" ?  If the material name there isn't exactly as you specify in the skin it won't get replaced
  • Check the console log in DarkRadiant to see if you have any errors when loading the skin.  It's there in the 'console' tab.
  • Like 1

TDM Community Github: https://github.com/thedarkmodcommunity

My fan missions: The Hare in the Snare, Part 1

The Lieutenant Series: In Plain Sight  High Expectations Foreign Affairs

Link to comment
Share on other sites

I think you need to be more specific. What exactly "does not work"? Does the skin not show up in DR? Does it show up but crash DR? Does it appear but replace the wrong texture, or attach to the wrong model?

From the screenshot of the skin file in Notepad it looks like you have a space in the model name, but I'm not sure if that's the cause of the problem or just a cosmetic artifact of the screenshot.

  • Like 2
Link to comment
Share on other sites

17 hours ago, Frost_Salamander said:

A couple of things you can try (yes .ase files should work):

  • I'm no expert with models, but do you have a field in the .ase file that looks something like this: *MATERIAL_NAME "textures\darkmod\plaster\plaster01" ?  If the material name there isn't exactly as you specify in the skin it won't get replaced
  • Check the console log in DarkRadiant to see if you have any errors when loading the skin.  It's there in the 'console' tab.

There are no console errors when I reload skins.

I did double check and sure enough, one of the texture directories was incorrect. I went ahead and added it.

 

 

11 hours ago, OrbWeaver said:

From the screenshot of the skin file in Notepad it looks like you have a space in the model name, but I'm not sure if that's the cause of the problem or just a cosmetic artifact of the screenshot.

 

 

Ah, of COURSE there would be a blank space somewhere...alright, I went ahead and fixed it.

image.png.193491dd5d884c289e1ddb0834fa5c1b.png

 

 

While both of your observations were correct, it unfortunately still doesn't load the new skin. I've attempted to reload it with no success.

11 hours ago, OrbWeaver said:

I think you need to be more specific. What exactly "does not work"? Does the skin not show up in DR? Does it show up but crash DR? Does it appear but replace the wrong texture, or attach to the wrong model?

Yeah I suppose that would be important to explain lol.

When I go into the model view, and click "Change Skin", it doesn't display a new skin.

image.png.fdb5ba3e46d4cacdb7db6340e4c0a09f.png

 

The console log confirms this, as before and after me making changes/reloading the skin, it only finds the same amount of skins.

 

image.png.f7fdd9cce70c36e4ecb9184f89b1e4a4.png

Link to comment
Share on other sites

Did you set Windows to show file extensions? Otherwise a file named blabla.skin.txt shows in Windows as blabla.skin

Edit: Nevermind, the screenshot shows it's a SKIN file.

In general I would recomend using Notepad++ as text editor instead.

 

I use these problem cases to (re)learn how to do things, but after copying the file and folder structure from your example with an other model, in my case the skin showed up fine..

Although putting the skin in a subfolder doesn't work for me.

Edited by datiswous
  • Like 1
Link to comment
Share on other sites

17 hours ago, datiswous said:

I use these problem cases to (re)learn how to do things, but after copying the file and folder structure from your example with an other model, in my case the skin showed up fine..

Although putting the skin in a subfolder doesn't work for me.

That's what I was afraid of.

After making sure the file I had in the base skins directory was correct, I managed to find it in the sea of skins.

 

image.png.bd5f4ae9f01e26935d27301bab955a78.png
 

Well at least now it shows up. Thanks for all the help everyone.

Now to figure out how to put skins into folders...

Link to comment
Share on other sites

Posted (edited)

Alright, new problem with making these skins (or should I make a new thread about this?)

Why are my skinned models coming up black?

Here is my updated code for a simple skin.

image.png.f3510e39a51436fd017994e877878890.png

image.png.6916e0826ff26b67c3e48dca1af1f0b6.png

 

And here is the model in the skin editor, changed to its creamy, plaster version.

image.png.e2431afe64a45039602fbc5b98d79642.png

 

Yet for some reason, all of my skins are pure black.

image.png.c46dc6c8bf51696ffdce0fc2e6702e1b.png

The wiki says this is caused by the editor not finding the skin definition, and that there are spelling errors somewhere. I am not sure what this means, though, since all of my directory paths are spelled right (otherwise, how would the skin editor display them perfectly fine?)

Does the name of the file have to match the declared skin name?

Edited by Uncertain Title
Misquoted Wiki
Link to comment
Share on other sites

5 hours ago, datiswous said:

Do you see an error/warning in the console?

Nothing regarding the skin, though I didn't have much time to look this morning.

5 hours ago, datiswous said:

You could upload it so someone could take a look. Just an idea.

Sure! The map is "talents", and you should be able to find the proper models/skins from the post above.

File size was too big, despite compression.

Here's a file containing the models and skins. You should be able to find the related ones using the directories in previous posts.

 

models and skins.7z

Link to comment
Share on other sites

Your skins don't have a model specified in the skin code. How do you think it works that way?

Edit:

The reason this happens (I think) is that the skin name cannot start with a number.

skin one_brick_teal_blue
{

model models/title_models/walls/wooden_frame/straight_frame/straight_frame_wall_128_x_128.ase

textures/darkmod/plaster/plaster_01 textures/darkmod/stone/brick/blocks_tealblue_dark
}

testskins(2024-04-0917-44-04)(-335.2171-59.75).thumb.jpg.77cddc7d0fbf5c58472651a60103dfe1.jpg

Edited by datiswous
  • Like 1
Link to comment
Share on other sites

 

13 hours ago, datiswous said:

Edit:

The reason this happens (I think) is that the skin name cannot start with a number.

skin one_brick_teal_blue
{

model models/title_models/walls/wooden_frame/straight_frame/straight_frame_wall_128_x_128.ase

textures/darkmod/plaster/plaster_01 textures/darkmod/stone/brick/blocks_tealblue_dark
}

 

AHA, you're indeed correct! Changing the skin names so they start with "a1"' did the trick! 

 

13 hours ago, datiswous said:

Your skins don't have a model specified in the skin code. How do you think it works that way?

 

This was actually a successful experiment I was trying out!

The wiki goes into some detail about making "general skins" that can affect all models.

image.png.31646101d6bef4f927da8fcdc3ab7093.png

 

My hope was that, if I made two models using the same skins, then I could just write a single skin file that would change all of them!

 

For example, since "Straight Frame" and "V-Frame" models both use plaster_01 as their main background...

image.png.1872d31cc3e0d32ebe4cbf5bb1ad4b35.png

...all I have to do is make a general skin to change that specific plaster texture...

image.png.199d3bbb2711fece132c124af2c59e93.png

...and then any of the "V-Frame" and "Straight Frame" models can have different backgrounds!

image.png.f1384f758db6cfe673e76ebd387ca5be.png

 

It's not a perfect system, as some skins just don't contrast well with the wooden beams, but I should still be able to get a LOT more out of my models now!

Link to comment
Share on other sites

2 hours ago, Uncertain Title said:

 

AHA, you're indeed correct! Changing the skin names so they start with "a1"' did the trick! 

 

 

This was actually a successful experiment I was trying out!

The wiki goes into some detail about making "general skins" that can affect all models.

image.png.31646101d6bef4f927da8fcdc3ab7093.png

 

My hope was that, if I made two models using the same skins, then I could just write a single skin file that would change all of them!

 

For example, since "Straight Frame" and "V-Frame" models both use plaster_01 as their main background...

image.png.1872d31cc3e0d32ebe4cbf5bb1ad4b35.png

...all I have to do is make a general skin to change that specific plaster texture...

image.png.199d3bbb2711fece132c124af2c59e93.png

...and then any of the "V-Frame" and "Straight Frame" models can have different backgrounds!

image.png.f1384f758db6cfe673e76ebd387ca5be.png

 

It's not a perfect system, as some skins just don't contrast well with the wooden beams, but I should still be able to get a LOT more out of my models now!

If you have suggestions to make it more clear and easy on the wiki please let us know!

  • Like 1

"Einen giftigen Trank aus Kräutern und Wurzeln für die närrischen Städter wollen wir brauen." - Text aus einem verlassenen Heidenlager

Link to comment
Share on other sites

It's strange this is not mentioned on the wiki page.. I do find it logical in program logic.

 

 

5 hours ago, Uncertain Title said:

This was actually a successful experiment I was trying out!

The wiki goes into some detail about making "general skins" that can affect all models.

image.png.31646101d6bef4f927da8fcdc3ab7093.png

 

My hope was that, if I made two models using the same skins, then I could just write a single skin file that would change all of them!

Cool, didn't think of that. I wonder if it's possible to do something like this:

skin one_brick_teal_blue
{

model models/title_models/walls/wooden_frame/straight_frame/*

textures/darkmod/plaster/plaster_01 textures/darkmod/stone/brick/blocks_tealblue_dark
}

So you can make folders of specific models that you can skin in the same way.

Edited by datiswous
  • Like 1
Link to comment
Share on other sites

18 hours ago, datiswous said:

It's strange this is not mentioned on the wiki page.. I do find it logical in program logic.

 

 

Cool, didn't think of that. I wonder if it's possible to do something like this:

skin one_brick_teal_blue
{

model models/title_models/walls/wooden_frame/straight_frame/*

textures/darkmod/plaster/plaster_01 textures/darkmod/stone/brick/blocks_tealblue_dark
}

So you can make folders of specific models that you can skin in the same way.

I'm sure it's possible! I couldn't get it working on my end (typical at this point lol). I'll have to try some other time; I've spent a LONG time trying to get this to work rather than actually building.

 

18 hours ago, datiswous said:

Btw. if you are looking into how skins work, I thought it's good to also mention x-rays.

AH THANK YOU!!! I was actually hoping to implement some X-Ray stuff into my map!

Link to comment
Share on other sites

I don't think any declaration names can start with numbers; I doubt this is something specific to skins. This is similar to the rule in most programming languages where you can have a variable called "a1" but not "1a".

However you can organise skins into virtual folders using forward slashes, and individual folder elements can start with numbers. The example in the D3 documentation is "skins/models/weapons/3rox".

  • Like 1
Link to comment
Share on other sites

13 hours ago, OrbWeaver said:

I don't think any declaration names can start with numbers; I doubt this is something specific to skins. This is similar to the rule in most programming languages where you can have a variable called "a1" but not "1a".

However you can organise skins into virtual folders using forward slashes, and individual folder elements can start with numbers. The example in the D3 documentation is "skins/models/weapons/3rox".

Are you supposed to know that rule beforehand as an artist? ;)

"Einen giftigen Trank aus Kräutern und Wurzeln für die närrischen Städter wollen wir brauen." - Text aus einem verlassenen Heidenlager

Link to comment
Share on other sites

19 hours ago, OrbWeaver said:

However you can organise skins into virtual folders using forward slashes, and individual folder elements can start with numbers. The example in the D3 documentation is "skins/models/weapons/3rox".

I had tried that before, but couldn't seem to get DR to recognize the skins. I may have just been missing something.

 

19 hours ago, OrbWeaver said:

I don't think any declaration names can start with numbers; I doubt this is something specific to skins. This is similar to the rule in most programming languages where you can have a variable called "a1" but not "1a".

Even as a programmer, I tend to forget a lot of stuff when I'm tired 😅

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

    • The Black Arrow

      Happy birthday to me!
      Yes, today's my birthday and as much as I want to play The Dark Mod, I won't until it's late Autumn, where it should be a bit chilly in my place and there's some wind too.
      For now, it's time to enjoy my birthday, if any of you want to play a great fan mission in my honour...Well that's asking too much, just play the mission because it's fun, not because of me, enjoy it yourself! 💪
      · 4 replies
    • nbohr1more

      New texture wiki article created: https://wiki.thedarkmod.com/index.php?title=Creating_textures_from_Ornate_Photos
      · 2 replies
    • Xolvix

      Took a break from TDM until I got my backlog under control. It's been months and it's still not "under control". Damnit.
      · 4 replies
    • Ansome

      I sleep well at night knowing the player will never see the absolute nightmare that is my sealing brushwork outside the playable area. Only the pointfile can judge me now.
      · 4 replies
    • JackFarmer

      Somehow I admire the fact that the material from Dune has now been filmed for the third time. Personally, I could never do much with the material, but as a child of the 80s, I of course know the David Lynch movie...and that movie was at least funny!
      · 2 replies
×
×
  • Create New...