Jump to content

beginner need some help


Recommended Posts

Hey Guys,
Im trying to make my own sword mod but everytime i start the game it crashes. There is a error message but i cant read it because the message disappears in like 1 second.I just started to learn how to mod this game so please be patient with me.Here is the log file:

 

[00:00:41]: WARNING loading modinfo.lua: Tesanagi does not specify if it is compatible with Don't Starve Together. It may not work properly.
[00:00:41]: ModIndex:GetModsToLoad inserting moddir, Tesanagi
[00:00:41]: Could not load mod_config_data/modconfiguration_Tesanagi
[00:00:41]: Loading mod: Tesanagi Version:1.0
[00:00:41]: Mod: Tesanagi Loading modworldgenmain.lua
[00:00:41]: Mod: Tesanagi  Mod had no modworldgenmain.lua. Skipping.
[00:00:41]: Mod: Tesanagi Loading modmain.lua
[00:00:41]: Mod: Tesanagi  Error loading mod!
[string "../mods/Tesanagi/modmain.lua"]:13: attempt to index field 'NAME' (a nil value)
LUA ERROR stack traceback:
        ../mods/Tesanagi/modmain.lua(13,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:41]: [string "../mods/Tesanagi/modmain.lua"]:13: attempt to index field 'NAME' (a nil value)
LUA ERROR stack traceback:
        ../mods/Tesanagi/modmain.lua(13,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:41]: Error error! We tried displaying an error but TheFrontEnd isn't ready yet...
[00:00:41]: LOADING LUA SUCCESS
[00:00:42]: PlayerDeaths loaded morgue 3256
[00:00:42]: loaded profile
[00:00:42]: bloom_enabled true
[00:00:42]: loaded saveindex
[00:00:42]: OnFilesLoaded()
[00:00:42]: OnUpdatePurchaseStateComplete
[00:00:42]: Unload BE
[00:00:42]: Unload BE done
[00:00:42]: Mod: Tesanagi Registering prefabs
[00:00:42]: Mod: Tesanagi  Registering prefab file: prefabs/Tesanagi
[00:00:42]: error calling LoadPrefabFile in mod Tesanagi: 
[string "scripts/mainfunctions.lua"]:92: Error loading file prefabs/Tesanagi
[string "../mods/Tesanagi/scripts/prefabs/Tesanagi.lua"]:62: '<eof>' expected near 'end'
LUA ERROR stack traceback:
        =[C] in function 'assert'
        scripts/mainfunctions.lua(92,1)
        =(tail call) ?
        =[C] in function 'xpcall'
        scripts/mods.lua(144,1)
        scripts/mods.lua(469,1) in function 'RegisterPrefabs'
        scripts/gamelogic.lua(167,1) in function 'LoadAssets'
        scripts/gamelogic.lua(901,1) in function 'DoResetAction'
        scripts/gamelogic.lua(919,1) in function 'complete_callback'
        scripts/upsell.lua(27,1) in function 'UpdateGamePurchasedState'
        scripts/gamelogic.lua(934,1) in function 'callback'
        scripts/saveindex.lua(97,1)
        =[C] in function 'GetPersistentString'
        scripts/saveindex.lua(68,1) in function 'Load'
        scripts/gamelogic.lua(950,1) in function 'callback'
        scripts/playerprofile.lua(564,1) in function 'Set'
        scripts/playerprofile.lua(447,1)
        =[C] in function 'GetPersistentString'
        scripts/playerprofile.lua(445,1) in function 'Load'
        scripts/gamelogic.lua(949,1) in main chunk
        =[C] in function 'require'
        scripts/mainfunctions.lua(690,1)
