washy
Chieftain
- Joined
- Feb 9, 2015
- Messages
- 60
I was struggling for some hours to get everything rigth for adding new assets, so i made a recopilation of the steps i take
1/ Install Git: https://gitforwindows.org/
2/ Install unity: https://unity3d.com/unity/whats-new/2020.3.25
3/ You need this only if you want to see and edit the game Assets. You Can skip 3 and 4.
Install AssetStudio: https://github.com/Perfare/AssetStudio/releases Download the zip last version and unzip
This require downloading and installing:
.NET Framework 4.7.2 / https://dotnet.microsoft.com/en-us/download/dotnet-framework/net472
.NET Desktop Runtime 5.0 / https://dotnet.microsoft.com/en-us/download/dotnet/5.0
.NET Desktop Runtime 6.0 / https://dotnet.microsoft.com/en-us/download
4/ Open AssetStudioGUI and go to file/load folder and open: (Steam\Steamapps\Common or Epic Games)\Old World\OldWorld_Data and then export everything to a folder (This are the game assets)
5/ Create a new Unity project and ensure it is in the 2020.3.25f1 version
6/ Install the Asset Bundle Browser:
-Open the Unity [Package Manager]((https://docs.unity3d.com/2020.1/Documentation/Manual/upm-ui.html) in your Project (menu: Windows > Package Manager).
-Click the + (Add) button at the top, left corner of the window.
-Choose Add package from git URL…
-Enter https://github.com/Unity-Technologies/AssetBundles-Browser.git as the URL
-Click Add.
7/ Add TextMeshPro essential resources to unity

8/ Import your assets to Unity

9/ Change the texture type to 2D And UI

10/ Select a texture and create a TextMesh Pro Sprite Asset

11/ Fix some values, here as far i have experienced you have to put the BX to 0 in all the cases, and make BY 3/4 of the total Heigth
And the scale depends, in the yields 1.2 its ok, but for the projects you need 2.5, maybe im making the icons too small (104*104 to proyects and 64*64 for resources)

12/ When you have all the files ready, open the Asset Bundle Browser, select them and drop them in the Bundle, create only one bundle for all the files

13/ Select the Assets folder in your mod and build. (Select Force rebuild and Standar Compression)

-Good Luck
9/ Create Asset-add.xml with this line
10/ Create spriteGroup-append.xml with this line
Im not sure about the tag here for all the different icons, just go to the original spriteGroup and check what they re using
11/ Add your asset to the game: For example create yield-add.xml with
If i can improve something, please tell me
If are strating from zero you also need a code editor, you can use notepad, but i use Visual Studio its very helpful https://code.visualstudio.com/Download
And a image editor, I use Paint.Net, its free and very easy tu use https://www.getpaint.net/download.html
1/ Install Git: https://gitforwindows.org/
2/ Install unity: https://unity3d.com/unity/whats-new/2020.3.25
3/ You need this only if you want to see and edit the game Assets. You Can skip 3 and 4.
Install AssetStudio: https://github.com/Perfare/AssetStudio/releases Download the zip last version and unzip
This require downloading and installing:
.NET Framework 4.7.2 / https://dotnet.microsoft.com/en-us/download/dotnet-framework/net472
.NET Desktop Runtime 5.0 / https://dotnet.microsoft.com/en-us/download/dotnet/5.0
.NET Desktop Runtime 6.0 / https://dotnet.microsoft.com/en-us/download
4/ Open AssetStudioGUI and go to file/load folder and open: (Steam\Steamapps\Common or Epic Games)\Old World\OldWorld_Data and then export everything to a folder (This are the game assets)
5/ Create a new Unity project and ensure it is in the 2020.3.25f1 version
6/ Install the Asset Bundle Browser:
-Open the Unity [Package Manager]((https://docs.unity3d.com/2020.1/Documentation/Manual/upm-ui.html) in your Project (menu: Windows > Package Manager).
-Click the + (Add) button at the top, left corner of the window.
-Choose Add package from git URL…
-Enter https://github.com/Unity-Technologies/AssetBundles-Browser.git as the URL
-Click Add.
7/ Add TextMeshPro essential resources to unity
8/ Import your assets to Unity
9/ Change the texture type to 2D And UI
10/ Select a texture and create a TextMesh Pro Sprite Asset
11/ Fix some values, here as far i have experienced you have to put the BX to 0 in all the cases, and make BY 3/4 of the total Heigth
And the scale depends, in the yields 1.2 its ok, but for the projects you need 2.5, maybe im making the icons too small (104*104 to proyects and 64*64 for resources)
12/ When you have all the files ready, open the Asset Bundle Browser, select them and drop them in the Bundle, create only one bundle for all the files
13/ Select the Assets folder in your mod and build. (Select Force rebuild and Standar Compression)
-Good Luck
9/ Create Asset-add.xml with this line
Code:
<Root>
<Entry>
<zType>ASSET_SPRITE_SHEET_MY_YIELD</zType>
<zAsset>myyieldbundle/YIELD_MY_YIELD</zAsset>
</Entry>
</Root>
10/ Create spriteGroup-append.xml with this line
Code:
<Root>
<Entry>
<zType>SPRITE_GROUP_YIELD_ICONS</zType>
<aeSpriteSheets>
<zValue>ASSET_SPRITE_SHEET_MY_YIELD</zValue>
</aeSpriteSheets>
</Entry>
<Entry>
<zType>SPRITE_GROUP_TRAIT_ICONS_SMALL</zType>
<aeSpriteSheets>
<zValue>ASSET_SPRITE_SHEET_MY_YIELD</zValue>
</aeSpriteSheets>
</Entry>
</Root>
11/ Add your asset to the game: For example create yield-add.xml with
Code:
<Root>
<Entry>
<zType>YIELD_WOOD</zType>
<zIconName>YIELD_MY_YIELD</zIconName>
</Entry>
</Root>
If i can improve something, please tell me
If are strating from zero you also need a code editor, you can use notepad, but i use Visual Studio its very helpful https://code.visualstudio.com/Download
And a image editor, I use Paint.Net, its free and very easy tu use https://www.getpaint.net/download.html
Last edited: