{"id":18268576,"url":"https://github.com/viral32111/gm_uuid","last_synced_at":"2025-04-12T01:23:25.971Z","repository":{"id":133672454,"uuid":"239887479","full_name":"viral32111/gm_uuid","owner":"viral32111","description":"A universal unique ID generator module for Garry's Mod.","archived":false,"fork":false,"pushed_at":"2022-01-01T10:57:13.000Z","size":23352,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T21:08:48.970Z","etag":null,"topics":["boost","cplusplus","cpp","garry-mod","garrysmod","glua","module","uuid"],"latest_commit_sha":null,"homepage":"https://github.com/viral32111/gm_uuid","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/viral32111.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2020-02-11T23:38:44.000Z","updated_at":"2023-06-25T17:25:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"69179d3b-0eac-4267-9fd6-7a0a34b4a7d0","html_url":"https://github.com/viral32111/gm_uuid","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viral32111%2Fgm_uuid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viral32111%2Fgm_uuid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viral32111%2Fgm_uuid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/viral32111%2Fgm_uuid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/viral32111","download_url":"https://codeload.github.com/viral32111/gm_uuid/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248502252,"owners_count":21114773,"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":["boost","cplusplus","cpp","garry-mod","garrysmod","glua","module","uuid"],"created_at":"2024-11-05T11:32:15.683Z","updated_at":"2025-04-12T01:23:20.984Z","avatar_url":"https://github.com/viral32111.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# UUID\n\nA module for Garry's Mod that allows the generation of version 4 [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier#Version_4_(random)) strings using the Boost library.\n\n## Download\n\nI only release prebuilt binaries for x64 on Linux \u0026 Windows. However, feel free to modify and build the code if you need x86 or macOS support. I don't offer support for these myself because x86 is old and I can't afford to test my code on macOS.\n\nAfter downloading the binary of your choice, rename the `gm_` prefix appropriately depending on which realm you'll be using it in. For more information, check [this](https://wiki.facepunch.com/gmod/Creating_Binary_Modules#naminglocation) wiki article.\n\nDownloads for the latest binaries:\n\n* [Windows](https://github.com/viral32111/gm_uuid/releases/latest/download/gm_uuid_win64.dll)\n* [Linux](https://github.com/viral32111/gm_uuid/releases/latest/download/gm_uuid_linux64.dll)\n\n## Usage\n\nHere's a simple example of how you would use this:\n\n```lua\nrequire( \"uuid\" )\n\n-- The only argument is a boolean for including the dashes, it defaults to true.\nprint( GenerateUUID() ) -- 123e4567-e89b-12d3-a456-426655440000\nprint( GenerateUUID( true ) ) -- 123e4567-e89b-12d3-a456-426655440000\nprint( GenerateUUID( false ) ) -- 123e4567e89b12d3a456426655440000\n```\n\n## Building\n\n### Windows\n\n1. Download a copy of [the repository](https://github.com/viral32111/gm_uuid/archive/master.zip) and extract it into a folder.\n2. Download and extract [Premake 5 (for Windows)](https://github.com/premake/premake-core/releases/download/v5.0.0-alpha15/premake-5.0.0-alpha15-windows.zip) into the repository folder (or add it to your environment path, if you're going to use it again later).\n3. Open Command Prompt in the repository folder (`cd` into the folder).\n4. Run `premake5 --file=scripts/premake5.lua vs2019` to generate a Visual Studio 2019 project.\n5. Open the Visual Studio 2019 solution file created at `projects/windows/uuid.sln`.\n6. Press `Build` \u003e `Build Solution` to build the project (the module will be placed in `deploy/gm_uuid_win64.dll`).\n\n### Linux\n\n1. Download a copy of [the repository](https://github.com/viral32111/gm_uuid/archive/master.zip) and extract it into a folder.\n2. Download and extract [Premake 5 (for Linux)](https://github.com/premake/premake-core/releases/download/v5.0.0-alpha15/premake-5.0.0-alpha15-linux.tar.gz) into the repository folder (or add it to your environment path, if you're going to use it again later).\n3. Open your favourite terminal in the repository folder (`cd` into the folder).\n4. Make the extracted `premake5` file executable (`chmod +x premake5`).\n5. Run `premake5 --file=scripts/premake5.lua gmake` to generate a Make project.\n6. Navigate to `project/linux/` (`cd /project/linux`).\n7. Run `make` to build the project (the module will be placed in `deploy/gm_uuid_linux64.dll`).\n\n## Licence\n\nCopyright (C) 2020 - 2022 [viral32111](https://github.com/viral32111). Licenced under [GNU AGPLv3](https://www.gnu.org/licenses/agpl-3.0.html).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fviral32111%2Fgm_uuid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fviral32111%2Fgm_uuid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fviral32111%2Fgm_uuid/lists"}