PageSourceSearch

https://www.soft-kitty.com/assets/js/984e057e.7d1ecf8b.js

js soft-kitty.com collected 2026-10-04 10:03:43 UTC 5,890 bytes, 1 lines download raw bytes

1"use strict";(globalThis.webpackChunksoft_kitty_docs=globalThis.webpackChunksoft_kitty_docs||[]).push([[5e3],{5160(e,n,t){t.d(n,{A:()=>o});const o=t.p+"assets/images/20260214-131406-b27e39505dcf17849b7a2c1d9549b2f0.png"},5987(e,n,t){t.r(n),t.d(n,{assets:()=>c,contentTitle:()=>a,default:()=>m,frontMatter:()=>i,metadata:()=>o,toc:()=>d});const o=JSON.parse('{"id":"master-inventory-engine/expansions/modding-support","title":"Modding Support","description":"The Master Inventory Engine is designed to facilitate modding from your community, allowing for flexible data management. The following data types within the [ItemObject] can be imported or exported using JSON format, both in the Editor and at runtime:","source":"@site/docs/master-inventory-engine/expansions/modding-support.md","sourceDirName":"master-inventory-engine/expansions","slug":"/master-inventory-engine/expansions/modding-support","permalink":"/docs/master-inventory-engine/expansions/modding-support","draft":false,"unlisted":false,"tags":[],"version":"current","frontMatter":{"title":"Modding Support"},"sidebar":"docs","previous":{"title":"Callbacks","permalink":"/docs/master-inventory-engine/callbacks"},"next":{"title":"Seamless Mouse Control Between Gameplay And UI","permalink":"/docs/master-inventory-engine/expansions/mouse-control"}}');var r=t(4848),s=t(8453);const i={title:"Modding Support"},a=void 0,c={},d=[{value:"ITEM DATA",id:"item-data",level:3},{value:"Runtime:",id:"runtime",level:4},{value:"ENCHANTMENT DATA",id:"enchantment-data",level:3},{value:"Runtime:",id:"runtime-1",level:4}];function l(e){const n={a:"a",code:"code",h3:"h3",h4:"h4",hr:"hr",img:"img",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,s.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(n.p,{children:["The Master Inventory Engine is designed to facilitate ",(0,r.jsx)(n.strong,{children:"modding"})," from your community, allowing for flexible data management. The following data types within the ",(0,r.jsx)(n.a,{href:"/docs/master-inventory-engine/item-class/item-object",children:"ItemObject"})," can be imported or exported using JSON format, both in the ",(0,r.jsx)(n.strong,{children:"Editor"})," and at ",(0,r.jsx)(n.strong,{children:"runtime"}),":"]}),"\n",(0,r.jsx)(n.h3,{id:"item-data",children:"ITEM DATA"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.strong,{children:"Editor"}),": Navigate to the ",(0,r.jsx)(n.code,{children:"Project Settings/SoftKitty/SubData - Items"}),", then locate the ",(0,r.jsx)(n.code,{children:"Item Settings"})," section. Click on ",(0,r.jsx)(n.strong,{children:"Import From JSON"})," or ",(0,r.jsx)(n.strong,{children:"Export To JSON"}),".\r\n",(0,r.jsx)(n.img,{src:t(5160).A+"",width:"977",height:"245"})]}),"\n",(0,r.jsx)(n.h4,{id:"runtime",children:"Runtime:"}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"Import"}),": To import ",(0,r.jsx)(n.a,{href:"/docs/master-inventory-engine/item-class/item",children:"Item"})," data from a mod directory, call:"]}),"\n"]}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-csharp",children:"ItemObject.instance.ImportItemDataFromJson(string _absolutePath);\n"})}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"Export"}),": To export modified item data (e.g., from your modding tool), call:"]}),"\n"]}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-csharp",children:"ItemObject.instance.ExportItemDataToJson(string _absolutePath);\n"})}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"Note"}),": The path provided for both import and export operations must be an ",(0,r.jsx)(n.strong,{children:"absolute path"}),"."]}),"\n"]}),"\n",(0,r.jsx)(n.hr,{}),"\n",(0,r.jsx)(n.h3,{id:"enchantment-data",children:"ENCHANTMENT DATA"}),"\n",(0,r.jsxs)(n.p,{children:[(0,r.jsx)(n.strong,{children:"Editor"}),": Navigate to the ",(0,r.jsx)(n.code,{children:"Project Settings/SoftKitty/SubData - Items"}),", then locate the ",(0,r.jsx)(n.code,{children:"Enchantment Settings"})," section. Click on ",(0,r.jsx)(n.strong,{children:"Import From JSON"})," or ",(0,r.jsx)(n.strong,{children:"Export To JSON"}),"."]}),"\n",(0,r.jsx)(n.h4,{id:"runtime-1",children:"Runtime:"}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"Import"}),": To import ",(0,r.jsx)(n.a,{href:"/docs/master-inventory-engine/item-class/enchantment",children:"Enchantment"})," data from a mod directory, call:"]}),"\n"]}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-csharp",children:"ItemObject.instance.ImportEnchantmentDataFromJson(string _absolutePath);\n"})}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"Export"}),": To export modified enchantment data (e.g., from your modding tool), call:"]}),"\n"]}),"\n",(0,r.jsx)(n.pre,{children:(0,r.jsx)(n.code,{className:"language-csharp",children:"ItemObject.instance.ExportEnchantmentDataToJson(string _absolutePath);\n"})}),"\n",(0,r.jsxs)(n.ul,{children:["\n",(0,r.jsxs)(n.li,{children:[(0,r.jsx)(n.strong,{children:"Note"}),": The path provided for both import and export operations must be an ",(0,r.jsx)(n.strong,{children:"absolute path"}),"."]}),"\n"]}),"\n",(0,r.jsx)(n.hr,{})]})}function m(e={}){const{wrapper:n}={...(0,s.R)(),...e.components};return n?(0,r.jsx)(n,{...e,children:(0,r.jsx)(l,{...e})}):l(e)}},8453(e,n,t){t.d(n,{R:()=>i,x:()=>a});var o=t(6540);const r={},s=o.createContext(r);function i(e){const n=o.useContext(s);return o.useMemo(function(){return"function"==typeof e?e(n):{...n,...e}},[n,e])}function a(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:i(e.components),o.createElement(s.Provider,{value:n},e.children)}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.