Jump to content

[Newbie] Can anyone help me troubleshoot my mod?


Somnei

Recommended Posts

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
 
^Why does the log file say this?
Currently, my mod is only a single prefab inside it's own folder (not anywhere near these prefabs haha), so why can't these be loaded?
 
 
Starting up
Don't Starve: 115739 WIN32_STEAM
Build Date: 2014-11-04_16-15-32
THREAD - started 'GAClient' (23280)
HttpClient::ClientThread::Main()
cGame::InitializeOnMainThread
WindowManager::Initialize
RestoreWindowPosition
   Saved Client Pos (0 x 23)
   Adjusted Window Pos (-8 x -8)
EnsureWindowOnScreen
   All good.
GLInfo
~~~~~~
GL_VENDOR: Google Inc.
GL_RENDERER: ANGLE (NVIDIA GeForce GTX 760 (192-bit))
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' (2804)
OpenGL extensions (19, 19):
GL_ANGLE_depth_texture
GL_ANGLE_framebuffer_blit
GL_ANGLE_framebuffer_multisample
GL_ANGLE_instanced_arrays
GL_ANGLE_pack_reverse_row_order
GL_ANGLE_texture_compression_dxt3
GL_ANGLE_texture_compression_dxt5
GL_ANGLE_texture_usage
GL_ANGLE_translated_shader_source
GL_EXT_read_format_bgra
GL_EXT_robustness
GL_EXT_texture_compression_dxt1
GL_EXT_texture_format_BGRA8888
GL_EXT_texture_storage
GL_OES_get_program_binary
GL_OES_packed_depth_stencil
GL_OES_rgb8_rgba8
GL_OES_standard_derivatives
GL_OES_texture_npot
GL_MAX_TEXTURE_SIZE = 16384
GL_MAX_TEXTURE_IMAGE_UNITS = 16
GL_MAX_RENDERBUFFER_SIZE = 16384
GL_MAX_VIEWPORT_DIMS = 16384, 16384
GL_MAX_VARYING_VECTORS = 10
GL_MAX_VERTEX_ATTRIBS = 16
GL_MAX_VERTEX_UNIFORM_VECTORS = 254
GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS = 4
GL_MAX_FRAGMENT_UNIFORM_VECTORS = 221
4 compressed texture formats
texture format 0x83f0
texture format 0x83f1
texture format 0x83f2
texture format 0x83f3
cDontStarveGame::DoGameSpecificInitialize()
cGame::StartPlaying
LOADING LUA
DoLuaFile scripts/main.lua
DoLuaFile loading buffer scripts/main.lua
scripts/main.lua(161,1) running main.lua
 
