Taob Posted July 22, 2020 Share Posted July 22, 2020 (edited) I was trying to add a structure but when I checked the game files I noticed that that line was at the end, some had "nil, nil, nil, nil, 4" or "nil, nil, nil, 6" Recipe("minisign_item", {Ingredient("boards", 1)}, RECIPETABS.TOWN, TECH.SCIENCE_ONE, nil, nil, nil, nil, 4) Recipe("fence_item", {Ingredient("twigs", 3), Ingredient("rope", 1) }, RECIPETABS.TOWN, TECH.SCIENCE_ONE, nil,nil,nil,nil,6) Edited July 22, 2020 by Taob Link to comment https://forums.kleientertainment.com/forums/topic/120334-what-does-nil-nil-nil-nil-4-mean-on-recipe-or-addrecipe/ Share on other sites More sharing options...
Thomas_klei Posted July 22, 2020 Share Posted July 22, 2020 env.AddRecipeTab = function( rec_str, rec_sort, rec_atlas, rec_icon, rec_owner_tag, rec_crafting_station ) CUSTOM_RECIPETABS[rec_str] = { str = rec_str, sort = rec_sort, icon_atlas = rec_atlas, icon = rec_icon, owner_tag = rec_owner_tag, crafting_station = rec_crafting_station } STRINGS.TABS[rec_str] = rec_str return CUSTOM_RECIPETABS[rec_str] end Recipe = Class(function(self, name, ingredients, tab, level, placer_or_more_data, min_spacing, nounlock, numtogive, builder_tag, atlas, image, testfn, product, build_mode, build_distance) 1 Link to comment https://forums.kleientertainment.com/forums/topic/120334-what-does-nil-nil-nil-nil-4-mean-on-recipe-or-addrecipe/#findComment-1356621 Share on other sites More sharing options...
Taob Posted July 22, 2020 Author Share Posted July 22, 2020 like this? Link to comment https://forums.kleientertainment.com/forums/topic/120334-what-does-nil-nil-nil-nil-4-mean-on-recipe-or-addrecipe/#findComment-1356640 Share on other sites More sharing options...
Thomas_klei Posted July 22, 2020 Share Posted July 22, 2020 yeah, i think. Link to comment https://forums.kleientertainment.com/forums/topic/120334-what-does-nil-nil-nil-nil-4-mean-on-recipe-or-addrecipe/#findComment-1356687 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