wons Posted January 21, 2021 Share Posted January 21, 2021 how to make items unprototypeable? i want to make an item in ruins tab but it's prototypable, which i don't want to happen, plz help Link to comment https://forums.kleientertainment.com/forums/topic/126322-help-how-to-make-items-unprototypeable/ Share on other sites More sharing options...
-LukaS- Posted January 21, 2021 Share Posted January 21, 2021 When adding a recipe with AddRecipe() the seventh variable is the 'nounlock' variable. Setting it to true should make your item unprototypeable. 1 Link to comment https://forums.kleientertainment.com/forums/topic/126322-help-how-to-make-items-unprototypeable/#findComment-1419049 Share on other sites More sharing options...
wons Posted January 21, 2021 Author Share Posted January 21, 2021 is there any other method or i have to use this one? Link to comment https://forums.kleientertainment.com/forums/topic/126322-help-how-to-make-items-unprototypeable/#findComment-1419077 Share on other sites More sharing options...
-LukaS- Posted January 21, 2021 Share Posted January 21, 2021 I think this might be the only way. Why would using AddRecipe() be a problem anyway? 1 Link to comment https://forums.kleientertainment.com/forums/topic/126322-help-how-to-make-items-unprototypeable/#findComment-1419128 Share on other sites More sharing options...
wons Posted January 21, 2021 Author Share Posted January 21, 2021 just asking, anyway can you give me some examples of how to use it? since how i do it results in crash Link to comment https://forums.kleientertainment.com/forums/topic/126322-help-how-to-make-items-unprototypeable/#findComment-1419135 Share on other sites More sharing options...
-LukaS- Posted January 21, 2021 Share Posted January 21, 2021 (edited) In modmain.lua put: AddRecipe(name, ingredients, tab, level, placer_or_more_data, min_spacing, nounlock, numtogive, builder_tag, atlas, image) name - name of the prefab/item to craft ingredients - ingredients, has to be a table tab - tab in the crafting menu level/tech - levels of the tech required, for example, SCIENCE_ONE, SCIENCE_TWO, MAGIC_TWO, basically for SCIENCE_ONE you need a research table placer_or_more_data - if your item is a structure set a placer (item's silhouette when placing, you need to create it with MakePlacer from prefabutil.lua) min_spacing - don't exactly know, couldn't find any concrete explanation nounlock - makes the item only craftable near a crafting station numtogive - number of items crafted at once builder_tag - i think this one is the tag required to craft the item atlas - xml image image - tex image Not every variable has to be filled, some can just be 'nil'. Edited January 21, 2021 by -t- 1 Link to comment https://forums.kleientertainment.com/forums/topic/126322-help-how-to-make-items-unprototypeable/#findComment-1419160 Share on other sites More sharing options...
wons Posted January 23, 2021 Author Share Posted January 23, 2021 On 1/21/2021 at 6:59 PM, -t- said: min_spacing - don't exactly know, couldn't find any concrete explanation isn't it like, a minimal structure distance thing? Link to comment https://forums.kleientertainment.com/forums/topic/126322-help-how-to-make-items-unprototypeable/#findComment-1420207 Share on other sites More sharing options...
-LukaS- Posted January 23, 2021 Share Posted January 23, 2021 The name definitly sounds like it, but since I couldn't decipher exactly how the game uses this variable I just wasn't sure. The only mention of this variable (I think) is in the table_winters_feast.lua file and even there, it's commented out. I used Notepad++ 'find in files' function to find every instance of min_spacing and found nothing, although there is something that might be related to min_spacing in the map.lua at line 191 but I think it uses the DEPLOYSPACING_RADIUS table from constants.lua. 1 Link to comment https://forums.kleientertainment.com/forums/topic/126322-help-how-to-make-items-unprototypeable/#findComment-1420463 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