spooktspeek Posted March 5, 2022 Share Posted March 5, 2022 (edited) i'm trying to make my first mod i've ever made, but this shows up when i create the world. 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. can i get a bit of help? Edited March 5, 2022 by spooktspeek Link to comment https://forums.kleientertainment.com/forums/topic/137984-trouble-with-starting-items-i-think/ Share on other sites More sharing options...
IronHunter Posted March 5, 2022 Share Posted March 5, 2022 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. 2 Link to comment https://forums.kleientertainment.com/forums/topic/137984-trouble-with-starting-items-i-think/#findComment-1545110 Share on other sites More sharing options...
spooktspeek Posted March 6, 2022 Author Share Posted March 6, 2022 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 Link to comment https://forums.kleientertainment.com/forums/topic/137984-trouble-with-starting-items-i-think/#findComment-1545634 Share on other sites More sharing options...
Monti18 Posted March 7, 2022 Share Posted March 7, 2022 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. Link to comment https://forums.kleientertainment.com/forums/topic/137984-trouble-with-starting-items-i-think/#findComment-1545902 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