{"id":18886860,"url":"https://github.com/shadowevil/d2slib-resurrected","last_synced_at":"2025-09-15T14:39:26.322Z","repository":{"id":156628428,"uuid":"582889092","full_name":"shadowevil/D2SLib-Resurrected","owner":"shadowevil","description":"Will post credits to original designer - Fixing for newest version of Resurrected, dropping all support for old as I am not interested.","archived":false,"fork":false,"pushed_at":"2022-12-28T06:30:28.000Z","size":94,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-29T06:22:59.319Z","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":"2022-12-28T06:30:24.000Z","updated_at":"2022-12-28T06:30:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"8ea04155-b897-4d72-b28f-01e9913ccffe","html_url":"https://github.com/shadowevil/D2SLib-Resurrected","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/shadowevil/D2SLib-Resurrected","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shadowevil%2FD2SLib-Resurrected","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shadowevil%2FD2SLib-Resurrected/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shadowevil%2FD2SLib-Resurrected/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shadowevil%2FD2SLib-Resurrected/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shadowevil","download_url":"https://codeload.github.com/shadowevil/D2SLib-Resurrected/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shadowevil%2FD2SLib-Resurrected/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273997256,"owners_count":25204512,"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","status":"online","status_checked_at":"2025-09-07T02:00:09.463Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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:20.332Z","updated_at":"2025-09-07T05:33:49.645Z","avatar_url":"https://github.com/shadowevil.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"### 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\nUse [Nuget](https://www.nuget.org/packages/D2SLib/) to add D2SLib to your project.\n\n```\nusing D2SLib;\nusing D2SLib.Model.Save;\n\n....\n//read a save\nD2S character = Core.ReadD2S(File.ReadAllBytes(@\"Resources\\D2S\\1.15\\DannyIsGreat.d2s\"));\n\n//outputs: DannyIsGreat\nConsole.WriteLine(character.Name);\n\n//convert 1.10-1.114d save to d2r 1.15\ncharacter.Header.Version = 0x61;\n\n //set all skills to have 20 points\ncharacter.ClassSkills.Skills.ForEach(skill =\u003e skill.Points = 20);\n\n//add lvl 31 conviction arua to the first statlist on the first item in your chars inventory\ncharacter.PlayerItemList.Items[0].StatLists[0].Stats.Add(new ItemStat { Stat = \"item_aura\", Param = 123, Value = 31 });\n\n//write save\nFile.WriteAllBytes(Environment.ExpandEnvironmentVariables($\"%userprofile%/Saved Games/Diablo II Resurrected Tech Alpha/{character.Name}.d2s\"), Core.WriteD2S(character));\n\n```\n\nHow to seed the library with your own TXT files\n```\nTXT txt = new TXT();\ntxt.ItemStatCostTXT = ItemStatCostTXT.Read(@\"ItemStatCost.txt\");\ntxt.ItemsTXT.ArmorTXT = ArmorTXT.Read(@\"Armor.txt\");\ntxt.ItemsTXT.WeaponsTXT = WeaponsTXT.Read(@\"Weapons.txt\");\ntxt.ItemsTXT.MiscTXT = MiscTXT.Read(@\"Misc.txt\");\nCore.TXT = txt;\nD2S character = Core.ReadD2S(File.ReadAllBytes(@\"DannyIsGreat.d2s\"));\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-resurrected","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshadowevil%2Fd2slib-resurrected","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshadowevil%2Fd2slib-resurrected/lists"}