scripts/modindex.lua(554,1) WARNING: Force-enabling mod 'Custom_Mod_1' from modsettings.lua! If you are not developing a mod, please use the in-game menu instead.
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: Custom_Mod_1 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: Custom_Mod_1 does not specify if it is compatible with Reign of Giants. It may not work properly.
scripts/modindex.lua(253,1) Error loading modinfo.lua. These fields are required: forumthread
scripts/modindex.lua(239,1) WARNING loading modinfo.lua: workshop-179599797 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: workshop-179599797 does not specify if it is compatible with Reign of Giants. It may not work properly.
scripts/modindex.lua(239,1) WARNING loading modinfo.lua: workshop-257257638 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: workshop-257257638 does not specify if it is compatible with Reign of Giants. It may not work properly.
scripts/modindex.lua(242,1) WARNING loading modinfo.lua: workshop-289099215 does not specify if it is compatible with Reign of Giants. It may not work properly.
scripts/modindex.lua(239,1) WARNING loading modinfo.lua: workshop-343955701 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: workshop-343955701 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_Custom_Mod_1
scripts/mods.lua(152,1) Loading mod: Custom_Mod_1 (spider eggs)
scripts/mods.lua(179,1) Mod: Custom_Mod_1 (spider eggs) Loading modworldgenmain.lua
scripts/mods.lua(187,1) Mod: Custom_Mod_1 (spider eggs)  Mod had no modworldgenmain.lua. Skipping.
scripts/mods.lua(179,1) Mod: Custom_Mod_1 (spider eggs) Loading modmain.lua
LOADING LUA SUCCESS
scripts/playerdeaths.lua(79,1) PlayerDeaths loaded morgue 591
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 (0x05FB56BF, 1, 16, 0x0619F9B0)
HttpClientWriteCallback READ 16 (16 total)
scripts/mods.lua(269,1) Mod: Custom_Mod_1 (spider eggs) Registering prefabs
scripts/mods.lua(275,1) Mod: Custom_Mod_1 (spider eggs)  Registering prefab file: prefabs/spiderbaby
scripts/mods.lua(17,1) error calling LoadPrefabFile in mod Custom_Mod_1 (spider eggs): 
...mods/Custom_Mod_1/scripts/brains/smallbirdbrain2.lua:2: variable 'GLOBAL' is not declared
LUA ERROR stack traceback:
        =[C] in function 'error'
        D:/Games/Steam/steamapps/common/dont_starve/data/scripts/strict.lua(23,1)
        D:/Games/Steam/steamapps/common/dont_starve/data/../mods/Custom_Mod_1/scripts/brains/smallbirdbrain2.lua(2,1) in main chunk
        =[C] in function 'require'
        D:/Games/Steam/steamapps/common/dont_starve/data/../mods/Custom_Mod_1/scripts/prefabs/spiderbaby.lua(1,1) in function 'fn'
        D:/Games/Steam/steamapps/common/dont_starve/data/scripts/mainfunctions.lua(74,1)
        =(tail call) ?
        =[C] in function 'xpcall'
        D:/Games/Steam/steamapps/common/dont_starve/data/scripts/mods.lua(15,1)
        D:/Games/Steam/steamapps/common/dont_starve/data/scripts/mods.lua(276,1) in function 'RegisterPrefabs'
        D:/Games/Steam/steamapps/common/dont_starve/data/scripts/gamelogic.lua(129,1) in function 'LoadAssets'
...
        =[C] in function 'GetPersistentString'
        D:/Games/Steam/steamapps/common/dont_starve/data/scripts/saveindex.lua(91,1) in function 'Load'
        D:/Games/Steam/steamapps/common/dont_starve/data/scripts/gamelogic.lua(1189,1) in function 'callback'
        D:/Games/Steam/steamapps/common/dont_starve/data/scripts/playerprofile.lua(574,1) in function 'Set'
        D:/Games/Steam/steamapps/common/dont_starve/data/scripts/playerprofile.lua(458,1)
        =[C] in function 'GetPersistentString'
        D:/Games/Steam/steamapps/common/dont_starve/data/scripts/playerprofile.lua(456,1) in function 'Load'
        D:/Games/Steam/steamapps/common/dont_starve/data/scripts/gamelogic.lua(1188,1) in main chunk
        =[C] in function 'require'
        D:/Games/Steam/steamapps/common/dont_starve/data/scripts/mainfunctions.lua(652,1)
scripts/mods.lua(226,1) Disabling Custom_Mod_1 (spider eggs) because it had an error.
scripts/frontend.lua(723,1) SCRIPT ERROR! Showing error screen
scripts/mods.lua(292,1) Mod: Custom_Mod_1 (spider eggs)  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: 184CF2C8
SimLuaProxy::QueryServer()
scripts/modindex.lua(85,1) ModIndex: Load sequence finished successfully.
 
Reset() returning
QueryServerComplete no callback
HttpClientWriteCallback (0x05FB561C, 1, 1250, 0x0619F9B0)
HttpClientWriteCallback READ 1250 (1250 total)
scripts/screens/mainscreen.lua(576,1) platform_motd table: 181F5190
 
 
This is my entire log-file. Quick help is appreciated! I've been trying to make it work for a couple of hours now.
Link to comment
Share on other sites

^Why does the log file say this?

Currently, my mod is only a single prefab inside it's own folder (not anywhere near these prefabs haha), so why can't these be loaded?

...mods/Custom_Mod_1/scripts/brains/smallbirdbrain2.lua:2: variable 'GLOBAL' is not declared

This is my entire log-file. Quick help is appreciated! I've been trying to make it work for a couple of hours now.

 

Are you copy-pasting code from a modmain.lua to a script file? Because that doesn't work that easily. You need to remove all instances of GLOBAL.

 

