Repository: dschu012/d2s-editor Branch: master Commit: c8b45502852e Files: 46 Total size: 8.4 MB Directory structure: gitextract_wvaoo0z_/ ├── .gitignore ├── .vscode/ │ └── settings.json ├── LICENSE ├── README.md ├── babel.config.js ├── docs/ │ ├── constants.html │ ├── css/ │ │ ├── app.50565aee.css │ │ ├── app.css │ │ └── theme.css │ ├── d2/ │ │ ├── constants_96.bundle.js │ │ ├── constants_99.bundle.js │ │ └── d2s.bundle.js │ ├── index.html │ ├── js/ │ │ ├── app.4bfbd8ad.js │ │ └── chunk-vendors.e44ec39b.js │ ├── manifest.json │ ├── service-worker.js │ └── workbox-6567b62a.js ├── package.json ├── public/ │ ├── constants.html │ ├── css/ │ │ ├── app.css │ │ └── theme.css │ ├── d2/ │ │ ├── constants_96.bundle.js │ │ ├── constants_99.bundle.js │ │ └── d2s.bundle.js │ └── index.html ├── rollup.config.js ├── src/ │ ├── components/ │ │ ├── App.vue │ │ ├── ContextMenu.vue │ │ ├── Mercenary.vue │ │ ├── Quests.vue │ │ ├── Skills.vue │ │ ├── Stats.vue │ │ ├── Waypoints.vue │ │ └── inventory/ │ │ ├── Equipped.vue │ │ ├── Grid.vue │ │ ├── Item.vue │ │ ├── ItemEditor.vue │ │ ├── ItemStatsEditor.vue │ │ └── Stash.vue │ ├── d2/ │ │ ├── CharPack.js │ │ └── ItemPack.js │ ├── items.js │ ├── main.js │ └── utils.js └── vue.config.js ================================================ FILE CONTENTS ================================================ ================================================ FILE: .gitignore ================================================ data .idea node_modules ================================================ FILE: .vscode/settings.json ================================================ { "editor.insertSpaces": true, "editor.tabSize": 2, "files.eol": "\n" } ================================================ FILE: LICENSE ================================================ MIT License Copyright (c) 2021 dschu012 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ================================================ FILE: README.md ================================================ # d2s-editor [Example](http://d2s.dschu012.dev/) This is a basic Diablo 2 save editor for D2 and D2R. The parser uses the TXT data from the Diablo 2 MPQs so the editor could be repurposed for basic TXT mods. Some of the main features are: * Modify basic stats (str/lvl/gold/etc...) * Modify quest status * Modify waypoints * Import items (~1000 different items to import) * Modify basic stats on items * Copy item between chars ### How to use on your own mod 1. Install Node 2. Clone this repo or download a zip. 3. Extract your MPQ data to a public/data folder in the same directory as the repo. (the tool needs TXTs, strings, pallettes, and item dc6s to work properly) 4. On first install or version updates, in the command prompt, run the following commands to install the editor: ``` npm install ``` 5. Run the command below to start the editor ``` npm run serve ``` 6. Go to http://localhost:8080/ with your web browser to access the editor. ================================================ FILE: babel.config.js ================================================ module.exports = { presets: [ '@vue/cli-plugin-babel/preset' ] } ================================================ FILE: docs/constants.html ================================================
Click run. Then copy and paste the result to js/d2/constants.bundle.min.js
f?Y(e,o,a,!0,!1,p):C(t,n,r,o,a,s,u,l,p)},H=(e,t,n,r,o,a,s,u,l)=>{let c=0;const f=t.length;let p=e.length-1,d=f-1;while(c<=p&&c<=d){const r=e[c],i=t[c]=l?Sn(t[c]):An(t[c]);if(!dn(r,i))break;m(r,i,n,null,o,a,s,u,l),c++}while(c<=p&&c<=d){const r=e[p],i=t[d]=l?Sn(t[d]):An(t[d]);if(!dn(r,i))break;m(r,i,n,null,o,a,s,u,l),p--,d--}if(c>p){if(c<=d){const e=d+1,i=e {var r=n(4376),i=n(3517),o=n(34),a=n(8227),s=a("species"),u=Array;e.exports=function(e){var t;return r(e)&&(t=e.constructor,i(t)&&(t===u||r(t.prototype))?t=void 0:o(t)&&(t=t[s],null===t&&(t=void 0))),void 0===t?u:t}},1469:(e,t,n)=>{var r=n(7433);e.exports=function(e,t){return new(r(e))(0===t?0:t)}},7628:(e,t,n)=>{var r=n(6198);e.exports=function(e,t){for(var n=r(e),i=new t(n),o=0;o
Click run. Then copy and paste the result to js/d2/constants.bundle.min.js
{var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=t+"+/",r=t+"-_",i=function(e){for(var t={},n=0;n<64;n++)t[e.charAt(n)]=n;return t};e.exports={i2c:n,c2i:i(n),i2cUrl:r,c2iUrl:i(r)}},6319:(e,t,n)=>{var r=n(8551),i=n(9539);e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(a){i(e,"throw",a)}}},4428:(e,t,n)=>{var r=n(8227),i=r("iterator"),o=!1;try{var a=0,s={next:function(){return{done:!!a++}},return:function(){o=!0}};s[i]=function(){return this},Array.from(s,(function(){throw 2}))}catch(u){}e.exports=function(e,t){try{if(!t&&!o)return!1}catch(u){return!1}var n=!1;try{var r={};r[i]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch(u){}return n}},4576:(e,t,n)=>{var r=n(9504),i=r({}.toString),o=r("".slice);e.exports=function(e){return o(i(e),8,-1)}},6955:(e,t,n)=>{var r=n(2140),i=n(4901),o=n(4576),a=n(8227),s=a("toStringTag"),u=Object,l="Arguments"===o(function(){return arguments}()),c=function(e,t){try{return e[t]}catch(n){}};e.exports=r?o:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=c(t=u(e),s))?n:l?o(t):"Object"===(r=o(t))&&i(t.callee)?"Arguments":r}},7740:(e,t,n)=>{var r=n(9297),i=n(5031),o=n(7347),a=n(4913);e.exports=function(e,t,n){for(var s=i(t),u=a.f,l=o.f,c=0;c0)p[y++]=255&l,l/=256,d-=8;return p[--y]|=128*m,p},u=function(e,t){var n,i=e.length,o=8*i-t-1,a=(1<