Jump to content

Recommended Posts

I am very confused at the concept of making a custom backpack, does anyone have the exact lua code to this? If not, then is it acceptable to just copy and paste the "backpack.lua" that's already in the game?

Also, the biggest problem for me is the spriter file since I have no idea how it's supposed to look. Does it need three images or...? And what should the image size be in pixels? Let me know pls I got no idea

On 8/23/2024 at 8:13 AM, doraexplora said:

I am very confused at the concept of making a custom backpack, does anyone have the exact lua code to this? If not, then is it acceptable to just copy and paste the "backpack.lua" that's already in the game?

Also, the biggest problem for me is the spriter file since I have no idea how it's supposed to look. Does it need three images or...? And what should the image size be in pixels? Let me know pls I got no idea

You can start by copying backpack.lua and renaming the prefab to match your custom backpack. To custom UI, slots, navigate to the assets folder where the .zip files contain the anim. Then, in your modmain, copy the relevant code for the backpack from scripts/containers.lua

 

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...