Jump to content

Custom character errors-- modhelp please!


Recommended Posts

I'm trying to create a character mod for my friend, and I have definitely gone in over my head. I've made simple character mods before, but I think I messed something up on this one and I'm at a loss for how to fix it. I tried asking a computer engineer friend of mine and tried posting on reddit for help to no avail.

Basically, the errors that I'm experiencing say that they're in the script on line 2376. Error block below.

[00:01:11]: MOD ERROR: MASKY (Masky): Mod: MASKY (Masky)    
[00:01:25]: Event data unavailable: lavaarena_event_server/lavaarena_achievement_quest_defs
[00:01:25]: error loading module 'speech_masky' from file '../mods/MASKY\scripts\speech_masky.lua':
    [string "cannot OLDFILEACCESSMETHOD @../mods/MASKY\scripts\speech_masky...."]:2376: '<eof>' expected near '='
LUA ERROR stack traceback:
        =[C] ?
        =[C] in function 'require'
        ../mods/MASKY/modmain.lua(62,1) in main chunk
        =[C] in function 'xpcall'
        scripts/util.lua(711,1) in function 'RunInEnvironment'
        scripts/mods.lua(513,1) in function 'InitializeModMain'
        scripts/mods.lua(487,1) in function 'LoadMods'
        scripts/main.lua(302,1) in function 'ModSafeStartup'
        scripts/main.lua(375,1)
        =[C] in function 'SetPersistentString'
        scripts/mainfunctions.lua(26,1) in function 'SavePersistentString'
        scripts/modindex.lua(80,1)
        =[C] in function 'GetPersistentString'
        scripts/modindex.lua(67,1) in function 'BeginStartupSequence'
        scripts/main.lua(374,1) in function 'callback'
        scripts/modindex.lua(545,1)
        =[C] in function 'GetPersistentString'
        scripts/modindex.lua(519,1) in function 'Load'
        scripts/main.lua(373,1) in main chunk
[string "scripts/mainfunctions.lua"]:1089: variable 'global_error_widget' is not declared
LUA ERROR stack traceback:
        =[C] in function 'error'
        scripts/strict.lua(23,1)
        scripts/mainfunctions.lua(1089,1)
        =[C] in function 'GetPersistentString'
        scripts/quagmire_recipebook.lua(54,1) in function 'Load'
        scripts/main.lua(320,1) in function 'ModSafeStartup'
        scripts/main.lua(375,1)
        =[C] in function 'SetPersistentString'
        scripts/mainfunctions.lua(26,1) in function 'SavePersistentString'
        scripts/modindex.lua(80,1)
        =[C] in function 'GetPersistentString'
        scripts/modindex.lua(67,1) in function 'BeginStartupSequence'
        scripts/main.lua(374,1) in function 'callback'
        scripts/modindex.lua(545,1)
        =[C] in function 'GetPersistentString'
        scripts/modindex.lua(519,1) in function 'Load'
        scripts/main.lua(373,1) in main chunk
[00:01:25]: DoLuaFile Error: (null)
[00:01:25]: LuaError but no error string
[00:01:25]: Error loading main.lua
[00:01:25]: Failed mSimulation->Reset()

The script, to what I can see, has identical syntax to every other character mod that I have. I don't know what I'm missing here that I can't get the mod to work without immediately crashing the game just by being enabled.

On another note, I can't get the mod icon to work. There was something about converting it to .tex, but when I tried, the tex converted said that this wasn't allowed and went against some admin rules? I don't know what to do about that, Don't Starve isn't recognising it as a texture.

Lastly, and here's where I'm really getting over my head, I'm looking to have this character be able to teleport (I stole a teleport device from another mod, but can't figure out how to edit it) and have a mask which functions like the moggles, but without durability. Ideally, it would give a damage reduction, night vision, and a sanity drain, but I have no idea how to write that code and searching for help with this seems to all be in program language that I can't understand. Would anyone be able to help me with figuring out what I've done wrong and how I can fix it?

Thank you. Speech lua attached in files.

speech_masky.lua

[00:03:04]: error calling LoadPrefabFile in mod MASKY (Masky): 
[string "scripts/util.lua"]:550: Could not find an asset matching anim/masky.zip in any of the search paths.
LUA ERROR stack traceback:
        =[C] in function 'assert'
        scripts/util.lua(550,1) in function 'resolvefilepath'
        scripts/mainfunctions.lua(118,1) in function 'resolve_fn'
        scripts/mainfunctions.lua(106,1) in function 'RegisterPrefabsImpl'
        scripts/mainfunctions.lua(132,1) in function 'RegisterPrefabs'
        scripts/mainfunctions.lua(161,1)
        =(tail call) ?
        =[C] in function 'xpcall'
        scripts/mods.lua(158,1)
        scripts/mods.lua(600,1) in function 'RegisterPrefabs'
        scripts/gamelogic.lua(277,1) in function 'LoadAssets'
        scripts/gamelogic.lua(874,1)
        =[C] in function 'SetPersistentString'
        scripts/saveindex.lua(176,1) in function 'Save'
        scripts/saveindex.lua(366,1)
        =[C] in function 'SerializeWorldSession'
        scripts/networking.lua(290,1) in function 'SerializeWorldSession'
        scripts/saveindex.lua(369,1) in function 'OnGenerateNewWorld'
        scripts/gamelogic.lua(885,1) in function 'cb'
        scripts/screens/worldgenscreen.lua(151,1) in function 'OnUpdate'
        scripts/frontend.lua(660,1) in function 'Update'
        scripts/update.lua(92,1)	
[00:03:04]: Disabling MASKY (Masky) because it had an error.	
[00:03:04]: [string "scripts/util.lua"]:550: Could not find an asset matching anim/masky.zip in any of the search paths.
LUA ERROR stack traceback:
        =[C] in function 'assert'
        scripts/util.lua(550,1) in function 'resolvefilepath'
        scripts/mainfunctions.lua(118,1) in function 'resolve_fn'
        scripts/mainfunctions.lua(106,1) in function 'RegisterPrefabsImpl'
        scripts/mainfunctions.lua(132,1) in function 'RegisterPrefabs'
        scripts/mainfunctions.lua(161,1)
        =(tail call) ?
        =[C] in function 'xpcall'
        scripts/mods.lua(158,1)
        scripts/mods.lua(600,1) in function 'RegisterPrefabs'
        scripts/gamelogic.lua(277,1) in function 'LoadAssets'
        scripts/gamelogic.lua(874,1)
        =[C] in function 'SetPersistentString'
        scripts/saveindex.lua(176,1) in function 'Save'
        scripts/saveindex.lua(366,1)
        =[C] in function 'SerializeWorldSession'
        scripts/networking.lua(290,1) in function 'SerializeWorldSession'
        scripts/saveindex.lua(369,1) in function 'OnGenerateNewWorld'
        scripts/gamelogic.lua(885,1) in function 'cb'
        scripts/screens/worldgenscreen.lua(151,1) in function 'OnUpdate'
        scripts/frontend.lua(660,1) in function 'Update'
        scripts/update.lua(92,1)
[00:03:04]: [string "scripts/util.lua"]:550: Could not find an asset matching anim/masky.zip in any of the search paths.
LUA ERROR stack traceback:
        =[C] in function 'assert'
        scripts/util.lua(550,1) in function 'resolvefilepath'
        scripts/mainfunctions.lua(118,1) in function 'resolve_fn'
        scripts/mainfunctions.lua(106,1) in function 'RegisterPrefabsImpl'
        scripts/mainfunctions.lua(132,1) in function 'RegisterPrefabs'
        scripts/mainfunctions.lua(161,1)
        =(tail call) ?
        =[C] in function 'xpcall'
        scripts/mods.lua(158,1)
        scripts/mods.lua(600,1) in function 'RegisterPrefabs'
        scripts/gamelogic.lua(277,1) in function 'LoadAssets'
        scripts/gamelogic.lua(874,1)
        =[C] in function 'SetPersistentString'
        scripts/saveindex.lua(176,1) in function 'Save'
        scripts/saveindex.lua(366,1)
        =[C] in function 'SerializeWorldSession'
        scripts/networking.lua(290,1) in function 'SerializeWorldSession'
        scripts/saveindex.lua(369,1) in function 'OnGenerateNewWorld'
        scripts/gamelogic.lua(885,1) in function 'cb'
        scripts/screens/worldgenscreen.lua(151,1) in function 'OnUpdate'
        scripts/frontend.lua(660,1) in function 'Update'
        scripts/update.lua(92,1)	
[00:03:04]: Mod: MASKY (Masky)	  Registering prefab file: prefabs/mask	
[00:03:04]: error calling LoadPrefabFile in mod MASKY (Masky): 
[string "scripts/mainfunctions.lua"]:150: Error loading file prefabs/mask

	no file '../mods/MASKY/scripts/prefabs/mask.lua' (checked with custom loader)
	no file 'scripts/prefabs/mask.lua' (checked with custom loader)
	no file 'scriptlibs/prefabs/mask.lua' (checked with custom loader)
	no file 'scripts/prefabs/mask.lua' (checked with custom loader)
LUA ERROR stack traceback:
        =[C] in function 'assert'
        scripts/mainfunctions.lua(150,1)
        =(tail call) ?
        =[C] in function 'xpcall'
        scripts/mods.lua(158,1)
        scripts/mods.lua(600,1) in function 'RegisterPrefabs'
        scripts/gamelogic.lua(277,1) in function 'LoadAssets'
        scripts/gamelogic.lua(874,1)
        =[C] in function 'SetPersistentString'
        scripts/saveindex.lua(176,1) in function 'Save'
        scripts/saveindex.lua(366,1)
        =[C] in function 'SerializeWorldSession'
        scripts/networking.lua(290,1) in function 'SerializeWorldSession'
        scripts/saveindex.lua(369,1) in function 'OnGenerateNewWorld'
        scripts/gamelogic.lua(885,1) in function 'cb'
        scripts/screens/worldgenscreen.lua(151,1) in function 'OnUpdate'
        scripts/frontend.lua(660,1) in function 'Update'
        scripts/update.lua(92,1)	
[00:03:04]: Disabling MASKY (Masky) because it had an error.	
[00:03:04]: Mod: MASKY (Masky)	  Registering prefab file: prefabs/maskypda	
[00:03:04]: error calling LoadPrefabFile in mod MASKY (Masky): 
[string "scripts/util.lua"]:550: Could not find an asset matching anim/swap_maskypda.zip in any of the search paths.
LUA ERROR stack traceback:
        =[C] in function 'assert'
        scripts/util.lua(550,1) in function 'resolvefilepath'
        scripts/mainfunctions.lua(118,1) in function 'resolve_fn'
        scripts/mainfunctions.lua(106,1) in function 'RegisterPrefabsImpl'
        scripts/mainfunctions.lua(132,1) in function 'RegisterPrefabs'
        scripts/mainfunctions.lua(161,1)
        =(tail call) ?
        =[C] in function 'xpcall'
        scripts/mods.lua(158,1)
        scripts/mods.lua(600,1) in function 'RegisterPrefabs'
        scripts/gamelogic.lua(277,1) in function 'LoadAssets'
        scripts/gamelogic.lua(874,1)
        =[C] in function 'SetPersistentString'
        scripts/saveindex.lua(176,1) in function 'Save'
        scripts/saveindex.lua(366,1)
        =[C] in function 'SerializeWorldSession'
        scripts/networking.lua(290,1) in function 'SerializeWorldSession'
        scripts/saveindex.lua(369,1) in function 'OnGenerateNewWorld'
        scripts/gamelogic.lua(885,1) in function 'cb'
        scripts/screens/worldgenscreen.lua(151,1) in function 'OnUpdate'
        scripts/frontend.lua(660,1) in function 'Update'
        scripts/update.lua(92,1)	
[00:03:04]: Disabling MASKY (Masky) because it had an error.	
[00:03:04]: Mod: MASKY (Masky)	  Registering default mod prefab	
[00:03:07]: Could not preload undefined prefab (maskypda)
[00:03:07]: Could not preload undefined prefab (mask)
[00:03:07]: Warning: Widget:SetFocusFromChild is happening on a widget outside of the screen/widget hierachy. This will cause focus moves to fail. Is 	ScriptErrorWidget	not a screen?	
[00:03:07]: stack traceback:
	scripts/widgets/widget.lua:602 in (method) SetFocusFromChild (Lua) <599-624>
	scripts/widgets/widget.lua:649 in (method) SetFocus (Lua) <626-658>
	scripts/widgets/scripterrorwidget.lua:107 in (method) OnUpdate (Lua) <102-119>
	scripts/update.lua:90 in () ? (Lua) <33-129>
	=[C]:-1 in (method) RenderOneFrame (C) <-1--1>
	scripts/gamelogic.lua:132 in (upvalue) KeepAlive (Lua) <126-138>
	scripts/gamelogic.lua:279 in (upvalue) LoadAssets (Lua) <158-308>
	scripts/gamelogic.lua:874 in () ? (Lua) <871-877>
	=[C]:-1 in (method) SetPersistentString (C) <-1--1>
	scripts/saveindex.lua:176 in (method) Save (Lua) <174-177>
	scripts/saveindex.lua:366 in () ? (Lua) <358-367>
	=[C]:-1 in (method) SerializeWorldSession (C) <-1--1>
	scripts/networking.lua:290 in (global) SerializeWorldSession (Lua) <289-291>
	scripts/saveindex.lua:369 in (method) OnGenerateNewWorld (Lua) <355-370>
	scripts/gamelogic.lua:885 in (field) cb (Lua) <867-887>
	scripts/screens/worldgenscreen.lua:151 in (method) OnUpdate (Lua) <129-160>
	scripts/frontend.lua:660 in (method) Update (Lua) <616-766>
	scripts/update.lua:92 in () ? (Lua) <33-129>	

tried to fix it and made it worse. Please help!!

Link to comment
Share on other sites

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
 Share

×
×
  • Create New...