if there's a bit saying local Xyz = GLOBAL.Xyz then remove that whole line.

Link to comment
Share on other sites

You need to remove all instances of GLOBAL.

 

if there's a bit saying local Xyz = GLOBAL.Xyz then remove that whole line.

 

Thank you Mobbstar! You're a hero. I've progressed a lot, but I encountered an error while trying to make my mod use a stategraph.

 

...mapps/common/dont_starve/data/scripts/stategraph.lua:110: calling 'ProfilerPush' on bad self (string expected, got nil)
LUA ERROR stack traceback:
        =[C] in function 'ProfilerPush'
        D:/Games/Steam/steamapps/common/dont_starve/data/scripts/stategraph.lua(110,1) in function 'Update'
        D:/Games/Steam/steamapps/common/dont_starve/data/scripts/update.lua(127,1)

scripts/frontend.lua(723,1) SCRIPT ERROR! Showing error screen

 

That part in stategraph.lua looks like this:

   TheSim:ProfilerPush("updaters")
    for k,v in pairs(updaters) do
        if k.inst:IsValid() then
TheSim:ProfilerPush(k.inst.prefab)
            local sleep_amount = k:Update()
            TheSim:ProfilerPop()
            if sleep_amount then
                if sleep_amount > 0 then
                  self:Sleep(k, sleep_amount)
                else
                    self.updaters[k] = true
                end
            else
                self:Hibernate(k)
            end
        end

    end

 

Any ideas why it does this? 

 

Thank you!

Link to comment
Share on other sites

Thank you Mobbstar! You're a hero. I've progressed a lot, but I encountered an error while trying to make my mod use a stategraph.

 

Any ideas why it does this? 

 

Thank you!

 

It doesn't recognize your prefab. That can have numerous reasons.

 

What stategraph are you trying to use? Can you show me your prefab file?

Link to comment
Share on other sites

prefab:

local brain = require "brains/smallbirdbrain2"
require "stategraphs/SGspider"
require "components/hunger"
require "components/eater"
require "components/sleeper"
require "components/follower"
require "components/combat"
require "components/health"
require "components/leader"
require "components/inspectable"
require "components/locomotor"
require "components/trader"
require "components/lootdropper"
require "components/growable"
 
 
local WAKE_TO_FOLLOW_DISTANCE = 10
local SLEEP_NEAR_LEADER_DISTANCE = 7
 
local assets =
{
Asset("ANIM", "anim/ds_spider_basic.zip"),
Asset("ANIM", "anim/spider_build.zip"),
Asset("SOUND", "sound/spider.fsb"),
--Asset("SOUND", "sound/smallbird.fsb"),
}
 
 
local function FollowPlayer(inst)
    --print("smallbird - FollowPlayer")
 
local player = GetPlayer()
if player and player.components.leader then
        --print("   adding follower")
player.components.leader:AddFollower(inst)
end
 
end
 
local function GetStatus(inst)
    --print("smallbird - GetStatus")
    if inst.components.hunger then
        if inst.components.hunger:IsStarving(inst) then
            --print("STARVING")
            return "STARVING"
        elseif inst.components.hunger:GetPercent() < .5 then
            --print("HUNGRY")
            return "HUNGRY"
        end
    end
end
 
local function ShouldAcceptItem(inst, item)
    --print("smallbird - ShouldAcceptItem", inst.name, item.name)
    if item.components.edible and inst.components.hunger and inst.components.eater then
        return inst.components.eater:CanEat(item) and inst.components.hunger:GetPercent() < .9
    end
end
 
local function OnGetItemFromPlayer(inst, giver, item)
    --print("smallbird - OnGetItemFromPlayer")
 
    if inst.components.sleeper then
        inst.components.sleeper:WakeUp()
    end
 
    --I eat food
    if item.components.edible then
        if inst.components.combat.target and inst.components.combat.target == giver then
            inst.components.combat:SetTarget(nil)
        end
        if inst.components.eater:Eat(item) then
            --print("   yummy!")
            -- yay!?
        end
    end
 
end
 
local function OnRefuseItem(inst, item)
    --print("smallbird - OnRefuseItem")
    --inst.sg:GoToState("refuse")
end
 