[00:00:42]: Disabling Tesanagi because it had an error.
[00:00:42]: Disabling Tesanagi because it had an error.
[00:00:42]: SCRIPT ERROR! Showing error screen
[00:00:42]: Mod: Tesanagi  Registering default mod prefab
[00:00:42]: Load FE
[00:00:42]: Load FE: done
[00:00:42]: SimLuaProxy::QueryServer()
[00:00:42]: SimLuaProxy::QueryServer()
[00:00:42]: SimLuaProxy::QueryServer()
[00:00:42]: ModIndex: Load sequence finished successfully.
[00:00:42]: Reset() returning
[00:00:47]: unloading prefabs for mod MOD_Tesanagi
[00:00:47]: Collecting garbage...
[00:00:47]: lua_gc took 0.01 seconds
[00:00:47]: ~NetworkLuaProxy()
[00:00:47]: ~SimLuaProxy()
[00:00:47]: lua_close took 0.01 seconds
[00:00:47]: HttpClient::ClientThread::Main() complete
[00:00:47]: HttpClient::ClientThread::Main() complete
[00:00:47]: HttpClient::ClientThread::Main() complete
[00:00:47]: HttpClient::ClientThread::Main() complete
[00:00:47]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:00:47]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:00:47]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:00:47]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:00:47]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:00:47]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:00:47]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:00:47]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:00:47]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:00:47]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:00:47]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:00:47]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:00:47]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:00:47]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:00:47]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:00:47]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:00:47]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:00:47]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:00:47]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:00:47]: Orphaned unnamed resource. This resource must have used Add( resource ) to insert itself into the manager. 
[00:00:48]: HttpClient::ClientThread::Main() complete
[00:00:48]: Shutting down
 
I hope someone can help me with this problem and sorry for my bad english but english isn`t my native language.^^
Link to comment
Share on other sites

[00:00:41]: Mod: Tesanagi  Error loading mod!

[string "../mods/Tesanagi/modmain.lua"]:13: attempt to index field 'NAME' (a nil value)

LUA ERROR stack traceback:

        ../mods/Tesanagi/modmain.lua(13,1) in main chunk

        =[C] in function 'xpcall'

 

Hope that helps, if it doesn't, post the beginning of modmain.lua.

 

Also, this isn't the DS Together modding forum. You're in the DS modding forums

Link to comment
Share on other sites

Oh, sorry for posting this thread in the wrong forum.Didn`t realize it.

 

PrefabFiles = {
    "claymore_gray",
}
 
TUNING.CLAYMORE_GRAY_USES = 300
TUNING.CLAYMORE_GRAY_DAMAGE = 48
 
local Ingredient = GLOBAL.Ingredient
local RECIPETABS = GLOBAL.RECIPETABS
local STRINGS = GLOBAL.STRINGS
local TECH = GLOBAL.TECH
 
STRINGS.NAMES.CLAYMORE_GRAY = "Claymore"
STRINGS.RECIPE_DESC.CLAYMORE_GRAY = "Its a Big. Curved. Sword."
STRINGS.CHARACTERS.GENERIC.DESCRIBE.CLAYMORE_GRAY = "It has a dark aura"
 
AddRecipe("claymore_gray", { Ingredient("twigs", 5), Ingredient("flint", 6), Ingredient("goldnugget", 10)}, RECIPETABS.WAR,  TECH.SCIENCE_TWO, nil, nil, nil, nil, nil, "images/inventoryimages/claymore_gray.xml", "claymore_gray.tex")
 
That`s my lua file.
Link to comment
Share on other sites

Ups, that was the wrong one.That`s the lua file i used as template.

 

PrefabFiles = {
"Tesanagi",
}
 
TUNING.TESANAGI_USES = 200
TUNING.TESANAGI_DAMAGE = 80
 
local Ingredient = GLOBAL.Ingredient
local RECIPETABS = GLOBAL.RECIPETABS
local STRINGS = GLOBAL.STRINGS
local TECH = GLOBAL.TECH
 
STRINGS.NAME.TESANAGI = "Tesanagi"
STRINGS.RECIPE_DESC.TESANAGI = "A mythical sword."
STRINGS.CHARACTERS.GENERIC.DESCRIBE.TESANAGI = "It`s a weapon of pure evil"
 
AddRecipe("Tesanagi", { Ingredient("twigs", 5), Ingredient("flint", 6), Ingredient("goldnugget", 10)}, RECIPETABS.WAR,  TECH.SCIENCE_TWO, nil, nil, nil, nil, nil, "images/inventoryimages/Tesanagi.xml", "Tesanagi.tex")
 
That`s the right one.
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...