Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Aug 11 10:31
    andriycraft synchronize #603
  • Aug 11 10:30
    andriycraft synchronize #603
  • Aug 11 10:28
    andriycraft synchronize #603
  • Aug 11 10:28
    andriycraft synchronize #603
  • Aug 11 10:27
    andriycraft synchronize #603
  • Aug 11 10:26
    andriycraft synchronize #603
  • Aug 11 10:26
    andriycraft synchronize #603
  • Aug 11 10:21
    andriycraft synchronize #603
  • Aug 11 10:20
    andriycraft opened #603
  • Aug 11 10:17
    andriycraft commented #596
  • Aug 10 16:34
    ThallesP commented #599
  • Aug 10 16:29
    ThallesP synchronize #599
  • Aug 10 16:26
    ThallesP synchronize #599
  • Aug 10 16:24
    ThallesP synchronize #599
  • Aug 10 06:19
    kf106 opened #602
  • Aug 07 14:54
    rom1504 closed #595
  • Aug 07 14:54

    rom1504 on master

    Fix breaking/placing blocks in … (compare)

  • Aug 07 14:54

    rom1504 on master

    Commands(OP): Make player non-c… (compare)

  • Aug 07 14:54
    rom1504 closed #596
  • Aug 07 14:53

    rom1504 on master

    Fix item drop collection issue … (compare)

rom1504bot
@rom1504bot
<U9G> it’s not used
<U9G> node-yggdrasil is used in flying-squid
rom1504bot
@rom1504bot
<kf106> I managed to override digging in FS by editing flying-squid/src/lib/plugins/digging.js and adding a cancelDigging(pos) statement, but PWC still shows the digging as succeeding, and allows the player to walk into the "empty space". Other players don't see the block break (because it doesn't) and see the player walking into solid stuff. Any ideas how that could be fixed?
rom1504bot
@rom1504bot
<Pix3lPirat3> They’ve already talked about how canceling stuff just isn’t js-like, so be wary
rom1504bot
@rom1504bot
<kf106> I guess I'll need to investigate how digging actually takes place.
rom1504bot
@rom1504bot
<kf106> If you are running an offline flying-squid server and using prismarine-web-client to connect, it seems that the skin of each player entity is a default steve, and it's hardcoded in, i.e. there is no property for the entity. Am I right in concluding this?
rom1504bot
@rom1504bot
<kf106> I've been looking in prismarine-viewer/viewer/lib/entity - Entity.js and entities.json.
rom1504bot
@rom1504bot
<rom1504> Sounds correct
rom1504bot
@rom1504bot

<Heptex> ```js
const express = require("express");
const { createServer } = require("http");
const { Server } = require("socket.io");

const app = express();
const httpServer = createServer(app);
const io = new Server(httpServer, {
cors:{
origin:"https://localhost:8000"
}
});

io.on("connection", (socket) => {
console.log("Hello")
});

httpServer.listen(3000);
app.get("/",(req,res)=>{
res.render("frontpage")
})
```
ERROR

(node:59243) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated
If the issue is a feature request, what is the motivation / use case for it?

Tell us about your environment

http-server version: 0.11.1
Platform: Windows10
dependencies: ExpressJS, Nodemon, globally installed http, ejs, socket.io, socket.io-client

When I type in http-server //foldername Accessing the HTTP server throws a DeprecationWarning for OutgoingMessage.prototype._headers on Node when I try to open the 8080 local port on my browser
Does anyone know why this might happen?
PLEASE PING ME AS I WILL BE CROSS-POSTING THIS

rom1504bot
@rom1504bot

<Heptex> 📁 server.js

const express = require("express");
const { createServer } = require("http");
const { Server } = require("socket.io");

const app = express();
const httpServer = createServer(app);
const io = new Server(httpServer, { 
    cors:{
        origin:"https://localhost:8000"
    }
 });

io.on("connection", (socket) => {
  console.log("Hello")
});

httpServer.listen(3000);

app.get("/",(req,res)=>{
    res.render("frontpage")
})

📁 client.js

import {io} from ("socket.io-client")

const socket = io("http://localhost:3000/")

