Jump to content

Recommended Posts

Alrighty, one of my character mods adds two new weapons, Cruel, and The End, now, both have crafting recipes, But one Doesn't Craft the item it is supposed to craft, I cant seem to figure out why... I have its pefab and it does have its own images and everything... just doesn't craft...

This is the Code for the crafting recipe

local theend = GLOBAL.Recipe("theend",{ Ingredient("cruel", 1), Ingredient("dragon_scales", 8), Ingredient("opalpreciousgem", 8), Ingredient("nightmarefuel", 40) }, RECIPETABS.ANCIENT, TECH.ANCIENT_TWO,nil, nil, nil, nil, "keeper")
theend.atlas = "images/inventoryimages/theend.xml"

 

theend.zip

theend.zip

theend.lua

Edited by Andreasgamming
Too lazy to make a new thread

The other item is working just fine, I'm able to craft it and use it without issues, the only difference between the one not working and the one that is is that The End is supposed to kill or damage players who don't have a specific prefab, and it has finite uses, the other, Cruel, Doesn't.

Rn I'm having trouble with the whole mod its self, the only changes I had made were sprite changes to the head and face.

Can you post the entirety of the mod in a zip? Would be very helpful for debugging.

Also, there is one other, possibly insignificant, difference between the two weapons, in that the recipe for "The End" requires the other weapon. I don't know if that has any implications, but it's worth ruling out. You can try removing the "cruel" ingredient to test.

I think I found it. You have an inconsistency with your local function => end encapsulation.

Where cruel.lua does this at the end:

--what you need to change in this file is here
return MakeSword("cruel",20)

...theend.lua does this:

--what you need to change in this file is here
return MakeSword("theend",20) end

Note the "end" there.

Edited by Ultroman

I think you got fooled by the indentation, because the number of "local function" => "end" do match.

But you didn't close this local function properly:

local function onattack_firewand(inst, attacker, target)
    attacker.SoundEmitter:PlaySound("dontstarve/wilson/fireball_explo") 
	if attacker and attacker.components.sanity and attacker.components.hunger then
		if attacker.prefab == "andreas" then
            attacker.components.sanity:DoDelta(0)
		else
			attacker.components.health:DoDelta(-99999)
			attacker.components.sanity:DoDelta(-99999)
        end
		
	
	end

If you're using Notepad++, if you click a line with "local function" on it, it'll show you which corresponding "end" it matches, by highlighting the encapsulated lines on the left-hand side. The reverse is also true, when you click on a line with "end" on it.

Example:

2018-08-30 00_47_37-C__Users_Jonas_AppData_Local_Temp_7zO08BDABAA_theend.lua - Notepad++.png

Edited by Ultroman

Huh, Yeah, That one gave me a bit of trouble... but is it causing my game to crash? it won't even load the world I have to test, it instantly crashes with a popup telling me to check the log for details

 

 

 

Spoiler

[00:00:00]:
System Memory:
    Memory Load: 65%
    Available Physical Memory: 1365m/3982m
    Available Page File: 4433m/7932m
    Available Virtual Memory: 3976m/4095m
    Available Extended Virtual Memory: 0m
[00:00:00]:
Process Memory:
    Peak Working Set Size: 27m
    Working Set Size: 27m
    Quota Peak Page Pool Usage: 236k
    Quota Page Pool Usage: 230k
    Quota Peak Non Paged Pool Usage:16k
    Quota Non Paged Pool Usage: 15k
    Page File Usage: 5m
    Peak Page File Usage: 5m
[00:00:00]: PersistRootStorage is now APP:Klei//DoNotStarveTogether/
[00:00:00]: Starting Up
[00:00:00]: Version: 280490
[00:00:00]: Current time: Wed Aug 29 14:38:18 2018

[00:00:00]: Don't Starve Together: 280490 WIN32_STEAM
[00:00:00]: Build Date: 3281
[00:00:00]: Parsing command line
[00:00:00]: Command Line Arguments:
[00:00:00]: Initializing distribution platform
[00:00:00]: Initializing Minidump handler
[00:00:00]: ....Done
[00:00:03]: Steam AppBuildID: 3001093
[00:00:03]: ....Done
[00:00:03]: Fixing DPI
[00:00:03]: ...Done
[00:00:03]: THREAD - started 'GAClient' (3840)
[00:00:03]: CurlRequestManager::ClientThread::Main()
[00:00:03]: Mounting file system databundles/klump.zip successful.
[00:00:03]: Mounting file system databundles/shaders.zip successful.
[00:00:03]: Mounting file system databundles/fonts.zip successful.
[00:00:03]: Mounting file system databundles/anim_dynamic.zip successful.
[00:00:03]: Mounting file system databundles/bigportraits.zip successful.
[00:00:03]: Mounting file system databundles/images.zip successful.
[00:00:03]: Mounting file system databundles/scripts.zip successful.
[00:00:04]: Relay ams#96 (155.133.248.36:27034) is going offline in 494 seconds
[00:00:07]: Ping measurement completed
[00:00:07]: Ping location: sea=58+5,tuk=81+8/59+5,mwh=93+9/64+5,lax=85+8/81+5,ord=89+8,atl=99+9,iad=102+10/104+8,okc=109+10/106+8,tyo=168+16/148+5,fra=190+19/170+16,gru=257+25/230+9,sgp=227+22/231+5
[00:00:50]: ProfileIndex:4.48
[00:00:50]: [Connect] PendingConnection::Reset(true)
[00:00:50]: Network tick rate: U=15(2), D=0
[00:00:50]: Authorized application C:\Program Files (x86)\Steam\steamapps\common\Don't Starve Together\bin\dontstarve_steam.exe is enabled in the firewall.
[00:00:50]: WindowsFirewall - Application already authorized
[00:00:50]: THREAD - started 'StreamInput' (3736)
[00:00:50]: loaded ping_cache
[00:00:50]: Offline user ID: OU_76561198025103526
[00:00:50]: SteamID: 76561198025103526
[00:00:50]: HardwareStats:
  OS                        
    name                      Microsoft Windows 8.1
    version                   6.3.9600
    architecture              64-bit
    platformSpecific          SP 0.0
  CPU                       
    numCores                  4
    features                  SSE,SSE2,SSE3,SSSE3,SSE41,SSE42
    name                      Intel(R) Pentium(R) CPU  N3540  @ 2.16GHz
    manufacturer              GenuineIntel
    clockSpeed                2159
  RAM                       
    megsOfRam                 4096
  GPU                       
    name                      Intel(R) HD Graphics
    driverDate                20140926000000.000000-000
    megsOfRam                 2055
    refreshRate               59
    videoModeDescription      1366 x 768 x 4294967296 colors
    driverVersion             10.18.10.3958

[00:00:50]: cGame::InitializeOnMainThread
[00:00:50]: WindowManager::Initialize
[00:00:50]: CreateWindow: Requesting 1366,745 - 5/6/5 - -1/-1/-1 - 0
[00:00:51]: CreateEGLContext: 16 configs found
[00:00:51]:      0: 8/8/8 -  0/ 0/ 0 - 0
[00:00:51]:      1: 8/8/8 -  0/16/ 0 - 0
[00:00:51]:      2: 8/8/8 -  0/24/ 0 - 0
[00:00:51]:      3: 8/8/8 -  0/24/ 8 - 0
[00:00:51]:      4: 5/5/5 -  0/ 0/ 0 - 0
[00:00:51]:      5: 5/5/5 -  1/ 0/ 0 - 0
[00:00:51]:      6: 5/5/5 -  0/16/ 0 - 0
[00:00:51]:      7: 5/5/5 -  1/16/ 0 - 0
[00:00:51]:      8: 5/5/5 -  0/24/ 0 - 0
[00:00:51]:      9: 5/5/5 -  1/24/ 0 - 0
[00:00:51]:     10: 5/5/5 -  0/24/ 8 - 0
[00:00:51]:     11: 5/5/5 -  1/24/ 8 - 0
[00:00:51]:     12: 8/8/8 -  8/ 0/ 0 - 0
[00:00:51]:     13: 8/8/8 -  8/16/ 0 - 0
[00:00:51]:     14: 8/8/8 -  8/24/ 0 - 0
[00:00:51]:     15: 8/8/8 -  8/24/ 8 - 0
[00:00:51]: RestoreWindowPosition
[00:00:51]:    Saved Client Pos (0 x 23)
[00:00:51]:    Adjusted Window Pos (-8 x -8)
[00:00:51]: EnsureWindowOnScreen
[00:00:51]:    All good.
[00:00:51]: GLInfo
[00:00:51]: ~~~~~~
[00:00:51]: GL_VENDOR: Google Inc.
[00:00:51]: GL_RENDERER: ANGLE (Intel(R) HD Graphics)
[00:00:51]: GL_VERSION: OpenGL ES 2.0 (ANGLE 1.0.0.2249)
[00:00:51]: GL_SHADING_LANGUAGE_VERSION: OpenGL ES GLSL ES 1.00 (ANGLE 1.0.0.2249)
[00:00:51]: THREAD - started 'WindowsInputManager' (2228)
[00:00:51]: OpenGL extensions (19, 19):
[00:00:51]: GL_ANGLE_depth_texture
[00:00:51]: GL_ANGLE_framebuffer_blit
[00:00:51]: GL_ANGLE_framebuffer_multisample
[00:00:51]: GL_ANGLE_instanced_arrays
[00:00:51]: GL_ANGLE_pack_reverse_row_order
[00:00:51]: GL_ANGLE_texture_compression_dxt3
[00:00:51]: GL_ANGLE_texture_compression_dxt5
[00:00:51]: GL_ANGLE_texture_usage
[00:00:51]: GL_ANGLE_translated_shader_source
[00:00:51]: GL_EXT_read_format_bgra
[00:00:51]: GL_EXT_robustness
[00:00:51]: GL_EXT_texture_compression_dxt1
[00:00:51]: GL_EXT_texture_format_BGRA8888
[00:00:51]: GL_EXT_texture_storage
[00:00:51]: GL_OES_get_program_binary
[00:00:51]: GL_OES_packed_depth_stencil
[00:00:51]: GL_OES_rgb8_rgba8
[00:00:51]: GL_OES_standard_derivatives
[00:00:51]: GL_OES_texture_npot
[00:00:51]: GL_MAX_TEXTURE_SIZE = 8192
[00:00:51]: GL_MAX_TEXTURE_IMAGE_UNITS = 16
[00:00:51]: GL_MAX_RENDERBUFFER_SIZE = 8192
[00:00:51]: GL_MAX_VIEWPORT_DIMS = 8192, 8192
[00:00:51]: GL_MAX_VARYING_VECTORS = 10
[00:00:51]: GL_MAX_VERTEX_ATTRIBS = 16
[00:00:51]: GL_MAX_VERTEX_UNIFORM_VECTORS = 254
[00:00:51]: GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS = 4
[00:00:51]: GL_MAX_FRAGMENT_UNIFORM_VECTORS = 221
[00:00:51]: 4 compressed texture formats
[00:00:51]: texture format 0x83f0
[00:00:51]: texture format 0x83f1
[00:00:51]: texture format 0x83f2
[00:00:51]: texture format 0x83f3
[00:00:51]: Renderer initialize: Okay
[00:00:52]: AnimManager initialize: Okay
[00:00:53]: Buffers initialize: Okay
[00:00:53]: cDontStarveGame::DoGameSpecificInitialize()
[00:00:53]: GameSpecific initialize: Okay
[00:00:53]: cGame::StartPlaying
[00:00:53]: LOADING LUA
[00:00:53]: DoLuaFile scripts/main.lua
[00:00:53]: DoLuaFile loading buffer scripts/main.lua
[00:00:54]:   taskgrouplist:    default    Together    
[00:00:54]:   taskgrouplist:    classic    Classic    
[00:00:54]:   taskgrouplist:    cave_default    Underground    
[00:00:54]:   taskgrouplist:    lavaarena_taskset    The Forge    
[00:00:54]:   taskgrouplist:    quagmire_taskset    The Gorge    
[00:00:54]: running main.lua
    
[00:00:54]: loaded modindex    
[00:00:54]: ModIndex:GetModsToLoad inserting moddir,     Andreas Nylleri Moon    
[00:00:54]: ModIndex:GetModsToLoad inserting moddir,     workshop-1120124958    
[00:00:54]: ModIndex:GetModsToLoad inserting moddir,     workshop-1288192441    
[00:00:54]: ModIndex:GetModsToLoad inserting moddir,     workshop-1290774114    
[00:00:54]: ModIndex:GetModsToLoad inserting moddir,     workshop-343753877    
[00:00:54]: ModIndex:GetModsToLoad inserting moddir,     workshop-345692228    
[00:00:54]: ModIndex:GetModsToLoad inserting moddir,     workshop-351325790    
[00:00:54]: ModIndex:GetModsToLoad inserting moddir,     workshop-352373173    
[00:00:54]: ModIndex:GetModsToLoad inserting moddir,     workshop-365119238    
[00:00:54]: ModIndex:GetModsToLoad inserting moddir,     workshop-376333686    
[00:00:54]: ModIndex:GetModsToLoad inserting moddir,     workshop-459280938    
[00:00:54]: ModIndex:GetModsToLoad inserting moddir,     workshop-496048926    
[00:00:54]: ModIndex:GetModsToLoad inserting moddir,     workshop-539957958    
[00:00:54]: ModIndex:GetModsToLoad inserting moddir,     workshop-699175387    
[00:00:54]: ModIndex:GetModsToLoad inserting moddir,     workshop-714735102    
[00:00:54]: ModIndex:GetModsToLoad inserting moddir,     workshop-804549021    
[00:00:54]: ModIndex:GetModsToLoad inserting moddir,     workshop-881455419    
[00:00:54]: ModIndex:GetModsToLoad inserting moddir,     workshop-956206484    
[00:00:54]: ModIndex: Detected bad load, disabling all mods.    
[00:01:00]: LOADING LUA SUCCESS
[00:01:00]: PlayerDeaths loaded morgue    5423    
[00:01:00]: PlayerHistory loaded player_history (v1) len:10288    
[00:01:00]: bloom_enabled    false    
[00:01:00]: loaded saveindex    
[00:01:00]: OnFilesLoaded()    
[00:01:00]: OnUpdatePurchaseStateComplete    
[00:01:00]: Klump load on boot started.    
[00:01:00]: Klump files loaded:     0    
[00:01:04]:     Load FE    
[00:01:06]:     Load FE: done    
[00:01:06]: THREAD - started 'FilesExistAsyncThread' (7212)
[00:01:06]: OnLoadPermissionList: APP:Klei//DoNotStarveTogether/client_save/blocklist.txt (Success)
[00:01:06]: FilesExistAsyncThread started (16739 files)...
[00:01:06]: OnLoadPermissionList: APP:Klei//DoNotStarveTogether/client_save/adminlist.txt (Failure)
[00:01:06]: OnLoadUserIdList: APP:Klei//DoNotStarveTogether/client_save/whitelist.txt (Failure)
[00:01:06]: ModIndex: Load sequence finished successfully.    
[00:01:06]: Reset() returning
[00:01:11]: ... FilesExistAsyncThread complete
[00:03:49]: [Steam] Auth Session Ticket requested...
[00:03:49]: [Steam] Got Auth Session Ticket
[00:03:50]: [200] Account Communication Success (3)
[00:03:50]: Logging in as KU_LXGc6TOW
[00:03:51]: saved APP:Klei//DoNotStarveTogether/client_save/pricing_cache
[00:03:51]: There is no active event to get the status of.
[00:03:51]: loaded inventory_cache_prod
[00:03:52]: loaded inventory_cache_prod
[00:03:52]: SimLuaProxy::QueryServer()
[00:03:58]:    EResult 15, 947462293
[00:03:58]: Failed getting mod details.
[00:04:50]: Getting top mod details...
[00:04:50]: Frontend-Unloading mod 'all'.    
[00:04:50]: loaded mod_config_data/modconfiguration_Andreas Nylleri Moon    
[00:04:50]: FrontendLoadMod    Andreas Nylleri Moon    
[00:04:50]: loaded mod_config_data/modconfiguration_Andreas Nylleri Moon    
[00:04:50]: Fontend-Loading mod: Andreas Nylleri Moon Version:0.3.3    
[00:04:50]: Mod: Andreas Nylleri Moon    Loading modworldgenmain.lua    
[00:04:50]: Mod: Andreas Nylleri Moon      Mod had no modworldgenmain.lua. Skipping.    
[00:04:51]: GOT top mod details...50
[00:04:51]: ../mods/workshop-728459184/preview.tex is 300x300 but compressed textures must have power of 2 dimensions.
[00:04:51]: ../mods/workshop-1288489362/servericon.tex is 200x200 but compressed textures must have power of 2 dimensions.
[00:04:51]: ../mods/workshop-726432903/modicon.tex is 184x184 but compressed textures must have power of 2 dimensions.
[00:04:51]: ../mods/workshop-1288192441/yuleicon.tex is 200x200 but compressed textures must have power of 2 dimensions.
[00:04:51]: ../mods/workshop-539957958/modicon.tex is 200x200 but compressed textures must have power of 2 dimensions.
[00:04:51]: ../mods/workshop-375488964/modicon.tex is 268x268 but compressed textures must have power of 2 dimensions.
[00:04:58]:    EResult 15, 947462293
[00:04:58]: Failed getting mod details.
[00:04:59]: Frontend-Unloading mod 'all'.    
[00:05:10]: FrontendLoadMod    workshop-834861004    
[00:05:10]: loaded mod_config_data/modconfiguration_workshop-834861004    
[00:05:10]: Fontend-Loading mod: workshop-834861004 (Andreas Nylleri Moon) Version:0.3.3    
[00:05:10]: Mod: workshop-834861004 (Andreas Nylleri Moon)    Loading modworldgenmain.lua    
[00:05:10]: Mod: workshop-834861004 (Andreas Nylleri Moon)      Mod had no modworldgenmain.lua. Skipping.    
[00:05:12]: Frontend-Unloading mod 'workshop-834861004'.    
[00:05:13]: FrontendLoadMod    Andreas Nylleri Moon    
[00:05:13]: loaded mod_config_data/modconfiguration_Andreas Nylleri Moon    
[00:05:13]: Fontend-Loading mod: Andreas Nylleri Moon Version:0.3.3    
[00:05:13]: Mod: Andreas Nylleri Moon    Loading modworldgenmain.lua    
[00:05:13]: Mod: Andreas Nylleri Moon      Mod had no modworldgenmain.lua. Skipping.    
[00:05:17]: loaded mod_config_data/modconfiguration_Andreas Nylleri Moon    
[00:05:17]: GetGameModeMaxPlayers    survival    nil    
[00:05:17]: Not applying level data overrides.    
[00:05:17]: Not applying world gen overrides.    
[00:05:17]: Network tick rate: U=15(2), D=0
[00:05:17]: ModWorkshop::CancelDownloads clearing all unfinished downloads
[00:05:17]: About to start a server with the following settings:
[00:05:17]:   Dedicated: false
[00:05:17]:   Online: true
[00:05:17]:   Passworded: false
[00:05:17]:   ServerPort: 10999
[00:05:17]:   SteamAuthPort: 8766
[00:05:17]:   SteamMasterServerPort: 27016
[00:05:17]:   ClanID: false
[00:05:17]:   ClanOnly: false
[00:05:17]:   ClanAdmin: false
[00:05:17]:   LanOnly: true
[00:05:17]:   FriendsOnly: false
[00:05:17]:   EnableAutosaver: true
[00:05:17]:   EncodeUserPath: true
[00:05:17]:   PVP: false
[00:05:17]:   MaxPlayers: 1
[00:05:17]:   GameMode: survival
[00:05:17]:   OverridenDNS:
[00:05:17]:   PauseWhenEmpty: true
[00:05:17]:   IdleTimeout: 1800s
[00:05:17]:   VoteEnabled: false
[00:05:17]:   InternetBroadcasting: true
[00:05:17]:   Intent: cooperative
[00:05:17]: [Warning] Could not confirm port 10999 is open in the firewall.
[00:05:17]: loaded mod_config_data/modconfiguration_Andreas Nylleri Moon    
[00:05:17]: Online Server Started on port: 10999
[00:05:17]: Collecting garbage...
[00:05:17]: lua_gc took 0.08 seconds
[00:05:17]: ~ShardLuaProxy()
[00:05:17]: ~cEventLeaderboardProxy()
[00:05:17]: ~ItemServerLuaProxy()
[00:05:17]: ~InventoryLuaProxy()
[00:05:17]: ~NetworkLuaProxy()
[00:05:17]: ~SimLuaProxy()
[00:05:17]: Cancelling LuaQueryCallback handle [6]
[00:05:17]: ModWorkshop::CancelDownloads clearing all unfinished downloads
[00:05:17]: lua_close took 0.09 seconds
[00:05:17]: ReleaseAll
[00:05:17]: ReleaseAll Finished
[00:05:17]: cGame::StartPlaying
[00:05:17]: LOADING LUA
[00:05:17]: DoLuaFile scripts/main.lua
[00:05:17]: DoLuaFile loading buffer scripts/main.lua
[00:05:18]:   taskgrouplist:    default    Together    
[00:05:18]:   taskgrouplist:    classic    Classic    
[00:05:18]:   taskgrouplist:    cave_default    Underground    
[00:05:18]:   taskgrouplist:    lavaarena_taskset    The Forge    
[00:05:18]:   taskgrouplist:    quagmire_taskset    The Gorge    
[00:05:18]: running main.lua
    
[00:05:18]: loaded modindex    
[00:05:18]: ModIndex: Beginning normal load sequence.
    
[00:05:19]: ModIndex:GetModsToLoad inserting moddir,     Andreas Nylleri Moon    
[00:05:19]: loaded mod_config_data/modconfiguration_Andreas Nylleri Moon    
[00:05:19]: Loading mod: Andreas Nylleri Moon Version:0.3.3    
[00:05:19]: Mod: Andreas Nylleri Moon    Loading modworldgenmain.lua    
[00:05:19]: Mod: Andreas Nylleri Moon      Mod had no modworldgenmain.lua. Skipping.    
[00:05:19]: Mod: Andreas Nylleri Moon    Loading modmain.lua    
[00:05:19]: Warning: Calling Recipe from a mod is now deprecated. Please call AddRecipe from your modmain.lua file.    
[00:05:19]: Warning: Calling Recipe from a mod is now deprecated. Please call AddRecipe from your modmain.lua file.    
[00:05:19]: MOD ERROR: Andreas Nylleri Moon: Mod: Andreas Nylleri Moon    
[00:05:19]: Faild to load the recipe book!    
[00:05:19]: error loading module 'speech_andreas' from file '../mods/Andreas Nylleri Moon\scripts\speech_andreas.lua':
    [string "cannot OLDFILEACCESSMETHOD @../mods/Andreas Nylleri Moon\script..."]:720: '}' expected (to close '{' at line 294) near 'POWCAKE'
LUA ERROR stack traceback:
        =[C] ?
        =[C] in function 'require'
        ../mods/Andreas Nylleri Moon/modmain.lua(116,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(296,1) in function 'ModSafeStartup'
        scripts/main.lua(366,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(365,1) in function 'callback'
        scripts/modindex.lua(545,1)
        =[C] in function 'GetPersistentString'
        scripts/modindex.lua(519,1) in function 'Load'
        scripts/main.lua(364,1) in main chunk
[00:05:19]: [string "scripts/mainfunctions.lua"]:1079: variable 'global_error_widget' is not declared
LUA ERROR stack traceback:
        =[C] in function 'error'
        scripts/strict.lua(23,1)
        scripts/mainfunctions.lua(1079,1)
        =[C] in function 'GetPersistentString'
        scripts/quagmire_recipebook.lua(54,1) in function 'Load'
        scripts/main.lua(313,1) in function 'ModSafeStartup'
        scripts/main.lua(366,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(365,1) in function 'callback'
        scripts/modindex.lua(545,1)
        =[C] in function 'GetPersistentString'
        scripts/modindex.lua(519,1) in function 'Load'
        scripts/main.lua(364,1) in main chunk
[00:05:19]: DoLuaFile Error: (null)
[00:05:19]: LuaError but no error string
[00:05:19]: Error loading main.lua
[00:05:19]: Failed mSimulation->Reset()
[00:05:19]: Error during game restart!
[00:05:22]: ModWorkshop::CancelDownloads clearing all unfinished downloads
[00:05:22]: Collecting garbage...
[00:05:23]: lua_gc took 0.07 seconds
[00:05:23]: ~ShardLuaProxy()
[00:05:23]: ~cEventLeaderboardProxy()
[00:05:23]: ~ItemServerLuaProxy()
[00:05:23]: ~InventoryLuaProxy()
[00:05:23]: ~NetworkLuaProxy()
[00:05:23]: ~SimLuaProxy()
[00:05:23]: ModWorkshop::CancelDownloads clearing all unfinished downloads
[00:05:23]: lua_close took 0.03 seconds
[00:05:23]: ModWorkshop::CancelDownloads clearing all unfinished downloads
[00:05:23]: [Steam] Auth ticket cancelled
[00:05:23]: CurlRequestManager::ClientThread::Main() complete
[00:05:23]: HttpClient2 discarded 0 callbacks.
[00:05:23]: steamnetworkingsockets_lowlevel.cpp (88) : Assertion Failed: SteamDatagramTransportLock held for 250.3ms!
[00:05:23]: Shutting down

 

 

 

And you want it to look like this:

 

2018-08-30 00_49_45-_C__Users_Jonas_AppData_Local_Temp_7zO08BDABAA_theend.lua - Notepad++.png

Well, at least these errors are tangible.

First one is easy-peasy to fix, and just a warning.
[00:05:19]: Warning: Calling Recipe from a mod is now deprecated. Please call AddRecipe from your modmain.lua file.    
[00:05:19]: Warning: Calling Recipe from a mod is now deprecated. Please call AddRecipe from your modmain.lua file.    

And this one is easy to locate, and seems to be a simple encapsulation issue.
[00:05:19]: error loading module 'speech_andreas' from file '../mods/Andreas Nylleri Moon\scripts\speech_andreas.lua':
    [string "cannot OLDFILEACCESSMETHOD @../mods/Andreas Nylleri Moon\script..."]:720: '}' expected (to close '{' at line 294) near 'POWCAKE'
LUA ERROR stack traceback:
        =[C] ?
        =[C] in function 'require'
        ../mods/Andreas Nylleri Moon/modmain.lua(116,1) in main chunk

Edited by Ultroman

OKAY, I found a problem!

 

Spoiler

[00:03:33]: error loading module 'speech_andreas' from file '../mods/Andreas Nylleri Moon\scripts\speech_andreas.lua':
    [string "cannot OLDFILEACCESSMETHOD @../mods/Andreas Nylleri Moon\script..."]:711: '}' expected (to close '{' at line 285) near 'POWCAKE'

 

That is probably causing it to crash without even loading the game, I had the same chrashes when trying to give my character a custom description for her custom items.

okay, after makeing what i thought was "fixes" didn't work, I'm looking right at the lines that is causing the problem, 285-711 and the "{" are present and close and are connected to their coresponding "}" yet it still says it is wrong... am I missing something?

speech_andreas.lua

Still not working, but that could've been a major issue

Spoiler

[00:00:00]:
System Memory:
    Memory Load: 61%
    Available Physical Memory: 1536m/3982m
    Available Page File: 4470m/7932m
    Available Virtual Memory: 3976m/4095m
    Available Extended Virtual Memory: 0m
[00:00:00]:
Process Memory:
    Peak Working Set Size: 27m
    Working Set Size: 27m
    Quota Peak Page Pool Usage: 236k
    Quota Page Pool Usage: 230k
    Quota Peak Non Paged Pool Usage:16k
    Quota Non Paged Pool Usage: 15k
    Page File Usage: 5m
    Peak Page File Usage: 5m
[00:00:00]: PersistRootStorage is now APP:Klei//DoNotStarveTogether/
[00:00:00]: Starting Up
[00:00:00]: Version: 280490
[00:00:00]: Current time: Wed Aug 29 18:05:41 2018

[00:00:00]: Don't Starve Together: 280490 WIN32_STEAM
[00:00:00]: Build Date: 3281
[00:00:00]: Parsing command line
[00:00:00]: Command Line Arguments:
[00:00:00]: Initializing distribution platform
[00:00:00]: Initializing Minidump handler
[00:00:00]: ....Done
[00:00:01]: Steam AppBuildID: 3001093
[00:00:01]: ....Done
[00:00:01]: Fixing DPI
[00:00:01]: ...Done
[00:00:01]: THREAD - started 'GAClient' (7892)
[00:00:01]: CurlRequestManager::ClientThread::Main()
[00:00:01]: Mounting file system databundles/klump.zip successful.
[00:00:01]: Mounting file system databundles/shaders.zip successful.
[00:00:01]: Mounting file system databundles/fonts.zip successful.
[00:00:01]: Mounting file system databundles/anim_dynamic.zip successful.
[00:00:01]: Mounting file system databundles/bigportraits.zip successful.
[00:00:01]: Mounting file system databundles/images.zip successful.
[00:00:01]: Mounting file system databundles/scripts.zip successful.
[00:00:02]: Failed to communicate with routing cluster 'man'.
[00:00:04]: Ping measurement completed
[00:00:04]: Ping location: lax=66+6,ord=75+7,mwh=77+7,sea=88+8/83+7,iad=120+12/90+7,okc=93+9/92+7,atl=137+13/93+7,lim=199+19/161+6,lhr=234+23/161+7,fra=227+22/177+7,sgp=219+21,gru=242+24/224+7
[00:00:44]: ProfileIndex:4.47
[00:00:44]: [Connect] PendingConnection::Reset(true)
[00:00:44]: Network tick rate: U=15(2), D=0
[00:00:44]: Authorized application C:\Program Files (x86)\Steam\steamapps\common\Don't Starve Together\bin\dontstarve_steam.exe is enabled in the firewall.
[00:00:44]: WindowsFirewall - Application already authorized
[00:00:44]: THREAD - started 'StreamInput' (6548)
[00:00:44]: loaded ping_cache
[00:00:44]: Offline user ID: OU_76561198025103526
[00:00:44]: SteamID: 76561198025103526
[00:00:44]: HardwareStats:
  OS                        
    name                      Microsoft Windows 8.1
    version                   6.3.9600
    architecture              64-bit
    platformSpecific          SP 0.0
  CPU                       
    numCores                  4
    features                  SSE,SSE2,SSE3,SSSE3,SSE41,SSE42
    name                      Intel(R) Pentium(R) CPU  N3540  @ 2.16GHz
    manufacturer              GenuineIntel
    clockSpeed                2159
  RAM                       
    megsOfRam                 4096
  GPU                       
    name                      Intel(R) HD Graphics
    driverDate                20140926000000.000000-000
    megsOfRam                 2055
    refreshRate               59
    videoModeDescription      1366 x 768 x 4294967296 colors
    driverVersion             10.18.10.3958

[00:00:44]: cGame::InitializeOnMainThread
[00:00:44]: WindowManager::Initialize
[00:00:44]: CreateWindow: Requesting 1366,745 - 5/6/5 - -1/-1/-1 - 0
[00:00:44]: CreateEGLContext: 16 configs found
[00:00:44]:      0: 8/8/8 -  0/ 0/ 0 - 0
[00:00:44]:      1: 8/8/8 -  0/16/ 0 - 0
[00:00:44]:      2: 8/8/8 -  0/24/ 0 - 0
[00:00:44]:      3: 8/8/8 -  0/24/ 8 - 0
[00:00:44]:      4: 5/5/5 -  0/ 0/ 0 - 0
[00:00:44]:      5: 5/5/5 -  1/ 0/ 0 - 0
[00:00:44]:      6: 5/5/5 -  0/16/ 0 - 0
[00:00:44]:      7: 5/5/5 -  1/16/ 0 - 0
[00:00:44]:      8: 5/5/5 -  0/24/ 0 - 0
[00:00:44]:      9: 5/5/5 -  1/24/ 0 - 0
[00:00:44]:     10: 5/5/5 -  0/24/ 8 - 0
[00:00:44]:     11: 5/5/5 -  1/24/ 8 - 0
[00:00:44]:     12: 8/8/8 -  8/ 0/ 0 - 0
[00:00:44]:     13: 8/8/8 -  8/16/ 0 - 0
[00:00:44]:     14: 8/8/8 -  8/24/ 0 - 0
[00:00:44]:     15: 8/8/8 -  8/24/ 8 - 0
[00:00:44]: RestoreWindowPosition
[00:00:44]:    Saved Client Pos (0 x 23)
[00:00:44]:    Adjusted Window Pos (-8 x -8)
[00:00:44]: EnsureWindowOnScreen
[00:00:44]:    All good.
[00:00:44]: GLInfo
[00:00:44]: ~~~~~~
[00:00:44]: GL_VENDOR: Google Inc.
[00:00:44]: GL_RENDERER: ANGLE (Intel(R) HD Graphics)
[00:00:44]: GL_VERSION: OpenGL ES 2.0 (ANGLE 1.0.0.2249)
[00:00:44]: GL_SHADING_LANGUAGE_VERSION: OpenGL ES GLSL ES 1.00 (ANGLE 1.0.0.2249)
[00:00:44]: THREAD - started 'WindowsInputManager' (6120)
[00:00:44]: OpenGL extensions (19, 19):
[00:00:44]: GL_ANGLE_depth_texture
[00:00:44]: GL_ANGLE_framebuffer_blit
[00:00:44]: GL_ANGLE_framebuffer_multisample
[00:00:44]: GL_ANGLE_instanced_arrays
[00:00:44]: GL_ANGLE_pack_reverse_row_order
[00:00:44]: GL_ANGLE_texture_compression_dxt3
[00:00:44]: GL_ANGLE_texture_compression_dxt5
[00:00:44]: GL_ANGLE_texture_usage
[00:00:44]: GL_ANGLE_translated_shader_source
[00:00:44]: GL_EXT_read_format_bgra
[00:00:44]: GL_EXT_robustness
[00:00:44]: GL_EXT_texture_compression_dxt1
[00:00:44]: GL_EXT_texture_format_BGRA8888
[00:00:44]: GL_EXT_texture_storage
[00:00:44]: GL_OES_get_program_binary
[00:00:44]: GL_OES_packed_depth_stencil
[00:00:44]: GL_OES_rgb8_rgba8
[00:00:44]: GL_OES_standard_derivatives
[00:00:44]: GL_OES_texture_npot
[00:00:44]: GL_MAX_TEXTURE_SIZE = 8192
[00:00:44]: GL_MAX_TEXTURE_IMAGE_UNITS = 16
[00:00:44]: GL_MAX_RENDERBUFFER_SIZE = 8192
[00:00:44]: GL_MAX_VIEWPORT_DIMS = 8192, 8192
[00:00:44]: GL_MAX_VARYING_VECTORS = 10
[00:00:44]: GL_MAX_VERTEX_ATTRIBS = 16
[00:00:44]: GL_MAX_VERTEX_UNIFORM_VECTORS = 254
[00:00:44]: GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS = 4
[00:00:44]: GL_MAX_FRAGMENT_UNIFORM_VECTORS = 221
[00:00:44]: 4 compressed texture formats
[00:00:44]: texture format 0x83f0
[00:00:44]: texture format 0x83f1
[00:00:44]: texture format 0x83f2
[00:00:44]: texture format 0x83f3
[00:00:45]: Renderer initialize: Okay
[00:00:46]: AnimManager initialize: Okay
[00:00:46]: Buffers initialize: Okay
[00:00:47]: cDontStarveGame::DoGameSpecificInitialize()
[00:00:47]: GameSpecific initialize: Okay
[00:00:47]: cGame::StartPlaying
[00:00:47]: LOADING LUA
[00:00:47]: DoLuaFile scripts/main.lua
[00:00:47]: DoLuaFile loading buffer scripts/main.lua
[00:00:47]:   taskgrouplist:    default    Together    
[00:00:47]:   taskgrouplist:    classic    Classic    
[00:00:47]:   taskgrouplist:    cave_default    Underground    
[00:00:47]:   taskgrouplist:    lavaarena_taskset    The Forge    
[00:00:47]:   taskgrouplist:    quagmire_taskset    The Gorge    
[00:00:47]: running main.lua
    
[00:00:47]: loaded modindex    
[00:00:48]: ModIndex:GetModsToLoad inserting moddir,     Andreas Nylleri Moon    
[00:00:48]: ModIndex: Detected bad load, disabling all mods.    
[00:00:52]: LOADING LUA SUCCESS
[00:00:53]: PlayerDeaths loaded morgue    5423    
[00:00:53]: PlayerHistory loaded player_history (v1) len:10288    
[00:00:53]: bloom_enabled    false    
[00:00:53]: loaded saveindex    
[00:00:53]: OnFilesLoaded()    
[00:00:53]: OnUpdatePurchaseStateComplete    
[00:00:53]: Klump load on boot started.    
[00:00:53]: Klump files loaded:     0    
[00:00:55]:     Load FE    
[00:00:57]:     Load FE: done    
[00:00:57]: THREAD - started 'FilesExistAsyncThread' (32)
[00:00:57]: FilesExistAsyncThread started (16739 files)...
[00:00:57]: OnLoadPermissionList: APP:Klei//DoNotStarveTogether/client_save/blocklist.txt (Success)
[00:00:57]: OnLoadPermissionList: APP:Klei//DoNotStarveTogether/client_save/adminlist.txt (Failure)
[00:00:57]: OnLoadUserIdList: APP:Klei//DoNotStarveTogether/client_save/whitelist.txt (Failure)
[00:00:57]: ModIndex: Load sequence finished successfully.    
[00:00:57]: Reset() returning
[00:01:02]: [Steam] Auth Session Ticket requested...
[00:01:02]: ... FilesExistAsyncThread complete
[00:01:03]: [Steam] Got Auth Session Ticket
[00:01:04]: [200] Account Communication Success (3)
[00:01:04]: Logging in as KU_LXGc6TOW
[00:01:05]: There is no active event to get the status of.
[00:01:05]: loaded inventory_cache_prod
[00:01:05]: loaded inventory_cache_prod
[00:01:06]: SimLuaProxy::QueryServer()
[00:01:11]:    EResult 15, 947462293
[00:01:11]: Failed getting mod details.
[00:01:26]: Getting top mod details...
[00:01:26]: Frontend-Unloading mod 'all'.    
[00:01:26]: loaded mod_config_data/modconfiguration_Andreas Nylleri Moon    
[00:01:26]: FrontendLoadMod    Andreas Nylleri Moon    
[00:01:26]: loaded mod_config_data/modconfiguration_Andreas Nylleri Moon    
[00:01:26]: Fontend-Loading mod: Andreas Nylleri Moon Version:0.3.3    
[00:01:26]: Mod: Andreas Nylleri Moon    Loading modworldgenmain.lua    
[00:01:26]: Mod: Andreas Nylleri Moon      Mod had no modworldgenmain.lua. Skipping.    
[00:01:27]: GOT top mod details...50
[00:01:27]: ../mods/workshop-728459184/preview.tex is 300x300 but compressed textures must have power of 2 dimensions.
[00:01:27]: ../mods/workshop-1288489362/servericon.tex is 200x200 but compressed textures must have power of 2 dimensions.
[00:01:27]: ../mods/workshop-726432903/modicon.tex is 184x184 but compressed textures must have power of 2 dimensions.
[00:01:27]: ../mods/workshop-1288192441/yuleicon.tex is 200x200 but compressed textures must have power of 2 dimensions.
[00:01:27]: ../mods/workshop-539957958/modicon.tex is 200x200 but compressed textures must have power of 2 dimensions.
[00:01:27]: ../mods/workshop-375488964/modicon.tex is 268x268 but compressed textures must have power of 2 dimensions.
[00:01:38]:    EResult 15, 947462293
[00:01:38]: Failed getting mod details.
[00:01:50]: loaded mod_config_data/modconfiguration_Andreas Nylleri Moon    
[00:01:50]: GetGameModeMaxPlayers    survival    nil    
[00:01:51]: Network tick rate: U=15(2), D=0
[00:01:51]: ModWorkshop::CancelDownloads clearing all unfinished downloads
[00:01:51]: About to start a server with the following settings:
[00:01:51]:   Dedicated: false
[00:01:51]:   Online: true
[00:01:51]:   Passworded: false
[00:01:51]:   ServerPort: 10999
[00:01:51]:   SteamAuthPort: 8766
[00:01:51]:   SteamMasterServerPort: 27016
[00:01:51]:   ClanID: false
[00:01:51]:   ClanOnly: false
[00:01:51]:   ClanAdmin: false
[00:01:51]:   LanOnly: true
[00:01:51]:   FriendsOnly: false
[00:01:51]:   EnableAutosaver: true
[00:01:51]:   EncodeUserPath: true
[00:01:51]:   PVP: false
[00:01:51]:   MaxPlayers: 1
[00:01:51]:   GameMode: survival
[00:01:51]:   OverridenDNS:
[00:01:51]:   PauseWhenEmpty: true
[00:01:51]:   IdleTimeout: 1800s
[00:01:51]:   VoteEnabled: false
[00:01:51]:   InternetBroadcasting: true
[00:01:51]:   Intent: cooperative
[00:01:51]: [Warning] Could not confirm port 10999 is open in the firewall.
[00:01:51]: loaded mod_config_data/modconfiguration_Andreas Nylleri Moon    
[00:01:51]: Online Server Started on port: 10999
[00:01:51]: Collecting garbage...
[00:01:51]: lua_gc took 0.15 seconds
[00:01:51]: ~ShardLuaProxy()
[00:01:51]: ~cEventLeaderboardProxy()
[00:01:51]: ~ItemServerLuaProxy()
[00:01:51]: ~InventoryLuaProxy()
[00:01:51]: ~NetworkLuaProxy()
[00:01:51]: ~SimLuaProxy()
[00:01:51]: Cancelling LuaQueryCallback handle [6]
[00:01:51]: ModWorkshop::CancelDownloads clearing all unfinished downloads
[00:01:51]: lua_close took 0.10 seconds
[00:01:51]: ReleaseAll
[00:01:51]: ReleaseAll Finished
[00:01:51]: cGame::StartPlaying
[00:01:51]: LOADING LUA
[00:01:51]: DoLuaFile scripts/main.lua
[00:01:51]: DoLuaFile loading buffer scripts/main.lua
[00:01:52]:   taskgrouplist:    default    Together    
[00:01:52]:   taskgrouplist:    classic    Classic    
[00:01:52]:   taskgrouplist:    cave_default    Underground    
[00:01:52]:   taskgrouplist:    lavaarena_taskset    The Forge    
[00:01:52]:   taskgrouplist:    quagmire_taskset    The Gorge    
[00:01:52]: running main.lua
    
[00:01:52]: loaded modindex    
[00:01:52]: ModIndex: Beginning normal load sequence.
    
[00:01:53]: ModIndex:GetModsToLoad inserting moddir,     Andreas Nylleri Moon    
[00:01:53]: loaded mod_config_data/modconfiguration_Andreas Nylleri Moon    
[00:01:53]: Loading mod: Andreas Nylleri Moon Version:0.3.3    
[00:01:53]: Mod: Andreas Nylleri Moon    Loading modworldgenmain.lua    
[00:01:53]: Mod: Andreas Nylleri Moon      Mod had no modworldgenmain.lua. Skipping.    
[00:01:53]: Mod: Andreas Nylleri Moon    Loading modmain.lua    
[00:01:53]: Warning: Calling Recipe from a mod is now deprecated. Please call AddRecipe from your modmain.lua file.    
[00:01:53]: Warning: Calling Recipe from a mod is now deprecated. Please call AddRecipe from your modmain.lua file.    
[00:01:53]: MOD ERROR: Andreas Nylleri Moon: Mod: Andreas Nylleri Moon    
[00:01:54]: Faild to load the recipe book!    
[00:01:54]: error loading module 'speech_andreas' from file '../mods/Andreas Nylleri Moon\scripts\speech_andreas.lua':
    [string "cannot OLDFILEACCESSMETHOD @../mods/Andreas Nylleri Moon\script..."]:711: '}' expected (to close '{' at line 285) near 'POWCAKE'
LUA ERROR stack traceback:
        =[C] ?
        =[C] in function 'require'
        ../mods/Andreas Nylleri Moon/modmain.lua(116,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(296,1) in function 'ModSafeStartup'
        scripts/main.lua(366,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(365,1) in function 'callback'
        scripts/modindex.lua(545,1)
        =[C] in function 'GetPersistentString'
        scripts/modindex.lua(519,1) in function 'Load'
        scripts/main.lua(364,1) in main chunk
[00:01:54]: [string "scripts/mainfunctions.lua"]:1079: variable 'global_error_widget' is not declared
LUA ERROR stack traceback:
        =[C] in function 'error'
        scripts/strict.lua(23,1)
        scripts/mainfunctions.lua(1079,1)
        =[C] in function 'GetPersistentString'
        scripts/quagmire_recipebook.lua(54,1) in function 'Load'
        scripts/main.lua(313,1) in function 'ModSafeStartup'
        scripts/main.lua(366,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(365,1) in function 'callback'
        scripts/modindex.lua(545,1)
        =[C] in function 'GetPersistentString'
        scripts/modindex.lua(519,1) in function 'Load'
        scripts/main.lua(364,1) in main chunk
[00:01:54]: DoLuaFile Error: (null)
[00:01:54]: LuaError but no error string
[00:01:54]: Error loading main.lua
[00:01:54]: Failed mSimulation->Reset()
[00:01:54]: Error during game restart!
[00:01:55]: ModWorkshop::CancelDownloads clearing all unfinished downloads
[00:01:55]: Collecting garbage...
[00:01:55]: lua_gc took 0.07 seconds
[00:01:55]: ~ShardLuaProxy()
[00:01:55]: ~cEventLeaderboardProxy()
[00:01:55]: ~ItemServerLuaProxy()
[00:01:55]: ~InventoryLuaProxy()
[00:01:55]: ~NetworkLuaProxy()
[00:01:55]: ~SimLuaProxy()
[00:01:55]: ModWorkshop::CancelDownloads clearing all unfinished downloads
[00:01:55]: lua_close took 0.03 seconds
[00:01:56]: ModWorkshop::CancelDownloads clearing all unfinished downloads
[00:01:56]: [Steam] Auth ticket cancelled
[00:01:56]: CurlRequestManager::ClientThread::Main() complete
[00:01:56]: HttpClient2 discarded 0 callbacks.
[00:01:56]: steamnetworkingsockets_lowlevel.cpp (88) : Assertion Failed: SteamDatagramTransportLock held for 251.4ms!
[00:01:56]: Shutting down

 

 

Edited by Andreasgamming

I've been through that file, and all your commas and brackets look good now.

HAHA, except EXACTLY where the error said it was. Just search for POWCAKE, like it suggests.

2018-08-30 03_10_51-_C__Users_Jonas_Downloads_speech_andreas.lua - Notepad++.png

Whenever it says 'near':

[00:01:54]: error loading module 'speech_andreas' from file '../mods/Andreas Nylleri Moon\scripts\speech_andreas.lua':
    [string "cannot OLDFILEACCESSMETHOD @../mods/Andreas Nylleri Moon\script..."]:711: '}' expected (to close '{' at line 285) near 'POWCAKE'

...you can usually just search for the following word in the file, and then go backwards from there.

Edited by Ultroman

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...