{"id":21413499,"url":"https://github.com/56kyle/factorio-scripts","last_synced_at":"2025-07-16T16:36:01.053Z","repository":{"id":244856662,"uuid":"816469520","full_name":"56kyle/factorio-scripts","owner":"56kyle","description":"A collection of Factorio Lua scripts that are useful.","archived":false,"fork":false,"pushed_at":"2024-06-17T22:22:59.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-23T05:16:07.629Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/56kyle.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-17T20:25:09.000Z","updated_at":"2024-06-17T22:23:03.000Z","dependencies_parsed_at":"2024-06-17T22:58:20.212Z","dependency_job_id":"eeb5b19d-9606-494a-ae46-0b27d05a0ac2","html_url":"https://github.com/56kyle/factorio-scripts","commit_stats":null,"previous_names":["56kyle/factorio-scripts"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/56kyle%2Ffactorio-scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/56kyle%2Ffactorio-scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/56kyle%2Ffactorio-scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/56kyle%2Ffactorio-scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/56kyle","download_url":"https://codeload.github.com/56kyle/factorio-scripts/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243910763,"owners_count":20367544,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-22T18:18:40.448Z","updated_at":"2025-03-16T18:24:23.827Z","avatar_url":"https://github.com/56kyle.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# factorio-scripts\nA collection of Factorio Lua scripts that are useful.\n\n\n# Table of Contents\n\n--------------------\n- [Overview](#Overview)\n- [Scripts](#Scripts)\n  - [export_hotbars](#export_hotbars)\n  - [import_hotbars](#import_hotbars)\n  - [get_item_ids](#get_item_ids)\n  - [get_item_stack_sizes](#get_item_s)\n\n--------------------\n\n# Overview\nMost of these scripts are designed for use in sandbox mode. Because of this, \nthey generally won't reference any external packages so that the script can easily be copy pasted\ninto the Lua Snippets execution tab.\n\nAdditionally, there are a couple utility command line scripts to copy these scripts into your local\nsnippets all at once.\n\n# Scripts\n\n--------------------\n\n### export_hotbars\nThe primary purpose of this is to enable copying over hotbars from one save to another.\n\nExports the player's current hotbars as a JSON object and writes them to a file. \nPrimarily used to generate the JSON that import_hotbars will take in the future as input.\n\n\n### import_hotbars\nImports the hotbars that are listed to the player's current hotbars and ensures that all items \nhave at least one stack of contents.\n\nMainly used in conjunction with export_hotbars to enable transferring of hotbars between saves.\n\n\n### get_item_ids\nReturns a set of combinators containing ids for items that may be used for indexing.\nEach item should have a unique identifier.\n\n\n### get_item_stack_sizes\nCreates a set of ConstantCombinators that have each item with its corresponding stack size as a value.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F56kyle%2Ffactorio-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F56kyle%2Ffactorio-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F56kyle%2Ffactorio-scripts/lists"}