1
0
mirror of https://github.com/ComfyFactory/ComfyFactorio.git synced 2025-02-07 13:31:40 +02:00

session updater

This commit is contained in:
MewMew 2018-10-01 14:30:23 +02:00
parent c9dccf22d4
commit 7408ac9248
7 changed files with 354 additions and 61 deletions

View File

@ -267,9 +267,9 @@ local function treasure_chest(position, distance_to_center)
{{name = "gate", count = math_random(25,50)}, weight = 1, evolution_min = 0.1, evolution_max = 0.5},
{{name = "storage-tank", count = math_random(4,8)}, weight = 3, evolution_min = 0.3, evolution_max = 0.6},
{{name = "train-stop", count = math_random(2,4)}, weight = 1, evolution_min = 0.2, evolution_max = 0.7},
{{name = "express-loader", count = math_random(2,4)}, weight = 1, evolution_min = 0.5, evolution_max = 1},
{{name = "fast-loader", count = math_random(2,4)}, weight = 1, evolution_min = 0.2, evolution_max = 0.7},
{{name = "loader", count = math_random(2,4)}, weight = 1, evolution_min = 0.0, evolution_max = 0.5},
{{name = "express-loader", count = math_random(1,3)}, weight = 1, evolution_min = 0.5, evolution_max = 1},
{{name = "fast-loader", count = math_random(1,3)}, weight = 1, evolution_min = 0.2, evolution_max = 0.7},
{{name = "loader", count = math_random(1,3)}, weight = 1, evolution_min = 0.0, evolution_max = 0.5},
{{name = "lab", count = math_random(4,8)}, weight = 2, evolution_min = 0.0, evolution_max = 0.1},
--{{name = "roboport", count = math_random(2,4)}, weight = 2, evolution_min = 0.6, evolution_max = 1},
{{name = "flamethrower-turret", count = math_random(1,3)}, weight = 3, evolution_min = 0.5, evolution_max = 1},

View File

@ -1,9 +1,9 @@
local index = {
"blkCUwDfFaRxezkA", "PEVkYcsbVwnnKWKm", "RmApKqaHBnDdjlUf", "eovuYGvdICGhruuU", "xFbpVDlWSNPmGqQf", "lktJcRqsleypbFqW", "MYmwDgcTBIOgADTD", "ArNWzzewJtYSbxVw", "oYQcJazDfTUtymDW", "pFvIWAWWsePfBElD", "qZIGmkBOGbGUrzGQ", "ULqnxPRoVXgYMnDb", "rJALXVwjKAnMJznl", "CKYAXOTPJxgSNaeW", "hvUbLyrnWVMFABRJ", "qAUFndIMNmCtmNIO"
}
"AOIIDTHuoMlQBJXA","ArNWzzewJtYSbxVw","blkCUwDfFaRxezkA","CKYAXOTPJxgSNaeW","eovuYGvdICGhruuU","hvUbLyrnWVMFABRJ","lktJcRqsleypbFqW","MYmwDgcTBIOgADTD","oYQcJazDfTUtymDW","PEVkYcsbVwnnKWKm","pFvIWAWWsePfBElD","qAUFndIMNmCtmNIO","qZIGmkBOGbGUrzGQ","rJALXVwjKAnMJznl","rjNFCwIjneWQUpjs","RmApKqaHBnDdjlUf","sonUzzIipNQkliYN","ULqnxPRoVXgYMnDb","xFbpVDlWSNPmGqQf"
}
local data = {}
for _, i in pairs(index) do
table.insert(data, require ("session_data." .. i))
table.insert(data, require ("session_data." .. i))
end
return data
return data

View File

@ -0,0 +1,51 @@
local playsession = {
{"mewmew", {731737}},
{"Gerkiz", {586120}},
{"MEWNUMBATWO", {21439}},
{"first10101", {426697}},
{"wenekar", {8312}},
{"ANV1L", {1214894}},
{"skace", {827}},
{"evileddy60", {338895}},
{"INSOVOID", {230323}},
{"girkan", {1672}},
{"Catbert", {7757}},
{"air20", {607260}},
{"nmy", {3551}},
{"badbeachboy", {1182726}},
{"brfbrf", {82610}},
{"wotwotvodka", {65125}},
{"NewEpoch", {12154}},
{"DjSapsan", {22281}},
{"TheWickedMaster", {882995}},
{"DaniaBakai", {270784}},
{"switchz", {940470}},
{"Jotan", {31426}},
{"VintageAura", {123244}},
{"NerZurg", {467568}},
{"UTIDI", {246}},
{"floxys", {608912}},
{"lazerandy", {311854}},
{"skudd3r", {587814}},
{"Finguh3232", {433}},
{"ultrajer", {1041893}},
{"mario31274", {17080}},
{"odgaar", {8206}},
{"Cheeseftw", {620}},
{"Le1t", {16101}},
{"llamaben54", {154713}},
{"warriordragon25", {2943}},
{"redlabel", {1989613}},
{"greenstarwars04", {254699}},
{"xor", {105398}},
{"Headscrew", {28457}},
{"pato1", {4783}},
{"SpwnX", {7639}},
{"Terarink", {806218}},
{"froody", {3510}},
{"DoxxMulder", {723}},
{"soni", {10409}},
{"RikSTAR3OOO", {2593}},
{"OmegaLunch", {826}}
}
return playsession

View File

@ -1,135 +1,191 @@
local playsession = {
{"L75", {938417}},
{"L75", {1479444}},
{"Urakan", {388382}},
{"ANV1L", {339690}},
{"srbrian", {1279394}},
{"vanios", {1353193}},
{"COOL-ITEM", {1297385}},
{"Catbert", {158861}},
{"ANV1L", {680666}},
{"srbrian", {2830243}},
{"vanios", {2553231}},
{"COOL-ITEM", {2060033}},
{"Catbert", {169356}},
{"Jaskarox", {289455}},
{"RikSTAR3OOO", {1217344}},
{"___Ohr___", {1213339}},
{"Sokyra", {1210420}},
{"Sjetil", {1101171}},
{"RikSTAR3OOO", {2424724}},
{"___Ohr___", {2895832}},
{"Sokyra", {2366095}},
{"Sjetil", {1606431}},
{"Mkirby9674", {749766}},
{"floxys", {3421}},
{"floxys", {42209}},
{"AbsoluteZeroIs0K", {136110}},
{"nankinanki", {2755}},
{"brfbrf", {424888}},
{"beranabus", {6397}},
{"brfbrf", {508129}},
{"beranabus", {34316}},
{"Idefix88", {238966}},
{"lantotol", {394739}},
{"lantotol", {426821}},
{"terror123pl", {105}},
{"tylerdourlain", {93160}},
{"Kyte", {555468}},
{"Kyte", {706886}},
{"Flomme", {7192}},
{"Namelesshunter", {9344}},
{"Namelesshunter", {11715}},
{"lnm_2000", {6194}},
{"SMikiS", {358506}},
{"mewmew", {83575}},
{"mewmew", {109709}},
{"NobleTom", {68087}},
{"Bemm", {846650}},
{"Bemm", {1678664}},
{"Zabka_222", {152468}},
{"DanVega", {813534}},
{"DanVega", {1119642}},
{"TCtopCAT", {222913}},
{"bob3", {377464}},
{"CommanderFrog", {769485}},
{"CommanderFrog", {1196840}},
{"Mikeymouse1", {41466}},
{"lyman", {18205}},
{"YAMATO_Hajime", {73118}},
{"YAMATO_Hajime", {668786}},
{"1234tv", {117053}},
{"Julian1109", {184363}},
{"CounterfeitThe", {670876}},
{"Julian1109", {275964}},
{"CounterfeitThe", {1047330}},
{"megamega", {57459}},
{"bl72", {406420}},
{"rachet303", {663231}},
{"rubafix", {653898}},
{"lejnel", {628119}},
{"Finguh3232", {519817}},
{"rachet303", {1516813}},
{"rubafix", {853220}},
{"lejnel", {716633}},
{"Finguh3232", {1114408}},
{"BadSpeiling", {388141}},
{"Jaazinh", {644302}},
{"Jaazinh", {944830}},
{"Wadiyatalkinbeet", {6190}},
{"StarPirate", {166896}},
{"MagicRetard", {6647}},
{"warriordragon25", {227853}},
{"dima.tischenko", {472064}},
{"warriordragon25", {472651}},
{"dima.tischenko", {495593}},
{"jamiebally", {44775}},
{"The_FireNuke_PL", {52099}},
{"skarpiz", {600631}},
{"The_FireNuke_PL", {686904}},
{"skarpiz", {782560}},
{"Aleqxz", {60258}},
{"judi100", {247387}},
{"jf3000", {68835}},
{"larshp", {99038}},
{"N355A", {558385}},
{"N355A", {709548}},
{"Boop-Beep", {28709}},
{"piratesman", {35268}},
{"28vinnie28", {6786}},
{"Xonic6", {29733}},
{"vvictor", {85778}},
{"sdsadasd", {5609}},
{"cocoilove", {510741}},
{"cocoilove", {924247}},
{"Dirty_Shirt", {15509}},
{"ragegear", {35663}},
{"jufacto", {199481}},
{"gereleth", {261090}},
{"tokb", {6276}},
{"WayRunner", {443738}},
{"WayRunner", {739206}},
{"Gerkiz", {16162}},
{"kenoko", {16171}},
{"taa001", {9535}},
{"Uthanak", {4926}},
{"SirNiggaAlot", {28206}},
{"Monki", {395165}},
{"badbeachboy", {219215}},
{"Monki", {903750}},
{"badbeachboy", {430342}},
{"izolight", {12234}},
{"supra80rx124", {11813}},
{"Amker", {365825}},
{"Amker", {388012}},
{"Lomms", {145625}},
{"Mishahaha12", {18560}},
{"seirjgkemn", {26255}},
{"hhlovemirror", {3125}},
{"Nivek3k", {43092}},
{"helmetti", {2591}},
{"collin350", {135866}},
{"helmetti", {5293}},
{"collin350", {469926}},
{"wengPC", {14344}},
{"NoDz550", {39005}},
{"ArcLiox", {67844}},
{"Unrealrules", {24528}},
{"Akhrem", {15571}},
{"thebettersimon", {13331}},
{"Vadatajs", {252782}},
{"Vadatajs", {493194}},
{"ailishi19", {147435}},
{"Farglon", {10700}},
{"JinNJuice", {4242}},
{"Morhadov", {17192}},
{"3061867813", {161752}},
{"3061867813", {568196}},
{"Conor0709", {12144}},
{"niko27111__", {207813}},
{"OmegaLunch", {200859}},
{"niko27111__", {796194}},
{"OmegaLunch", {341503}},
{"Tobbz", {22893}},
{"Nemek", {6991}},
{"doublestuffed", {4810}},
{"xiaohuo", {7360}},
{"Zippy", {11675}},
{"Idifix", {105232}},
{"Terarink", {135718}},
{"npo6ka", {22272}},
{"Terarink", {776538}},
{"npo6ka", {28574}},
{"skudd3r", {8744}},
{"StarLite", {7469}},
{"Giatros", {115295}},
{"plukona", {99680}},
{"Giatros", {223888}},
{"plukona", {1776768}},
{"Stayler", {1887}},
{"yamaidare_w", {6249}},
{"ajicurry", {27822}},
{"ajicurry", {199081}},
{"ronaldoklais", {7804}},
{"HardTekk1987", {8484}},
{"HardTekk1987", {8592}},
{"nizzy", {2403}},
{"cko6o4ku", {10547}},
{"holywu", {31479}},
{"cko6o4ku", {11437}},
{"holywu", {54903}},
{"AQuarkG", {10906}},
{"Markius", {38309}},
{"Markius", {2376039}},
{"Turtle-T", {1103}},
{"fisic", {7700}},
{"ZABBA_THE_HUT", {13120}}
{"ZABBA_THE_HUT", {13120}},
{"snaim", {80920}},
{"naad121", {1590745}},
{"rcdominator", {1204}},
{"TZsec", {129576}},
{"DylanDagger", {244405}},
{"Shashlik", {584220}},
{"salva1234567", {4297}},
{"Patrickle", {13581}},
{"MarekV", {1607}},
{"nmy", {4531}},
{"working.worker", {107802}},
{"Irx99", {2870}},
{"0FakE", {8220}},
{"swake", {12423}},
{"Ardordo", {38173}},
{"captnemo", {803288}},
{"Nebabon", {24879}},
{"xubos", {5357}},
{"TheRedBug", {3447}},
{"sobitome", {29815}},
{"Hugo3play", {99750}},
{"killerjr1000", {8725}},
{"Panguin123", {13063}},
{"desp07", {19038}},
{"Paul1998", {11013}},
{"xinsuan", {30918}},
{"Conan_Doyil", {23392}},
{"sid123", {15100}},
{"UTIDI", {765562}},
{"mar123322", {10250}},
{"nesimuistyk", {13443}},
{"anderslind", {12812}},
{"Stijn2211", {8882}},
{"moocat12", {71103}},
{"kozmek", {26164}},
{"Vinen", {3260}},
{"Izoch", {8449}},
{"Papa8Bit", {23625}},
{"untouchablez", {25440}},
{"INSOVOID", {5218}},
{"hasannuh", {31380}},
{"8mittim8", {935603}},
{"motorsteak", {179073}},
{"edenpoi", {5450}},
{"CmonMate497", {6113}},
{"DarkDra", {22971}},
{"NewEpoch", {28688}},
{"Raijin-Kizuku", {83905}},
{"kacperion", {1111}},
{"OM3", {13407}},
{"clukelucas", {448855}},
{"Cheeseftw", {1672}},
{"redlabel", {1438}},
{"ketrab2004", {6517}},
{"SpwnX", {2859}},
{"DoxxMulder", {5467}}
}
return playsession

View File

@ -0,0 +1,4 @@
local playsession = {
{"mewmew", {144000}}
}
return playsession

View File

@ -0,0 +1,151 @@
local playsession = {
{"Kyte", {822008}},
{"Terarink", {821277}},
{"N355A", {825215}},
{"Gerkiz", {356089}},
{"snoetje", {541054}},
{"NewEpoch", {319714}},
{"Keken", {455494}},
{"Delqvs", {762341}},
{"Graav", {756562}},
{"megamega", {617701}},
{"Yaxley", {101608}},
{"aszquasz", {14735}},
{"Irx99", {354071}},
{"mewmew", {121021}},
{"MFH", {647187}},
{"Tulmius", {229106}},
{"lejnel", {713539}},
{"MaxMM", {181744}},
{"Izoch", {77414}},
{"j0nni", {152417}},
{"Catbert", {18896}},
{"Sumy", {436046}},
{"StarLite", {683925}},
{"beranabus", {413322}},
{"best2", {325016}},
{"skarpiz", {272027}},
{"rzadal", {8939}},
{"skace", {645108}},
{"froody", {248179}},
{"floxys", {465492}},
{"kacperion", {481046}},
{"sensimillian", {13465}},
{"LymBAOBEI", {628458}},
{"maxim67899", {73783}},
{"snowbranch", {542735}},
{"MafungoLoud", {152957}},
{"Sjetil", {489001}},
{"Absolution", {286401}},
{"ANV1L", {264508}},
{"Quadrum", {595848}},
{"Lithidoria", {11394}},
{"Vojadger", {120166}},
{"Eloras", {592676}},
{"Njeskjarol", {20235}},
{"Thoren41", {279875}},
{"Aronak", {341955}},
{"liltaco", {370357}},
{"edenpoi", {72127}},
{"Jaskarox", {7310}},
{"kuumottaja", {544348}},
{"hasannuh", {531199}},
{"Nebabon", {308391}},
{"ArcLiox", {362003}},
{"Drlloyd1337", {448526}},
{"ZTX", {401018}},
{"quigro", {512147}},
{"CmonMate497", {28638}},
{"Kostored", {263608}},
{"themostinternet", {451576}},
{"Dnielfesilva", {30994}},
{"MrSupcio", {13662}},
{"Martox111", {3542}},
{"s34l", {220796}},
{"Giatros", {75323}},
{"sars", {17953}},
{"PandasUnicorn", {257675}},
{"markheloking", {99063}},
{"JaJaBings", {354098}},
{"GaryTsukla", {115044}},
{"ManuelG", {13505}},
{"YagaoDirac", {3525}},
{"tbell91", {162868}},
{"Fattmann", {413463}},
{"therealjbgaming", {8795}},
{"3061867813", {319772}},
{"Cretlin", {280478}},
{"My", {6008}},
{"crayzz2", {175373}},
{"coucounoir", {61377}},
{"Ardordo", {398153}},
{"drasephi", {3827}},
{"polycephaland", {24356}},
{"VincentMonster", {342233}},
{"Unrealrules", {366613}},
{"wotwotvodka", {365994}},
{"lantotol", {127868}},
{"Julian1109", {182503}},
{"Unlucky_Tacos", {11935}},
{"wxwxwx", {168800}},
{"Eject-Master", {196815}},
{"DjSapsan", {9174}},
{"Rickvs", {244293}},
{"Factorioio", {14154}},
{"larshp", {312547}},
{"oafthor", {3939}},
{"Namelesshunter", {93040}},
{"AssemblyStorm", {312715}},
{"cgowner1", {4151}},
{"Oradominus", {243123}},
{"Panguin123", {172363}},
{"wekkka", {296112}},
{"red11", {203776}},
{"Bemm", {294136}},
{"indicAyy", {17673}},
{"pepsin92", {268983}},
{"zelrun", {266520}},
{"Ninja_Q", {30679}},
{"shlak", {5801}},
{"vvictor", {131416}},
{"jan1412", {263766}},
{"Nexarius", {27636}},
{"VintageAura", {48786}},
{"hsxu", {239442}},
{"Slayerfear", {224578}},
{"eyepex", {155410}},
{"robot3331", {101939}},
{"IIIllIIIlIllllIIIIII", {21318}},
{"LiileSod", {46856}},
{"DENIS.8158", {14615}},
{"donto", {3938}},
{"TheThane", {77045}},
{"cchpucky", {188986}},
{"coreyellow1", {16474}},
{"warnotte", {177756}},
{"CanceledFish", {13131}},
{"Sopster", {160520}},
{"helmetti", {70533}},
{"WalrusLeader", {22957}},
{"Nivek3k", {150842}},
{"Jester.ru", {71250}},
{"Xenoica", {122486}},
{"d4vyjones", {30789}},
{"Jaazinh", {85816}},
{"D19693", {52232}},
{"fce2", {23239}},
{"Wizard7187", {3784}},
{"kova66", {15215}},
{"steelhero", {65866}},
{"dog80", {64414}},
{"ndbassman", {3943}},
{"xubos", {4582}},
{"sofoxe", {14248}},
{"redlabel", {31507}},
{"Danny1735", {31410}},
{"jrz126", {4723}},
{"Nemtro", {16165}},
{"Sholvo", {12461}},
{"303Mark", {2458}}
}
return playsession

31
session_updater.lua Normal file
View File

@ -0,0 +1,31 @@
-- read session file names
local dirname = '"scenarios/ComfyFactorio/session_data"'
local f = io.popen('dir /b ' .. dirname)
local session_filenames = {}
for filename in f:lines() do
local str = string.sub(filename, 1, -5)
table.insert(session_filenames, str)
end
--write new session index file
local file = io.open("scenarios/ComfyFactorio/session_data.lua", "w")
file:write("local index = {\n")
for x = 1, #session_filenames, 1 do
if string.len(session_filenames[x]) == 16 then
file:write('"' .. session_filenames[x] .. '"')
if session_filenames[x + 1] then file:write(',') end
end
end
file:write("\n }\n\n")
file:write("local data = {}\n")
file:write("for _, i in pairs(index) do\n")
file:write(' table.insert(data, require ("session_data." .. i))\n')
file:write("end\n")
file:write("return data\n")
file:close()