Welcome to Black Liquid Software

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.

  • 0
Sign in to follow this  
Followers 0
Bartender

Another noob bites the dust

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.

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?

Edited by Bartender

Share this post


Link to post
Share on other sites

3 answers to this question

  • 1

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.

1 person likes this

Share this post


Link to post
Share on other sites
  • 0

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?

Share this post


Link to post
Share on other sites
  • 0

I don't know how, no.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0