Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Skinzip file replacing whole material file not working #2824

Closed
DarthCainRor opened this issue Nov 19, 2021 · 2 comments · Fixed by #2873
Closed

Skinzip file replacing whole material file not working #2824

DarthCainRor opened this issue Nov 19, 2021 · 2 comments · Fixed by #2873
Labels

Comments

@DarthCainRor
Copy link

So I'm in the process of trying to upload some old mods and their respective skinzips from the old forum when I found something rather curious.

The skinzip files for the FLK-1500, uses the .skin file to replace complete .material files instead of individual material names. In doing so, it causes the skins to no longer work, as this (probably) wasn't an intended use for them, as its something I've not seen before.

How to replicate:

Download the crane and it's skins (you have to unzip this, as there are many zips inside), you only need to drag one of the skinzips in your mods folder to test

Launch the game and attempt to spawn AinTech FLK-1500 108m

No skin selection pops up

What is expected:

Skin selection window pops up
image

Allows you to load selected vehicle skin.

image

@DarthCainRor
Copy link
Author

Mentioned this in discord, but it doesn't actually solve the issue, just fixes a parsing error the old mod had.

The same crane skin as above looks like this in game as of now:
screenshot_2022-03-21_02-04-30_1

@tritonas00 tritonas00 reopened this Mar 21, 2022
@ohlidalp
Copy link
Member

ohlidalp commented Mar 22, 2022

@DarthCainRor

I looked into several older versions of the source code, all the way to 2009, and I conclude that the skins of this crane could never have worked. To be specific, the replaceTexture entries worked, but the replaceMaterial entries just had zero effect. Also, all the .skin files I reviewed contained all the same replaceMaterial lines, just different replaceTexture lines, which further suggests they are irellevant.

One thing that did change is resource management... newer versions will only load texture replacements from the .skinzip, while older versions may have mixed everything together. I suspect your skinzips may contain files with same names but different content, causing conflicts with random outcome. Please try merging the crane + all the skins to single directory so that equivalent files cancel each other, then try loading one specific skin and verify that the visible textures match what the .skin is actually referencing.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants