Compare commits
No commits in common. "d4bbf6294528b8a536d352de1ce1e4184a6ef90d" and "9d50705d9a2948b33dcaddcca723d76e618a1ddb" have entirely different histories.
d4bbf62945
...
9d50705d9a
12
lb_store.lua
12
lb_store.lua
@ -381,18 +381,6 @@ COM_AddCommand("lb_known_maps", function(player, map)
|
|||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
||||||
COM_AddCommand("lb_download_live_records", function(player, filename)
|
|
||||||
if not filename then
|
|
||||||
CONS_Printf(player, "Usage: lb_download_live_records <filename>")
|
|
||||||
return
|
|
||||||
end
|
|
||||||
|
|
||||||
if filename:sub(#filename-3) != ".txt" then
|
|
||||||
filename = $..".txt"
|
|
||||||
end
|
|
||||||
dumpStoreToFile(filename, LiveStore)
|
|
||||||
end, COM_LOCAL)
|
|
||||||
|
|
||||||
-- Load the livestore
|
-- Load the livestore
|
||||||
if isserver then
|
if isserver then
|
||||||
LiveStore = loadStoreFile(LEADERBOARD_FILE)
|
LiveStore = loadStoreFile(LEADERBOARD_FILE)
|
||||||
|
@ -1,21 +1,14 @@
|
|||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
import sys
|
import sys
|
||||||
from os import linesep, path
|
from os import linesep
|
||||||
|
|
||||||
if len(sys.argv) != 3 or not sys.argv[1] or not sys.argv[2]:
|
if len(sys.argv) != 4 or not sys.argv[1] or not sys.argv[2] or not sys.argv[3]:
|
||||||
print("Usage: coldstore.py <game_directory> <leaderboard_records.lua>")
|
print("Usage: coldstore.py <leaderboard.txt> <coldstore.txt> <leaderboard_records.lua>")
|
||||||
print("\t<game_directory>\t\tthe game directory where wads and luafiles reside. Usually at '$HOME/.srb2kart'.")
|
|
||||||
print("\t<leaderboard_records.lua>\tthe output name for the records packed lua file. It will be saved within <game_directory>.")
|
|
||||||
quit()
|
quit()
|
||||||
|
|
||||||
if not sys.argv[2].endswith(".lua"):
|
leaderboard_txt = sys.argv[1]
|
||||||
print("{} must end with .lua".format(sys.argv[2]))
|
coldstore_txt = sys.argv[2]
|
||||||
quit()
|
records_lua = sys.argv[3]
|
||||||
|
|
||||||
game_dir = sys.argv[1]
|
|
||||||
leaderboard_txt = path.join(game_dir, "luafiles", "leaderboard.txt")
|
|
||||||
coldstore_txt = path.join(game_dir, "luafiles", "leaderboard.coldstore.txt")
|
|
||||||
records_lua = path.join(game_dir, sys.argv[2])
|
|
||||||
|
|
||||||
def ParseScore(score):
|
def ParseScore(score):
|
||||||
# Map Name Skin Color Time Splits Flags Stat
|
# Map Name Skin Color Time Splits Flags Stat
|
||||||
|
Loading…
x
Reference in New Issue
Block a user