Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

How do I can *attach* a texture to a unit? #16

Open
AestroFidelium opened this issue Dec 26, 2021 · 1 comment
Open

How do I can *attach* a texture to a unit? #16

AestroFidelium opened this issue Dec 26, 2021 · 1 comment

Comments

@AestroFidelium
Copy link

AestroFidelium commented Dec 26, 2021

Yo, I imported the MotherShip model from Starcraft II, and I want to use it in Hots. There was no problems with the model itself, but with its textures. The edges are blue color (or red if the MotherShip is the enemy), the rest is all black.
I tried using "TextureSelectById" directly in "CActorUnit". However, without success.
Looking at other Units' code, I see examples like this:

However, where did Storm_Hero_Malthael_ come from and what does it even mean?
Using Brute Force I found a file named: CONTENT_KEY\8f\8fce0ec4eb50b45b61b938cea3d3fe38
There's a line in it.

dds:64:64:1:7:7:0:storm_hero_malthael_base_diff.dds:1024:1024:1:11:7:0:storm_hero_malthael_base_norm.

Perhaps this is exactly what is the texture for the hero, but it also means that it can not be changed using TryMode2.0 without upgrading the files of the game itself?

@AestroFidelium
Copy link
Author

image
I decided to take a picture of the MotherShip. Hots recognized where the texture should be to differentiate the ally from the enemy, as it happens in Starcraft

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

No branches or pull requests

1 participant