Git Product home page Git Product logo

skin-manager's People

Contributors

cybexgs avatar insprill avatar katycat5e avatar mspielberg avatar svetlozarvalchev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

skin-manager's Issues

name field is not set on replacement textures

I'm working on a mod that adds lights to the locomotives, and I'm working to add a reversing light to the steam loco as part of this. I'd like the reversing light to inherit the skin from the locomotive (the model is literally copied from the SH282, so it's perfect for this), but I've discovered that the name field is not set on the skin textures.

This is where the texture is created afaik:
https://github.com/SvetlozarValchev/dv-skin-manager-mod/blob/master/SkinManagerMod/Main.cs#L324
I think it would be sufficient to add texture.name = diffuse.name; there (etc for the other texture types)

There may be more related info here: https://discordapp.com/channels/332511223536943105/560262776673796157/756439002336329779

Feature request: Reload particular skin

Not sure how feasible this is, but when doing rapid-fire skin editing (i'm incompetent at blender etc, so i edit textures in gimp and then reload to see if it looks okay) it can get tedious to do the whole "ctrl-f10 -> reload all textures -> wait -> reapply skin with radio" shtick.

it'd be neat if there was a comms radio mode (maybe enabled in settings or something?) that when used on a car, reloads the texture for the currently applied skin and then re-applies it.

Help prevent data loss when using "Install Unzipped"

The Install Unzipped button clears the selected folder before installing the skins, but does not check if the selected folder is reasonable, if the files to be deleted are reasonable, or warn the user that files will be deleted, and no guidance/documentation is provided as to what folder should be selected.

Fortunately I only wiped my UMM Mods folder so no data was lost, but another user may not be so lucky.

Reskin mode doesn't change DE2 doors

The reskin mode that Skin Manager adds to the comms radio isn't reskinning the DE2 doors properly. Curiously, this doesn't happen when choosing the default skin.

20230707232008_1

Workaround is to save and reload.

Hidden wheels and axles don't get reskinned

This mod doesn't seem to reskin any hidden axles and wheels. Normally this isn't an issue, but the Rearranged S282 mod creates hidden axles that should still be reskinned.

For example, if you're using a 2-8-2 wheel arrangement on the S282, the fifth drive wheels are hidden and won't be reskinned. If you then reskin the locomotive, then switch to a 2-10-2 wheel arrangement, the fifth drive wheels might show up with the previous skin.

Naturally, this bug occurs with the leading and trailing axles too.

I could fix this in Rearranged S282 with some kind of harmony patch, but it seems easiest if it's patched in Skin Manager.

It seems like all that needs to change is this line:
foreach (var renderer in objectRoot.GetComponentsInChildren<MeshRenderer>())
into this:
foreach (var renderer in objectRoot.GetComponentsInChildren<MeshRenderer>(true))

This bug happens because Component.GetComponentsInChildren() does not search inactive GameObjects unless you set the includeInactive parameter to true.

Would this be a reasonable change?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.