Difference between revisions of "EasyReplace"

From Custom Mario Kart
Jump to navigation Jump to search
Line 3: Line 3:
 
|author= [[Rinorocks]]
 
|author= [[Rinorocks]]
 
|version= v1.0
 
|version= v1.0
|date of release= 2020-07-10
+
|date of release= 2020-07-11
 
|editors used= [[BrawlCrate]]
 
|editors used= [[BrawlCrate]]
|download 1= https://cdn.discordapp.com/attachments/683526699883036713/731306989547814972/EasyReplace.py
+
|download= https://cdn.discordapp.com/attachments/683526699883036713/731306989547814972/EasyReplace.py
 
}}
 
}}
  
 
== Overview ==
 
== Overview ==
'''EasyReplace''' is a plugin made by [[Rinorocks]], which streamlines [[custom track]] creation in [[BrawlCrate]]. The plugin works by modifying material names in the 3D modeling software with IDs that indicate changes that are automatically applied to the model upon import to [[BrawlCrate]]. The plugin is placed in the Loaders folder within the [[BrawlCrate]] folder and is run by right-clicking the mdl0 file and going down to plugins at the bottom on the menu and clicking Easy Replace. Please feel free to message me to add features and I will try my best to add them!
+
'''EasyReplace''' is a BrawlCrate plugin created by [[Rinorocks]]. The plugin works by modifying material names in the 3D modeling software with IDs that indicate changes that are automatically applied to the model upon import to BrawlCrate. It is placed in the "Loaders" folder within the BrawlCrate folder, and is run by right-clicking the MDL0 file, going down to plugins at the bottom on the menu and clicking "Easy Replace".
  
The Material ID Key - Add these to your materials to have them updated appropriately
+
The Material ID Key - Add these to your materials to have them updated appropriately:
 
* (sX) Shader (X is the shader integer)
 
* (sX) Shader (X is the shader integer)
 
* (1) Adds Transparent
 
* (1) Adds Transparent
Line 19: Line 19:
 
* (5-NameOfFinalTexture) Temporary Texture Update
 
* (5-NameOfFinalTexture) Temporary Texture Update
 
* (6-ShadowTextureName) Shadow Update
 
* (6-ShadowTextureName) Shadow Update
* (7-X) LODBias (X is the LODBias float *can be positive or negative*)
+
* (7-X) LODBias (X is the LODBias float; can be positive or negative)
  
 
Built-in Fixes
 
Built-in Fixes
* Alphabetically Sorts Materials
+
* Alphabetically sorts materials.
* Exports and Replaces the MDL0 to fix any errors
+
* Exports and replaces the MDL0 to fix any errors.
* Replaces files from the folder your imported model is from automatically
+
* Replaces files from the folder your imported model is from automatically.
* Name your files the name of your material pre id removal, like "(3)ice" not "ice"
+
* Name your files the name of your material pre-ID removal, like "(3)ice" and not "ice".
* Adds Shaders Automatically - Have a Subfolder in selected folder called "Shaders" and label the shader file as the number of the shader. The file for "Shader 0" will be called "0.mdl0shade"
+
* Adds Shaders Automatically - Have a subfolder in a selected folder called "Shaders" and label the shader file as the number of the shader. The file for "Shader 0" will be called "0.mdl0shade".
* Replaces Materials Automatically - Have a Subfolder in selected folder called "Materials" and label the material file as the number of the shader. The file for "(3)ice" will be called "(3)ice.mdl0mat"
+
* Replaces Materials Automatically - Have a subfolder in a selected folder called "Materials" and label the material file as the number of the shader. The file for "(3)ice" will be called "(3)ice.mdl0mat".
 
* Example:
 
* Example:
 
  * Imported Model Folder                    C:\Folder\course.dae
 
  * Imported Model Folder                    C:\Folder\course.dae
Line 34: Line 34:
  
 
Plugin Use Example:
 
Plugin Use Example:
* A material with the name "(s1)(6-rockshadow)rock" will have its shader set to "Shader 1", it will have another Texture Reference added and linked to "rockshadow", and the UV will be set to the second TexCoord.
+
* A material with the name "(s1)(6-rockshadow)rock" will have its shader set to "Shader 1", it will have another texture reference added and linked to "rockshadow", and the UV will be set to the second TexCoord.
  
 
== Media ==
 
== Media ==
[[File:Use.PNG|400px|This shows the location of the Easy Replace button]]
+
[[File:EasyReplace Location Usage.PNG|400px|thumb|none|This shows the location of the Easy Replace button]]
  
 
== Version History ==
 
== Version History ==
Line 45: Line 45:
 
! Information
 
! Information
 
|-
 
|-
| [https://cdn.discordapp.com/attachments/683526699883036713/731306989547814972/EasyReplace.py v1.0]
+
| v1.0
| 2020-07-10
+
| 2020-07-11
|
+
| First release
First Release
 
 
|}
 
|}
  
 
{{User-Rinorocks-Link}}
 
{{User-Rinorocks-Link}}
 
[[Category:Software]]
 
[[Category:Software]]

Revision as of 02:35, 11 July 2020

EasyReplace
Author: Rinorocks
Version: v1.0
Date of latest version: 2020-07-11
Editors used: BrawlCrate
Download: Discord

Overview

EasyReplace is a BrawlCrate plugin created by Rinorocks. The plugin works by modifying material names in the 3D modeling software with IDs that indicate changes that are automatically applied to the model upon import to BrawlCrate. It is placed in the "Loaders" folder within the BrawlCrate folder, and is run by right-clicking the MDL0 file, going down to plugins at the bottom on the menu and clicking "Easy Replace".

The Material ID Key - Add these to your materials to have them updated appropriately:

  • (sX) Shader (X is the shader integer)
  • (1) Adds Transparent
  • (2) Cull-None
  • (3) Semi-Transparent
  • (4) Draw Pass
  • (5-NameOfFinalTexture) Temporary Texture Update
  • (6-ShadowTextureName) Shadow Update
  • (7-X) LODBias (X is the LODBias float; can be positive or negative)

Built-in Fixes

  • Alphabetically sorts materials.
  • Exports and replaces the MDL0 to fix any errors.
  • Replaces files from the folder your imported model is from automatically.
  • Name your files the name of your material pre-ID removal, like "(3)ice" and not "ice".
  • Adds Shaders Automatically - Have a subfolder in a selected folder called "Shaders" and label the shader file as the number of the shader. The file for "Shader 0" will be called "0.mdl0shade".
  • Replaces Materials Automatically - Have a subfolder in a selected folder called "Materials" and label the material file as the number of the shader. The file for "(3)ice" will be called "(3)ice.mdl0mat".
  • Example:
* Imported Model Folder                     C:\Folder\course.dae
* Material Folder where files are pulled    C:\Folder\Materials\(3)ice.mdl0mat
* Shader Folder where files are pulled      C:\Folder\Shaders\0.mdl0shade

Plugin Use Example:

  • A material with the name "(s1)(6-rockshadow)rock" will have its shader set to "Shader 1", it will have another texture reference added and linked to "rockshadow", and the UV will be set to the second TexCoord.

Media

This shows the location of the Easy Replace button

Version History

Version Date of release Information
v1.0 2020-07-11 First release
By the same author: Rinorocks

Custom Tracks:
Icestone ShaftColor CircuitMine Shaft

Software:
MKWiiCTC