Post by Observe » Sat, 16. Nov 13, 02:28

X Rebirth - Modding Guide

Installing Mods (manually)

Preface

\extensions

Important

Notes

Contents

Suggested software and reference materials

Examples

Part One: Extensions, Images and Effects

Example 1: Create a mod extension

extensions

extensions

Code: Select all X Rebirth extensions osr_universe assets index libraries maps md

content.xml

osr_universe

content.xml

Example 2: Change a material effect color

material_library.xml

extensions\osr_universe\libraries

material_library.xml

material_libary.xml

Code: Select all <material name="highway_tube" shader="shaderfx\high\XU_highway_tube.fx" blendmode="additive" preview="none"> <properties> ..... <property type="Color" name="color_tint" r="180" g="200" b="120" a="255" value="(color 180 200 120)"></property> ...... </properties> <variations></variations> </material>

material_libary.xml

Code: Select all <diff> <!-- Changes Tube Color from yellow to blue --> <replace sel="/materiallibrary/collection[@name='effects']/material[@name='highway_tube']/properties/property[@name='color_tint']"> <property type="Color" name="color_tint" r="120" g="124" b="200" a="255" value="(color 33 13 98)"></property> </replace> </diff>

material_libary.xml

Example 3: Create a custom billboard advertisement

\assets\fx\textures\ads\ads

rename *.* *.dds

ads_osr_01.dds

ads_osr_01.gz

\extensions\osr_reborn\assets\fx\textures\ads

libraries\material_library.xml

Code: Select all <!-- Replace ads-plamacells with Observe Space Research advertisement --> <replace sel="/materiallibrary/collection[@name='ads']/material[@name='ads_plasmacells']/properties/property[@name='diffuse_map']"> <property type="BitMap" name="diffuse_map" value="extensions\osr_universe\assets\fx\textures\ads\ads_osr_01"></property> </replace>