forked from github/server
map script needs to set up the script folder.
This commit is contained in:
parent
b0203a2cef
commit
f0ac736bd1
|
@ -1,3 +1,9 @@
|
||||||
|
local path = 'scripts'
|
||||||
|
if config.install then
|
||||||
|
path = config.install .. '/' .. path
|
||||||
|
end
|
||||||
|
package.path = package.path .. ';' .. path .. '/?.lua;' .. path .. '/?/init.lua'
|
||||||
|
require 'eressea.path'
|
||||||
require 'eressea'
|
require 'eressea'
|
||||||
require 'eressea.xmlconf'
|
require 'eressea.xmlconf'
|
||||||
eressea.read_game(get_turn() .. ".dat")
|
eressea.read_game(get_turn() .. ".dat")
|
||||||
|
|
|
@ -182,12 +182,6 @@ function run_turn(rules)
|
||||||
return result
|
return result
|
||||||
end
|
end
|
||||||
|
|
||||||
local path = 'scripts'
|
|
||||||
if config.install then
|
|
||||||
path = config.install .. '/' .. path
|
|
||||||
end
|
|
||||||
package.path = package.path .. ';' .. path .. '/?.lua;' .. path .. '/?/init.lua'
|
|
||||||
|
|
||||||
require 'eressea'
|
require 'eressea'
|
||||||
require 'eressea.xmlconf' -- read xml data
|
require 'eressea.xmlconf' -- read xml data
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue