Jump to content

Trying to make a dedicated server with mods. But it won't start. ("../mods/modsettings.lua"]:16: unexpected symbol near '[')


Recommended Posts

Can't get mods to work on the server. Every time i add them in modsettings.lua the server won't start.

Here's how I've configured the files: http://pastebin.com/pNRcfjRU (Plus launch options, and the log.)

Here's the error shutting the server down:

[00:00:00]: DoLuaFile Error: [string "scripts/modindex.lua"]:849: Error loading modsettings:
[string "../mods/modsettings.lua"]:16: unexpected symbol near '['
LUA ERROR stack traceback:
        =[C] in function 'error'
        scripts/modindex.lua(849,1) in function 'UpdateModSettings'
        scripts/modindex.lua(497,1) in function 'Load'
        scripts/main.lua(299,1) in main chunk
[00:00:00]: [string "scripts/modindex.lua"]:849: Error loading modsettings:
[string "../mods/modsettings.lua"]:16: unexpected symbol near '['
LUA ERROR stack traceback:
        =[C] in function 'error'
        scripts/modindex.lua(849,1) in function 'UpdateModSettings'
        scripts/modindex.lua(497,1) in function 'Load'
        scripts/main.lua(299,1) in main chunk
[00:00:00]: Error loading main.lua
[00:00:00]: Failed mSimulation->Reset()
[00:00:00]: Error during game initialization!
[00:00:00]: Collecting garbage...
[00:00:00]: lua_gc took 0.00 seconds
[00:00:00]: ~ShardLuaProxy()
[00:00:00]: ~NetworkLuaProxy()
[00:00:00]: ~SimLuaProxy()
[00:00:00]: lua_close took 0.00 seconds
[00:00:00]: HttpClient2::ClientThread::Main() complete
[00:00:00]: Shutting down
 
Link to comment
Share on other sites

Hi @JacobMIX,

 

for mods you need use modoverrides.lua and dedicated_server_mods_setup.lua

 

dedicated_server_mods_setup.lua (for download or update mods)

 

modoverrides.lua (settings of mods)

 

modsettings.lua was an old system that was use before for mods, I think this one is obsolete, leave this empty file

 

 

Link to comment
Share on other sites

Hi @JacobMIX,

 

for mods you need use modoverrides.lua and dedicated_server_mods_setup.lua

 

dedicated_server_mods_setup.lua (for download or update mods)

 

modoverrides.lua (settings of mods)

 

modsettings.lua was an old system that was use before for mods, I think this one is obsolete, leave this empty file

Thank you. That fixed everything!

Basically i just had to move what i had in modsettings.lua To modoverrides.lua

Welp. Guess i'll setup the server with a lot of mods tomorrow. 

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