Jump to content

Recommended Posts

Pretty simple, simply replace 

local prefabs = {}local start_inv = { }

with something like this

local prefabs = {	"icepack",}local start_inv = {	"icepack",}

and you should be good to go.

 

 

This is what I have now:

}local prefabs = {"backpack"}local start_inv = {"honeynuggets""backpack"}

The honey nuggets are there as a control. This crashes the game, unfortunately.

 

 

Where did you place this piece of code?

 

local prefabs = {     "icepack", } local start_inv = {     "icepack", }

 

 

It should go into yourmod/scripts/prefabs/yourchar.lua

 

Also, if you want to add something like honey nuggets into your starting inventory, you also need to add it to the local prefabs block

 

 

 

Where did you place this piece of code?

 

 

 

 

 

It should go into yourmod/scripts/prefabs/yourchar.lua

 

Also, if you want to add something like honey nuggets into your starting inventory, you also need to add it to the local prefabs block

 

This is in:

 

Don't Starve Together Beta\mods\workshop-361202313\scripts\prefabs\Ward.lua

 

My code is:

local prefabs = {    "icepack",    "cookpot_blueprint",    "icebox_blueprint",}local start_inv = {    "icepack",    "cookpot_blueprint",    "icebox_blueprint",}
The blueprints work. The Icepack does not.

Oh yeah, I think I know what is going on. If I recall correctly, backpacks of all kinds can not be placed in your inventory bar. if you were to pick one up, you will deequip whatever chest piece(or backpack if your are using that mod). As such, you can't spawn it in your inventory I think.

 

I am not sure how to solve that. Try asking about.

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