Jump to content

Error loading main.lua


Recommended Posts

when i start the server it is immediately shutiing down with this log:

Spoiler

[00:00:00]: PersistRootStorage is now /home/steam/.klei//DoNotStarveTogether/Team.Ple[X]us/Master/
[00:00:00]: Starting Up
[00:00:00]: Version: 202070
[00:00:00]: Current time: Mon Jan  9 01:55:14 2017

[00:00:00]: System Name: Linux
[00:00:00]: Host Name: ***
[00:00:00]: Release(Kernel) Version: 2.6.32-042stab120.6
[00:00:00]: Kernel Build Timestamp: #1 SMP Thu Oct 27 16:59:03 MSK 2016
[00:00:00]: Machine Arch: i686
[00:00:00]: Don't Starve Together: 202070 LINUX
[00:00:00]: Build Date: 1644
[00:00:00]: Parsing command line
[00:00:00]: Command Line Arguments: -cluster Team.Ple[X]us Server -shard Master
[00:00:00]: Initializing distribution platform
[00:00:00]: ....Done
[00:00:00]: Error, failed to change working directory to ../data
[00:00:00]: ProfileIndex:7.76
[00:00:00]: [Connect] PendingConnection::Reset(true)
[00:00:00]: Network tick rate: U=15(2), D=0
[00:00:00]: Network tick rate: U=15(2), D=0
[00:00:00]: Error trying to change cluster setting (NETWORK->cluster_intention) from '' to 'cooperative'
[00:00:00]: OnLoadPermissionList: /home/steam/.klei//DoNotStarveTogether/Team.Ple[X]us/blocklist.txt (Failure)
[00:00:00]: OnLoadPermissionList: /home/steam/.klei//DoNotStarveTogether/Team.Ple[X]us/adminlist.txt (Failure)
[00:00:00]: OnLoadUserIdList: /home/steam/.klei//DoNotStarveTogether/Team.Ple[X]us/whitelist.txt (Failure)
[00:00:00]: cGame::InitializeOnMainThread
[00:00:00]: THREAD - started 'GAClient' (3062373184)
[00:00:00]: CurlRequestManager::ClientThread::Main()
[00:00:00]: Renderer initialize: Okay
[00:00:00]: AnimManager initialize: Okay
[00:00:00]: Buffers initialize: Okay
[00:00:00]: cDontStarveGame::DoGameSpecificInitialize()
[00:00:00]: --- ERROR LOADING sound/dontstarve.fev
[00:00:00]: GameSpecific initialize: Okay
[00:00:00]: cGame::StartPlaying
[00:00:00]: THREAD - started 'ConsoleInput' (3056880448)
[00:00:00]: LOADING LUA
[00:00:00]: DoLuaFile scripts/main.lua
[00:00:00]: DoLuaFile Could not load lua file scripts/main.lua
[00:00:00]: Error loading main.lua
[00:00:00]: Failed mSimulation->Reset()
[00:00:00]: Error during game initialization!
Updates 0Seconds elapsed: 0.0360025 fps:0
Saving Dedicated server data...
[00:00:00]: attempt to call a nil value
LUA ERROR stack traceback:
[00:00:00]: attempt to call a nil value
LUA ERROR stack traceback:
[00:00:00]: Collecting garbage...
[00:00:00]: lua_gc took 0.00 seconds
[00:00:00]: ~ShardLuaProxy()
[00:00:00]: ~ItemServerLuaProxy()
[00:00:00]: ~InventoryLuaProxy()
[00:00:00]: ~NetworkLuaProxy()
[00:00:00]: ~SimLuaProxy()
[00:00:00]: lua_close took 0.00 seconds
[00:00:00]:  Manager - ORPHANED UNKNOWN RESOURCES:
[00:00:00]: shaders/ui_yuv.ksh - 1
[00:00:00]: CurlRequestManager::ClientThread::Main() complete
[00:00:00]: HttpClient2 discarded 0 callbacks.
[00:00:00]: Shutting down

The most important lines are

[00:00:00]: LOADING LUA
[00:00:00]: DoLuaFile scripts/main.lua
[00:00:00]: DoLuaFile Could not load lua file scripts/main.lua
[00:00:00]: Error loading main.lua

i reinstalled steam and dont stave together but still getting the same error.
and the file main.lua is in the folger data/scripts

-rwxrwxr-x 1 steam steam   7876 Jan  9 01:47 main.lua

and steam is the user i use to start the server.

some one any idea how to fix this error?

Link to comment
Share on other sites

i followed this guide

but i could not execute the command line

dpkg --add-architecture i386

because my server is running  Ubuntu 12.04 LTS
and reffering to this thread: https://answers.launchpad.net/ubuntu/+source/dpkg/+question/221647
there is not support for dpkg -add-architecure on Ubuntu 12.04 LTS

So i will try to upgrade my server the a newer ubuntu version and hopyfully everything works fine.
(But first do a backup ^^)

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