let textinput = document.getElementById("TextInput")
let Posting = document.getElementById("buttonpost")

function PostMessage(){
    let message = textinput.value
    let messageinstance = document.createElement("h3")
    messageinstance.innerHTML = message
}

Posting.addEventListener("click",(e)=>{
    PostMessage()
    socket.emit("MessagePosted",textinput.value)
})

📁 frontpage.html

<html>
    <header>
        <title>Welcome to my socket project</title>
    </header>
    <body>
        <h1>Type a message!</h1>
        <input type="text" id="TextInput">
        <button id="buttonpost">Post</button>
        <script src="../client/client.js" type="module"></script>
    </body>
</html>

ERROR

(node:59243) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated
If the issue is a feature request, what is the motivation / use case for it?

Tell us about your environment

http-server version: 0.11.1
Platform: Windows10
dependencies: ExpressJS, Nodemon, globally installed http, ejs, socket.io, socket.io-client

When I type in http-server //client I receive this response in the terminal
```Starting up http-server, serving frontpage.html

http-server version: 14.1.1

http-server settings:
CORS: disabled
Cache: 3600 seconds
Connection Timeout: 120 seconds
Directory Listings: visible
AutoIndex: visible
Serve GZIP Files: false
Serve Brotli Files: false
Default File Extension: none

http://192.168.56.1:8080
http://192.168.86.250:8080
http://127.0.0.1:8080
Hit CTRL-C to stop the server

Yet when I attempt to access http://localhost:8080 in my Brave browser URL, I receive this output in the VS Terminal
```(node:71276) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated

ANY HELP IS APPRECIATED AND PLEASE PING ME AS I WILL BE CROSS-POSTING THIS

rom1504bot
@rom1504bot
rom1504bot
@rom1504bot
<DrunkMoon> How is this related to flying-squid at all?
<Heptex> flying squid worked with me on this project, his final words was for me to finish it 😭
<Heptex> rest in piece flying squid.... 🪦
rom1504bot
@rom1504bot
<KNight> can you please, do this in #help or #js-helproom at least?
<KNight> Anyone found a solution for this?
TypeError: Cannot read properties of undefined (reading 'biomes')
    at prismarineChunkToNbt (D:\_\skyblock\instance\node_modules\prismarine-provider-anvil\src\1.14\chunk.js:25:38)
    at Anvil.save (D:\_\skyblock\instance\node_modules\prismarine-provider-anvil\src\anvil.js:44:19)
    at World.saveNow (D:\_\skyblock\instance\node_modules\prismarine-world\src\world.js:139:30)
    at Timeout._onTimeout (D:\_\skyblock\instance\node_modules\prismarine-world\src\world.js:147:18)
    at listOnTimeout (node:internal/timers:559:17)
    at processTimers (node:internal/timers:502:7)
"
July 24th 2022, 01:45:06 [WARN]: -------------------------------
July 24th 2022, 01:45:06 [WARN]: Please report this flying-squid! This is bug (mabye)
July 24th 2022, 01:45:06 [WARN]: Unhandled rejection warning!
"
[STR] stderr "(node:16104) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 2
1)
"
July 24th 2022, 01:45:06 [WARN]: Error: TypeError: Cannot read properties of undefined (reading 'biomes')
July 24th 2022, 01:45:06 [WARN]: Report this error here: https://github.com/PrismarineJS/flying-squid/issues
July 24th 2022, 01:45:06 [WARN]: -------------------------------
rom1504bot
@rom1504bot
<DrunkMoon> flying-squid just isn't getting enough attention to make it viable...
rom1504bot
@rom1504bot
<kf106> This is a prismarine-world issue, and is fixed by PrismarineJS/prismarine-world#100
<kf106> But as it goes quite deep into the code it needs a thorough review before merging. I've been using it with my fs server for several months, and haven't seen the issue since, but I'm not convinced my alterations to the save mechanism are as efficient as they could be.
rom1504bot
@rom1504bot
<kf106> Question about keepAlive packets - are they sent on a different port? I have a pwc instance running on 8080, with https redirect, and a fs server on 20565.
<kf106> Update: yep - opening 25565 allows keepalive packets to get through, so I guess that's hardcoded somewhere rather than using the specified port.
rom1504bot
@rom1504bot
<kf106> I spoke too soon. Still getting kicked.
rom1504bot
@rom1504bot
<kf106> So with the firewall off completely it works. Is there a secret "keep alive" port that I don't know about?
rom1504bot
@rom1504bot
<Black Jack> Hey everyone
Took some time to find the discord LOL
Guys I´m currently creating a server by running it on codesandbox
But its seems like its stoping, right?
rom1504bot
@rom1504bot
<KNight> thanks
<KNight> i'll look into it then
rom1504bot
@rom1504bot

