{"id":17013878,"url":"https://github.com/technologicnick/scrap-mechanic-xms","last_synced_at":"2025-03-22T14:24:07.020Z","repository":{"id":107942382,"uuid":"168793088","full_name":"TechnologicNick/Scrap-Mechanic-XMS","owner":"TechnologicNick","description":"A Cross Mod Scripting script for Scrap Mechanic","archived":false,"fork":false,"pushed_at":"2019-02-02T04:18:00.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-27T13:48:39.780Z","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/TechnologicNick.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":"2019-02-02T04:13:38.000Z","updated_at":"2019-02-02T04:18:01.000Z","dependencies_parsed_at":"2023-03-11T16:30:33.773Z","dependency_job_id":null,"html_url":"https://github.com/TechnologicNick/Scrap-Mechanic-XMS","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechnologicNick%2FScrap-Mechanic-XMS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechnologicNick%2FScrap-Mechanic-XMS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechnologicNick%2FScrap-Mechanic-XMS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TechnologicNick%2FScrap-Mechanic-XMS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TechnologicNick","download_url":"https://codeload.github.com/TechnologicNick/Scrap-Mechanic-XMS/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244968164,"owners_count":20540063,"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-10-14T06:14:31.497Z","updated_at":"2025-03-22T14:24:07.015Z","avatar_url":"https://github.com/TechnologicNick.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Scrap Mechanic XMS (Cross Mod Scripting)\n\n## Can I use this in my mod?\nYes! You do not have to ask for my permission. It's free of charge.\n\n## How it works?\nAll Userdata objects in lua have a bug where their items are shared:\n```lua\nUserdata_A.foo = \"foo\"\nUserdata_B.foo = \"bar\"\nprint(Userdata_A.foo)\n```\nThis will print `\"bar\"` because of the bug and because the item names are the same.\n\nThis works for every Userdata object and the items are only accessable for\nthe mod the script is running. However, a \u003cWidget\u003e Userdata is special. For\nsome reason the items of the \u003cWidget\u003e Userdata are shared between all mods.\n\nThis script uses that bug to allow other mods to use shared variables.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechnologicnick%2Fscrap-mechanic-xms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftechnologicnick%2Fscrap-mechanic-xms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechnologicnick%2Fscrap-mechanic-xms/lists"}