. . . Posted August 11, 2024 Share Posted August 11, 2024 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"), } Link to comment https://forums.kleientertainment.com/forums/topic/158979-how-can-i-remove-and-add-assets-to-a-prefab/ Share on other sites More sharing options...
. . . Posted August 16, 2024 Author Share Posted August 16, 2024 bump Link to comment https://forums.kleientertainment.com/forums/topic/158979-how-can-i-remove-and-add-assets-to-a-prefab/#findComment-1740973 Share on other sites More sharing options...
. . . Posted September 3, 2024 Author Share Posted September 3, 2024 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... Link to comment https://forums.kleientertainment.com/forums/topic/158979-how-can-i-remove-and-add-assets-to-a-prefab/#findComment-1745629 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now