local function ShouldWakeUp(inst)
    return DefaultWakeTest(inst) or inst.components.hunger:IsStarving(inst) or not inst.components.follower:IsNearLeader(WAKE_TO_FOLLOW_DISTANCE)
end
 
local function ShouldSleep(inst)
    return DefaultSleepTest(inst) and not inst.components.hunger:IsStarving(inst) and inst.components.follower:IsNearLeader(SLEEP_NEAR_LEADER_DISTANCE)
end
 
local function CanEatTest(inst, item)
    --print("smallbird - CanEatTest", inst.name, item.components.edible.foodtype, item, item.prefab)
    local canEat = (item.components.edible.foodtype == "MEAT") or (item.prefab == "monstermeat") or (item.components.edible.foodtype == "INSECT")
    --print("   canEat?", canEat)
    return canEat
end
 
local function GetSmallGrowTime(inst)
return SPIDERBABY_GROW_TIME
end
 
local function OnEat(inst, food)
    -- there is no health metre, so eating anything heals to full health
    if inst:HasTag("teenspider") then
        inst.components.health:DoDelta(inst.components.health.maxhealth * .33, nil, food.prefab)
        inst.components.combat:SetTarget(nil)
    else
        inst.components.health:DoDelta(inst.components.health.maxhealth, nil, food.prefab)
    end
end
 
local function SetTeenAttackDefault(inst)
    --print("teenbird - Set phasers to 'KILL'")
    inst:RemoveTag("peck_attack")
    inst.components.combat:SetDefaultDamage(SPIDERBABY_DAMAGE)
    inst.components.combat:SetAttackPeriod(SPIDERBABY_ATTACK_PERIOD)
    inst.components.combat:SetHurtSound("dontstarve/creatures/spider/hit_response")
end
 
local function SetTeen(inst)
    --print("smallbird - SetTeen")
 
   -- inst.sg:GoToState("growup") -- calls back to SpawnTeen
end
 
local function OnAttacked(inst, data)
    --print("smallbird - OnAttacked !!!")
 
    if inst:HasTag("teenspider") and data.attacker ~= nil and (data.attacker == inst.components.follower.leader or data.attacker:HasTag("player")) then
        --print("  what did I ever do to you!?")
        -- well i was just annoyed, but now you done pissed me off!
        SetTeenAttackDefault(inst)
    end
 
    inst.components.combat:SuggestTarget(data.attacker)
    inst.components.combat:ShareTarget(data.attacker, 10, function(dude) return dude:HasTag("spiderbaby") and not dude.components.health:IsDead() end, 5)
end
 
 
local function create_common(Sim)
    --print("smallbird - create_common")
 
--inst = inst or CreateEntity()
local inst = CreateEntity()
 
    inst:AddTag("animal")
    inst:AddTag("companion")
    inst:AddTag("character")
    inst:AddTag("spiderchan")
 
    inst.entity:AddTransform()
inst.entity:AddSoundEmitter()
local shadow = inst.entity:AddDynamicShadow()
shadow:SetSize( 1.5, .5 )
inst.entity:AddLightWatcher()
    
MakeCharacterPhysics(inst, 10, .5)
    
    inst.Physics:SetCollisionGroup(COLLISION.CHARACTERS)
    inst.Physics:ClearCollisionMask()
    inst.Physics:CollidesWith(COLLISION.WORLD)
    inst.Physics:CollidesWith(COLLISION.OBSTACLES)
    inst.Physics:CollidesWith(COLLISION.CHARACTERS)
 
    inst.Transform:SetFourFaced()
 
inst:SetBrain(brain)
 
    inst.userfunctions = 
    {
        FollowPlayer = FollowPlayer,
    }
 
    inst.entity:AddAnimState()
    inst.AnimState:SetBank("spider")
    inst.AnimState:PlayAnimation("idle")
 
 
    inst:AddComponent("locomotor")
inst.components.locomotor:SetSlowMultiplier( 1 )
inst.components.locomotor:SetTriggersCreep(false)
inst.components.locomotor.walkspeed = 6
    inst.components.locomotor.pathcaps = { ignorecreep = true }
 
    inst:SetStateGraph("SGspider")
 
    ------------------------------------------
    inst:AddComponent("health")
    inst:AddComponent("hunger")
 
    inst:AddComponent("combat")
inst:ListenForEvent("attacked", OnAttacked)
 
    inst:AddComponent("inspectable")
    inst.components.inspectable.getstatus = GetStatus
 
 
    inst:AddComponent("follower")
 
    inst:AddComponent("eater")
    inst.components.eater:SetOmnivore()
    inst.components.eater:SetOnEatFn(OnEat)
 
    inst:AddComponent("sleeper")
    inst.components.sleeper:SetResistance(3)
    inst.components.sleeper.testperiod = GetRandomWithVariance(6, 2)
    inst.components.sleeper:SetSleepTest(ShouldSleep)
    inst.components.sleeper:SetWakeTest(ShouldWakeUp)
 
    inst:AddComponent("trader")
    inst.components.trader:SetAcceptTest(ShouldAcceptItem)
    inst.components.trader.onaccept = OnGetItemFromPlayer
    inst.components.trader.onrefuse = OnRefuseItem
 
    inst:AddComponent("lootdropper")
 
    --print("smallbird - create_common END")
    return inst
end
 
 
local function create_spiderbaby(Sim)
    --print("smallbird - create_smallbird")
 
local inst = create_common(Sim)
 
    --inst.entity:AddTransform()
    --inst.entity:AddAnimState()
    --inst.AnimState:SetBank("spider")
    --inst.AnimState:SetBuild("spider_basic")
    inst.AnimState:SetBuild("spider_build")
    --inst.AnimState:PlayAnimation("idle")
 
    create_common(inst)
 
    --inst:SetStateGraph("SGspider")
 
    inst:AddTag("smallcreature")
 
inst.DynamicShadow:SetSize( 1.25, .75 )
    MakeMediumBurnableCharacter(inst, "body")
    MakeMediumFreezableCharacter(inst, "body")
    
    inst.components.health:SetMaxHealth(SPIDERBABY_HEALTH)
    
    inst.components.hunger:SetMax(SPIDERBABY_HUNGER)
    inst.components.hunger:SetRate(SPIDERBABY_HUNGER/SPIDERBABY_STARVE_TIME)
    inst.components.hunger:SetKillRate(SPIDERBABY_HEALTH/SPIDERBABY_STARVE_KILL_TIME)
 
inst.components.combat.hiteffectsymbol = "body"
    inst.components.combat:SetRange(SPIDERBABY_ATTACK_RANGE)
    inst.components.combat:SetDefaultDamage(SPIDERBABY_DAMAGE)
    inst.components.combat:SetAttackPeriod(SPIDERBABY_ATTACK_PERIOD)
 
    inst.components.lootdropper:SetLoot({"monstermeat"})
 
    inst.components.eater:SetCanEatTestFn(CanEatTest)
 
    local growth_stages = {
        {name="small", time = GetSmallGrowTime, fn = function() end },
        {name="tall", fn = SetTeen}
    }
 
inst:AddComponent("growable")
    inst.components.growable.stages = growth_stages
    inst.components.growable:SetStage(1)
    inst.components.growable:StartGrowing()
 
    --print("smallbird - create_smallbird END")
return inst
end
 
 
return Prefab( "common/spiderchan", create_spiderbaby, assets, prefabs)
 

 

It's basically just a conversion of the aldready existing smallbird prefab, hence all the funky comments.

Stategraph is SGspider.

 

Is it the way it's returning my prefab that is causing the issue? I'm really new to .lua, only started looking into it yesterday.

Link to comment
Share on other sites

You're calling "create_common" several times. that may be the cause of problems

 

EDIT:


local function create_spiderbaby(Sim)
--print("smallbird - create_smallbird")

local inst = create_common(Sim)

--inst.entity:AddTransform()
--inst.entity:AddAnimState()
--inst.AnimState:SetBank("spider")
--inst.AnimState:SetBuild("spider_basic")
inst.AnimState:SetBuild("spider_build")
--inst.AnimState:PlayAnimation("idle")

create_common(inst)
Link to comment
Share on other sites

You're calling "create_common" several times. that may be the cause of problems

 

EDIT:

local function create_spiderbaby(Sim)

--print("smallbird - create_smallbird")

local inst = create_common(Sim)

