Jump to content

Recommended Posts

So I am using the extended character sample template for making a custom character in Don't Starve Together. I have run into the problem where when I try and start the server, it comes up with this:

[00:01:18]: Mod: The Huan and Only	Registering prefabs	[00:01:18]: Mod: The Huan and Only	  Registering prefab file: prefabs/huan	[00:01:18]: Mod: The Huan and Only	    huan	[00:01:18]: Mod: The Huan and Only	  Registering prefab file: prefabs/huan_none	[00:01:18]: error calling LoadPrefabFile in mod The Huan and Only: [string "../mods/The Huan and Only/scripts/prefabs/h..."]:17: variable 'CreatePrefabSkin' is not declaredLUA ERROR stack traceback:        =[C] in function 'error'        scripts/strict.lua(23,1)        ../mods/The Huan and Only/scripts/prefabs/huan_none.lua(17,1) in function 'fn'        scripts/mainfunctions.lua(94,1)        =(tail call) ?        =[C] in function 'xpcall'        scripts/mods.lua(123,1)        scripts/mods.lua(494,1) in function 'RegisterPrefabs'        scripts/gamelogic.lua(207,1) in function 'LoadAssets'        scripts/gamelogic.lua(803,1) in function 'LoadSlot'        scripts/gamelogic.lua(859,1) in function 'DoResetAction'	...        =[C] in function 'GetPersistentString'        scripts/saveindex.lua(74,1) in function 'Load'        scripts/gamelogic.lua(936,1) in function 'callback'        scripts/playerprofile.lua(567,1) in function 'Set'        scripts/playerprofile.lua(450,1)        =[C] in function 'GetPersistentString'        scripts/playerprofile.lua(448,1) in function 'Load'        scripts/gamelogic.lua(935,1) in main chunk        =[C] in function 'require'        scripts/mainfunctions.lua(709,1)	[00:01:18]: Disabling The Huan and Only because it had an error.	[00:01:18]: [string "../mods/The Huan and Only/scripts/prefabs/h..."]:17: variable 'CreatePrefabSkin' is not declaredLUA ERROR stack traceback:        =[C] in function 'error'        scripts/strict.lua(23,1)        ../mods/The Huan and Only/scripts/prefabs/huan_none.lua(17,1) in function 'fn'        scripts/mainfunctions.lua(94,1)        =(tail call) ?        =[C] in function 'xpcall'        scripts/mods.lua(123,1)        scripts/mods.lua(494,1) in function 'RegisterPrefabs'        scripts/gamelogic.lua(207,1) in function 'LoadAssets'        scripts/gamelogic.lua(803,1) in function 'LoadSlot'        scripts/gamelogic.lua(859,1) in function 'DoResetAction'	...        =[C] in function 'GetPersistentString'        scripts/saveindex.lua(74,1) in function 'Load'        scripts/gamelogic.lua(936,1) in function 'callback'        scripts/playerprofile.lua(567,1) in function 'Set'        scripts/playerprofile.lua(450,1)        =[C] in function 'GetPersistentString'        scripts/playerprofile.lua(448,1) in function 'Load'        scripts/gamelogic.lua(935,1) in main chunk        =[C] in function 'require'        scripts/mainfunctions.lua(709,1)[00:01:18]: [string "../mods/The Huan and Only/scripts/prefabs/h..."]:17: variable 'CreatePrefabSkin' is not declaredLUA ERROR stack traceback:        =[C] in function 'error'        scripts/strict.lua(23,1)        ../mods/The Huan and Only/scripts/prefabs/huan_none.lua(17,1) in function 'fn'        scripts/mainfunctions.lua(94,1)        =(tail call) ?        =[C] in function 'xpcall'        scripts/mods.lua(123,1)        scripts/mods.lua(494,1) in function 'RegisterPrefabs'        scripts/gamelogic.lua(207,1) in function 'LoadAssets'        scripts/gamelogic.lua(803,1) in function 'LoadSlot'        scripts/gamelogic.lua(859,1) in function 'DoResetAction'	...        =[C] in function 'GetPersistentString'        scripts/saveindex.lua(74,1) in function 'Load'        scripts/gamelogic.lua(936,1) in function 'callback'        scripts/playerprofile.lua(567,1) in function 'Set'        scripts/playerprofile.lua(450,1)        =[C] in function 'GetPersistentString'        scripts/playerprofile.lua(448,1) in function 'Load'        scripts/gamelogic.lua(935,1) in main chunk        =[C] in function 'require'        scripts/mainfunctions.lua(709,1)	[00:01:18]: Mod: The Huan and Only	  Registering default mod prefab	[00:01:18]: Mod: workshop-345692228 (Minimap HUD)	Registering prefabs	[00:01:18]: Mod: workshop-345692228 (Minimap HUD)	  Registering default mod prefab	[00:01:18]: Mod: workshop-352373173 (Gesture Wheel)	Registering prefabs	[00:01:18]: Mod: workshop-352373173 (Gesture Wheel)	  Registering default mod prefab	[00:01:18]: 	LOAD BE	[00:01:29]: 	LOAD BE: done	[00:01:29]: Deserialize world session from session/24594C7D014F611D/0000000002	[00:01:29]: Save file is at version 1	[00:01:29]: Begin Session: 24594C7D014F611D[00:01:29]: saving to server_temp/server_save	[00:01:30]: MiniMapComponent::AddAtlas( minimap/minimap_data.xml )[00:01:30]: MiniMapComponent::AddAtlas( ../mods/The Huan and Only/images/map_icons/huan.xml )[00:01:32]: Loading Nav Grid	[00:01:35]: Validating ID -1: world: <nil> (auto) available: false receives: -1 status: inactive (disabled by prefab)	[00:01:35]: Validating ID -1: world: <nil> (auto) available: false receives: -1 status: inactive (disabled by prefab)	[00:01:35]: Validating ID -1: world: <nil> (auto) available: false receives: -1 status: inactive (disabled by prefab)	[00:01:35]: Validating ID -1: world: <nil> (auto) available: false receives: -1 status: inactive (disabled by prefab)	[00:01:35]: Validating ID -1: world: <nil> (auto) available: false receives: -1 status: inactive (disabled by prefab)	[00:01:35]: Validating ID -1: world: <nil> (auto) available: false receives: -1 status: inactive (disabled by prefab)	[00:01:35]: Validating ID -1: world: <nil> (auto) available: false receives: -1 status: inactive (disabled by prefab)	[00:01:35]: Validating ID -1: world: <nil> (auto) available: false receives: -1 status: inactive (disabled by prefab)	[00:01:35]: Validating ID -1: world: <nil> (auto) available: false receives: -1 status: inactive (disabled by prefab)	[00:01:35]: Validating ID -1: world: <nil> (auto) available: false receives: -1 status: inactive (disabled by prefab)	[00:01:36]: Reconstructing topology	[00:01:36]: 	...Sorting points	[00:01:36]: 	...Sorting edges	[00:01:36]: 	...Connecting nodes	[00:01:36]: 	...Validating connections	[00:01:36]: 	...Housekeeping	[00:01:36]: 	...Done!	[00:01:36]: 1 uploads added to server. From server_temp[00:01:36]: Telling Client our new session identifier: 24594C7D014F611D[00:01:36]: ModIndex: Load sequence finished successfully.	[00:01:36]: Reset() returning[00:01:40]: Force aborting...

This is the huan_none.lua it is referring to:

local assets ={	Asset( "ANIM", "anim/huan.zip" ),	Asset( "ANIM", "anim/ghost_huan_build.zip" ),}local skins ={	normal_skin = "huan",	ghost_skin = "ghost_huan_build",}local base_prefab = "huan"local tags = {"HUAN", "CHARACTER"}return CreatePrefabSkin("huan_none",{	base_prefab = base_prefab, 	skins = skins, 	assets = assets,	tags = tags,		skip_item_gen = true,	skip_giftable_gen = true,}) 

How do I fix this problem?

 

Thanks,

-Whyneb360

There is a separate forum for DST, it is clearly visible on the main page...

 

Obviously, 'CreatePrefabSkin' is not declared. Most likely the ESC template has not been updated to the latest API version. I suggest you look for a functional character mod and base your code of of it's.

 

Also: Please search your issue before posting, we had a post with the exact same issue a couple days ago.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...