Skip to content

Commit

Permalink
update changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
L0laapk3 committed Dec 25, 2022
1 parent 744b3ae commit 7fa8f36
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion autorun.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ fm.autorun = {
around_build_range = 5.2,
around_connect_range = 1.2,
connect_types = {"lamp", "electric-pole", "radar", "straight-rail", "curved-rail", "rail-signal", "rail-chain-signal", "locomotive", "cargo-wagon", "fluid-wagon", "car"},
date = "24/12/22",
date = "25/12/22",
surfaces = nil,
name = "kriscristina/",
mapInfo = {["options"] = {["ranges"] = {["build"] = 5.2,["connect"] = 1.2,["tag"] = 5.2},["HD"] = false,["defaultTimestamp"] = -1},["seed"] = 2582147055,["mapExchangeString"] = ">>>eNpjZGBk8AJiIGiwB2EOluT8xBwYD4S5kvMLClKLdPOLUpGFOZOLSlNSdfMzURWn5qXmVuomJRajKObILMrPQzeBtbgkPw9VpKQoNbUYWYS7tCgxL7M0F10vA+P7/BczG1rkGED4fz2Dwv//IAxkPQD6BYQZGBsgKoFiMMCanJOZlsbAoOAIxE4gaUZGxmqRde4Pq6bYM0LU6DlAGR+gIgeSYCKeMIafA04pFRjDBMkcYzD4jMSAWFoCtAKqisMBwYBItoAkGRl7325d8P3YBTvGPys/XvJNSrBnNHQVeffBaJ0dUJId5E8mODFrJgjshHmFAWbmA3uo1E17xrNnQOCNPSMrSIcIiHCwABIHvJkZGAX4gKwFPUBCQYYB5jQ7mDEiDoxpYPAN5pPHMMZle3R/AAPCBmS4HIg4ASLAFsJdxghhOvQ7MDrIw2QlEUqA+o0YkN2QgvDhSZi1h5HsR3MIZkQg+wNNRMUBSzRwgSxMgRMvmOGuAYbnBXYYz2G+AyMziAFS9QUoBuGBZGBGQWgBB3BwMzMgADBt6IZXCAMAyAqhdA==<<<",["maps"] = {{["tick"] = 6717901,["path"] = "32",["date"] = "24/12/22",["mods"] = {["base"] = "1.1.74",["L0laapk3_FactorioMaps"] = "4.3.0"},["surfaces"] = {["nauvis"] = {["spawn"] = {["y"] = 0,["x"] = 0},["zoom"] = {["min"] = 14,["max"] = 20},["tags"] = {},["hidden"] = false,["captured"] = true,["links"] = {},["playerPosition"] = {["y"] = -24.9140625,["x"] = 109.91015625},["day"] = true,["night"] = true,["chunks"] = "//vz/vXAw=2/vr/vfAw=1/vr/vfAw=0/vr/vfAw=z/vr/veAw=y/vr/veAw=t/vs/v6/v8/vBAwCAwaAw=+/vx/vXAw=s/vu/v5/v6/vaAw=r/vx/v3/v6/vaAw=q/v5/vaAw=p/v5/vaAw=o/v5/vEAwFAwaAw=n/v5/vEAwMAwZAw=m/v5/vEAwMAwZAw=l/v5/vEAwOAwXAw=k/v5/vDAw=j/v3/vDAw=9/vx/vcAw=i/v2/vBAw=h/v1/vCAw=g/v1/vCAw=f/v0/vCAw=e/v0/vCAw=d/vz/vCAw=c/vz/vBAw=b/vz/vBAw=a/vz/vAAw=8/vw/veAw=7/vw/veAw=6/vw/vfAw=5/vu/vfAw=4/vs/vfAw=3/vs/vfAw=AAw0/vqAw=BAw0/vsAw=KAw5/vvAw=LAw6/vNAwgAwuAw=MAw7/vNAwgAwuAw=NAw9/vNAwgAwtAw=OAw//vNAwgAwtAw=PAw//vMAwgAwtAw=CAw0/vsAw=DAw0/vuAw=EAw0/vuAw=FAw0/vvAw=GAw0/vvAw=HAw1/vvAw=IAw1/vvAw=JAw3/vvAw=x/vr/v9/vAAwdAw=w/vr/v7/vBAwcAw=v/vr/v7/vCAwaAw=u/vs/v6/vCAwaAw=Z/vz/v//v=Y/v0/v+/v=X/v0/v9/v=W/v2/v7/v=QAwAAwMAwgAwtAw=RAwCAwKAwgAwtAw=SAwgAwvAw=TAwgAwxAw=UAwgAwzAw=VAwgAwzAw=WAwgAw0Aw=XAwhAw0Aw=YAwhAw0Aw=ZAwiAw0Aw=aAwiAw0Aw=bAwjAwzAw=cAwjAwzAw=dAwlAwxAw"}}}},["defaultSurface"] = "nauvis"},
Expand Down
10 changes: 9 additions & 1 deletion data-final-fixes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@ require("json")




local function stringCheck(item, type, str, fieldName)
if true then
error("\n\n\nItem malformed: '" .. tostring(item.name) .. "' (type " .. type .. ")\n\nentity." .. fieldName .. " = " .. tostring(str) .. "\n\nPlease report this error with the mod the item originates from.\n\n\n")
end
end


local function index(entity, type)
Expand All @@ -24,12 +28,16 @@ local function index(entity, type)
-- }


stringCheck(entity, type, entity.name, "name")
local path = ""
if entity.icon ~= nil then
stringCheck(entity, type, entity.icon, "icon")
path = entity.icon:sub(1, -5)
else
for i, icon in pairs(entity.icons) do
stringCheck(entity, type, icon.icon, "icons[" .. i .. "].icon")
if icon.tint ~= nil then
stringCheck(entity, type, icon.tint, "icons[" .. i .. "].tint")
path = path .. "|" .. icon.icon:sub(1, -5) .. "?" ..
math.floor((icon.tint["r"] or 0)*255+0.5) .. "%" ..
math.floor((icon.tint["g"] or 0)*255+0.5) .. "%" ..
Expand Down

0 comments on commit 7fa8f36

Please sign in to comment.