I use npm install diablo2-protocol
then i cd examples
and node server.js ip pod_1.13d
When connect i get this
`C:\Users\Martin\Desktop\diablo2-protocol\examples>node server.js s.pathofdiablo.com pod_1.13d
server sid listening
server mcp listening
server d2gs listening
internal/modules/cjs/loader.js:895
throw err;
^
C:\Users\Martin\Desktop\diablo2-protocol\examples\server.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:892:15)
at Function.Module._load (internal/modules/cjs/loader.js:742:27)
at Module.require (internal/modules/cjs/loader.js:964:19)
at require (internal/modules/cjs/helpers.js:88:18)
at new Client (C:\Users\Martin\Desktop\diablo2-protocol\lib\client\clientSid.js:11:17)
at Server. (C:\Users\Martin\Desktop\diablo2-protocol\lib\server\serverSid.js:12:22)
at Server.emit (events.js:314:20)
at TCP.onconnection (net.js:1560:8) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'C:\Users\Martin\Desktop\diablo2-protocol\lib\client\clientSid.js',
'C:\Users\Martin\Desktop\diablo2-protocol\lib\client\createClientSid.js',
'C:\Users\Martin\Desktop\diablo2-protocol\lib\client\createClientDiablo.js',
'C:\Users\Martin\Desktop\diablo2-protocol\index.js',
'C:\Users\Martin\Desktop\diablo2-protocol\examples\server.js'
]
}
`
I use npm install diablo2-protocol then i cd examples and node server.js ip pod_1.13d
When connect i get this `C:\Users\Martin\Desktop\diablo2-protocol\examples>node server.js s.pathofdiablo.com pod_1.13d server sid listening server mcp listening server d2gs listening internal/modules/cjs/loader.js:895 throw err; ^
Error: Cannot find module '../../data/undefined/sid' Require stack: