Skinzip

From Rigs of Rods Wiki

Jump to:navigation, search
Requires
0.38.42
or later

Walk-through

1. Step: add GUID to the truck you want to skin like this: http://www.rigsofrods.com/wiki/pages/Truck_Description_File#GUID. Ideally, all trucks should have one. You might need to clear the cache, so the GUID will be in the cache as well. You could generate some GUIDs there: http://www.guidgenerator.com/.


2. Step: create a file named "MySkinName.skin" (replace MySkinName with any String without spaces) with the following content:


Sarens Skin for Sennebogen 5500
{
	replaceTexture   = blansjaar41.jpg, blansjaar41_sarens.jpg
	preview          = 9c15cccf8a8dca392b84b7b778e3517139cef287.png
	description      = sarens skin for the sennebogen 5500
	authorName       = Rotexx
	AuthorID         = 39570
	GUID             = 90670430-695d-467b-8c91-dcb67a42633c
}

this skin was made by Rotexx whose Author ID is 39570. The preview image for the skin is 9c15cccf8a8dca392b84b7b778e3517139cef287.png, and the texture 'blansjaar41.jpg' is replaced with 'blansjaar41_sarens.jpg' upon loading of the skin.


3. Step: put all the files into a zip archive named "sarens.skinzip" and put that into the packs folder (NOT .skinzip.zip, just .skinzip). The .skinzip is important, as it will force RoR to always load this zip to parse the skin information from it.


4. Step: start the game and select the truck, it should have a valid GUID in the selection menu. When pressing enter, the skin selection GUI will be displayed.


More Information

Sarens Skin for Sennebogen 5500
{
	// this is a comment line, it is ignored when parsing. It always starts with //
	// replaceTexture = <original_texture.png> <skin_texture.png>
	replaceTexture   = blansjaar41.jpg, blansjaar41_sarens.jpg
	replaceTexture   = blansjaarkleur.jpg, blansjaarkleur_sarens.jpg
	replaceTexture   = blansjaarlogo5500.jpg, blansjaarlogo5500_sarens.jpg
	// replaceMaterial = <originalMaterialName> <skinMaterialName>
	// preview = <preview_image.png>
	preview          = 9c15cccf8a8dca392b84b7b778e3517139cef287.png
	// description = text that will show in the selectionWindow
	description      = sarens skin for the sennebogen 5500
	// AuthorName = <author name, no special characters>
	authorName       = Rotexx
	// AuthorID = <forum ID of the author>
	AuthorID         = 39570
	// GUID = <of the truck to which this skin fits>
	GUID             = 90670430-695d-467b-8c91-dcb67a42633c
}


replaceTexture defines the texture replacements, its first argument is the original texture name, the second argument is the texture name of the skin. Please note that those must be different, or you will get a file collision. You can use this line as much as you like.

// is the comment keyword

GUID will refer to the truck's GUID.

c) put all the files into a zip archive named "sarens.skinzip" and put that into the packs folder. The .skinzip is important, as it will force RoR to always load this zip to parse the skin information from it.

d) start the game and select the truck, it should have a valid GUID in the selection menu. When pressing enter, the skin selection GUI will be displayed.


How to test the fast way (how to use the attached files):

Download them all into your packs folder, do not unpack them. Delete any old "sennebogen5500" versions.


Example:

http://www.rigsofrods.com/attachment.php?attachmentid=212936&d=1309173653

http://www.rigsofrods.com/attachment.php?attachmentid=212937&d=1309173719

http://www.rigsofrods.com/attachment.php?attachmentid=212938&d=1309173719