--inst.entity:AddTransform()

--inst.entity:AddAnimState()

--inst.AnimState:SetBank("spider")

--inst.AnimState:SetBuild("spider_basic")

inst.AnimState:SetBuild("spider_build")

--inst.AnimState:PlayAnimation("idle")

create_common(inst)

 

 

Thank you! It solved the problem! I'm having problems getting my spider to follow me, but I noticed that when simply spawning smallbirds these do not follow either. How are the followers following, where is it defined? I looked through the prefab for tallbird eggs and didn't find anything stating a follow-command or referencing to one...

Link to comment
Share on other sites

Thank you! It solved the problem! I'm having problems getting my spider to follow me, but I noticed that when simply spawning smallbirds these do not follow either. How are the followers following, where is it defined? I looked through the prefab for tallbird eggs and didn't find anything stating a follow-command or referencing to one...

 

Yes, there is a way to set the leader. It is:

 

inst.components.follower:SetLeader(guy)

 

I recommend you put that line in "OnGetItemFromPlayer" to set the leader to "giver". That way you can make the smallspiderbirds follow you by feeding them. I'm not sure if that'd work with the talltarantulabirds.

Link to comment
Share on other sites

Yes, there is a way to set the leader. It is:

 

inst.components.follower:SetLeader(guy)

 

I recommend you put that line in "OnGetItemFromPlayer" to set the leader to "giver". That way you can make the smallspiderbirds follow you by feeding them. I'm not sure if that'd work with the talltarantulabirds.

 

haha, thanks <3

 

It totally works now, I'm so happy ;;___;;

Link to comment
Share on other sites

@Mobbstar

Also, sorry for doubleposting, but is there a way to make mobs speak without completely rewriting their brains? I looked at how pigs function, and they use chattynodes in pigbrain.lua.

I tried referring to the function Say() in talker.lua, but it's giving me errors! x:

 

My calling of this function:

inst.components.talker:Say(SPIDERCHAN_TALK_ACCEPT_FOOD)]

(the string is defined in my modmain)

 

The error I get:

COROUTINE 108489 SCRIPT CRASH:
...amapps/common/dont_starve/data/scripts/scheduler.lua:345: attempt to perform arithmetic on local 'time' (a nil value)
LUA ERROR stack traceback:
        D:/Games/Steam/steamapps/common/dont_starve/data/scripts/scheduler.lua(345,1) in function 'Sleep'
        D:/Games/Steam/steamapps/common/dont_starve/data/scripts/components/talker.lua(49,1) in function 'sayfn'

        D:/Games/Steam/steamapps/common/dont_starve/data/scripts/components/talker.lua(114,1)

 

Not sure why time is a nil value, is it because of the way I called the function? I've searched for other people using this function, but it was mostly for other characters and since the pigs do not use it I have no reference... D:

 

EDIT: 

also, I have made sure to add the correct components for talker!

Link to comment
Share on other sites

@Mobbstar

Also, sorry for doubleposting, but is there a way to make mobs speak without completely rewriting their brains? I looked at how pigs function, and they use chattynodes in pigbrain.lua.

I tried referring to the function Say() in talker.lua, but it's giving me errors! x:

(the string is defined in my modmain)

Not sure why time is a nil value, is it because of the way I called the function? I've searched for other people using this function, but it was mostly for other characters and since the pigs do not use it I have no reference... D:

 

Is that variable really a string and not a table or class or sth like that?

[Here] you can see the function in use, look at the arguments, time is the second one.

Link to comment
Share on other sites

Is that variable really a string and not a table or class or sth like that?

[Here] you can see the function in use, look at the arguments, time is the second one.

 

wow, now I feel really stupid.

You're completely right, I copied the table with strings from the strings.lua into my modmain under another name and tried to use that with my function. Thanks mobbstar <3

 

@Mobbstar, at the moment there seems to be a delay when my birdspider attacks something, where it just looks at them for an awkward amount of time before doing anything. Where do you suggest looking to find the cause for this? Not really seeing anything in its stategraph or brain (the stategraph is custom, a mix between spider and smallbird, the brain is a smallbird brain)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

Please be aware that the content of this thread may be outdated and no longer applicable.

×
  • Create New...