{"id":18886855,"url":"https://github.com/shadowevil/d2slib","last_synced_at":"2025-07-06T02:37:20.025Z","repository":{"id":156600604,"uuid":"621980664","full_name":"shadowevil/D2SLib","owner":"shadowevil","description":"Read/Write D2S Files easily","archived":false,"fork":false,"pushed_at":"2023-04-26T20:05:51.000Z","size":211,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-31T05:17:13.826Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","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/shadowevil.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":"2023-03-31T20:14:37.000Z","updated_at":"2023-05-06T01:37:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"1d906118-943d-4de0-9e9d-5fb5120188ed","html_url":"https://github.com/shadowevil/D2SLib","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/shadowevil%2FD2SLib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shadowevil%2FD2SLib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shadowevil%2FD2SLib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shadowevil%2FD2SLib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shadowevil","download_url":"https://codeload.github.com/shadowevil/D2SLib/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239859566,"owners_count":19708861,"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-08T07:31:17.760Z","updated_at":"2025-02-20T14:53:16.551Z","avatar_url":"https://github.com/shadowevil.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"### FORKED\nOriginal is here, I forked and updated/fixed to work with Diablo 2 Resurrected D2S files\nhttps://github.com/dschu012/D2SLib\n\n### D2SLib\n\nSimple C# library for reading and writing Diablo 2 saves. Supports version 1.10 through Diablo II: Resurrected (1.15). Supports reading both d2s (player saves) and d2i (shared stash) files.\n\n\n### Usage\n\n```\nusing D2SLib;\nusing D2SLib.Model.Save;\n\n....\n// Get all D2S Files into an array so we can pick one easily (better to use FileDialog)\nSavedGamesDirectory = (Directory.GetParent(Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments))?.FullName!) + \"\\\\Saved Games\\\\Diablo II Resurrected\\\\\";\nSavedGames = Directory.GetFiles(SavedGamesDirectory, \"*.d2s\", SearchOption.TopDirectoryOnly).Select(file =\u003e new FileInfo(file)).ToDictionary(f =\u003e Path.GetFileNameWithoutExtension(f.Name), f =\u003e f.FullName);\n\n// Open said file using the path we want\nD2S Char = Core.ReadD2S(SavedGames.ElementAt(1).Value);\n\n// Modify attributes if you want\nChar.Attributes.Level = 99;\nChar.Attributes.Gold = 10000 * 99;\nChar.Attributes.StashGold = 2500000;\n\n// Optional save as json to be human readable (using JsonConvert (newtonsoft.json package) as it supports decent beautification)\nChar.SaveJsonCharacter(\".\\\\test.json\", JsonConvert.SerializeObject(Char, Formatting.Indented));\n// Save the character\nChar.SaveCharacter();\n\n```\n\nHow to seed the library with your own TXT files\n```\nAll converted to a SQLite Library as well as tools to convert the library to sql :D\n```\n\n##### Useful Links:\n* https://github.com/d07RiV/d07riv.github.io/blob/master/d2r.html (credits to d07riv for reversing the item code on D2R)\n* https://github.com/nokka/d2s\n* https://github.com/krisives/d2s-format\n* http://paul.siramy.free.fr/d2ref/eng/\n* http://user.xmission.com/~trevin/DiabloIIv1.09_File_Format.shtml\n* https://github.com/nickshanks/Alkor\n* https://github.com/HarpyWar/d2s-character-editor\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshadowevil%2Fd2slib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshadowevil%2Fd2slib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshadowevil%2Fd2slib/lists"}