Giter VIP home page Giter VIP logo

d-zone's Introduction

D-Zone

GitHub Workflow Status Coveralls github code style: prettier GitHub stars Discord

An ambient life simulation driven by the user activity within a Discord server

D-Zone

⚠️ This is the development branch. Check out the master branch for a working release.

Concept

D-Zone is a graphical simulation meant to abstractly represent the activity in your Discord server.

This is not meant for any actual monitoring or diagnostics, only an experiment in the abstraction of chatroom data represented via autonomous characters in a scene.

Hopefully the simulation is interesting to watch. You can see the current (uninteresting) client version simulating the discord.io server here: pixelatomy.com/dzone

Installation

Under Work

Design

The game engine is an ECS implementation, rendered with PixiJS

Under Work

Disclaimer: I cannot be held responsible for anything that happens to your computer, your server, your bot, or anything else as a result of using this package.

Please consider the privacy of the users on your server. D-Zone will allow anyone with the URL (and password, if used) to monitor the chat of anyone in any channel that your bot has permission to see.

d-zone's People

Contributors

ctsrc avatar d-zone-maintenance[bot] avatar dependabot-preview[bot] avatar dependabot[bot] avatar funipz avatar hashsploit avatar jmtk avatar jonbesga avatar medubelko avatar sagnikpradhan avatar vegeta897 avatar zephyrrus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

d-zone's Issues

config.get is not a function

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)

Chatting in the web view

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

XP per Message System

ok, first off, experience points or something for each message sent, shows when mouse over and using command in discord - Darqness™#8876 (313083002508804107)

Upgrade Required

When I go to the websocket I have setup I get "Upgrade Required". I did npm update and still the same.

Sharding Support

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);
    });

image

More info: https://discordapp.com/developers/docs/topics/gateway#sharding

Real-time terrain modification

Enhancement to virtual experience. Server admin can raise/lower terrain, add flowers/little garden/trees (trees grow fruit).

D-Zone is frozen, won't respond

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?

image

inbox.js missing

i found this error when trieing to install d-zone on rpi
please fix this error

Add support for TLS websockets

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

  1. Make sure Apache has mod_proxy and mod_proxy_wstunnel enabled
  2. Add the following in the tls virtualhost configuration: ProxyPassMatch ^/(ws(/.*)?)$ ws://127.0.0.1:3000/$1
  3. Edit bundle.js after it's built with new path on line 26: wss://"+r.address+":443/ws

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

crashed server.

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 ]

Failure to Startup

  • Python 2.7
  • Node v0.12.2
  • npm v2.7.4
  • Windows 10 Pro x64

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

npm debug log
Config files

Suggesting enhancements

I like this work and would like to ask and possibly suggest enhancement such as

  • multi bot token setting (observing from multiple bots)
  • on the fly password change
  • server aliasing (easier to write in url query parameter)
  • use landing page instead of erroring (endless popup) when wrong password/no password is supplied
  • fix username display for non ASCII characters such as Japanese Kana / Kanji

Site command

Easy link to the site, like DisWorld?

Originally suggested by Darqness™#8876 (313083002508804107)

Can't connect using Main token

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.

Example of logging in

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?

426 Upgrade Required error

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)

and the following webpage
image

Permissions Level

each role can have separate name in the rendering for fun - Darqness™#8876 (313083002508804107)

Failure to install

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>

Persistence of Already Configured Servers in Automatic Generation of discord-config.json

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.

Reactions

In conjunction with #6, reactions to recent messages should be represented somehow. Specifics to be determined later.

Better world-gen

Currently it's a boring perlin-noise algorithm. It's also featureless.

  • Make the land shapes more interesting, perhaps more structured/angular instead of random blobs.
  • Add more terrain features (streams, bridges, pillars, fences, gardens, vegetation, etc)

Removing user/actor from world

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.

Script Error

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

Error once again

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

Script issue

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?

not installing

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>

No icon on web page

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)'

Statistical views

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?

Find actor by name

Enhancement. Please add functionality to identify or highlight a specific block by name, versus searching them all.

configuration should use environment variables rather than storing passwords in files

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.

Better server listing

image
There is 700+ servers on this list but only ~50 of them are shown. Can there be a scroll bar or page system built in?

D-Zone & Heroku

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.

Add right click for IM option

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.