Jump to content

Recommended Posts

i'm trying to make my first mod i've ever made, but this shows up when i create the world.668227465_DontStarveTogether2022-03-049_16_41PM.thumb.png.edab38ed6f5abbf84fdd70e37eb98e24.png

i'm pretty sure there IS a } by meat_dried, but i dunno, i have no idea how to code and am just using the example character cat thing.

207860710_C__ProgramFiles(x86)_Steam_steamapps_common_DontStarveTogether_mods_spook_scripts_prefabs_spook.lua-Notepad2022-03-049_17_03PM.thumb.png.75e8d9a74fb1b111491c1a80d6f78d3d.png

can i get a bit of help?

Edited by spooktspeek

I think you forgot a comma for your ordered list for your start_inv

local start_inv = {"bird_egg", "meat_dried"}

When making a table you need to have a , between each of the items in your table. Basic lua syntax you'll get the hang of it.

  • Like 2
On 3/5/2022 at 1:28 AM, IronHunter said:

I think you forgot a comma for your ordered list for your start_inv

local start_inv = {"bird_egg", "meat_dried"}

When making a table you need to have a , between each of the items in your table. Basic lua syntax you'll get the hang of it.

hmm, i got the display to work, (aka the thing on the character select screen,) and the game didnt crash, but when i loaded the character in i didn't have neither egg nor jerky. this is the code now

C__Program Files (x86)_Steam_steamapps_common_Don't Starve Together_mods_spook_scripts_prefabs_spook.lua - Notepad++ 2022-03-06 2_59_02 PM.png

Does your last line of the character prefab has prefabs as the sixth argument?

It should look like this:

return MakePlayerCharacter("your_character", prefabs, assets, common_postinit, master_postinit, prefabs)

This is needed for the game to know what your starting inventory is going to be.

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