d-zone-org / d-zone Goto Github PK
View Code? Open in Web Editor NEWAn ambient life simulation driven by user activity within a Discord server
License: ISC License
An ambient life simulation driven by user activity within a Discord server
License: ISC License
With PM support also
In conjunction with #6, reactions to recent messages should be represented somehow. Specifics to be determined later.
Just installed it and it works great! However, my machines are all TLS and I needed to remove the forced TLS upgrade to get this to work as published.
After some finagling I was able to get it to work with tls
I'm not a js or node.js developer, so I'm sure there's a programmatic / more elegant way of doing this automatically in the source than hacking and hardcoding in values.
Ideally the app will behave like the following:
Add a base URL to the websocket so it can be identified and proxied (i'm using ws in the case, but it can be dzone / puppies / tacocat)
Detect if the browser site is accessed with http or tls, modify ws URI as ws:// or wss:// and append base URL
SyntaxError: Unexpected 'R' at line 3 column 15 of the JSON5 data. Still to read: "Roblox\r\n {\r\n "
at JSON5.parse.error (/Users/Ryan/Desktop/DISCORD SERVER/d-zone/d-zone-master/node_modules/convict/node_modules/json5/lib/json5.js:56:25)
at JSON5.parse.word (/Users/Ryan/Desktop/DISCORD SERVER/d-zone/d-zone-master/node_modules/convict/node_modules/json5/lib/json5.js:393:13)
at JSON5.parse.value (/Users/Ryan/Desktop/DISCORD SERVER/d-zone/d-zone-master/node_modules/convict/node_modules/json5/lib/json5.js:493:56)
at JSON5.parse.array (/Users/Ryan/Desktop/DISCORD SERVER/d-zone/d-zone-master/node_modules/convict/node_modules/json5/lib/json5.js:417:36)
at JSON5.parse.value (/Users/Ryan/Desktop/DISCORD SERVER/d-zone/d-zone-master/node_modules/convict/node_modules/json5/lib/json5.js:484:20)
at JSON5.parse.object (/Users/Ryan/Desktop/DISCORD SERVER/d-zone/d-zone-master/node_modules/convict/node_modules/json5/lib/json5.js:459:35)
at JSON5.parse.value (/Users/Ryan/Desktop/DISCORD SERVER/d-zone/d-zone-master/node_modules/convict/node_modules/json5/lib/json5.js:482:20)
at Object.parse (/Users/Ryan/Desktop/DISCORD SERVER/d-zone/d-zone-master/node_modules/convict/node_modules/json5/lib/json5.js:508:18)
at loadJSON (/Users/Ryan/Desktop/DISCORD SERVER/d-zone/d-zone-master/node_modules/convict/lib/convict.js:325:16)
at /Users/Ryan/Desktop/DISCORD SERVER/d-zone/d-zone-master/node_modules/convict/lib/convict.js:468:17
npm ERR! Darwin 14.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
npm ERR! node v4.5.0
npm ERR! npm v2.15.9
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: node index.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script 'node index.js'.
npm ERR! This is most likely a problem with the d-zone package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node index.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs d-zone
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR! npm owner ls d-zone
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/Ryan/Desktop/DISCORD SERVER/d-zone/d-zone-master/npm-debug.log
Easy link to the site, like DisWorld?
Originally suggested by Darqness™#8876 (313083002508804107)
I'm running D-Zone and so far I have tried running on my VPS and c9.io and both give me the Upgrade required message, im running Ubuntu on both and i get the err
I have a D-Zone running on a bot with 713 servers. All 713 servers have been listed in the config. When I load it up, it just freezes without the menu or info button in the corners. Sometimes, I don't even see the tower in the middle. I tried disabling 712 servers, so only one is left, but same issue. I've tried changing the port forwarding to TCP only and then UDP only but nothing. It is default on TCP & UDP. What is the issue?
plz add functionality and option to display the current game being played. Enhancement
When I go to the websocket I have setup I get "Upgrade Required". I did npm update and still the same.
I am attempting to install in a Node.js install in my personal user folder, as I do not have root access.
I get this error upon install.
NPM No Compatible Version Found Screenshot
EDIT: Now that I look at the error more closely, it looks like Node thinks my system is called undefined0.1.35 instead of 0.1.35.. not sure what that version has to do with but it looks like a problem specific to my Node install. How to fix?
Was trying out the update script, got an error about invalid json data. Looked at the github's version and noticed a token is in this github.
That's isn't a token your using now right?
I'm running Windows, and when I npm install
it gives me this:
C:\Users\Racer500\d-zone>npm install d-zone --no-optional
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
C:\Users\Racer500\d-zone
`-- [email protected]
+-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | `-- [email protected]
| +-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | | `-- [email protected]
| | | `-- [email protected]
| | +-- [email protected]
| | | `-- [email protected]
| | | `-- [email protected]
| | +-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | `-- [email protected]
| | +-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | `-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | | `-- [email protected]
| | +-- [email protected]
| | | `-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | | `-- [email protected]
| | | +-- [email protected]
| | | `-- [email protected]
| | `-- [email protected]
| | `-- [email protected]
| | `-- [email protected]
| `-- [email protected]
+-- [email protected]
| `-- [email protected]
+-- [email protected]
| +-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | | +-- [email protected]
| | | `-- [email protected]
| | `-- [email protected]
| +-- [email protected]
| +-- [email protected]
| | `-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | `-- [email protected]
| +-- [email protected]
| | `-- [email protected]
| +-- [email protected]
| | `-- [email protected]
| +-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | | +-- [email protected]
| | | | `-- [email protected]
| | | +-- [email protected]
| | | | `-- [email protected]
| | | | `-- [email protected]
| | | `-- [email protected]
| | +-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | +-- [email protected]
| | | | +-- [email protected]
| | | | `-- [email protected]
| | | `-- [email protected]
| | | `-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | | +-- [email protected]
| | | `-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | | `-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | `-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | | `-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | `-- [email protected]
| +-- [email protected]
| | `-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | `-- [email protected]
| | `-- [email protected]
| +-- [email protected]
| | `-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | `-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | `-- [email protected]
| | `-- [email protected]
| +-- [email protected]
| +-- [email protected]
| | `-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | `-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | `-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | `-- [email protected]
| +-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | | `-- [email protected]
| | `-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| | `-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | `-- [email protected]
| +-- [email protected]
| +-- [email protected]
| | `-- [email protected]
| `-- [email protected]
+-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| `-- [email protected]
| +-- [email protected]
| | `-- [email protected]
| `-- [email protected]
+-- [email protected]
| +-- [email protected]
| `-- [email protected]
| +-- [email protected]
| | `-- [email protected]
| +-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | | `-- [email protected]
| | `-- [email protected]
| +-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | | `-- [email protected]
| | +-- [email protected]
| | `-- [email protected]
| | +-- [email protected]
| | | `-- [email protected]
| | `-- [email protected]
| | `-- [email protected]
| +-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | | +-- [email protected]
| | | `-- [email protected]
| | | `-- [email protected]
| | `-- [email protected]
| | +-- [email protected]
| | | +-- [email protected]
| | | | `-- [email protected]
| | | | `-- [email protected]
| | | +-- [email protected]
| | | `-- [email protected]
| | | `-- [email protected]
| | `-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | | `-- [email protected]
| | | `-- [email protected]
| | | `-- [email protected]
| | `-- [email protected]
| `-- [email protected]
+-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | | `-- [email protected]
| | `-- [email protected]
| `-- [email protected]
+-- [email protected]
+-- [email protected]
| `-- [email protected]
+-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| | `-- [email protected]
| | +-- [email protected]
| | `-- [email protected]
| +-- [email protected]
| `-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| `-- [email protected]
| +-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | | +-- [email protected]
| | | | +-- [email protected]
| | | | `-- [email protected]
| | | `-- [email protected]
| | +-- [email protected]
| | `-- [email protected]
| `-- [email protected]
+-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | `-- [email protected]
| | +-- [email protected]
| | | `-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | | +-- [email protected]
| | | | `-- [email protected]
| | | | +-- [email protected]
| | | | +-- [email protected]
| | | | `-- [email protected]
| | | +-- [email protected]
| | | `-- [email protected]
| | +-- [email protected]
| | | `-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | | +-- [email protected]
| | | | `-- [email protected]
| | | `-- [email protected]
| | +-- [email protected]
| | | +-- [email protected]
| | | `-- [email protected]
| | `-- [email protected]
| | +-- [email protected]
| | `-- [email protected]
| +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | | `-- [email protected]
| | +-- [email protected]
| | `-- [email protected]
| | +-- [email protected]
| | `-- [email protected]
| `-- [email protected]
+-- [email protected]
| `-- [email protected]
| +-- [email protected]
| `-- [email protected]
`-- [email protected]
+-- [email protected]
`-- [email protected]
npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\Racer500\d-zone\package.json'
npm WARN d-zone No description
npm WARN d-zone No repository field.
npm WARN d-zone No README data
npm WARN d-zone No license field.
C:\Users\Racer500\d-zone>
Hi.
I found out my server has crashed, this is the error.
2/17 10:19:04 PM client connected to server, total: 1
Client joined server dasMEHDI
node: ../src/node_zlib.cc:124: static void node::ZCtx::Write(const v8::FunctionCallbackInfo<v8::Value>&) [with bool async = true]: Assertion `(false) == (ctx->pending_close_ && "close is pending")' failed.
Aborted (core dumped)
npm ERR! Linux 3.13.0-52-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
npm ERR! node v4.2.2
npm ERR! npm v2.14.7
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: `node index.js`
npm ERR! Exit status 134
npm ERR!
npm ERR! Failed at the [email protected] start script 'node index.js'.
npm ERR! This is most likely a problem with the d-zone package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node index.js
npm ERR! You can get their info via:
npm ERR! npm owner ls d-zone
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/zyxep/d-zone/npm-debug.log
here is the log from npm-debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'start' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info prestart [email protected]
6 info start [email protected]
7 verbose unsafe-perm in lifecycle true
8 info [email protected] Failed to exec start script
9 verbose stack Error: [email protected] start: `node index.js`
9 verbose stack Exit status 134
9 verbose stack at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:214:16)
9 verbose stack at emitTwo (events.js:87:13)
9 verbose stack at EventEmitter.emit (events.js:172:7)
9 verbose stack at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:24:14)
9 verbose stack at emitTwo (events.js:87:13)
9 verbose stack at ChildProcess.emit (events.js:172:7)
9 verbose stack at maybeClose (internal/child_process.js:818:16)
9 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
10 verbose pkgid [email protected]
11 verbose cwd /home/zyxep/d-zone
12 error Linux 3.13.0-52-generic
13 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
14 error node v4.2.2
15 error npm v2.14.7
16 error code ELIFECYCLE
17 error [email protected] start: `node index.js`
17 error Exit status 134
18 error Failed at the [email protected] start script 'node index.js'.
18 error This is most likely a problem with the d-zone package,
18 error not with npm itself.
18 error Tell the author that this fails on your system:
18 error node index.js
18 error You can get their info via:
18 error npm owner ls d-zone
18 error There is likely additional logging output above.
19 verbose exit [ 1, true ]
Enhancement. Please add functionality to identify or highlight a specific block by name, versus searching them all.
Thanks for creating a cool way of visualising Discord traffic!
When checking this out to use on my own server I noticed a security issue – users must store their login details within a configuration file as indicated by the readme (1), and the configuration itself (2)
(1):
Rename discord-config-example.json to discord-config.json and insert the login and server info for your Discord server(s).
(2):
"email": "[email protected]",
"password": "password",
A better way of handling this is to have the user store their secrets as environment variables, and have the JSON structure indicate the names of the environment variables to use.
This eliminates the chance of a user accidentally (or purposefully) committing sensitive configuration details to the repo.
Here is the log. You should no longer be using node to execute things during install. It is deprecated.
Check out line 17:
npm WARN This failure might be due to the use of legacy binary "node"
http://pastebin.com/pkxkByhQ
Enhancement to chat functionality. Ability to right click a block (or a little D as I like to call them) for option to send IM. Maybe right click contains other menu options as well.
Hello,
Please add some characters like éèàÉÈÀ
as they are usually used in European countries.
each role can have separate name in the rendering for fun - Darqness™#8876 (313083002508804107)
Is there going to support for secure websockets?
i found this error when trieing to install d-zone on rpi
please fix this error
ok, first off, experience points or something for each message sent, shows when mouse over and using command in discord - Darqness™#8876 (313083002508804107)
My bot has 4k servers so unfortunately the current implementation doesn't allow me to use my bot. I changed the disconnect to show me what was wrong:
bot.on('disconnect', function(e) {
console.log("Bot disconnected, reconnecting...", e);
setTimeout(function(){
bot.connect(); //Auto reconnect after 5 seconds
},5000);
});
More info: https://discordapp.com/developers/docs/topics/gateway#sharding
When I run npm run-script build
I get an error, log is below
0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'run-script',
1 verbose cli 'build' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]
5 info lifecycle [email protected]~prebuild: [email protected]
6 silly lifecycle [email protected]~prebuild: no script for prebuild, continuing
7 info lifecycle [email protected]~build: [email protected]
8 verbose lifecycle [email protected]~build: unsafe-perm in lifecycle true
9 verbose lifecycle [email protected]~build: PATH: C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin;C:\Users\benja\Downloads\d-zone\d-zone-master\node_modules\.bin;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\compiler;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\nodejs\;C:\Program Files (x86)\GtkSharp\2.12\bin;C:\Program Files\Git\cmd;C:\Users\benja\AppData\Local\Programs\Python\Python36-32\Scripts\;C:\Users\benja\AppData\Local\Programs\Python\Python36-32\;C:\Ruby24-x64\bin;C:\Users\benja\AppData\Local\Microsoft\WindowsApps;C:\Users\benja\AppData\Roaming\npm;C:\Program Files (x86)\Microsoft VS Code\bin
10 verbose lifecycle [email protected]~build: CWD: C:\Users\benja\Downloads\d-zone\d-zone-master
11 silly lifecycle [email protected]~build: Args: [ '/d /s /c',
11 silly lifecycle 'browserify web/main.js -t brfs -g uglifyify -o web/static/bundle.js' ]
12 silly lifecycle [email protected]~build: Returned: code: 1 signal: null
13 info lifecycle [email protected]~build: Failed to exec build script
14 verbose stack Error: [email protected] build: `browserify web/main.js -t brfs -g uglifyify -o web/static/bundle.js`
14 verbose stack Exit status 1
14 verbose stack at EventEmitter.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib\utils\lifecycle.js:283:16)
14 verbose stack at emitTwo (events.js:125:13)
14 verbose stack at EventEmitter.emit (events.js:213:7)
14 verbose stack at ChildProcess.<anonymous> (C:\Program Files\nodejs\node_modules\npm\lib\utils\spawn.js:40:14)
14 verbose stack at emitTwo (events.js:125:13)
14 verbose stack at ChildProcess.emit (events.js:213:7)
14 verbose stack at maybeClose (internal/child_process.js:897:16)
14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:208:5)
15 verbose pkgid [email protected]
16 verbose cwd C:\Users\benja\Downloads\d-zone\d-zone-master
17 verbose Windows_NT 10.0.15063
18 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run-script" "build"
19 verbose node v8.1.3
20 verbose npm v5.0.3
21 error code ELIFECYCLE
22 error errno 1
23 error [email protected] build: `browserify web/main.js -t brfs -g uglifyify -o web/static/bundle.js`
23 error Exit status 1
24 error Failed at the [email protected] build script.
24 error This is probably not a problem with npm. There is likely additional logging output above.
25 verbose exit [ 1, true ]
How do I fix that?
Script:
C:\Users\Cryfr\Downloads\d-zone-master\d-zone-master\discord-config.js
Line: 23
Char: 17
Error: Expected identifier, string or number
Code: 800A0404
smiley's is just shown as a black box when you write them.
this is what i get... (it refuses to install)
12 silly mapToRegistry raw: 'd-zone',
12 silly mapToRegistry scope: null,
12 silly mapToRegistry name: 'd-zone',
12 silly mapToRegistry rawSpec: '',
12 silly mapToRegistry spec: 'latest',
12 silly mapToRegistry type: 'tag' }
13 silly mapToRegistry uri https://registry.npmjs.org/d-zone
14 verbose request uri https://registry.npmjs.org/d-zone
15 verbose request no auth needed
16 info attempt registry request try #1 at 20:25:21
17 verbose request id df0ce2daee3267fe
18 verbose etag "5HBOWZHXUCBZXMJQDOX70QG7H"
19 http request GET https://registry.npmjs.org/d-zone
20 http 304 https://registry.npmjs.org/d-zone
21 verbose headers { date: 'Tue, 19 Apr 2016 18:25:18 GMT',
21 verbose headers via: '1.1 varnish',
21 verbose headers 'cache-control': 'max-age=300',
21 verbose headers etag: '"5HBOWZHXUCBZXMJQDOX70QG7H"',
21 verbose headers age: '0',
21 verbose headers connection: 'keep-alive',
21 verbose headers 'x-served-by': 'cache-ams4124-AMS',
21 verbose headers 'x-cache': 'HIT',
21 verbose headers 'x-cache-hits': '1',
21 verbose headers 'x-timer': 'S1461090318.459840,VS0,VE697',
21 verbose headers vary: 'Accept-Encoding' }
22 silly get cb [ 304,
22 silly get { date: 'Tue, 19 Apr 2016 18:25:18 GMT',
22 silly get via: '1.1 varnish',
22 silly get 'cache-control': 'max-age=300',
22 silly get etag: '"5HBOWZHXUCBZXMJQDOX70QG7H"',
22 silly get age: '0',
22 silly get connection: 'keep-alive',
22 silly get 'x-served-by': 'cache-ams4124-AMS',
22 silly get 'x-cache': 'HIT',
22 silly get 'x-cache-hits': '1',
22 silly get 'x-timer': 'S1461090318.459840,VS0,VE697',
22 silly get vary: 'Accept-Encoding' } ]
23 verbose etag https://registry.npmjs.org/d-zone from cache
24 verbose get saving d-zone to C:\Users\Guest\AppData\Roaming\npm-cache\registry.npmjs.org\d-zone\.cache.json
25 verbose correctMkdir C:\Users\Guest\AppData\Roaming\npm-cache correctMkdir not in flight; initializing
26 silly install normalizeTree
27 silly loadCurrentTree Finishing
28 silly loadIdealTree Starting
29 silly install loadIdealTree
30 silly cloneCurrentTree Starting
31 silly install cloneCurrentTreeToIdealTree
32 silly cloneCurrentTree Finishing
33 silly loadShrinkwrap Starting
34 silly install loadShrinkwrap
35 silly loadShrinkwrap Finishing
36 silly loadAllDepsIntoIdealTree Starting
37 silly install loadAllDepsIntoIdealTree
38 silly rollbackFailedOptional Starting
39 silly rollbackFailedOptional Finishing
40 silly runTopLevelLifecycles Starting
41 silly runTopLevelLifecycles Finishing
42 silly install printInstalled
43 verbose stack Error: Refusing to install d-zone as a dependency of itself
43 verbose stack at checkSelf (C:\Program Files\nodejs\node_modules\npm\lib\install\validate-args.js:53:14)
43 verbose stack at Array.<anonymous> (C:\Program Files\nodejs\node_modules\npm\node_modules\slide\lib\bind-actor.js:15:8)
43 verbose stack at LOOP (C:\Program Files\nodejs\node_modules\npm\node_modules\slide\lib\chain.js:15:14)
43 verbose stack at chain (C:\Program Files\nodejs\node_modules\npm\node_modules\slide\lib\chain.js:20:5)
43 verbose stack at C:\Program Files\nodejs\node_modules\npm\lib\install\validate-args.js:16:5
43 verbose stack at C:\Program Files\nodejs\node_modules\npm\node_modules\slide\lib\async-map.js:52:35
43 verbose stack at Array.forEach (native)
43 verbose stack at C:\Program Files\nodejs\node_modules\npm\node_modules\slide\lib\async-map.js:52:11
43 verbose stack at Array.forEach (native)
43 verbose stack at asyncMap (C:\Program Files\nodejs\node_modules\npm\node_modules\slide\lib\async-map.js:51:8)
44 verbose cwd C:\Users\Guest\Desktop\Romme\d-zone-gamegroup-master\retry
45 error Windows_NT 6.1.7601
46 error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "d-zone"
47 error node v5.10.1
48 error npm v3.8.3
49 error code ENOSELF
50 error Refusing to install d-zone as a dependency of itself
51 error If you need help, you may report this error at:
51 error <https://github.com/npm/npm/issues>
52 verbose exit [ 1, true ]
aster\retry>
I'm trying to reduce the number of sleeper actors, so I'm removing an actor when offline is received for that user.
It's a little hacky, but this is what I've done:
I've added the following line in the else if(data.type == 'presence')
statement (Line 176), after the check if user actor exists.
if(data.data.status == 'offline') return users.removeActor(users.actors[data.data.uid]);
It returns as the actor doesn't exist anymore so can't update presence.
Problem is, it doesn't remove the actors from the world, so I went and found where it gets .remove()
from ./web/script/engine/entity.js
, haven't delved deeper into renderer.js
, util.js
, etc. to figure out what everything in the remove function does.
Any idea why the actor isn't being removed from the screen?
Otherwise, any advice on building this for a large server? Attempting to get it working on a 5-10k concurrent online and 30k offline, I know ambitious, but I'd like to see if it'll work with only online users since at the moment, it just straight up crashes.
Enhancement to virtual experience. Server admin can raise/lower terrain, add flowers/little garden/trees (trees grow fruit).
Hi,
I have pointed my nginx web server to point to the /web folder, and i have changed the connection to be a WSS: but it won't connect on localhost.
any clue?
This may be asking too much, but is it possible for D-Zone to somehow allow previously existing server configuration (as well as channels instructed to be listened to or ignored to be kept when you autogenerate discord-config.json with the script?
One way of possibly achieving that may be checking if the server ID already exists, and if so, skip adding to it, and so on, until it finds one that is not in the config yet, and appends it to the "end".
Many apologies if this issue is poorly worded.
Currently it's a boring perlin-noise algorithm. It's also featureless.
I successfully install the d-zone package using npm install d-zone --no-optional
My config files are valid, I've checked them with the JSON Validator you provided
I've renamed the config files correctly
Upon attempting to start the server with npm start
, it gives me errors
I like this work and would like to ask and possibly suggest enhancement such as
For any characters not included in the hand-drawn sprite sheet, use default canvas text rendering with a font such as Noto
there's lots of potential for using the cubes to represent server stats too.. like you have different 'views' as buttons and when you click them the cubes all assemble themselves into a statistical view, like say a Messages Per Day view that creates areas on the map marked 1-5, 6-10, etc and the cubes hop into the zones they belong
Boy, wouldn't this be neat?
Hey,
I'm trying to run your code with only minimal adjustments to the provided template. I used your tool to gather my guilds and the configuration all looks fine.
However, when I run it from git-bash
or PowerShell I get the following log:
$ node index.js
Initializing server
2017-11-06T05:32:35.326Z 'Logged in as: game-bot-devel - (359707045131321354)'
Connected to 6 server(s)
Anyone? I need fix.
this allows a user to view the rendering
and send messages
which go to a webhook
which then messages can be sent back using that same channel - Originally by Darqness™#8876 (313083002508804107)
Inferred from agreeing to vegeta897; Chatting from the web page
Hi,
First, thank you for your awesome work !
Second, is it possible to host d-zone server on Heroku ? I tried but it seems that client can't connect to servers websockets.
When trying to use npm start
or node index.js
, it throws an error.
D:\D-Zone\node_modules\d-zone\script\inbox.js:11
var bot = new Discord.Client({ autorun: true, token: config.get('token') });
^
TypeError: config.get is not a function
at new Inbox (D:\D-Zone\node_modules\d-zone\script\inbox.js:11:65)
at Object.<anonymous> (D:\D-Zone\node_modules\d-zone\index.js:10:13)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:394:7)
at startup (bootstrap_node.js:149:9)
errors in web browser console
Uncaught SecurityError: Failed to execute 'getImageData' on 'CanvasRenderingContext2D': The canvas has been tainted by cross-origin data.
bundle.js:171 bad drawImage params! undefined 70 0 14 14 425 139 14 14BetterCanvas.drawImage @ bundle.js:171
bundle.js:171 Uncaught TypeError: Failed to execute 'drawImage' on 'CanvasRenderingContext2D': The provided value is not of type '(HTMLImageElement or HTMLVideoElement or HTMLCanvasElement or ImageBitmap)'
Hi,
I realize that this probably isn't directly a d-zone problem but I'm not sure where to start. I've been using this for quite a while and haven't had any issues, but recently my main bot's token doesn't work anymore. I've even tried refreshing it on the Discord Developer site to see but it hasn't made a difference. I know it works because my bot can login just fine when I'm running it.
When I switch to my test bot's token, it logs in just fine.
I know it says unknown server because my test bot isn't in those servers, I'm just not sure why my main bot gets stuck trying to login. Does anyone know what I should try?
Hi, I'm getting an unknown server ID issue -
the ID: 123947704198889472
and it tells me I'm connected to -1 server(s), I know the server ID is valid because my widget json file is returning results - https://discordapp.com/api/servers/123947704198889472/widget.json
Any suggestions?
Trying to implement d-zone here: http://discord-life.eleague.gg/
Whenever visiting the our discord's d-zone page, we get a popup saying "Sorry, could not connect to that server" even though the connection is successful.
Our d-zone page is here: http://d-zone.friday.cafe/
We aren't really sure whats going on. We've restarted the bot and reinstalled it but the message still pops up. This issue starting happening after we updated the bot.
Got this error code when loading the new version of the server.
{ [ResponseError: Error GETing client settings] name: 'ResponseError', statusCode: 403, statusMessage: 'FORBIDDEN', response: { code: 20001, message: 'Bots cannot use this endpoint' } }
Link to the broken page is below:
http://dzone.qubedq3.com/
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.