RedRock911 Posted March 22, 2015 Share Posted March 22, 2015 At one point I had been a working creature, since then I went way to deep into errors, and decided it would more likely be best if I started all over. In saying that, I'm repeating some mistakes, I know I've corrected before, but can't seem to find the exact mistake i am remaking now. The errors I know are going to be in the prefab, and I know that they are more then likely due to me not writing the script for the game to know I am wanting to create my creature, if it even knows it exists at all. So I think I have to add a line "create_mycreature" somewhere. But I dont know where, And im unsure of the right context.my modmain.lua looks like this: --[NEW] This is how we tell the game we've created a new prefab.PrefabFiles = {knuckles} --This function spawns the creature at the player's position.function SpawnCreature(player) --Get the player's current position.local x, y, z = player.Transform:GetWorldPosition() --[NEW] Spawn our new creature at the world origin.local creature = GLOBAL.SpawnPrefab("knuckles") --Move the creature to the player's position.creature.Transform:SetPosition( x, y, z ) end --Tell the engine to run the function "SpawnCreature" as soon as the player spawns in the world.AddSimPostInit(SpawnCreature) while the prefab is here: --[NEW] Here we list any assets required by our prefab.local assets={--[NEW] this is the name of the Spriter file.Asset("ANIM", "anim/knuckles.zip"),} --[NEW] This function creates a new entity based on a prefab.local function init_prefab() --[NEW] First we create an entity.local inst = CreateEntity() --[NEW] Then we add a transform component se we can place this entity in the world.local trans = inst.entity:AddTransform() --[NEW] Then we add an animation component which allows us to animate our entity.local anim = inst.entity:AddAnimState() --[NEW] The bank name is the name of the Spriter file. anim:SetBank("knuckles") --[NEW] The build name is the name of the animation folder in spriter. anim:SetBuild("knuckles") --[NEW] Here we start playing the 'idle' animation and tell it to loop. anim:PlayAnimation("idle", true ) --[NEW] return our new entity so that it can be added to the world. return instend --[NEW] Here we register our new prefab so that it can be used in game.return Prefab( "monsters/knuckles", init_prefab, assets, nil) I know I have posted something like this before somewhere, when I made the exact same mistake last time. Matter of fact , with this tutorial, I think I'm just going to make a few creature mods, just so I can start getting the hang of the scripting. I know I am telling the game to look for an asset that it cant find, I just cant seem to find this damned simple error. Link to comment https://forums.kleientertainment.com/forums/topic/52273-trouble-with-custom-character-in-prefab-and-modmain/ Share on other sites More sharing options...
CarlZalph Posted March 22, 2015 Share Posted March 22, 2015 (edited) Syntax wise I'm seeing at the start of your modmain's prefabs should resemble this:PrefabFiles = { "knuckles",}What is the error stacktrace it prints? Edited March 22, 2015 by CarlZalph Link to comment https://forums.kleientertainment.com/forums/topic/52273-trouble-with-custom-character-in-prefab-and-modmain/#findComment-624005 Share on other sites More sharing options...
RedRock911 Posted March 22, 2015 Author Share Posted March 22, 2015 (edited) Syntax wise I'm seeing at the start of your modmain's prefabs should resemble this:PrefabFiles = { "knuckles",}What is the error stacktrace it prints?here is the full report Starting upDon't Starve: 115739 WIN32_STEAMBuild Date: 2014-11-04_16-15-32THREAD - started 'GAClient' (720)HttpClient::ClientThread::Main()cGame::InitializeOnMainThreadWindowManager::InitializeWindowManager::SetFullscreen(0, 1280, 960, 60)GLInfo~~~~~~GL_VENDOR: Google Inc.GL_RENDERER: ANGLE (NVIDIA GeForce GTX 560 Ti )GL_VERSION: OpenGL ES 2.0 (ANGLE 1.0.0.2249)GL_SHADING_LANGUAGE_VERSION: OpenGL ES GLSL ES 1.00 (ANGLE 1.0.0.2249)THREAD - started 'WindowsInputManager' (5040)OpenGL extensions (19, 19):GL_ANGLE_depth_textureGL_ANGLE_framebuffer_blitGL_ANGLE_framebuffer_multisampleGL_ANGLE_instanced_arraysGL_ANGLE_pack_reverse_row_orderGL_ANGLE_texture_compression_dxt3GL_ANGLE_texture_compression_dxt5GL_ANGLE_texture_usageGL_ANGLE_translated_shader_sourceGL_EXT_read_format_bgraGL_EXT_robustnessGL_EXT_texture_compression_dxt1GL_EXT_texture_format_BGRA8888GL_EXT_texture_storageGL_OES_get_program_binaryGL_OES_packed_depth_stencilGL_OES_rgb8_rgba8GL_OES_standard_derivativesGL_OES_texture_npotGL_MAX_TEXTURE_SIZE = 16384GL_MAX_TEXTURE_IMAGE_UNITS = 16GL_MAX_RENDERBUFFER_SIZE = 16384GL_MAX_VIEWPORT_DIMS = 16384, 16384GL_MAX_VARYING_VECTORS = 10GL_MAX_VERTEX_ATTRIBS = 16GL_MAX_VERTEX_UNIFORM_VECTORS = 254GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS = 4GL_MAX_FRAGMENT_UNIFORM_VECTORS = 2214 compressed texture formatstexture format 0x83f0texture format 0x83f1texture format 0x83f2texture format 0x83f3cDontStarveGame::DoGameSpecificInitialize()cGame::StartPlayingLOADING LUADoLuaFile scripts/main.luaDoLuaFile loading buffer scripts/main.luascripts/main.lua(161,1) running main.lua scripts/modindex.lua(311,1) loaded modindex scripts/modindex.lua(75,1) ModIndex: Beginning normal load sequence. scripts/modindex.lua(239,1) WARNING loading modinfo.lua: knuckles does not specify if it is compatible with the base game. It may not work properly. scripts/modindex.lua(242,1) WARNING loading modinfo.lua: knuckles does not specify if it is compatible with Reign of Giants. It may not work properly. scripts/modindex.lua(386,1) Could not load mod_config_data/modconfiguration_FlapJack scripts/mods.lua(152,1) Loading mod: FlapJack scripts/modindex.lua(386,1) Could not load mod_config_data/modconfiguration_knuckles scripts/mods.lua(152,1) Loading mod: knuckles scripts/mods.lua(179,1) Mod: FlapJack Loading modworldgenmain.lua scripts/mods.lua(187,1) Mod: FlapJack Mod had no modworldgenmain.lua. Skipping. scripts/mods.lua(179,1) Mod: FlapJack Loading modmain.lua scripts/mods.lua(179,1) Mod: knuckles Loading modworldgenmain.lua scripts/mods.lua(187,1) Mod: knuckles Mod had no modworldgenmain.lua. Skipping. scripts/mods.lua(179,1) Mod: knuckles Loading modmain.lua LOADING LUA SUCCESSscripts/playerdeaths.lua(79,1) PlayerDeaths loaded morgue 4595 scripts/playerprofile.lua(480,1) loaded profile scripts/playerprofile.lua(544,1) bloom_enabled false scripts/saveindex.lua(99,1) loaded saveindex scripts/gamelogic.lua(1172,1) OnFilesLoaded() scripts/gamelogic.lua(1161,1) OnUpdatePurchaseStateComplete scripts/gamelogic.lua(117,1) Unload BE Could not unload undefined prefab 0x4374c56c (yellowstaff)Could not unload undefined prefab 0x303bfdce (axe)Could not unload undefined prefab 0x378bda50 (wall_wood_item)Could not unload undefined prefab 0x8cc766ef (pumpkin_lantern)Could not unload undefined prefab 0xfdcabd86 (earmuffshat)Could not unload undefined prefab 0x7f46d7c0 (batbat)Could not unload undefined prefab 0xcceee6c3 (cutstone)Could not unload undefined prefab 0xaf34ecc0 (trunkvest_winter)Could not unload undefined prefab 0x875750ea (turf_road)Could not unload undefined prefab 0x4aeb6641 (armordragonfly)Could not unload undefined prefab 0xcd7669e5 (nightsword)Could not unload undefined prefab 0x1daa5ab7 (turf_carpetfloor)Could not unload undefined prefab 0xefa57cea (bandage)Could not unload undefined prefab 0xde4bc7e7 (wall_hay_item)Could not unload undefined prefab 0xe51acd32 (lightning_rod)Could not unload undefined prefab 0x947bfcb8 (lightning_rod_placer)Could not unload undefined prefab 0x68ba7100 (researchlab2)Could not unload undefined prefab 0x3386a16a (researchlab2_placer)Could not unload undefined prefab 0x3f5176c5 (firepit)Could not unload undefined prefab 0x8a462465 (firepit_placer)Could not unload undefined prefab 0x75370b6 (papyrus)Could not unload undefined prefab 0xbea16a01 (hambat)Could not unload undefined prefab 0xeb646050 (icehat)Could not unload undefined prefab 0x10473739 (spear)Could not unload undefined prefab 0x8d44bbad (cookpot)Could not unload undefined prefab 0x30d2f57d (cookpot_placer)Could not unload undefined prefab 0x89c20b1b (telebase)Could not unload undefined prefab 0x868a468f (telebase_placer)Could not unload undefined prefab 0x9d92cce (purpleamulet)Could not unload undefined prefab 0xcf1626 (rabbithouse)Could not unload undefined prefab 0x1aa31ec4 (rabbithouse_placer)Could not unload undefined prefab 0xe474f23c (armormarble)Could not unload undefined prefab 0x3ccdbe75 (icestaff)Could not unload undefined prefab 0x68ba7101 (researchlab3)Could not unload undefined prefab 0xd6985329 (researchlab3_placer)Could not unload undefined prefab 0x21bf03b1 (thulecite)Could not unload undefined prefab 0x539e9e8a (trunkvest_summer)Could not unload undefined prefab 0xf4eb0943 (shovel)Could not unload undefined prefab 0x761a1799 (gunpowder)Could not unload undefined prefab 0x9a99c7b7 (armorgrass)Could not unload undefined prefab 0xda17c8e8 (armorslurper)Could not unload undefined prefab 0x47611d71 (sweatervest)Could not unload undefined prefab 0x85181f7c (minerhat)Could not unload undefined prefab 0xe8f381a1 (turf_checkerfloor)Could not unload undefined prefab 0xd3671c87 (rainhat)Could not unload undefined prefab 0x2e264dbc (blowdart_pipe)Could not unload undefined prefab 0x2f0f89cb (reflectivevest)Could not unload undefined prefab 0xc4101586 (hammer)Could not unload undefined prefab 0x41ba89b5 (nightmarefuel)Could not unload undefined prefab 0xfbaefa0e (rainometer)Could not unload undefined prefab 0xeea990dc (rainometer_placer)Could not unload undefined prefab 0x7fcb037d (greenstaff)Could not unload undefined prefab 0x7fceff10 (featherfan)Could not unload undefined prefab 0x3c935451 (eyeturret_item)Could not unload undefined prefab 0xcba65752 (amulet)Could not unload undefined prefab 0xe16c07d0 (ruinshat)Could not unload undefined prefab 0xd2c60301 (dragonflychest)Could not unload undefined prefab 0xa72c4129 (dragonflychest_placer)Could not unload undefined prefab 0xb1591875 (greenamulet)Could not unload undefined prefab 0xdac7fbf5 (birdcage)Could not unload undefined prefab 0xe1f9b335 (birdcage_placer)Could not unload undefined prefab 0x68ba7102 (researchlab4)Could not unload undefined prefab 0x79aa04e8 (researchlab4_placer)Could not unload undefined prefab 0x2c158f7c (torch)Could not unload undefined prefab 0x265d1455 (turf_woodfloor)Could not unload undefined prefab 0x9a0ed246 (yellowamulet)Could not unload undefined prefab 0xb4e674c6 (hawaiianshirt)Could not unload undefined prefab 0xc78d9876 (siestahut)Could not unload undefined prefab 0xb22fa874 (siestahut_placer)Could not unload undefined prefab 0xce5a342e (firesuppressor)Could not unload undefined prefab 0xbbba0ebc (firesuppressor_placer)Could not unload undefined prefab 0x9a6718eb (resurrectionstatue)Could not unload undefined prefab 0x6b0c64bf (resurrectionstatue_placer)Could not unload undefined prefab 0xdfb37276 (telestaff)Could not unload undefined prefab 0x3f6c9ebb (diviningrod)Could not unload undefined prefab 0xa6b98890 (beargervest)Could not unload undefined prefab 0xe5936c6a (firestaff)Could not unload undefined prefab 0x34fb4f82 (pitchfork)Could not unload undefined prefab 0x3d4d1dc6 (bedroll_straw)Could not unload undefined prefab 0xadfdb7ae (armor_sanity)Could not unload undefined prefab 0x76d26529 (bugnet)Could not unload undefined prefab 0x5ce426c4 (blowdart_fire)Could not unload undefined prefab 0x4740cff7 (tent)Could not unload undefined prefab 0xb4d742b3 (tent_placer)Could not unload undefined prefab 0x8a2d55ba (catcoonhat)Could not unload undefined prefab 0x4116c653 (raincoat)Could not unload undefined prefab 0x62a5e7fe (nightlight)Could not unload undefined prefab 0x185806ec (nightlight_placer)Could not unload undefined prefab 0xa1e54a85 (goldenaxe)Could not unload undefined prefab 0xe6af29d2 (compass)Could not unload undefined prefab 0x19c004b2 (pighouse)Could not unload undefined prefab 0x469fe538 (pighouse_placer)Could not unload undefined prefab 0xca16846d (boards)Could not unload undefined prefab 0xfa14dec6 (birdtrap)Could not unload undefined prefab 0x7c11af2 (treasurechest)Could not unload undefined prefab 0xd411bef8 (treasurechest_placer)Could not unload undefined prefab 0xef21c9f2 (rope)Could not unload undefined prefab 0xb981ecda (fast_farmplot)Could not unload undefined prefab 0x6c77c310 (fast_farmplot_placer)Could not unload undefined prefab 0xbcfca634 (strawhat)Could not unload undefined prefab 0x111db7ae (footballhat)Could not unload undefined prefab 0x1eee0485 (transistor)Could not unload undefined prefab 0x1cd9e60e (razor)Could not unload undefined prefab 0x1541c9cc (armorruins)Could not unload undefined prefab 0xe87e06c0 (icebox)Could not unload undefined prefab 0xf2bd1baa (icebox_placer)Could not unload undefined prefab 0x36768a92 (orangestaff)Could not unload undefined prefab 0x2ca456a0 (orangeamulet)Could not unload undefined prefab 0xff7a976 (staff_tornado)Could not unload undefined prefab 0xd8067599 (beehat)Could not unload undefined prefab 0xc22935e4 (icepack)Could not unload undefined prefab 0x739fbe3c (homesign)Could not unload undefined prefab 0x33fdbd2e (homesign_placer)Could not unload undefined prefab 0x1c42203 (bell)Could not unload undefined prefab 0x15220700 (backpack)Could not unload undefined prefab 0xa8b25abc (wall_ruins_item)Could not unload undefined prefab 0x3ede96f8 (nightstick)Could not unload undefined prefab 0xd5201c09 (beebox)Could not unload undefined prefab 0x753b7621 (beebox_placer)Could not unload undefined prefab 0xb918c5fd (fishingrod)Could not unload undefined prefab 0x651e3e9e (eyebrellahat)Could not unload undefined prefab 0x92ccc001 (coldfirepit)Could not unload undefined prefab 0x21e04429 (coldfirepit_placer)Could not unload undefined prefab 0x5a59f5cc (goldenshovel)Could not unload undefined prefab 0x2e54b535 (cane)Could not unload undefined prefab 0xb6201ac9 (onemanband)Could not unload undefined prefab 0x4685284 (umbrella)Could not unload undefined prefab 0xda1f7edf (winterometer)Could not unload undefined prefab 0x955229cb (winterometer_placer)Could not unload undefined prefab 0xe2bfa46 (tophat)Could not unload undefined prefab 0xacbea762 (fertilizer)Could not unload undefined prefab 0x3949a42 (meatrack)Could not unload undefined prefab 0x56340ba8 (meatrack_placer)Could not unload undefined prefab 0x6dda899f (watermelonhat)Could not unload undefined prefab 0x94cf6c04 (goldenpickaxe)Could not unload undefined prefab 0x86860bc2 (boomerang)Could not unload undefined prefab 0xb1fa364d (pickaxe)Could not unload undefined prefab 0x3cb06493 (healingsalve)Could not unload undefined prefab 0x39311b4d (grass_umbrella)Could not unload undefined prefab 0x37c31aa6 (lantern)Could not unload undefined prefab 0xbc429ef3 (bushhat)Could not unload undefined prefab 0x80cb1e18 (featherhat)Could not unload undefined prefab 0x3edae42e (multitool_axe_pickaxe)Could not unload undefined prefab 0x7f2d088c (armorwood)Could not unload undefined prefab 0x46094f1b (beefalohat)Could not unload undefined prefab 0xf8e41fa9 (bedroll_furry)Could not unload undefined prefab 0xcda99af6 (winterhat)Could not unload undefined prefab 0x1c48b877 (campfire)Could not unload undefined prefab 0xdfe3a33 (campfire_placer)Could not unload undefined prefab 0x4d9a964d (trap)Could not unload undefined prefab 0x68370bd6 (trap_teeth)Could not unload undefined prefab 0x4058bc0 (molehat)Could not unload undefined prefab 0xcad92460 (flowerhat)Could not unload undefined prefab 0xec43b9f4 (sewing_kit)Could not unload undefined prefab 0xfb180669 (blowdart_sleep)Could not unload undefined prefab 0x38967bb2 (researchlab)Could not unload undefined prefab 0x77e9ae38 (researchlab_placer)Could not unload undefined prefab 0x8bbc7f55 (beemine)Could not unload undefined prefab 0xdf13a0c1 (ruins_bat)Could not unload undefined prefab 0x22ec3802 (wall_stone_item)Could not unload undefined prefab 0x8d60ee3a (coldfire)Could not unload undefined prefab 0xe72d29b0 (coldfire_placer)Could not unload undefined prefab 0x263bc4d5 (slow_farmplot)Could not unload undefined prefab 0x321f7255 (slow_farmplot_placer)Could not unload undefined prefab 0xe5071541 (nightmare_timepiece)Could not unload undefined prefab 0xc3bf310c (blueamulet)Could not unload undefined prefab 0x2ae7e3b3 (purplegem)Could not unload undefined prefab 0x6f21e747 (piggyback)Could not unload undefined prefab 0xf0330963 (panflute)Could not unload undefined prefab 0xdb20fa95 (heatrock)Could not unload undefined prefab 0x1153dbb9 (pottedfern)Could not unload undefined prefab 0xf2102a71 (pottedfern_placer)Could not unload undefined prefab 0x33ab6997 (hud)Could not unload undefined prefab 0x3364203d (forest)Could not unload undefined prefab 0x2e5cb72d (cave)Could not unload undefined prefab 0x40b82ff2 (maxwell)Could not unload undefined prefab 0xbddda476 (fire)Could not unload undefined prefab 0x1078732c (character_fire)Could not unload undefined prefab 0x427b5b39 (shatter)scripts/gamelogic.lua(120,1) Unload BE done scripts/dlcsupport.lua(24,1) Load scripts/DLC001_prefab_files HttpClientWriteCallback (0x00581DFF, 1, 16, 0x06C0F994)HttpClientWriteCallback READ 16 (16 total)scripts/mods.lua(269,1) Mod: FlapJack Registering prefabs scripts/mods.lua(275,1) Mod: FlapJack Registering prefab file: prefabs/flapjack scripts/mods.lua(279,1) Mod: FlapJack flapjack scripts/mods.lua(292,1) Mod: FlapJack Registering default mod prefab scripts/mods.lua(269,1) Mod: knuckles Registering prefabs scripts/mods.lua(275,1) Mod: knuckles Registering prefab file: prefabs/knuckles scripts/mods.lua(279,1) Mod: knuckles knuckles scripts/mods.lua(292,1) Mod: knuckles Registering default mod prefab scripts/gamelogic.lua(132,1) Load FE scripts/gamelogic.lua(136,1) Load FE: done scripts/screens/mainscreen.lua(576,1) platform_motd table: 126672B8 SimLuaProxy::QueryServer()scripts/modindex.lua(85,1) ModIndex: Load sequence finished successfully. Reset() returningQueryServerComplete no callbackHttpClientWriteCallback (0x00581D5C, 1, 1250, 0x06C0F994)HttpClientWriteCallback READ 1250 (1250 total)scripts/screens/mainscreen.lua(576,1) platform_motd table: 12667268 scripts/fileutil.lua(35,1) Erasing survival_2 scripts/fileutil.lua(35,1) Erasing survival_1 scripts/saveindex.lua(772,1) SaveIndex:StartSurvivalMode!: true scripts/mods.lua(304,1) unloading prefabs for mod MOD_FlapJack scripts/mods.lua(304,1) unloading prefabs for mod MOD_knuckles Collecting garbage...lua_gc took 0.01 seconds~SimLuaProxy()lua_close took 0.02 secondsReleaseAllReleaseAll FinishedcGame::StartPlayingLOADING LUADoLuaFile scripts/main.luaDoLuaFile loading buffer scripts/main.luascripts/main.lua(161,1) running main.lua scripts/modindex.lua(311,1) loaded modindex scripts/modindex.lua(75,1) ModIndex: Beginning normal load sequence. scripts/modindex.lua(239,1) WARNING loading modinfo.lua: knuckles does not specify if it is compatible with the base game. It may not work properly. scripts/modindex.lua(242,1) WARNING loading modinfo.lua: knuckles does not specify if it is compatible with Reign of Giants. It may not work properly. scripts/modindex.lua(386,1) Could not load mod_config_data/modconfiguration_FlapJack scripts/mods.lua(152,1) Loading mod: FlapJack scripts/modindex.lua(386,1) Could not load mod_config_data/modconfiguration_knuckles scripts/mods.lua(152,1) Loading mod: knuckles scripts/mods.lua(179,1) Mod: FlapJack Loading modworldgenmain.lua scripts/mods.lua(187,1) Mod: FlapJack Mod had no modworldgenmain.lua. Skipping. scripts/mods.lua(179,1) Mod: FlapJack Loading modmain.lua scripts/mods.lua(179,1) Mod: knuckles Loading modworldgenmain.lua scripts/mods.lua(187,1) Mod: knuckles Mod had no modworldgenmain.lua. Skipping. scripts/mods.lua(179,1) Mod: knuckles Loading modmain.lua LOADING LUA SUCCESSscripts/playerdeaths.lua(79,1) PlayerDeaths loaded morgue 4595 scripts/playerprofile.lua(480,1) loaded profile scripts/playerprofile.lua(544,1) bloom_enabled false scripts/saveindex.lua(99,1) loaded saveindex scripts/gamelogic.lua(1172,1) OnFilesLoaded() scripts/gamelogic.lua(1161,1) OnUpdatePurchaseStateComplete WorldSim::SimThread::SimThread()WorldSim::SimThread::SimThread() completeTHREAD - started 'WorldSim' (5588)WorldSim::SimThread::Main()DoLuaFile scripts/worldgen_main.luaDoLuaFile loading buffer scripts/worldgen_main.luaF:/steam/steamapps/common/dont_starve/data/scripts/dlcsupport_worldgen.lua(24,1) DLC enabled : true scripts/modindex.lua(85,1) ModIndex: Load sequence finished successfully. Reset() returningF:/steam/steamapps/common/dont_starve/data/scripts/mods.lua(152,1) Loading mod: knuckles F:/steam/steamapps/common/dont_starve/data/scripts/mods.lua(152,1) Loading mod: FlapJack F:/steam/steamapps/common/dont_starve/data/scripts/mods.lua(179,1) Mod: knuckles Loading modworldgenmain.lua F:/steam/steamapps/common/dont_starve/data/scripts/mods.lua(187,1) Mod: knuckles Mod had no modworldgenmain.lua. Skipping. F:/steam/steamapps/common/dont_starve/data/scripts/mods.lua(179,1) Mod: FlapJack Loading modworldgenmain.lua F:/steam/steamapps/common/dont_starve/data/scripts/mods.lua(187,1) Mod: FlapJack Mod had no modworldgenmain.lua. Skipping. scripts/worldgen_main.lua(78,1) running worldgen_main.lua scripts/worldgen_main.lua(80,1) SEED = 1427040397 scripts/worldgen_main.lua(458,1) WORLDGEN PRESET: SURVIVAL_DEFAULT scripts/worldgen_main.lua(466,1) WORLDGEN LEVEL ID: 1 scripts/worldgen_main.lua(473,1) ######### Generating Normal Mode Default Level######## F:/steam/steamapps/common/dont_starve/data/scripts/map/forest_map.lua(240,1) Creating story... F:/steam/steamapps/common/dont_starve/data/scripts/map/storygen.lua(444,1) LinkNodesByKeys F:/steam/steamapps/common/dont_starve/data/scripts/map/forest_map.lua(278,1) Baking map... 350 F:/steam/steamapps/common/dont_starve/data/scripts/map/forest_map.lua(303,1) Map Baked! F:/steam/steamapps/common/dont_starve/data/scripts/map/forest_map.lua(334,1) Encoding... F:/steam/steamapps/common/dont_starve/data/scripts/map/forest_map.lua(338,1) Encoding... DONE F:/steam/steamapps/common/dont_starve/data/scripts/map/forest_map.lua(407,1) Checking Tags F:/steam/steamapps/common/dont_starve/data/scripts/map/forest_map.lua(520,1) Populating voronoi... F:/steam/steamapps/common/dont_starve/data/scripts/map/object_layout.lua(418,1) Warning! Could not find a spot for AdventurePortalLayout in node Forest hunters:1:ForestMole F:/steam/steamapps/common/dont_starve/data/scripts/map/forest_map.lua(560,1) PANIC: missing required prefab! adventure_portal scripts/worldgen_main.lua(527,1) An error occured during world gen we will retry! [ 1 of 5 ] F:/steam/steamapps/common/dont_starve/data/scripts/map/forest_map.lua(240,1) Creating story... F:/steam/steamapps/common/dont_starve/data/scripts/map/storygen.lua(444,1) LinkNodesByKeys F:/steam/steamapps/common/dont_starve/data/scripts/map/forest_map.lua(278,1) Baking map... 350 F:/steam/steamapps/common/dont_starve/data/scripts/map/forest_map.lua(303,1) Map Baked! F:/steam/steamapps/common/dont_starve/data/scripts/map/forest_map.lua(334,1) Encoding... F:/steam/steamapps/common/dont_starve/data/scripts/map/forest_map.lua(338,1) Encoding... DONE F:/steam/steamapps/common/dont_starve/data/scripts/map/forest_map.lua(407,1) Checking Tags F:/steam/steamapps/common/dont_starve/data/scripts/map/forest_map.lua(520,1) Populating voronoi... F:/steam/steamapps/common/dont_starve/data/scripts/map/object_layout.lua(418,1) Warning! Could not find a spot for Hot Base in node Badlands:0:BuzzardyBadlands F:/steam/steamapps/common/dont_starve/data/scripts/map/forest_map.lua(655,1) Done forest map gen! scripts/worldgen_main.lua(246,1) Checking map... scripts/worldgen_main.lua(600,1) Generation complete WorldSim::SimThread::Main() completescripts/gamelogic.lua(148,1) Unload FE scripts/gamelogic.lua(150,1) Unload FE done scripts/dlcsupport.lua(24,1) Load scripts/DLC001_prefab_files scripts/mods.lua(269,1) Mod: FlapJack Registering prefabs scripts/mods.lua(275,1) Mod: FlapJack Registering prefab file: prefabs/flapjack scripts/mods.lua(279,1) Mod: FlapJack flapjack scripts/mods.lua(292,1) Mod: FlapJack Registering default mod prefab scripts/mods.lua(269,1) Mod: knuckles Registering prefabs scripts/mods.lua(275,1) Mod: knuckles Registering prefab file: prefabs/knuckles scripts/mods.lua(279,1) Mod: knuckles knuckles scripts/mods.lua(292,1) Mod: knuckles Registering default mod prefab scripts/gamelogic.lua(164,1) LOAD BE scripts/gamelogic.lua(172,1) LOAD BE : done MiniMapComponent::AddAtlas( minimap/minimap_data.xml )MiniMapComponent::AddAtlas( ../mods/FlapJack/images/map_icons/flapjack.xml )scripts/components/seasonmanager.lua(1586,1) AUTUMN TIME scripts/gamelogic.lua(494,1) Loading Nav Grid scripts/saveindex.lua(218,1) LoadSavedSeasonData CB scripts/widgets/bloodover.lua(30,1) update state scripts/widgets/bloodover.lua(50,1) turn off Could not find anim bank [knuckles]HttpClientWriteCallback (0x00581DFF, 1, 16, 0x06C0F994)HttpClientWriteCallback READ 16 (16 total)QueryServerComplete no callbackscripts/components/resurrector.lua(42,1) Resurrector:OnSave 100043 - resurrectionstone used:nil active:nil scripts/saveindex.lua(420,1) DeregisterResurrector scripts/saveindex.lua(436,1) DeregisterResurrector scripts/components/resurrector.lua(42,1) Resurrector:OnSave 100044 - resurrectionstone used:nil active:nil scripts/saveindex.lua(420,1) DeregisterResurrector scripts/saveindex.lua(436,1) DeregisterResurrector scripts/mods.lua(304,1) unloading prefabs for mod MOD_FlapJack scripts/mods.lua(304,1) unloading prefabs for mod MOD_knuckles scripts/mainfunctions.lua(583,1) Saved survival_1 HttpClientWriteCallback (0x00581DFF, 1, 16, 0x06C0F994)HttpClientWriteCallback READ 16 (16 total)QueryServerComplete no callbackCollecting garbage...lua_gc took 0.08 seconds~SimLuaProxy()lua_close took 0.11 secondsReleaseAllReleaseAll FinishedcGame::StartPlayingLOADING LUADoLuaFile scripts/main.luaDoLuaFile loading buffer scripts/main.luascripts/main.lua(161,1) running main.lua scripts/modindex.lua(311,1) loaded modindex scripts/modindex.lua(75,1) ModIndex: Beginning normal load sequence. scripts/modindex.lua(239,1) WARNING loading modinfo.lua: knuckles does not specify if it is compatible with the base game. It may not work properly. scripts/modindex.lua(242,1) WARNING loading modinfo.lua: knuckles does not specify if it is compatible with Reign of Giants. It may not work properly. scripts/modindex.lua(386,1) Could not load mod_config_data/modconfiguration_FlapJack scripts/mods.lua(152,1) Loading mod: FlapJack scripts/modindex.lua(386,1) Could not load mod_config_data/modconfiguration_knuckles scripts/mods.lua(152,1) Loading mod: knuckles scripts/mods.lua(179,1) Mod: FlapJack Loading modworldgenmain.lua scripts/mods.lua(187,1) Mod: FlapJack Mod had no modworldgenmain.lua. Skipping. scripts/mods.lua(179,1) Mod: FlapJack Loading modmain.lua scripts/mods.lua(179,1) Mod: knuckles Loading modworldgenmain.lua scripts/mods.lua(187,1) Mod: knuckles Mod had no modworldgenmain.lua. Skipping. scripts/mods.lua(179,1) Mod: knuckles Loading modmain.lua LOADING LUA SUCCESSscripts/playerdeaths.lua(79,1) PlayerDeaths loaded morgue 4595 scripts/playerprofile.lua(480,1) loaded profile scripts/playerprofile.lua(544,1) bloom_enabled false scripts/saveindex.lua(99,1) loaded saveindex scripts/gamelogic.lua(1172,1) OnFilesLoaded() scripts/gamelogic.lua(1161,1) OnUpdatePurchaseStateComplete scripts/gamelogic.lua(117,1) Unload BE scripts/gamelogic.lua(120,1) Unload BE done scripts/dlcsupport.lua(24,1) Load scripts/DLC001_prefab_files scripts/mods.lua(269,1) Mod: FlapJack Registering prefabs scripts/mods.lua(275,1) Mod: FlapJack Registering prefab file: prefabs/flapjack scripts/mods.lua(279,1) Mod: FlapJack flapjack scripts/mods.lua(292,1) Mod: FlapJack Registering default mod prefab scripts/mods.lua(269,1) Mod: knuckles Registering prefabs scripts/mods.lua(275,1) Mod: knuckles Registering prefab file: prefabs/knuckles scripts/mods.lua(279,1) Mod: knuckles knuckles scripts/mods.lua(292,1) Mod: knuckles Registering default mod prefab scripts/gamelogic.lua(132,1) Load FE scripts/gamelogic.lua(136,1) Load FE: done scripts/screens/mainscreen.lua(576,1) platform_motd table: 2262C478 SimLuaProxy::QueryServer()scripts/modindex.lua(85,1) ModIndex: Load sequence finished successfully. Reset() returningHttpClientWriteCallback (0x00581D5C, 1, 1250, 0x06C0F994)HttpClientWriteCallback READ 1250 (1250 total)scripts/screens/mainscreen.lua(576,1) platform_motd table: 22621A78 scripts/mods.lua(304,1) unloading prefabs for mod MOD_FlapJack scripts/mods.lua(304,1) unloading prefabs for mod MOD_knuckles Collecting garbage...lua_gc took 0.02 seconds~SimLuaProxy()lua_close took 0.03 secondsOrphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. HttpClient::ClientThread::Main() completeShutting down i'm assuming that there is a script in the wrong place as wellSyntax wise I'm seeing at the start of your modmain's prefabs should resemble this:PrefabFiles = { "knuckles",}What is the error stacktrace it prints?here is the full report Starting upDon't Starve: 115739 WIN32_STEAMBuild Date: 2014-11-04_16-15-32THREAD - started 'GAClient' (720)HttpClient::ClientThread::Main()cGame::InitializeOnMainThreadWindowManager::InitializeWindowManager::SetFullscreen(0, 1280, 960, 60)GLInfo~~~~~~GL_VENDOR: Google Inc.GL_RENDERER: ANGLE (NVIDIA GeForce GTX 560 Ti )GL_VERSION: OpenGL ES 2.0 (ANGLE 1.0.0.2249)GL_SHADING_LANGUAGE_VERSION: OpenGL ES GLSL ES 1.00 (ANGLE 1.0.0.2249)THREAD - started 'WindowsInputManager' (5040)OpenGL extensions (19, 19):GL_ANGLE_depth_textureGL_ANGLE_framebuffer_blitGL_ANGLE_framebuffer_multisampleGL_ANGLE_instanced_arraysGL_ANGLE_pack_reverse_row_orderGL_ANGLE_texture_compression_dxt3GL_ANGLE_texture_compression_dxt5GL_ANGLE_texture_usageGL_ANGLE_translated_shader_sourceGL_EXT_read_format_bgraGL_EXT_robustnessGL_EXT_texture_compression_dxt1GL_EXT_texture_format_BGRA8888GL_EXT_texture_storageGL_OES_get_program_binaryGL_OES_packed_depth_stencilGL_OES_rgb8_rgba8GL_OES_standard_derivativesGL_OES_texture_npotGL_MAX_TEXTURE_SIZE = 16384GL_MAX_TEXTURE_IMAGE_UNITS = 16GL_MAX_RENDERBUFFER_SIZE = 16384GL_MAX_VIEWPORT_DIMS = 16384, 16384GL_MAX_VARYING_VECTORS = 10GL_MAX_VERTEX_ATTRIBS = 16GL_MAX_VERTEX_UNIFORM_VECTORS = 254GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS = 4GL_MAX_FRAGMENT_UNIFORM_VECTORS = 2214 compressed texture formatstexture format 0x83f0texture format 0x83f1texture format 0x83f2texture format 0x83f3cDontStarveGame::DoGameSpecificInitialize()cGame::StartPlayingLOADING LUADoLuaFile scripts/main.luaDoLuaFile loading buffer scripts/main.luascripts/main.lua(161,1) running main.lua scripts/modindex.lua(311,1) loaded modindex scripts/modindex.lua(75,1) ModIndex: Beginning normal load sequence. scripts/modindex.lua(239,1) WARNING loading modinfo.lua: knuckles does not specify if it is compatible with the base game. It may not work properly. scripts/modindex.lua(242,1) WARNING loading modinfo.lua: knuckles does not specify if it is compatible with Reign of Giants. It may not work properly. scripts/modindex.lua(386,1) Could not load mod_config_data/modconfiguration_FlapJack scripts/mods.lua(152,1) Loading mod: FlapJack scripts/modindex.lua(386,1) Could not load mod_config_data/modconfiguration_knuckles scripts/mods.lua(152,1) Loading mod: knuckles scripts/mods.lua(179,1) Mod: FlapJack Loading modworldgenmain.lua scripts/mods.lua(187,1) Mod: FlapJack Mod had no modworldgenmain.lua. Skipping. scripts/mods.lua(179,1) Mod: FlapJack Loading modmain.lua scripts/mods.lua(179,1) Mod: knuckles Loading modworldgenmain.lua scripts/mods.lua(187,1) Mod: knuckles Mod had no modworldgenmain.lua. Skipping. scripts/mods.lua(179,1) Mod: knuckles Loading modmain.lua LOADING LUA SUCCESSscripts/playerdeaths.lua(79,1) PlayerDeaths loaded morgue 4595 scripts/playerprofile.lua(480,1) loaded profile scripts/playerprofile.lua(544,1) bloom_enabled false scripts/saveindex.lua(99,1) loaded saveindex scripts/gamelogic.lua(1172,1) OnFilesLoaded() scripts/gamelogic.lua(1161,1) OnUpdatePurchaseStateComplete scripts/gamelogic.lua(117,1) Unload BE Could not unload undefined prefab 0x4374c56c (yellowstaff)Could not unload undefined prefab 0x303bfdce (axe)Could not unload undefined prefab 0x378bda50 (wall_wood_item)Could not unload undefined prefab 0x8cc766ef (pumpkin_lantern)Could not unload undefined prefab 0xfdcabd86 (earmuffshat)Could not unload undefined prefab 0x7f46d7c0 (batbat)Could not unload undefined prefab 0xcceee6c3 (cutstone)Could not unload undefined prefab 0xaf34ecc0 (trunkvest_winter)Could not unload undefined prefab 0x875750ea (turf_road)Could not unload undefined prefab 0x4aeb6641 (armordragonfly)Could not unload undefined prefab 0xcd7669e5 (nightsword)Could not unload undefined prefab 0x1daa5ab7 (turf_carpetfloor)Could not unload undefined prefab 0xefa57cea (bandage)Could not unload undefined prefab 0xde4bc7e7 (wall_hay_item)Could not unload undefined prefab 0xe51acd32 (lightning_rod)Could not unload undefined prefab 0x947bfcb8 (lightning_rod_placer)Could not unload undefined prefab 0x68ba7100 (researchlab2)Could not unload undefined prefab 0x3386a16a (researchlab2_placer)Could not unload undefined prefab 0x3f5176c5 (firepit)Could not unload undefined prefab 0x8a462465 (firepit_placer)Could not unload undefined prefab 0x75370b6 (papyrus)Could not unload undefined prefab 0xbea16a01 (hambat)Could not unload undefined prefab 0xeb646050 (icehat)Could not unload undefined prefab 0x10473739 (spear)Could not unload undefined prefab 0x8d44bbad (cookpot)Could not unload undefined prefab 0x30d2f57d (cookpot_placer)Could not unload undefined prefab 0x89c20b1b (telebase)Could not unload undefined prefab 0x868a468f (telebase_placer)Could not unload undefined prefab 0x9d92cce (purpleamulet)Could not unload undefined prefab 0xcf1626 (rabbithouse)Could not unload undefined prefab 0x1aa31ec4 (rabbithouse_placer)Could not unload undefined prefab 0xe474f23c (armormarble)Could not unload undefined prefab 0x3ccdbe75 (icestaff)Could not unload undefined prefab 0x68ba7101 (researchlab3)Could not unload undefined prefab 0xd6985329 (researchlab3_placer)Could not unload undefined prefab 0x21bf03b1 (thulecite)Could not unload undefined prefab 0x539e9e8a (trunkvest_summer)Could not unload undefined prefab 0xf4eb0943 (shovel)Could not unload undefined prefab 0x761a1799 (gunpowder)Could not unload undefined prefab 0x9a99c7b7 (armorgrass)Could not unload undefined prefab 0xda17c8e8 (armorslurper)Could not unload undefined prefab 0x47611d71 (sweatervest)Could not unload undefined prefab 0x85181f7c (minerhat)Could not unload undefined prefab 0xe8f381a1 (turf_checkerfloor)Could not unload undefined prefab 0xd3671c87 (rainhat)Could not unload undefined prefab 0x2e264dbc (blowdart_pipe)Could not unload undefined prefab 0x2f0f89cb (reflectivevest)Could not unload undefined prefab 0xc4101586 (hammer)Could not unload undefined prefab 0x41ba89b5 (nightmarefuel)Could not unload undefined prefab 0xfbaefa0e (rainometer)Could not unload undefined prefab 0xeea990dc (rainometer_placer)Could not unload undefined prefab 0x7fcb037d (greenstaff)Could not unload undefined prefab 0x7fceff10 (featherfan)Could not unload undefined prefab 0x3c935451 (eyeturret_item)Could not unload undefined prefab 0xcba65752 (amulet)Could not unload undefined prefab 0xe16c07d0 (ruinshat)Could not unload undefined prefab 0xd2c60301 (dragonflychest)Could not unload undefined prefab 0xa72c4129 (dragonflychest_placer)Could not unload undefined prefab 0xb1591875 (greenamulet)Could not unload undefined prefab 0xdac7fbf5 (birdcage)Could not unload undefined prefab 0xe1f9b335 (birdcage_placer)Could not unload undefined prefab 0x68ba7102 (researchlab4)Could not unload undefined prefab 0x79aa04e8 (researchlab4_placer)Could not unload undefined prefab 0x2c158f7c (torch)Could not unload undefined prefab 0x265d1455 (turf_woodfloor)Could not unload undefined prefab 0x9a0ed246 (yellowamulet)Could not unload undefined prefab 0xb4e674c6 (hawaiianshirt)Could not unload undefined prefab 0xc78d9876 (siestahut)Could not unload undefined prefab 0xb22fa874 (siestahut_placer)Could not unload undefined prefab 0xce5a342e (firesuppressor)Could not unload undefined prefab 0xbbba0ebc (firesuppressor_placer)Could not unload undefined prefab 0x9a6718eb (resurrectionstatue)Could not unload undefined prefab 0x6b0c64bf (resurrectionstatue_placer)Could not unload undefined prefab 0xdfb37276 (telestaff)Could not unload undefined prefab 0x3f6c9ebb (diviningrod)Could not unload undefined prefab 0xa6b98890 (beargervest)Could not unload undefined prefab 0xe5936c6a (firestaff)Could not unload undefined prefab 0x34fb4f82 (pitchfork)Could not unload undefined prefab 0x3d4d1dc6 (bedroll_straw)Could not unload undefined prefab 0xadfdb7ae (armor_sanity)Could not unload undefined prefab 0x76d26529 (bugnet)Could not unload undefined prefab 0x5ce426c4 (blowdart_fire)Could not unload undefined prefab 0x4740cff7 (tent)Could not unload undefined prefab 0xb4d742b3 (tent_placer)Could not unload undefined prefab 0x8a2d55ba (catcoonhat)Could not unload undefined prefab 0x4116c653 (raincoat)Could not unload undefined prefab 0x62a5e7fe (nightlight)Could not unload undefined prefab 0x185806ec (nightlight_placer)Could not unload undefined prefab 0xa1e54a85 (goldenaxe)Could not unload undefined prefab 0xe6af29d2 (compass)Could not unload undefined prefab 0x19c004b2 (pighouse)Could not unload undefined prefab 0x469fe538 (pighouse_placer)Could not unload undefined prefab 0xca16846d (boards)Could not unload undefined prefab 0xfa14dec6 (birdtrap)Could not unload undefined prefab 0x7c11af2 (treasurechest)Could not unload undefined prefab 0xd411bef8 (treasurechest_placer)Could not unload undefined prefab 0xef21c9f2 (rope)Could not unload undefined prefab 0xb981ecda (fast_farmplot)Could not unload undefined prefab 0x6c77c310 (fast_farmplot_placer)Could not unload undefined prefab 0xbcfca634 (strawhat)Could not unload undefined prefab 0x111db7ae (footballhat)Could not unload undefined prefab 0x1eee0485 (transistor)Could not unload undefined prefab 0x1cd9e60e (razor)Could not unload undefined prefab 0x1541c9cc (armorruins)Could not unload undefined prefab 0xe87e06c0 (icebox)Could not unload undefined prefab 0xf2bd1baa (icebox_placer)Could not unload undefined prefab 0x36768a92 (orangestaff)Could not unload undefined prefab 0x2ca456a0 (orangeamulet)Could not unload undefined prefab 0xff7a976 (staff_tornado)Could not unload undefined prefab 0xd8067599 (beehat)Could not unload undefined prefab 0xc22935e4 (icepack)Could not unload undefined prefab 0x739fbe3c (homesign)Could not unload undefined prefab 0x33fdbd2e (homesign_placer)Could not unload undefined prefab 0x1c42203 (bell)Could not unload undefined prefab 0x15220700 (backpack)Could not unload undefined prefab 0xa8b25abc (wall_ruins_item)Could not unload undefined prefab 0x3ede96f8 (nightstick)Could not unload undefined prefab 0xd5201c09 (beebox)Could not unload undefined prefab 0x753b7621 (beebox_placer)Could not unload undefined prefab 0xb918c5fd (fishingrod)Could not unload undefined prefab 0x651e3e9e (eyebrellahat)Could not unload undefined prefab 0x92ccc001 (coldfirepit)Could not unload undefined prefab 0x21e04429 (coldfirepit_placer)Could not unload undefined prefab 0x5a59f5cc (goldenshovel)Could not unload undefined prefab 0x2e54b535 (cane)Could not unload undefined prefab 0xb6201ac9 (onemanband)Could not unload undefined prefab 0x4685284 (umbrella)Could not unload undefined prefab 0xda1f7edf (winterometer)Could not unload undefined prefab 0x955229cb (winterometer_placer)Could not unload undefined prefab 0xe2bfa46 (tophat)Could not unload undefined prefab 0xacbea762 (fertilizer)Could not unload undefined prefab 0x3949a42 (meatrack)Could not unload undefined prefab 0x56340ba8 (meatrack_placer)Could not unload undefined prefab 0x6dda899f (watermelonhat)Could not unload undefined prefab 0x94cf6c04 (goldenpickaxe)Could not unload undefined prefab 0x86860bc2 (boomerang)Could not unload undefined prefab 0xb1fa364d (pickaxe)Could not unload undefined prefab 0x3cb06493 (healingsalve)Could not unload undefined prefab 0x39311b4d (grass_umbrella)Could not unload undefined prefab 0x37c31aa6 (lantern)Could not unload undefined prefab 0xbc429ef3 (bushhat)Could not unload undefined prefab 0x80cb1e18 (featherhat)Could not unload undefined prefab 0x3edae42e (multitool_axe_pickaxe)Could not unload undefined prefab 0x7f2d088c (armorwood)Could not unload undefined prefab 0x46094f1b (beefalohat)Could not unload undefined prefab 0xf8e41fa9 (bedroll_furry)Could not unload undefined prefab 0xcda99af6 (winterhat)Could not unload undefined prefab 0x1c48b877 (campfire)Could not unload undefined prefab 0xdfe3a33 (campfire_placer)Could not unload undefined prefab 0x4d9a964d (trap)Could not unload undefined prefab 0x68370bd6 (trap_teeth)Could not unload undefined prefab 0x4058bc0 (molehat)Could not unload undefined prefab 0xcad92460 (flowerhat)Could not unload undefined prefab 0xec43b9f4 (sewing_kit)Could not unload undefined prefab 0xfb180669 (blowdart_sleep)Could not unload undefined prefab 0x38967bb2 (researchlab)Could not unload undefined prefab 0x77e9ae38 (researchlab_placer)Could not unload undefined prefab 0x8bbc7f55 (beemine)Could not unload undefined prefab 0xdf13a0c1 (ruins_bat)Could not unload undefined prefab 0x22ec3802 (wall_stone_item)Could not unload undefined prefab 0x8d60ee3a (coldfire)Could not unload undefined prefab 0xe72d29b0 (coldfire_placer)Could not unload undefined prefab 0x263bc4d5 (slow_farmplot)Could not unload undefined prefab 0x321f7255 (slow_farmplot_placer)Could not unload undefined prefab 0xe5071541 (nightmare_timepiece)Could not unload undefined prefab 0xc3bf310c (blueamulet)Could not unload undefined prefab 0x2ae7e3b3 (purplegem)Could not unload undefined prefab 0x6f21e747 (piggyback)Could not unload undefined prefab 0xf0330963 (panflute)Could not unload undefined prefab 0xdb20fa95 (heatrock)Could not unload undefined prefab 0x1153dbb9 (pottedfern)Could not unload undefined prefab 0xf2102a71 (pottedfern_placer)Could not unload undefined prefab 0x33ab6997 (hud)Could not unload undefined prefab 0x3364203d (forest)Could not unload undefined prefab 0x2e5cb72d (cave)Could not unload undefined prefab 0x40b82ff2 (maxwell)Could not unload undefined prefab 0xbddda476 (fire)Could not unload undefined prefab 0x1078732c (character_fire)Could not unload undefined prefab 0x427b5b39 (shatter)scripts/gamelogic.lua(120,1) Unload BE done scripts/dlcsupport.lua(24,1) Load scripts/DLC001_prefab_files HttpClientWriteCallback (0x00581DFF, 1, 16, 0x06C0F994)HttpClientWriteCallback READ 16 (16 total)scripts/mods.lua(269,1) Mod: FlapJack Registering prefabs scripts/mods.lua(275,1) Mod: FlapJack Registering prefab file: prefabs/flapjack scripts/mods.lua(279,1) Mod: FlapJack flapjack scripts/mods.lua(292,1) Mod: FlapJack Registering default mod prefab scripts/mods.lua(269,1) Mod: knuckles Registering prefabs scripts/mods.lua(275,1) Mod: knuckles Registering prefab file: prefabs/knuckles scripts/mods.lua(279,1) Mod: knuckles knuckles scripts/mods.lua(292,1) Mod: knuckles Registering default mod prefab scripts/gamelogic.lua(132,1) Load FE scripts/gamelogic.lua(136,1) Load FE: done scripts/screens/mainscreen.lua(576,1) platform_motd table: 126672B8 SimLuaProxy::QueryServer()scripts/modindex.lua(85,1) ModIndex: Load sequence finished successfully. Reset() returningQueryServerComplete no callbackHttpClientWriteCallback (0x00581D5C, 1, 1250, 0x06C0F994)HttpClientWriteCallback READ 1250 (1250 total)scripts/screens/mainscreen.lua(576,1) platform_motd table: 12667268 scripts/fileutil.lua(35,1) Erasing survival_2 scripts/fileutil.lua(35,1) Erasing survival_1 scripts/saveindex.lua(772,1) SaveIndex:StartSurvivalMode!: true scripts/mods.lua(304,1) unloading prefabs for mod MOD_FlapJack scripts/mods.lua(304,1) unloading prefabs for mod MOD_knuckles Collecting garbage...lua_gc took 0.01 seconds~SimLuaProxy()lua_close took 0.02 secondsReleaseAllReleaseAll FinishedcGame::StartPlayingLOADING LUADoLuaFile scripts/main.luaDoLuaFile loading buffer scripts/main.luascripts/main.lua(161,1) running main.lua scripts/modindex.lua(311,1) loaded modindex scripts/modindex.lua(75,1) ModIndex: Beginning normal load sequence. scripts/modindex.lua(239,1) WARNING loading modinfo.lua: knuckles does not specify if it is compatible with the base game. It may not work properly. scripts/modindex.lua(242,1) WARNING loading modinfo.lua: knuckles does not specify if it is compatible with Reign of Giants. It may not work properly. scripts/modindex.lua(386,1) Could not load mod_config_data/modconfiguration_FlapJack scripts/mods.lua(152,1) Loading mod: FlapJack scripts/modindex.lua(386,1) Could not load mod_config_data/modconfiguration_knuckles scripts/mods.lua(152,1) Loading mod: knuckles scripts/mods.lua(179,1) Mod: FlapJack Loading modworldgenmain.lua scripts/mods.lua(187,1) Mod: FlapJack Mod had no modworldgenmain.lua. Skipping. scripts/mods.lua(179,1) Mod: FlapJack Loading modmain.lua scripts/mods.lua(179,1) Mod: knuckles Loading modworldgenmain.lua scripts/mods.lua(187,1) Mod: knuckles Mod had no modworldgenmain.lua. Skipping. scripts/mods.lua(179,1) Mod: knuckles Loading modmain.lua LOADING LUA SUCCESSscripts/playerdeaths.lua(79,1) PlayerDeaths loaded morgue 4595 scripts/playerprofile.lua(480,1) loaded profile scripts/playerprofile.lua(544,1) bloom_enabled false scripts/saveindex.lua(99,1) loaded saveindex scripts/gamelogic.lua(1172,1) OnFilesLoaded() scripts/gamelogic.lua(1161,1) OnUpdatePurchaseStateComplete WorldSim::SimThread::SimThread()WorldSim::SimThread::SimThread() completeTHREAD - started 'WorldSim' (5588)WorldSim::SimThread::Main()DoLuaFile scripts/worldgen_main.luaDoLuaFile loading buffer scripts/worldgen_main.luaF:/steam/steamapps/common/dont_starve/data/scripts/dlcsupport_worldgen.lua(24,1) DLC enabled : true scripts/modindex.lua(85,1) ModIndex: Load sequence finished successfully. Reset() returningF:/steam/steamapps/common/dont_starve/data/scripts/mods.lua(152,1) Loading mod: knuckles F:/steam/steamapps/common/dont_starve/data/scripts/mods.lua(152,1) Loading mod: FlapJack F:/steam/steamapps/common/dont_starve/data/scripts/mods.lua(179,1) Mod: knuckles Loading modworldgenmain.lua F:/steam/steamapps/common/dont_starve/data/scripts/mods.lua(187,1) Mod: knuckles Mod had no modworldgenmain.lua. Skipping. F:/steam/steamapps/common/dont_starve/data/scripts/mods.lua(179,1) Mod: FlapJack Loading modworldgenmain.lua F:/steam/steamapps/common/dont_starve/data/scripts/mods.lua(187,1) Mod: FlapJack Mod had no modworldgenmain.lua. Skipping. scripts/worldgen_main.lua(78,1) running worldgen_main.lua scripts/worldgen_main.lua(80,1) SEED = 1427040397 scripts/worldgen_main.lua(458,1) WORLDGEN PRESET: SURVIVAL_DEFAULT scripts/worldgen_main.lua(466,1) WORLDGEN LEVEL ID: 1 scripts/worldgen_main.lua(473,1) ######### Generating Normal Mode Default Level######## F:/steam/steamapps/common/dont_starve/data/scripts/map/forest_map.lua(240,1) Creating story... F:/steam/steamapps/common/dont_starve/data/scripts/map/storygen.lua(444,1) LinkNodesByKeys F:/steam/steamapps/common/dont_starve/data/scripts/map/forest_map.lua(278,1) Baking map... 350 F:/steam/steamapps/common/dont_starve/data/scripts/map/forest_map.lua(303,1) Map Baked! F:/steam/steamapps/common/dont_starve/data/scripts/map/forest_map.lua(334,1) Encoding... F:/steam/steamapps/common/dont_starve/data/scripts/map/forest_map.lua(338,1) Encoding... DONE F:/steam/steamapps/common/dont_starve/data/scripts/map/forest_map.lua(407,1) Checking Tags F:/steam/steamapps/common/dont_starve/data/scripts/map/forest_map.lua(520,1) Populating voronoi... F:/steam/steamapps/common/dont_starve/data/scripts/map/object_layout.lua(418,1) Warning! Could not find a spot for AdventurePortalLayout in node Forest hunters:1:ForestMole F:/steam/steamapps/common/dont_starve/data/scripts/map/forest_map.lua(560,1) PANIC: missing required prefab! adventure_portal scripts/worldgen_main.lua(527,1) An error occured during world gen we will retry! [ 1 of 5 ] F:/steam/steamapps/common/dont_starve/data/scripts/map/forest_map.lua(240,1) Creating story... F:/steam/steamapps/common/dont_starve/data/scripts/map/storygen.lua(444,1) LinkNodesByKeys F:/steam/steamapps/common/dont_starve/data/scripts/map/forest_map.lua(278,1) Baking map... 350 F:/steam/steamapps/common/dont_starve/data/scripts/map/forest_map.lua(303,1) Map Baked! F:/steam/steamapps/common/dont_starve/data/scripts/map/forest_map.lua(334,1) Encoding... F:/steam/steamapps/common/dont_starve/data/scripts/map/forest_map.lua(338,1) Encoding... DONE F:/steam/steamapps/common/dont_starve/data/scripts/map/forest_map.lua(407,1) Checking Tags F:/steam/steamapps/common/dont_starve/data/scripts/map/forest_map.lua(520,1) Populating voronoi... F:/steam/steamapps/common/dont_starve/data/scripts/map/object_layout.lua(418,1) Warning! Could not find a spot for Hot Base in node Badlands:0:BuzzardyBadlands F:/steam/steamapps/common/dont_starve/data/scripts/map/forest_map.lua(655,1) Done forest map gen! scripts/worldgen_main.lua(246,1) Checking map... scripts/worldgen_main.lua(600,1) Generation complete WorldSim::SimThread::Main() completescripts/gamelogic.lua(148,1) Unload FE scripts/gamelogic.lua(150,1) Unload FE done scripts/dlcsupport.lua(24,1) Load scripts/DLC001_prefab_files scripts/mods.lua(269,1) Mod: FlapJack Registering prefabs scripts/mods.lua(275,1) Mod: FlapJack Registering prefab file: prefabs/flapjack scripts/mods.lua(279,1) Mod: FlapJack flapjack scripts/mods.lua(292,1) Mod: FlapJack Registering default mod prefab scripts/mods.lua(269,1) Mod: knuckles Registering prefabs scripts/mods.lua(275,1) Mod: knuckles Registering prefab file: prefabs/knuckles scripts/mods.lua(279,1) Mod: knuckles knuckles scripts/mods.lua(292,1) Mod: knuckles Registering default mod prefab scripts/gamelogic.lua(164,1) LOAD BE scripts/gamelogic.lua(172,1) LOAD BE : done MiniMapComponent::AddAtlas( minimap/minimap_data.xml )MiniMapComponent::AddAtlas( ../mods/FlapJack/images/map_icons/flapjack.xml )scripts/components/seasonmanager.lua(1586,1) AUTUMN TIME scripts/gamelogic.lua(494,1) Loading Nav Grid scripts/saveindex.lua(218,1) LoadSavedSeasonData CB scripts/widgets/bloodover.lua(30,1) update state scripts/widgets/bloodover.lua(50,1) turn off Could not find anim bank [knuckles]HttpClientWriteCallback (0x00581DFF, 1, 16, 0x06C0F994)HttpClientWriteCallback READ 16 (16 total)QueryServerComplete no callbackscripts/components/resurrector.lua(42,1) Resurrector:OnSave 100043 - resurrectionstone used:nil active:nil scripts/saveindex.lua(420,1) DeregisterResurrector scripts/saveindex.lua(436,1) DeregisterResurrector scripts/components/resurrector.lua(42,1) Resurrector:OnSave 100044 - resurrectionstone used:nil active:nil scripts/saveindex.lua(420,1) DeregisterResurrector scripts/saveindex.lua(436,1) DeregisterResurrector scripts/mods.lua(304,1) unloading prefabs for mod MOD_FlapJack scripts/mods.lua(304,1) unloading prefabs for mod MOD_knuckles scripts/mainfunctions.lua(583,1) Saved survival_1 HttpClientWriteCallback (0x00581DFF, 1, 16, 0x06C0F994)HttpClientWriteCallback READ 16 (16 total)QueryServerComplete no callbackCollecting garbage...lua_gc took 0.08 seconds~SimLuaProxy()lua_close took 0.11 secondsReleaseAllReleaseAll FinishedcGame::StartPlayingLOADING LUADoLuaFile scripts/main.luaDoLuaFile loading buffer scripts/main.luascripts/main.lua(161,1) running main.lua scripts/modindex.lua(311,1) loaded modindex scripts/modindex.lua(75,1) ModIndex: Beginning normal load sequence. scripts/modindex.lua(239,1) WARNING loading modinfo.lua: knuckles does not specify if it is compatible with the base game. It may not work properly. scripts/modindex.lua(242,1) WARNING loading modinfo.lua: knuckles does not specify if it is compatible with Reign of Giants. It may not work properly. scripts/modindex.lua(386,1) Could not load mod_config_data/modconfiguration_FlapJack scripts/mods.lua(152,1) Loading mod: FlapJack scripts/modindex.lua(386,1) Could not load mod_config_data/modconfiguration_knuckles scripts/mods.lua(152,1) Loading mod: knuckles scripts/mods.lua(179,1) Mod: FlapJack Loading modworldgenmain.lua scripts/mods.lua(187,1) Mod: FlapJack Mod had no modworldgenmain.lua. Skipping. scripts/mods.lua(179,1) Mod: FlapJack Loading modmain.lua scripts/mods.lua(179,1) Mod: knuckles Loading modworldgenmain.lua scripts/mods.lua(187,1) Mod: knuckles Mod had no modworldgenmain.lua. Skipping. scripts/mods.lua(179,1) Mod: knuckles Loading modmain.lua LOADING LUA SUCCESSscripts/playerdeaths.lua(79,1) PlayerDeaths loaded morgue 4595 scripts/playerprofile.lua(480,1) loaded profile scripts/playerprofile.lua(544,1) bloom_enabled false scripts/saveindex.lua(99,1) loaded saveindex scripts/gamelogic.lua(1172,1) OnFilesLoaded() scripts/gamelogic.lua(1161,1) OnUpdatePurchaseStateComplete scripts/gamelogic.lua(117,1) Unload BE scripts/gamelogic.lua(120,1) Unload BE done scripts/dlcsupport.lua(24,1) Load scripts/DLC001_prefab_files scripts/mods.lua(269,1) Mod: FlapJack Registering prefabs scripts/mods.lua(275,1) Mod: FlapJack Registering prefab file: prefabs/flapjack scripts/mods.lua(279,1) Mod: FlapJack flapjack scripts/mods.lua(292,1) Mod: FlapJack Registering default mod prefab scripts/mods.lua(269,1) Mod: knuckles Registering prefabs scripts/mods.lua(275,1) Mod: knuckles Registering prefab file: prefabs/knuckles scripts/mods.lua(279,1) Mod: knuckles knuckles scripts/mods.lua(292,1) Mod: knuckles Registering default mod prefab scripts/gamelogic.lua(132,1) Load FE scripts/gamelogic.lua(136,1) Load FE: done scripts/screens/mainscreen.lua(576,1) platform_motd table: 2262C478 SimLuaProxy::QueryServer()scripts/modindex.lua(85,1) ModIndex: Load sequence finished successfully. Reset() returningHttpClientWriteCallback (0x00581D5C, 1, 1250, 0x06C0F994)HttpClientWriteCallback READ 1250 (1250 total)scripts/screens/mainscreen.lua(576,1) platform_motd table: 22621A78 scripts/mods.lua(304,1) unloading prefabs for mod MOD_FlapJack scripts/mods.lua(304,1) unloading prefabs for mod MOD_knuckles Collecting garbage...lua_gc took 0.02 seconds~SimLuaProxy()lua_close took 0.03 secondsOrphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. HttpClient::ClientThread::Main() completeShutting down i'm assuming that there is a script in the wrong place as well I do know since it's a object that i'm essentially putting in the game, that I need to create it, or tell the game Im creating it. I'm not sure I did that correctly or not Edited March 22, 2015 by RedRock911 Link to comment https://forums.kleientertainment.com/forums/topic/52273-trouble-with-custom-character-in-prefab-and-modmain/#findComment-624051 Share on other sites More sharing options...
Corrosive Posted March 22, 2015 Share Posted March 22, 2015 (edited) Ignore this post please Edited March 22, 2015 by Corrosive Link to comment https://forums.kleientertainment.com/forums/topic/52273-trouble-with-custom-character-in-prefab-and-modmain/#findComment-624078 Share on other sites More sharing options...
Corrosive Posted March 22, 2015 Share Posted March 22, 2015 Carl was correct in that you need to put quotation marks around the "knuckles" string you're adding to the PrefabFiles table. Without quotation marks, it's trying to use a variable called knuckles, which I'm guessing doesn't exist. So I think I have to add a line "create_mycreature" somewhere. When coding, you need to think about not just what you're adding to the code, but why. Don't fall into the trap of thinking "I need to add something" (which everyone does at some point). Think about what that thing is, and how it does whatever it does. Once you understand what something is doing the "why" and "where" become obvious. Here is the line of thought that you should try to practice in cases like this: Q: What would "create_mycreature" be?A: The name implies that it's "doing something", so probably a function. Q: Would the game already have a function that spawns YOUR creature?A: No, because Klei staff are not benevolent time travelers (that I am aware of) Q: Have you defined this function somewhere?A: Not personally, no. Q: Are you using a template that someone else coded?A: Yes Q: Have they defined the create_mycreature function?A: If yes-- Look at what their code does. Don't just copy it like you're cheating on a test. Learn what it does, and recreate it yourself. A: If no..... Q: What would the function do, specifically?A: Spawn the creature using SpawnPrefab() (as well as give it a transform, and set its location near the player) Q: Where would be a good place to define the function?A: I'll let you answer this Q: Where would be a good place to call the function?A: I'll let you answer this Q: Do you need to create this function, or is it just a way to compartmentalize code?A: The latter. Link to comment https://forums.kleientertainment.com/forums/topic/52273-trouble-with-custom-character-in-prefab-and-modmain/#findComment-624080 Share on other sites More sharing options...
RedRock911 Posted March 23, 2015 Author Share Posted March 23, 2015 Carl was correct in that you need to put quotation marks around the "knuckles" string you're adding to the PrefabFiles table. Without quotation marks, it's trying to use a variable called knuckles, which I'm guessing doesn't exist. When coding, you need to think about not just what you're adding to the code, but why. Don't fall into the trap of thinking "I need to add something" (which everyone does at some point). Think about what that thing is, and how it does whatever it does. Once you understand what something is doing the "why" and "where" become obvious. Ok, I'm taking a look at it now. And applying this 3lbs of spongy material to see if I can get through this simple dilemma. While we are answering new guy stuff. What exactly is the difference between modmain.lua and the prefab scripts? I know that a prefab is a fancy word for any object in the game. But I don't necessarily understand how someone can tell the difference on what they are supposed to script in their main.lua as to their prefab.lua.or the why. Link to comment https://forums.kleientertainment.com/forums/topic/52273-trouble-with-custom-character-in-prefab-and-modmain/#findComment-624140 Share on other sites More sharing options...
Corrosive Posted March 23, 2015 Share Posted March 23, 2015 @RedRock911, A "prefab" is a "prefabricated" thing. Think of it like a prefabricated house. Each house is prefabricated to be the same. Only when the house is actually used does it start to change from the default. modmain.lua provides a place to do stuff that is not directly related to the construction of prefabs(or other game elements, e.g. widgets, components, stategraphs, brains, etc.) Because it gets loaded before other scripts, you can use it to safely include functions and variables that are required by any number of other script files in your mod. For example, in modmain.lua you could create a function that picks color at random. Then you could create 10 different kinds of prefab, which all use that function to determine what color they are going to be. Link to comment https://forums.kleientertainment.com/forums/topic/52273-trouble-with-custom-character-in-prefab-and-modmain/#findComment-624161 Share on other sites More sharing options...
RedRock911 Posted March 23, 2015 Author Share Posted March 23, 2015 (edited) worked well, and thank you. I think I get into a lot of my troubles not understanding what exactly the modmain.lua does as to the prefab, so thank you for clarifying. I plan on completing all 8 tutorials again, and i'll use this post to ask questions on. Hopefully once I am done with all the tutorials, I would like to begin actually building my mod the way I wanted him to work. In that sense, i might as well post here as well. If anything to have a resource for other new guys to be able to look at, and hopefully get a better understanding through me making the mistakes they will have a high probability in making, and find out from the vets, on how to hash it out. --editedyou know, I thought about this all night, I shouldn't just copy and paste, or even think about getting the tutorial working, but use it as a guide to get the mod working, right from the get go. So this creature I am making (i know you know what i'm trying to do corrosive) is supposed to be a follower for a specific character, So i'm going to try and make that happen right off the bat. If I run into issues that I can't figure out, i'll post them here. Edited March 23, 2015 by RedRock911 Link to comment https://forums.kleientertainment.com/forums/topic/52273-trouble-with-custom-character-in-prefab-and-modmain/#findComment-624196 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