Jump to content

Recommended Posts

I want to hd-ify specific prefabs and add alternate textures to others without having to put the new assets in my modmain.lua assets area then the loading of the asset can be optimized.

Also, when I add a hd/new texture to replace an existing one it says an error in the server log like

"Tried to add build [firepit] from file [anim/firepit.zip] but we've already added a build with that name!"

that's why I want to remove the asset from the prefab then I can add my own to it

 

Basically, how can I add or remove things from a prefab is

local assets = {
    Asset("ANIM", "anim/asset.zip"),
}

bump! if anybody has any idea how I can achieve this that would help a lot! Because I would like to replace assets of the game with my own without loading in the original vanilla assets (for optimization reason since they aren't being used)

Right now I'm stuck with removing the whole prefab that I'm adding new asset to and then readd it with the mod and then place my new asset in its assets and remove the original vanilla one from its assets which isn't ideal but if nobody knows a better way then I guess that's what I will be stuck with...

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
×
  • Create New...