<Heptex> 📁 package.JSON

{
  "dependencies": {
    "chartjs": "^0.3.24",
    "dotenv": "^16.0.1",
    "ejs": "^3.1.8",
    "exceljs": "^4.3.0",
    "expressjs": "^1.0.1",
    "mongoose": "^6.4.7",
    "nodemon": "^2.0.19",
    "socket.io": "^4.5.1",
    "socket.io-client": "^4.5.1"
  },
  "name": "serverside",
  "version": "1.0.0",
  "main": "./server.js",
  "scripts": {
    "test": "nodemon server.js"
  },
  "keywords": [],
  "author": "",
  "license": "ISC",
  "description": ""
}

📁 expressjs/package.JSON

{
  "name": "expressjs",
  "version": "1.0.1",
  "description": "",
  "main": "server.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "keywords": [],
  "author": "",
  "license": "ISC"
}

ERROR

Error: Cannot find module 'C:\Users\lol\Desktop\MyMainProject\serverside\node_modules\expressjs\server.js'. Please verify that the package.json has a valid "main" entry

I am constantly getting this error, and then I attempt to change my main entry to reference server js, I just get this error instead

Error: Cannot find module 'C:\Users\lol\Desktop\MyMainProject\serverside\node_modules\expressjs\...\server.js'. Please verify that the package.json has a valid "main" entry

Any help would be greatly appreciated, I could not find any useful information online.
https://cdn.discordapp.com/attachments/413438265475989534/1001729415425822730/unknown.png
https://cdn.discordapp.com/attachments/413438265475989534/1001729415870427217/unknown.png

rom1504bot
@rom1504bot
<Pix3lPirat3> Why is main ./ and not just server.js? Im not sure if that matters
rom1504bot
@rom1504bot
<kf106> If anyone else has problems with blocking digging using flying squid and prismarine web client - you need to tinker with digging.js in both fs and pwc: flying-squid/src/lib/plugins/digging.js and prismarine-web-client/node_modules/mineflayer/lib/plugins/digging . The former can be edited to prevent actual block destruction on the server (i.e. preventing the state of the actual world being changed), and the latter needs to be altered to ensure that the web client doesn't just show you digging anyway (presenting the actual state wrongly).
rom1504bot
@rom1504bot
<LemonLord> Heyo Flying Squid people. The readme is a little vague, does Flying Squid support 1.16.5?
rom1504bot
@rom1504bot
<Ic3Tank> Yes I think it does. 1.16 is also the last version it supports. Newer versions are currently not supported
rom1504bot
@rom1504bot
<DrunkMoon> Nope, it only supports up to 1.16.1 @LemonLord
rom1504bot
@rom1504bot
This message was deleted
<Pix3lPirat3> You can check that file if you doubt it
<Pix3lPirat3> person who removed their message about 1.16.3 :p
rom1504bot
@rom1504bot
<kf106> is "max-entities" the number to change if you get a "Error: Error: Too many mobs !" ?
rom1504bot
@rom1504bot
<Pix3lPirat3> js if (Object.keys(serv.entities).length > options['max-entities'] - number) { throw new UserError('Too many mobs !') }
<Pix3lPirat3> yes @kf106
rom1504bot
@rom1504bot
<kf106> Has anyone done some performance analysis work on how many entities can be supported given a decent spec VPS?
rom1504bot
@rom1504bot
<rom1504> Like 50
<rom1504> It's slow
<rom1504> Please make it faster
rom1504bot
@rom1504bot
<KaffinPX> 💀
<rom1504> 🏃