The resource paths in the tutorial below have changed:
And now back to the tutorial by h34dl4g.
First of all, I have to admit that my English is not the best so hope you guys are blind enough to miss the mistakes.
The reason why I'm writing this tutorial is rather simple: I nearly killed myself, trying to change the resource icon since nearly no one knows how to change them. Even in the German forums nobody knew it, but we have to admit that blizzard failed at forgetting the implementation in the data editor.
How do we change the Icon?-
Since the Data-Editor doesn't have to feature to change the resource icons, we have to use workarounds (what this tutorial is about).
There are two ways to change the resource icon:-
1. We change the file-paths our game searches for.
2. We import our new icons and replace the old ones by using the same file-path.
Lets forget the second way since it doesn't work probably.
How to change the file-paths our game searches for?-
We have to create a new text-file with the name "Assets"
What is this text-file about?
It saves the file-paths our game searches for, when creating the UI-icons in the game.
Small list of known UI-Textures:-
Default Starcraft2 "Assets.txt" can be found in "patch.sc2archive/mods/liberty.sc2mod/base.sc2data/GameData/Assets.txt"
You can open .sc2archive files using any MPQ editor.
But since I don't want to change all of these textures I picked three of them (Mineral, Gas, Supply):
As you can see, we have three paths for Minerals, three paths for Gas and three paths for supply.
Three for each race.
Now that we chose our 9 paths (3 resources), we have to modify the path so that we can use custom textures (icons) on them:
For example (mineral):
As you can see, we add a "custom" in front of the word "mineralicon".
We do the same with all other texture-paths we want to change.
Now we add these four lines that we just created to our "Assets.txt".
Basically it should look like this:
When you are finished with creating a list of file-paths you want to change, than just save and close it.
Our next step is to import our "Assets.txt".
For that, we use our import manager and import the file with the file-path:
"Base.SC2Data\GameData\" as I marked with the red frame.
Now that we changed the paths our game searches for, we have to chose which icon we want to use.
I chose a lumber-icon for my new mineral symbol (left).
We have to dublicate this icon now three times and rename it matching for the three races (right).
After we finished creating our three icons, we have to import them with the right paths.
The paths we chose to import our icons is:
"Base.SC2Data\Assets\Textures\" as I marked with the red frame.
Imported it should look like this:
So what we basically did was to say our game via Asset.txt that the mineral icon is not on place a but instead it is at place b.
Hope the tutorial was clear enough for you.
And yeah its so fucking complicated just to change the resource icons.
Special thanks to Blizzard at this point.
It looks ingame like this:
The big thanks goes to A1win, Helral and some other guys who published this workaround and helped me with it.
1. Click on the top frame at "Module"
2. Click at the Module section at "Text" (Or just press F8)
3. Select at Data-Source at "all"
4. Now you look "only" for the ID in the list. The ID for the resources is:
UI/Resource.... (Bottom of the list)
First there will be the resource names after that there will be the tool-tips listed, you can change them on the right side.
2 more resources types arent used in the game like Custom Resource and Terrazine. You can change name, tooltip for them and it would be like other minerals.
Assets.txt (What is written in the file):
I can't get my custom supply icon to work. It always display the default supply icon.
This is how my assets.txt file looks like:
I have opened Left to Die map in the editor, which is supposed to have custom items. But it doesn't display its custom items either. Is there something bugged since patch 1.3??
Rollback Post to RevisionRollBack
Play CoreFight - Play CoreFight - Play CoreFight - Play CoreFight - Play CoreFight