Commit Graph

69 Commits (master)

Author SHA1 Message Date
Andrew Cassidy 46c068f4a7
allow for multiple material modification
Allow ModuleRestockLinkedMesh to reference multiple materials including disabled ones
5 years ago
Andrew Cassidy d43d5bdb32
Add ModuleRestockLinkedMesh
Extends the stock CModuleLinkedMesh used on struts and pipes to make pipe textures repeat instead of stretch when a pipe is extended beyond its default length
5 years ago
Andrew Cassidy ff1d3be11a
Keep texture centered when extending pipes
(this will be important later)
5 years ago
Andrew Cassidy 2bc203ee64
allow for multiple material modification
Allow ModuleRestockLinkedMesh to reference multiple materials including disabled ones
5 years ago
Andrew Cassidy 2d9249d001
Add ModuleRestockLinkedMesh
Extends the stock CModuleLinkedMesh used on struts and pipes to make pipe textures repeat instead of stretch when a pipe is extended beyond its default length
5 years ago
blowfish f26d4c20ea Verify install and warn user of issues
* Warn if Restock is installed in the wrong place (finds DLL and then goes two directories up, this should be Restock's "root" install directory)
* Warn if some old directories are sitting around from an old version of KSP, since the old part configs break stuff.
5 years ago
blowfish edc42d3360 Fix transform finder
* It was using node.name rather than node.value
* Wasn't actually adding the renderers it found to the result
5 years ago
blowfish 2a8287491b Blacklist complains if url pattern does not match any files
Easier to debug stuff
5 years ago
blowfish 91ec3c8341 Extract common code between blacklist and whitelist 5 years ago
blowfish bbc29c201f Make constants all capitals 5 years ago
blowfish 17ec6782e4 Update csproj since I forgot apparently 5 years ago
blowfish a453ed89eb Unify logging
And add helpful tags to everything
5 years ago
blowfish ddb79541f5 Material modifers can be scoped by transform
Each MATERIAL node can take transform or baseTransform values which look for renderers on that transform or that transform and children respectively.  If none are specified it will use every renderer in the model.
5 years ago
blowfish 8d8795c57d Unify material modifiers
Allows float and color properties to be set on actual parts now, not just
fairings
5 years ago
Joseph Wong 366a354688 allow empty lines and comments in blacklist/whitelist 5 years ago
blowfish 3618a724e3 Blacklist for excluding replaced files
All .restockblacklist files will be read to prevent KSP from loading these files (i.e. models and textures).  Any .restockwhitelist files will be read to prevent them from being blacklisted (e.g. if a mod actually uses the squad files).  Each line in those files should be a GameData path that follows these rules:

* If it ends with a / then all files in that directory (or sibdirectories) will be matched
* A * can match anything in a directory or file name
* Files can optionally take an extension, but it is not required to match
5 years ago
blowfish f04b586af8 Fairing material updater module 5 years ago
blowfish 9cc2fa36c8 Add license to blowfish assets dir 5 years ago
blowfish f53161ff3e Add plugin with material modifier
ModuleRestockMaterialModifier allows materials to be modified.  Currently only supports swapping out the shader and changing texture properties.  Changes apply to the whole part (can be changed in the future).
5 years ago