Editing Modding Tutorials/Assets

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 1: Line 1:
{{BackToTutorials}}<br/>
+
{{BackToTutorials}}
In this tutorial you will learn how to extract the base assets of RimWorld.
+
{{Credit|[[User:Alistaire|Alistaire]]}}<br/>
 +
 
 +
In this tutorial you will learn how to rip base game assets through the use of Unity Assets Explorer and XnConvert.
  
 
=Requirements=
 
=Requirements=
# [https://yadi.sk/d/m3vFWoQ3j62Cr UnityEx] to extract the contents of the unity .asset archives.
 
# or [https://github.com/SeriousCache/UABE Unity Assets Bundle Extractor]
 
# or [https://github.com/Perfare/AssetStudio]
 
 
=UnityEx=
 
To extract the original files from the Unity asset archives we will be using UnityEx which is compatible with Rimworld 1.0's Archives.<br/>
 
  
#Download UnityEx either by searching using your search engine of choice or [https://yadi.sk/d/m3vFWoQ3j62Cr via this link].
+
* You will want to have the following software installed:
#Place the UnityEX.exe somewhere easily locatable (I prefer to place it into the Rimworld Directory).
+
*# [http://zenhax.com/viewtopic.php?t=36 Unity Assets Explorer v1.3+] (there are newer versions available) for ripping Unity .assets files;
#Run UnityEX.exe and open the .asset file you would like to extract, for example; <pre>RimWorld\RimWorldWin64_Data\resources.assets</pre>
+
*# [http://www.xnview.com/en/xnconvert/#downloads XnConvert] for mass-converting .dds/.tex files to .png or whichever is your preferred format.<br/><br/>
#Extract the files you need. If you are extracting .tex files you can use "Extract with convert", this will convert the .tex files to .dds.
 
#The extracted files will be placed into a new folder in the same directory (Unity_Assets_Files) as the .asset file you have extracted.
 
  
=Unity Assets Bundle Extractor=
+
=Unity Assets Explorer=
To extract the original files from the Unity asset archives we will be using Unity Assets Bundle Extractor which is compatible with Rimworld 1.0's Archives.<br/>
+
To convert game assets from a Unity .assets file into their original file formats we can use Unity Assets Explorer.<br/>
 +
The download page of the software provides a tutorial however we will be listing the steps you have to take in this section as well.<br/><br/>
  
#Download Unity Assets Bundle Extractor by searching using your search engine of choice or [https://github.com/SeriousCache/UABE via this link].
+
# Download Unity Assets Explorer;
#Unzip it.
+
## Search the software or download [http://zenhax.com/viewtopic.php?t=36 here (v1.3)];
#Run AssetBundleExtractor.exe and open the .asset file you would like to extract, for example, <pre>RimWord\RimWorldWin64_Data\resources.assets</pre>
+
## ''Optional'': drag the executable just outside your RimWorld root folder or in a similar location for ease of access;
#Select the files you need/want. Then, click "Plugins" and select "Export to .png" or "Export sound". Note that this only works when you select files by type: so select only audio files or only textures.
+
## Take note of the location of the .exe file since the output folders will be generated in that same location,
#Click OK and select a folder for storage.
+
# Open Unity Assets Explorer and select source files;
 +
## Double-click the executable, allow it to run if such prompt comes up.
 +
## "Open Assets-file", select <pre>RimWorld******\RimWorld******_Data\resources.assets</pre>
 +
# Decide which assets you want to rip;
 +
#* '''Textures''': Sort by "TYPE", select all "Texture2D - ***" and Right-click, "Extract This Files"<sup>[sic]</sup>;
 +
#* '''Sounds''': Sort by "TYPE", select all "AudioClip" '''but no AudioClip - OGGVORBIS''' and Right-click, "Extract This Files"<sup>[sic]</sup>,
 +
#* ''The default settings for extraction are sufficient.''
 +
# Navigate towards your Unity Assets Explorer location, refresh with F5. A folder called "resources" should be created.<br/><br/>
  
=AssetStudio=
+
=XnConvert=
To extract the original files from the Unity asset archives we will be using AssetStudio which is compatible with Rimworld 1.5's Archives (older versions not tested).<br/>
+
The output format of Unity Assets Explorer for textures is .dds or .tex and all textures are flipped vertically. This can be fixed through the use of XnConvert.<br/><br/>
  
#Download AssetStudio by searching using your search engine of choice or [https://github.com/Perfare/AssetStudio via this link], if you are unsure which .NET runtime version you have installed net472 should be fine.
+
# Download XnConvert;
#Unzip it.
+
## Download [http://www.xnview.com/en/xnconvert/#downloads here];
#Run AssetStudioGUI.exe and open the asset file you would like to extract, for example with '''File -> Load file''', <pre>RimWord\RimWorldWin64_Data\resources.assets</pre> or for the DLC Asset Bundles with '''File -> Load folder''' <pre>RimWorld\Data\Anomaly\AssetBundles</pre>
+
# Open the software and select files to be converted;
#Switch to the Asset List tab.
+
## Double-click the executable or shortcut;
#Select the files you need/want. Then, right click and select "Export selected assets", works for audio and textures.
+
## "Add folder...", select the output '''folder''' containing all .dds and .tex files;
#Select a folder for storage and click open.
+
# Select actions to be performed per file;
 +
## Go to "Actions [0/0]", select "Add action>" -> "Image" -> "Mirror";
 +
## Tick "Vertical", make sure the action is "Enabled";
 +
## ''Optional'': look at the preview before and after tabs to make sure the correct actions are being applied,
 +
# Choose output format and directory;
 +
## "Output": choose "Folder", decide on the folder location;
 +
## "Filename": choose "{Filename}", optionally add "_out" or similar;
 +
## "Format": choose "PNG - Portable Network Graphics" or whichever file format you prefer;
 +
## ''Optional'': "After conversion" tick "Clear the 'Input' file(s)",
 +
# Click "Convert", wait;
 +
# The resource files are now fully converted to your format of choice and are present in the specified Output folder.<br/><br/>
  
 
=See also=
 
=See also=

Please note that all contributions to RimWorld Wiki are considered to be released under the CC BY-SA 3.0 (see RimWorld Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Template used on this page: