Jump to content

Don't know why my code doesn't work


Recommended Posts

Hello there. I'm trying to make a character mod and i want to give my character a unique item. I think everything is fine but everytime i try to run DST the game crashes. I've checked the log but i can't figure out what's wrong. I'll post here the log and piece of code that the game has problems with.

PrefabFiles = {	"solaire",	"estus",}Assets = {    Asset( "IMAGE", "images/saveslot_portraits/solaire.tex" ),    Asset( "ATLAS", "images/saveslot_portraits/solaire.xml" ),    Asset( "IMAGE", "images/selectscreen_portraits/solaire.tex" ),    Asset( "ATLAS", "images/selectscreen_portraits/solaire.xml" ),	    Asset( "IMAGE", "images/selectscreen_portraits/solaire_silho.tex" ),    Asset( "ATLAS", "images/selectscreen_portraits/solaire_silho.xml" ),    Asset( "IMAGE", "bigportraits/solaire.tex" ),    Asset( "ATLAS", "bigportraits/solaire.xml" ),		Asset( "IMAGE", "images/map_icons/solaire.tex" ),	Asset( "ATLAS", "images/map_icons/solaire.xml" ),		Asset( "IMAGE", "images/avatars/avatar_solaire.tex" ),    Asset( "ATLAS", "images/avatars/avatar_solaire.xml" ),		Asset( "IMAGE", "images/avatars/avatar_ghost_solaire.tex" ),    Asset( "ATLAS", "images/avatars/avatar_ghost_solaire.xml" ),		Asset( "IMAGE", "images/inventoryimages/estus.tex" ),	Asset( "ATLAS", "images/inventoryimages/estus.xml" ),	Asset( "IMAGE", "images/inventoryimages/estus_empty.tex" ),	Asset( "ATLAS", "images/inventoryimages/estus_empty.xml" ),}GLOBAL.STRINGS.NAME.ESTUS = "Estus Flask"     <<<< this is the line game has problems withGLOBAL.STRINGS.CHARACTER.GENERIC.DESCRIBE.ESTUS = "Undead favourite."GLOBAL.STRINGS.RECIPE_DESC.ESTUS = "My favourite drink."GLOBAL.STRINGS.NAME.ESTUS_EMPTY = "empty Estus Flask"GLOBAL.STRINGS.CHARACTER.GENERIC.DESCRIBE.ESTUS_EMPTY = "It's empty"local require = GLOBAL.requirelocal STRINGS = GLOBAL.STRINGSlocal Recipe = GLOBAL.Recipelocal RECIPETABS = GLOBAL.RECIPETABSlocal TECH = GLOBAL.TECH
[00:00:00]: Starting Up[00:00:00]: Version: 142718[00:00:00]: Current time: Sun Jul 19 11:05:12 2015[00:00:00]: Don't Starve Together: 142718 WIN32_STEAMNNN Build Date: 2015-07-10_11-55-42[00:00:00]: Parsing command line[00:00:00]: Command Line Arguments: [00:00:00]: Initializin Minidump handler[00:00:00]: ....Done[00:00:00]: Initializing Steam[00:00:00]: Steam AppBuildID: 690955[00:00:00]: Steam BetaName(Branch): [][00:00:00]: ....Done[00:00:00]: Fixing DPI[00:00:00]: ...Done[00:00:00]: THREAD - started 'GAClient' (4140)[00:00:00]: HttpClient::ClientThread::Main()[00:00:03]: ProfileIndex:10.30[00:00:04]: THREAD - started 'GAClient' (3964)[00:00:04]: HttpClient::ClientThread::Main()[00:00:04]: THREAD - started 'GAClient' (5532)[00:00:04]: HttpClient::ClientThread::Main()[00:00:04]: Network tick rate: U=15(2), D=0[00:00:04]: Network tick rate: U=15(2), D=0[00:00:04]: Authorized application D:\SteamLibrary\steamapps\common\Don't Starve Together\bin\dontstarve_steam.exe is enabled in the firewall.[00:00:04]: WindowsFirewall - Application already authorized[00:00:04]: loaded ping_cache[00:00:04]: OnLoadPermissionList: APP:Klei/DoNotStarveTogether/save/blocklist.txt (Failure)[00:00:04]: OnLoadPermissionList: APP:Klei/DoNotStarveTogether/save/adminlist.txt (Failure)[00:00:04]: OnLoadUserIdList: APP:Klei/DoNotStarveTogether/save/whitelist.txt (Failure)[00:00:04]: Offline user name: OU_76561198076083097[00:00:04]: SteamID: 76561198076083097[00:00:04]: THREAD - started 'GAClient' (5852)[00:00:04]: HttpClient::ClientThread::Main()[00:00:04]: cGame::InitializeOnMainThread[00:00:04]: WindowManager::Initialize[00:00:04]: CreateWindow: Requesting 1280,738 - 5/6/5 - -1/-1/-1 - 0[00:00:04]: THREAD - started 'GAClient' (6080)[00:00:04]: HttpClient::ClientThread::Main()[00:00:04]: CreateEGLContext: 12 configs found[00:00:04]:      0: 8/8/8 -  0/ 0/ 0 - 0[00:00:04]:      1: 8/8/8 -  0/16/ 0 - 0[00:00:04]:      2: 8/8/8 -  0/24/ 0 - 0[00:00:04]:      3: 8/8/8 -  0/24/ 8 - 0[00:00:04]:      4: 5/5/5 -  0/ 0/ 0 - 0[00:00:04]:      5: 5/5/5 -  0/16/ 0 - 0[00:00:04]:      6: 5/5/5 -  0/24/ 0 - 0[00:00:04]:      7: 5/5/5 -  0/24/ 8 - 0[00:00:04]:      8: 8/8/8 -  8/ 0/ 0 - 0[00:00:04]:      9: 8/8/8 -  8/16/ 0 - 0[00:00:04]:     10: 8/8/8 -  8/24/ 0 - 0[00:00:04]:     11: 8/8/8 -  8/24/ 8 - 0[00:00:04]: RestoreWindowPosition[00:00:04]:    Saved Client Pos (0 x 22)[00:00:04]:    Adjusted Window Pos (-8 x -8)[00:00:04]: EnsureWindowOnScreen[00:00:04]:    All good.[00:00:04]: GLInfo[00:00:04]: ~~~~~~[00:00:04]: GL_VENDOR: Google Inc.[00:00:04]: GL_RENDERER: ANGLE (NVIDIA GeForce 9600M GT )[00:00:04]: GL_VERSION: OpenGL ES 2.0 (ANGLE 1.0.0.2249)[00:00:04]: GL_SHADING_LANGUAGE_VERSION: OpenGL ES GLSL ES 1.00 (ANGLE 1.0.0.2249)[00:00:04]: OpenGL extensions (19, 19):[00:00:04]: GL_ANGLE_depth_texture[00:00:04]: GL_ANGLE_framebuffer_blit[00:00:04]: GL_ANGLE_framebuffer_multisample[00:00:04]: GL_ANGLE_instanced_arrays[00:00:04]: GL_ANGLE_pack_reverse_row_order[00:00:04]: GL_ANGLE_texture_compression_dxt3[00:00:04]: GL_ANGLE_texture_compression_dxt5[00:00:04]: GL_ANGLE_texture_usage[00:00:04]: GL_ANGLE_translated_shader_source[00:00:04]: GL_EXT_read_format_bgra[00:00:04]: GL_EXT_robustness[00:00:04]: GL_EXT_texture_compression_dxt1[00:00:04]: GL_EXT_texture_format_BGRA8888[00:00:04]: GL_EXT_texture_storage[00:00:04]: GL_OES_get_program_binary[00:00:04]: GL_OES_packed_depth_stencil[00:00:04]: GL_OES_rgb8_rgba8[00:00:04]: GL_OES_standard_derivatives[00:00:04]: GL_OES_texture_npot[00:00:04]: THREAD - started 'WindowsInputManager' (1436)[00:00:04]: GL_MAX_TEXTURE_SIZE = 8192[00:00:04]: GL_MAX_TEXTURE_IMAGE_UNITS = 16[00:00:04]: GL_MAX_RENDERBUFFER_SIZE = 8192[00:00:04]: GL_MAX_VIEWPORT_DIMS = 8192, 8192[00:00:04]: GL_MAX_VARYING_VECTORS = 10[00:00:04]: GL_MAX_VERTEX_ATTRIBS = 16[00:00:04]: GL_MAX_VERTEX_UNIFORM_VECTORS = 254[00:00:04]: GL_MAX_VERTEX_TEXTURE_IMAGE_UNITS = 4[00:00:04]: GL_MAX_FRAGMENT_UNIFORM_VECTORS = 221[00:00:04]: 4 compressed texture formats[00:00:04]: texture format 0x83f0[00:00:04]: texture format 0x83f1[00:00:04]: texture format 0x83f2[00:00:04]: texture format 0x83f3[00:00:04]: Renderer initialize: Okay[00:00:05]: AnimManager initialize: Okay[00:00:05]: Buffers initialize: Okay[00:00:05]: cDontStarveGame::DoGameSpecificInitialize()[00:00:05]: GameSpecific initialize: Okay[00:00:05]: cGame::StartPlaying[00:00:05]: LOADING LUA[00:00:05]: DoLuaFile scripts/main.lua[00:00:05]: DoLuaFile loading buffer scripts/main.lua[00:00:06]: scripts/main.lua(169,1) running main.lua	[00:00:06]: loaded modindex	[00:00:06]: ModIndex:GetModsToLoad inserting moddir, 	Solaire of Astora	[00:00:06]: ModIndex: Detected bad load, disabling all mods.	[00:00:07]: LOADING LUA SUCCESS[00:00:07]: PlayerDeaths loaded morgue	664	[00:00:07]: loaded profile	[00:00:07]: bloom_enabled	false	[00:00:07]: loaded saveindex	[00:00:07]: OnFilesLoaded()	[00:00:07]: OnUpdatePurchaseStateComplete	[00:00:08]: 	Load FE	[00:00:09]: 	Load FE: done	[00:00:09]: platform_motd	table: 12715E88	[00:00:09]: SimLuaProxy::QueryServer()[00:00:09]: SimLuaProxy::QueryServer()[00:00:09]: SimLuaProxy::QueryServer()[00:00:09]: ModIndex: Load sequence finished successfully.	[00:00:09]: Reset() returning[00:00:11]: platform_motd	table: 0BDF6428	[00:00:13]: GetCachedUGCCount 0[00:00:13]: EnumerateUserSubscribedFiles(0)[00:00:13]: OnEnumerateUserSubscribedFilesResult [00:00:13]:    EResult 1, results 8/8[00:00:13]: Enum complete. Found 8 mods.[00:00:13]: DeleteUnsubscribedFiles [../mods,false][00:00:13]: FindDirectoriesMatching [../mods/workshop-*][00:00:13]: GetPublishedFileDetails(0)[00:00:13]: Getting mod details...[00:00:14]: OnPublishedFileDetailsResult [00:00:14]:    EResult 1, 367593872[00:00:14]:    245850, 322330, [No More Lag], 31855919639623960, 31855919629541281, 76561197989086421, 1420194784, 1420304448, 0, 0, [tweak,version:1.1.1], 228, [mod_publish_data_file.zip], 131519, 134229, [], 0[00:00:14]: GetPublishedFileDetails(1)[00:00:14]: Getting mod details...[00:00:14]: OnPublishedFileDetailsResult [00:00:14]:    EResult 1, 468373577[00:00:14]:    245850, 322330, [Geralt], 436070488668362682, 436070488668363013, 76561198120152841, 1435172812, 1435767204, 0, 0, [all_clients_require_mod,character,item,reign of giants compatible,version:1.0.8], 228, [mod_publish_data_file.zip], 2211602, 238053, [], 0[00:00:14]: GetPublishedFileDetails(2)[00:00:14]: Getting mod details...[00:00:15]: OnPublishedFileDetailsResult [00:00:15]:    EResult 1, 373991022[00:00:15]:    245850, 322330, [Global Player Icons], 543019017990774213, 539637611886990194, 76561197970349754, 1421061012, 1424608926, 0, 0, [interface,utility,tweak,version:1.14], 228, [mod_publish_data_file.zip], 393726, 390830, [], 0[00:00:15]: GetPublishedFileDetails(3)[00:00:15]: Getting mod details...[00:00:15]: OnPublishedFileDetailsResult [00:00:15]:    EResult 1, 374550642[00:00:15]:    245850, 322330, [Increased Stack size], 543025989449322935, 543025989448782800, 76561197982211173, 1421166297, 1431017020, 0, 0, [utility,tweak,version:1.62,all_clients_require_mod], 228, [mod_publish_data_file.zip], 7981, 6463, [], 0[00:00:15]: GetPublishedFileDetails(4)[00:00:15]: Getting mod details...[00:00:16]: OnPublishedFileDetailsResult [00:00:16]:    EResult 1, 458940297[00:00:16]:    245850, 322330, [Food Values - Item Tooltips (Server and Client)], 521637598942657276, 521637598935719916, 76561198029173411, 1433980137, 1434811608, 0, 0, [all_clients_require_mod,interface,version:2.5], 228, [mod_publish_data_file.zip], 242008, 81992, [], 0[00:00:16]: GetPublishedFileDetails(5)[00:00:16]: Getting mod details...[00:00:16]: OnPublishedFileDetailsResult [00:00:16]:    EResult 1, 365119238[00:00:16]:    245850, 322330, [Smarter Crock Pot], 521637162497863345, 3281172720287038854, 76561198025317013, 1419881314, 1434095594, 0, 0, [client_only_mod,interface,reign of giants compatible,tweak,utility,version:3.21], 228, [mod_publish_data_file.zip], 62453, 30514, [], 0[00:00:16]: GetPublishedFileDetails(6)[00:00:16]: Getting mod details...[00:00:17]: OnPublishedFileDetailsResult [00:00:17]:    EResult 1, 436128282[00:00:17]:    245850, 322330, [Solaire of Astora], 36371116272864837, 36370312396071810, 76561198003707212, 1430591849, 1431086877, 0, 0, [character,all_clients_require_mod,version:1.0.1ceriouslymk2], 228, [mod_publish_data_file.zip], 6285501, 11532, [], 0[00:00:17]: GetPublishedFileDetails(7)[00:00:17]: Getting mod details...[00:00:18]: OnPublishedFileDetailsResult [00:00:18]:    EResult 1, 458364132[00:00:18]:    245850, 322330, [Extended Sample Character], 36373897949538349, 36373897949538772, 76561198171483067, 1433890878, 1433890878, 0, 0, [version:1.1.4,all_clients_require_mod], 228, [mod_publish_data_file.zip], 4359284, 10765, [], 0[00:00:18]: Mod listing complete.[00:00:18]: SteamWorkshop::CompleteCallback (success, Refreshing mods complete. Nothing new to download.) set[00:00:18]: SimLuaProxy::OnUpdateWorkshopModsComplete(ok., Refreshing mods complete. Nothing new to download.)[00:00:18]: Reloading Mod Info Prefabs	[00:00:18]: Loading Mod Info Prefabs	[00:00:18]: Unloading Mod Info Prefabs	[00:00:18]: QueryStats: { "req":"modrank", "field":"Session.Loads.Mods.list", "fieldop":"unwind", "linkpref":"external", "limit": 20}[00:00:19]: ### OnStatsQueried ###	[00:00:19]: {"modlinks":{"ws-Wormhole Marks [DST]":"http:\/\/steamcommunity.com\/sharedfiles\/filedetails\/?id=362175979","ws-Smarter Crock Pot":"http:\/\/steamcommunity.com\/sharedfiles\/filedetails\/?id=365119238","ws-Increased Stack size":"http:\/\/steamcommunity.com\/sharedfiles\/filedetails\/?id=374550642","ws-DST Where's My Beefalo?":"http:\/\/steamcommunity.com\/sharedfiles\/filedetails\/?id=347360448","ws-DST Storm Cellar":"http:\/\/steamcommunity.com\/sharedfiles\/filedetails\/?id=382177939","ws-Global Player Icons":"http:\/\/steamcommunity.com\/sharedfiles\/filedetails\/?id=373991022","ws-Health Info":"http:\/\/steamcommunity.com\/sharedfiles\/filedetails\/?id=375859599","ws-Personal Chesters":"http:\/\/steamcommunity.com\/sharedfiles\/filedetails\/?id=463740026","ws-Always On Status":"http:\/\/steamcommunity.com\/sharedfiles\/filedetails\/?id=376333686","ws-Minimap HUD":"http:\/\/steamcommunity.com\/sharedfiles\/filedetails\/?id=345692228","ws-Wall Gates [DST]":"http:\/\/steamcommunity.com\/sharedfiles\/filedetails\/?id=357875628","ws-Display Food Values":"http:\/\/steamcommunity.com\/sharedfiles\/filedetails\/?id=347079953","ws-Deluxe Campfires 2.11":"http:\/\/steamcommunity.com\/sharedfiles\/filedetails\/?id=444235588","ws-DST Advanced Farming":"http:\/\/steamcommunity.com\/sharedfiles\/filedetails\/?id=370373189","ws-Fast Travel":"http:\/\/steamcommunity.com\/sharedfiles\/filedetails\/?id=458587300","ws-Food Values - Item Tooltips (Server and Client)":"http:\/\/steamcommunity.com\/sharedfiles\/filedetails\/?id=458940297","ws-Gesture Wheel":"http:\/\/steamcommunity.com\/sharedfiles\/filedetails\/?id=352373173","ws-Global Positions":"http:\/\/steamcommunity.com\/sharedfiles\/filedetails\/?id=378160973","ws-Large Chest":"http:\/\/steamcommunity.com\/sharedfiles\/filedetails\/?id=396026892","ws-Extra Equip Slots":"http:\/\/steamcommunity.com\/sharedfiles\/filedetails\/?id=375850593"},"modfeature":{"ws-Global Player Icons":"http:\/\/steamcommunity.com\/sharedfiles\/filedetails\/?id=373991022"},"modnames":["ws-Global Player Icons","ws-Always On Status","ws-Minimap HUD","ws-Extra Equip Slots","ws-Health Info","ws-Display Food Values","ws-Smarter Crock Pot","ws-Wormhole Marks [DST]","ws-Global Positions","ws-DST Storm Cellar","ws-Increased Stack size","ws-DST Where's My Beefalo?","ws-Food Values - Item Tooltips (Server and Client)","ws-Large Chest","ws-Deluxe Campfires 2.11","ws-Personal Chesters","ws-Wall Gates [DST]","ws-Gesture Wheel","ws-Fast Travel","ws-DST Advanced Farming"]}	[00:00:19]: [00:00:19]: true	[00:00:19]: 200	[00:00:22]: Unloading Mod Info Prefabs	[00:00:22]: Collecting garbage...[00:00:22]: lua_gc took 0.01 seconds[00:00:22]: ~NetworkLuaProxy()[00:00:22]: ~SimLuaProxy()[00:00:22]: lua_close took 0.03 seconds[00:00:22]: ReleaseAll[00:00:22]: ReleaseAll Finished[00:00:22]: cGame::StartPlaying[00:00:22]: LOADING LUA[00:00:22]: DoLuaFile scripts/main.lua[00:00:22]: DoLuaFile loading buffer scripts/main.lua[00:00:22]: scripts/main.lua(169,1) running main.lua	[00:00:22]: loaded modindex	[00:00:22]: ModIndex: Beginning normal load sequence.	[00:00:22]: ModIndex:GetModsToLoad inserting moddir, 	Solaire of Astora	[00:00:22]: Could not load mod_config_data/modconfiguration_Solaire of Astora	[00:00:22]: Loading mod: Solaire of Astora (solaire of Astora) Version:1	[00:00:22]: Mod: Solaire of Astora (solaire of Astora)	Loading modworldgenmain.lua	[00:00:22]: Mod: Solaire of Astora (solaire of Astora)	  Mod had no modworldgenmain.lua. Skipping.	[00:00:22]: Mod: Solaire of Astora (solaire of Astora)	Loading modmain.lua	[00:00:22]: Mod: Solaire of Astora (solaire of Astora)	  Error loading mod![string "../mods/Solaire of Astora/modmain.lua"]:37: attempt to index field 'NAME' (a nil value)LUA ERROR stack traceback:        ../mods/Solaire of Astora/modmain.lua(37,1) in main chunk        =[C] in function 'xpcall'        scripts/util.lua(560,1) in function 'RunInEnvironment'        scripts/mods.lua(382,1) in function 'InitializeModMain'        scripts/mods.lua(363,1) in function 'LoadMods'        scripts/main.lua(248,1) in function 'ModSafeStartup'        scripts/main.lua(296,1)        =[C] in function 'SetPersistentString'        scripts/mainfunctions.lua(25,1) in function 'SavePersistentString'        scripts/modindex.lua(78,1)        =[C] in function 'GetPersistentString'        scripts/modindex.lua(65,1) in function 'BeginStartupSequence'        scripts/main.lua(295,1) in function 'callback'        scripts/modindex.lua(474,1)        =[C] in function 'GetPersistentString'        scripts/modindex.lua(451,1) in function 'Load'        scripts/main.lua(294,1) in main chunk	[00:00:22]: [string "../mods/Solaire of Astora/modmain.lua"]:37: attempt to index field 'NAME' (a nil value)LUA ERROR stack traceback:        ../mods/Solaire of Astora/modmain.lua(37,1) in main chunk        =[C] in function 'xpcall'        scripts/util.lua(560,1) in function 'RunInEnvironment'        scripts/mods.lua(382,1) in function 'InitializeModMain'        scripts/mods.lua(363,1) in function 'LoadMods'        scripts/main.lua(248,1) in function 'ModSafeStartup'        scripts/main.lua(296,1)        =[C] in function 'SetPersistentString'        scripts/mainfunctions.lua(25,1) in function 'SavePersistentString'        scripts/modindex.lua(78,1)        =[C] in function 'GetPersistentString'        scripts/modindex.lua(65,1) in function 'BeginStartupSequence'        scripts/main.lua(295,1) in function 'callback'        scripts/modindex.lua(474,1)        =[C] in function 'GetPersistentString'        scripts/modindex.lua(451,1) in function 'Load'        scripts/main.lua(294,1) in main chunk[00:00:22]: Error error! We tried displaying an error but TheFrontEnd isn't ready yet...	[00:00:22]: LOADING LUA SUCCESS[00:00:23]: PlayerDeaths loaded morgue	664	[00:00:23]: loaded profile	[00:00:23]: bloom_enabled	false	[00:00:23]: loaded saveindex	[00:00:23]: OnFilesLoaded()	[00:00:23]: OnUpdatePurchaseStateComplete	[00:00:23]: 	Unload BE	[00:00:23]: 	Unload BE done	[00:00:24]: Mod: Solaire of Astora (solaire of Astora)	Registering prefabs	[00:00:24]: Mod: Solaire of Astora (solaire of Astora)	  Registering prefab file: prefabs/solaire	[00:00:24]: Mod: Solaire of Astora (solaire of Astora)	    solaire	[00:00:24]: Mod: Solaire of Astora (solaire of Astora)	  Registering prefab file: prefabs/estus	[00:00:24]: Mod: Solaire of Astora (solaire of Astora)	    estus	[00:00:24]: Mod: Solaire of Astora (solaire of Astora)	  Registering default mod prefab	[00:00:24]: Could not load texture ../mods/Solaire of Astora/images/inventoryimages/solaire.tex[00:00:24]: Break at: c:\jenkins\workspace\jobs\DontStarveTogether_Release_Windows_MakeSteamPackage\workspace\source\util/resourcemanager.h(142) :
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...