Kzisor Posted July 16, 2015 Share Posted July 16, 2015 (edited) Okay so here is my scenario; I have Additional Set Pieces enabled and whenever I enable a mod that I am currently working on which has modded items it causes this crash. It seems to be very random and can happen even with any mod that has a custom recipe.[00:00:26]: [string "scripts/prefabs/blueprint.lua"]:126: attempt to concatenate field '?' (a nil value)LUA ERROR stack traceback:scripts/prefabs/blueprint.lua:126 in (field) fn (Lua) <96-129> inst = 111071 - blueprint (valid:true) recipes = table: 4D437920 allplayers = table: 10CA7218 r = table: 1C5C7AF8scripts/mainfunctions.lua:148 in () ? (Lua) <137-168> name = blueprint prefab = Prefab blueprint - =[C]:-1 in (method) SpawnPrefab (C) <-1--1>scripts/mainfunctions.lua:182 in (global) SpawnPrefab (Lua) <179-184> name = blueprint../mods/workshop-394470072/scripts/scenarios/chestfunctions.lua:33 in (field) AddChestItems (Lua) <14-49> chest = 101993 - treasurechest (valid:true) loot = table: 4D4361D8 num = nil numloot = 9 k = 1 itemtype = table: 4D436200 itemToSpawn = blueprint spawn = true count = 7 i = 1../mods/workshop-394470072/scripts/scenarios/seasonal_retaliation.lua:222 in (field) OnCreate (Lua) <209-223> inst = 100638 - firepit (valid:true) scenariorunner = table: 359FB0F8 items = table: 4D4361D8scripts/components/scenariorunner.lua:37 in (method) Run (Lua) <35-46> self = hasrunonce = false script = table: 35FD5180 inst = 100638 - firepit (valid:true) scriptname = seasonal_retaliationscripts/gamelogic.lua:426 in (global) PopulateWorld (Lua) <233-447> savedata = table: 29A27828 profile = table: 10FE7980 world = 100029 - forest (valid:true) retune = table: 1C5C8F98 newents = table: 16C1A790 guid = 100638 ent = 100638 - firepit (valid:true)scripts/gamelogic.lua:637 in (upvalue) DoInitGame (Lua) <525-739> savedata = table: 29A27828 profile = table: 10FE7980 was_file_load = falsescripts/gamelogic.lua:788 in () ? (Lua) <781-790> success = true world_table = table: 29A27828=[C]:-1 in (method) SetPersistentString (C) <-1--1>scripts/saveindex.lua:62 in (method) Save (Lua) <60-63> self = data = table: 10FE7A98 current_slot = 5 callback = function - scripts/gamelogic.lua:781 data = return { last_used_slot=5, slots={ { server={ description="", friends_only=false, game_mode="endless", maxplayers=6, name="Test Server", online_mode=false, password="", pvp=false }, session_id="08700026D0FB0DC0", world={ day=1 } }, { server={ }, world={ } }, { server={ }, world={ } }, { server={ }, world={ } }, { server={ description="", friends_only=false, game_mode="endless", maxplayers=6, name="", online_mode=true, password="", pvp=false }, session_id="0870001949A8ADCB", world={ day=1 } } } }scripts/saveindex.lua:192 in () ? (Lua) <187-193> slotdata = table: 10FE7D18=[C]:-1 in (method) SerializeWorldSession (C) <-1--1>scripts/networking.lua:140 in (global) SerializeWorldSession (Lua) <139-141> data = return { ents={ beefalo={ { x=277.53, z=-261.8 }, { x=262.31, z=-266.9 }, { x=257.8, z=-265.86 }, { x=274.43, z=-257.38 }, { x=110.65, z=-177.31 }, { x=97.01, z=-165.75 }, { x=129.06, z=-177.83 }, { x=137.6, z=-189.24 } }, beehive={ { x=-194.46, z=-566.34 }, { x=-189.03, z=-553.05 }, { x=-142.86, z=-526.66 }, { x=-214.79, z=-541.13 }, { x=-122.86, z=-430.85 }, { x=-118.24, z=-462.87 }, { x=-109.17, z=-429.77 }, { x=-85.37, z=-474.62 }, { x=-130.72, z=-482.31 }, { x=-142.04, z=-430.07 }, { x=-37.06, z=-542.23 }, { x=225.13, z=165.25 }, { x=205.41, z=198.42 }, { x=177.94, z=121.63 }, { x=177.17, z=414.03 }, { x=154.63, z=246.72 }, { x=93.14, z=234.26 }, { x=169.33, z=225.62 }, { x=166.66, z=254.45 }, { x=149.4, z=249.24 }, { x=141.44, z=245.71 }, { x=153.1, z=261.37 }, { x=149.59, z=262.8 }, { x=173.47, z=26 [**[00:00:26]: [string "scripts/prefabs/blueprint.lua"]:126: attempt to concatenate field '?' (a nil value)LUA ERROR stack traceback: scripts/prefabs/blueprint.lua:126 in (field) fn (Lua) <96-129> scripts/mainfunctions.lua:148 in () ? (Lua) <137-168> =[C]:-1 in (method) SpawnPrefab (C) <-1--1> scripts/mainfunctions.lua:182 in (global) SpawnPrefab (Lua) <179-184> ../mods/workshop-394470072/scripts/scenarios/chestfunctions.lua:33 in (field) AddChestItems (Lua) <14-49> ../mods/workshop-394470072/scripts/scenarios/seasonal_retaliation.lua:222 in (field) OnCreate (Lua) <209-223> scripts/components/scenariorunner.lua:37 in (method) Run (Lua) <35-46> scripts/gamelogic.lua:426 in (global) PopulateWorld (Lua) <233-447> scripts/gamelogic.lua:637 in (upvalue) DoInitGame (Lua) <525-739> scripts/gamelogic.lua:788 in () ? (Lua) <781-790> =[C]:-1 in (method) SetPersistentString (C) <-1--1> scripts/saveindex.lua:62 in (method) Save (Lua) <60-63> scripts/saveindex.lua:192 in () ? (Lua) <187-193> =[C]:-1 in (method) SerializeWorldSession (C) <-1--1> scripts/networking.lua:140 in (global) SerializeWorldSession (Lua) <139-141> scripts/saveindex.lua:195 in (method) OnGenerateNewWorld (Lua) <184-196> scripts/gamelogic.lua:798 in (field) cb (Lua) <777-800> scripts/screens/worldgenscreen.lua:183 in (local) cb (Lua) <182-184> scripts/frontend.lua:448 in (method) DoFadingUpdate (Lua) <412-452> scripts/frontend.lua:500 in (method) Update (Lua) <460-609> scripts/update.lua:93 in () ? (Lua) <39-123> [00:00:26]: SCRIPT ERROR! Showing error screen I cannot determine if the cause is from Additional Set Pieces or if it's a Klei bug. Edited July 16, 2015 by Kzisor Link to comment Share on other sites More sharing options...
DarkXero Posted July 16, 2015 Share Posted July 16, 2015 (edited) @Kzisor,Does any of these items you are working on, get a MISSING NAME, when spawning? You have the custom recipe for a prefab.But you do not have the string name for a prefab. If they do that's probably what's breaking this, sinceSTRINGS.NAMES[ITHASARECIPEBUTNOTANAME] = nil Edited July 16, 2015 by DarkXero Link to comment Share on other sites More sharing options...
Kzisor Posted July 16, 2015 Author Share Posted July 16, 2015 @DarkXero, yup that is the problem. I am adding recipes but, not adding the strings as of yet. Thanks for letting me know the cause it's been bugging me for quite some time now. Link to comment 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