2016-08-18 19:04:48 +02:00
|
|
|
path = 'scripts'
|
|
|
|
if config.install then
|
|
|
|
path = config.install .. '/' .. path
|
|
|
|
package.path = package.path .. ';' .. config.install .. '/lunit/?.lua'
|
|
|
|
--needed to find lunit if not run from eressea root. Needs right [lua] install setting in eressea.ini (point to eressea root from the start folder)
|
|
|
|
end
|
|
|
|
package.path = package.path .. ';' .. path .. '/?.lua;' .. path .. '/?/init.lua'
|
|
|
|
|
|
|
|
config.rules = 'e2'
|
|
|
|
|
|
|
|
require 'eressea'
|
|
|
|
require 'eressea.xmlconf'
|
|
|
|
require 'eressea.path'
|
|
|
|
|
|
|
|
eressea.read_game(get_turn() .. '.dat')
|
|
|
|
ids = {2081501646, 1967748303, 1137, 2000, 1456894557, 1580742069, 1143084084, 285224813, 604912520, 296884068, 50}
|
2016-08-14 16:51:25 +02:00
|
|
|
p=plane.create(50, -7280, -4494, 83, 83, "Regatta")
|
2016-08-18 19:04:48 +02:00
|
|
|
|
|
|
|
for k,v in ipairs(ids) do
|
|
|
|
p = plane.get(v)
|
|
|
|
print(v, p)
|
|
|
|
p:erase()
|
|
|
|
end
|
|
|
|
eressea.write_game(get_turn() .. '.new')
|
2016-08-14 15:46:27 +02:00
|
|
|
eressea.free_game()
|
|
|
|
eressea.read_game(get_turn() .. '.new')
|
2016-08-14 16:51:25 +02:00
|
|
|
write_reports()
|
|
|
|
eressea.write_game(get_turn() .. '.fix')
|