2008-04-25 16:31:38 +02:00
|
|
|
-- -*- coding: utf-8 -*-
|
|
|
|
|
|
|
|
function test_locales()
|
|
|
|
local skills = { "", "herb", "kraut", "Kräute", "Kraeut", "k", "kra", "MAGIE" }
|
|
|
|
for k,v in pairs(skills) do
|
|
|
|
str = test.loc_skill("de", v)
|
|
|
|
io.stdout:write(v, "\t", tostring(str), " ", tostring(get_string("de", "skill::" .. tostring(str))), "\n")
|
|
|
|
end
|
|
|
|
return 0
|
|
|
|
end
|
|
|
|
|
|
|
|
test_locales()
|
2008-04-26 16:55:22 +02:00
|
|
|
|
|
|
|
local now = os.clock()
|
2008-05-17 00:37:13 +02:00
|
|
|
read_game("571.new", "binary")
|
2008-05-04 07:57:34 +02:00
|
|
|
--read_game("566.txt", "text")
|
2008-04-27 13:58:14 +02:00
|
|
|
--write_game("566.txt", "text")
|
2008-04-26 16:55:22 +02:00
|
|
|
local elapsed = os.clock() - now
|
|
|
|
print(elapsed)
|
2008-04-27 11:52:03 +02:00
|
|
|
-- text: 50.574
|
|
|
|
-- bin0: 19.547
|
|
|
|
-- bin1: 18.953
|
2008-05-04 07:57:34 +02:00
|
|
|
f = get_faction(0)
|
2008-04-27 11:52:03 +02:00
|
|
|
|
2008-05-12 00:20:03 +02:00
|
|
|
--renumber(f, 666)
|
2008-05-17 00:37:13 +02:00
|
|
|
-- write_game("571.new", "binary")
|
2008-04-26 16:55:22 +02:00
|
|
|
|
2008-05-17 00:37:13 +02:00
|
|
|
io.stdin:read("*line")
|