BlackLiquid Forums
Another noob bites the dust - Printable Version

+- BlackLiquid Forums (https://www.blackliquidsoftware.com/forum)
+-- Forum: Banished General (https://www.blackliquidsoftware.com/forum/forumdisplay.php?fid=6)
+--- Forum: Mod Makers Help & Support (https://www.blackliquidsoftware.com/forum/forumdisplay.php?fid=27)
+--- Thread: Another noob bites the dust (/showthread.php?tid=897)



Another noob bites the dust - Bartender - 01-29-2017



Hello everyone,




I have been experimenting with making a mod, and it will come as no surprise that in my lack of experience I have so far failed to get it to work.




My goal is to add a simple red mushroom to the game, based on the original mushroom, which also gives the 'mushroom' material when harvested by a gatherer. I have collected the original texture and AO files using TexMod, and edited them according to my wishes. I tested these by having them replace the original mushroom textures, and this worked perfectly.




Now however, I am trying to turn it into a new natural resource, which is where the trouble started. I think I have all the files and have referenced the mod correctly when loading the game, but the red mushrooms refuse to grow.




For full disclosure, the files in my mod folder are as follows:

../RedMushroom/Models/RedMushroomMesh.rsc

../RedMushroom/Models/MaterialInstance/RedMushroom.png

../RedMushroom/Models/MaterialInstance/RedMushroom.rsc

../RedMushroom/Models/MaterialInstance/RedMushroomAO.png

../RedMushroom/Models/MaterialInstance/RedMushroomAO.rsc

../RedMushroom/Models/MaterialInstance/RedMushroomTexture.rsc

../RedMushroom/Template/NaturalResourceRedMushroom.rsc

../RedMushroom/Texture/AOTexture.rsc

../RedMushroom/Texture/ModelTexture.rsc

../RedMushroom/RedMushroomResources.rsc




I am refering to the Mod in a .bat, which loads the game with no error messages: EDIT: sometimes it does give me an error message on the RedMushroomMesh.rsc file, saying it failed to compile.



Code:
bin\x64\Application-x64-profile.exe /ref RedMushroomResources.rsc /pathres ../RedMushroom /pathdat ../RedMushroom/bin



All the mushroom files were copied from the original mushroom, and only changed to refer to 'RedMushroom' files where they refered to 'Mushroom' files. The only exception to this is in the 'RedMushroomMesh.rsc' file, which still refers to the original mushroom mesh file (herbs.fbx). I suspect that this is where my problem lies, but for now I have no way of knowing for sure. Another possibility I thought of is that the mod is actually working, but that it somehow still uses the textures of the original mushroom. I haven't found any way to refer to the Model/MaterialInstance/RedMushroom.rsc in any of the other files, though this seems to be a common occurence.




Would anyone please be so kind to guide a lost wanderer out of the shrooms?





Another noob bites the dust - Kralyerg - 01-29-2017



If you're going to add a new copy of something already in the game, it needs a new model, it can't reference the same fbx file, but then have a new texture.




We ran into the problem when trying to make a new cow. You can either have the vanilla cow, or a vanilla cow with a new texture. You can't have both.




There's a thing inside the fbx file that tells it which texture .rsc file to look for.




In the case of the mushrooms, the fbx is looking for Models\NaturalResource\Herbs\MaterialInstance\Mushroom.rsc.  You can't change that without having access to the original fbx file. You can change the texture to a new one, which you said you did, but you can't make a duplicate thing using the original fbx file.





Another noob bites the dust - Bartender - 01-29-2017


Thank you for the quick reply! That makes sense and it is indeed something I was wondering about myself. I guess I will have to fire up some 3D software then to make a model myself, as from what I've gathered there is no way to extract the original .fbx files?




Another noob bites the dust - Kralyerg - 01-29-2017


I don't know how, no.