Skyfind Posted January 25, 2021 Share Posted January 25, 2021 I make a Food mod for play with friend But After click COOK in crackpot game has crash Link to comment https://forums.kleientertainment.com/forums/topic/126437-help-me-fix-plz/ Share on other sites More sharing options...
-LukaS- Posted January 25, 2021 Share Posted January 25, 2021 In modmain.lua in line 65, there's a 'tags' variable that doesn't exist or is 'nil' and causes a crash. 1 Link to comment https://forums.kleientertainment.com/forums/topic/126437-help-me-fix-plz/#findComment-1421421 Share on other sites More sharing options...
Skyfind Posted January 26, 2021 Author Share Posted January 26, 2021 7 hours ago, -t- said: In modmain.lua in line 65, there's a 'tags' variable that doesn't exist or is 'nil' and causes a crash. Where to find name,tags in game from? i don't know in modmain i use tag test = function(cooker, name, tag) return name.bird_egg and name.butter and name.berries and not tags.meat and not tags.fruit end, some thing went wrong? Link to comment https://forums.kleientertainment.com/forums/topic/126437-help-me-fix-plz/#findComment-1421682 Share on other sites More sharing options...
-LukaS- Posted January 26, 2021 Share Posted January 26, 2021 Show your modmain. Maybe I'll be able to find the error there. 2 Link to comment https://forums.kleientertainment.com/forums/topic/126437-help-me-fix-plz/#findComment-1421764 Share on other sites More sharing options...
Skyfind Posted January 26, 2021 Author Share Posted January 26, 2021 thank you so much modmain.lua Link to comment https://forums.kleientertainment.com/forums/topic/126437-help-me-fix-plz/#findComment-1421796 Share on other sites More sharing options...
-LukaS- Posted January 26, 2021 Share Posted January 26, 2021 I see. So you used 'tag' instead of 'tags' in the test function. Because of that when you later try to refer to 'tags' in that function it doesn't work. Change 'tag' to 'tags' and it should work. 1 Link to comment https://forums.kleientertainment.com/forums/topic/126437-help-me-fix-plz/#findComment-1421825 Share on other sites More sharing options...
Skyfind Posted January 26, 2021 Author Share Posted January 26, 2021 thank you but i have any problem T-T I build a mod food my mod can run and Cook my Food. but crackpot harvested don't have any item. Link to comment https://forums.kleientertainment.com/forums/topic/126437-help-me-fix-plz/#findComment-1421841 Share on other sites More sharing options...
-LukaS- Posted January 26, 2021 Share Posted January 26, 2021 Can you collect the food? Or is it just invisible in the crockpot? 1 Link to comment https://forums.kleientertainment.com/forums/topic/126437-help-me-fix-plz/#findComment-1421842 Share on other sites More sharing options...
Skyfind Posted January 26, 2021 Author Share Posted January 26, 2021 invisible in crackpot and collected food but did't recive food Link to comment https://forums.kleientertainment.com/forums/topic/126437-help-me-fix-plz/#findComment-1421852 Share on other sites More sharing options...
-LukaS- Posted January 26, 2021 Share Posted January 26, 2021 There are many things that can possibly cause this error. Maybe post your entire mod folder so I can check it. 1 Link to comment https://forums.kleientertainment.com/forums/topic/126437-help-me-fix-plz/#findComment-1421854 Share on other sites More sharing options...
Skyfind Posted January 26, 2021 Author Share Posted January 26, 2021 all of my mod GENSHIN_FOOD.rar Link to comment https://forums.kleientertainment.com/forums/topic/126437-help-me-fix-plz/#findComment-1421860 Share on other sites More sharing options...
-LukaS- Posted January 26, 2021 Share Posted January 26, 2021 All the prefab files you have don't actually return prefabs. You can't harvest a food item that doesn't exist. Add 'Prefab(name, fn, assets)' at the end in all of your prefab files. 1 Link to comment https://forums.kleientertainment.com/forums/topic/126437-help-me-fix-plz/#findComment-1421876 Share on other sites More sharing options...
Skyfind Posted January 26, 2021 Author Share Posted January 26, 2021 ok thank you Link to comment https://forums.kleientertainment.com/forums/topic/126437-help-me-fix-plz/#findComment-1421963 Share on other sites More sharing options...
Skyfind Posted January 27, 2021 Author Share Posted January 27, 2021 After I add Prefab in end prefab file Link to comment https://forums.kleientertainment.com/forums/topic/126437-help-me-fix-plz/#findComment-1422080 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