#development

1 messages · Page 42 of 1

drifting cairn
#

bruh

#

please learn basic js then come back to this

#

😭

spark flint
#

^^^^

drifting cairn
#

learn asynchronous stuff then

pale vessel
spark flint
#
(async () => {

})()```
#

example of an asynchronous function

ancient nova
drifting cairn
#

😦

spark flint
#

.catch(()=>{}) my beloved

drifting cairn
ancient nova
#

omg

#

guys did you know u can't turn right while honking in gta v

#

😱

drifting cairn
#

how

#

😱

ancient nova
#

I have no idea I just discovered this 😱

drifting cairn
#

😱 😱 😱

#

i thought you could because i always drove off the road because i held the joystick down so hard it just snapped in the opposite direction tfFaint

#

or is it pc only 😱

ancient nova
#

seems like PC only 😱😱😱

boreal iron
#

Still no slash commands freerealestate

ancient nova
#

that's crazy

ancient nova
#

might add some later

drifting cairn
ancient nova
drifting cairn
#

rnrnrnrn 😱😱

ancient nova
#

I'm doing the cleaning put the bureau mission

#

I just crashed cuz of it

#

😔

drifting cairn
#

sucks

#

imagine crashing on gta

ancient nova
#

imagine 😱😱

#

I'm actually a pro when I drive using frankin

#

his ability is op

drifting cairn
#

my game just froze bruh

#

i blame epic games

ancient nova
#

me too 😔

drifting cairn
#

my discord just crashed too wtf

#

i blame epic games again AngerCat

ancient nova
#

dam u got a virus 😱

drifting cairn
ancient nova
#

😳

drifting cairn
#

didnt know you could actually get discord from epic games KEK

ancient nova
#

💀

drifting cairn
#

nono, you're wrong. Discord bought them 😱

ancient nova
#

😱😱😱😱

drifting cairn
#

😱😱😱😱😱😱😱😱

ancient nova
drifting cairn
#

you lied to me angeryBOYE

ancient nova
#

I DIDN'T 😱

drifting cairn
#

i can turn just fine when honking rage

ancient nova
#

I was driving a mustang

#

try with a mustang 😤

ancient nova
drifting cairn
#

my game freezes every time i tab out wtf

drifting cairn
#

o nvm i fixed it

#

whats the mustang called in gta catstand

#

also this has gone insanely off topic KEK

ancient nova
#

how do I even check 😱

drifting cairn
#

uh press z

#

and the model name should be in bottom corner i think

ancient nova
#

albany bucaneer

drifting cairn
#

i got one evilcat

ancient nova
#

damnnnn 😱

#

that looks good

drifting cairn
#

tyty

#

i have like $12 trillion bearWalkfast

ancient nova
#

ok follow my instructions

boreal iron
#

Tf is going on here

ancient nova
#

press W and keep pressing it

drifting cairn
#

idk

#

lmao

#

development of vehicles Nerdybara

ancient nova
#

then press E to honk and try moving right while still pressing the other keys

boreal iron
drifting cairn
#

it cancels the horn

ancient nova
#

😱

#

what's wrong with my gta v version 😔

drifting cairn
#

i got a new car now anyways PandaHmph

ancient nova
#

u playing online?

drifting cairn
#

ye

ancient nova
#

what level 👀

drifting cairn
#

uh

#

8000

#

🗿

ancient nova
#

😳

#

ok dsmn

drifting cairn
#

wait no

#

2499

#

🗿

ancient nova
#

still a lor

#

🗿

drifting cairn
#

yes

#

totally legit

#

🗿

ancient nova
#

mines 80

#

I don't play much cuz

#

I have to play with a VPN

#

😔

drifting cairn
#

y

ancient nova
#

cuz I got my doxed once holdingbacktears

sharp geyser
#

loser

drifting cairn
#

o

#

sucks

ancient nova
drifting cairn
#

i get doxed still pepeStonks

ancient nova
#

🗿

knotty quartz
#

How do you do a timeout on discord,js V13 is there a guide for it

ancient nova
knotty quartz
#

I would imagine member.kick(); just .timeout

knotty quartz
tight kiln
ancient nova
lyric mountain
boreal iron
ancient nova
#

that's the limit it seems like

boreal iron
#

Doesn’t make sense to have a guild running longer timers in the background

#

Even 28 is far too long imo

#

Either kick or ban then

sharp geyser
#

imagine not being timed out for a year

boreal iron
#

aye

ancient nova
#

I got muted for a week in a british server cause I said I don't like tea with milk in it

sharp geyser
#

as you should

#

tea with milk is good

ancient nova
#

😔

#

tea with milk just tastes weird to me 😔

boreal iron
drifting cairn
drifting cairn
ancient nova
#

also I said I like green tea > any other tea

drifting cairn
ancient nova
#

mint tea is also good tho

drifting cairn
#

water > tea TohruShrug

ancient nova
#

but not with milk

knotty quartz
ancient nova
#

yeah u can check if the reason proprty exists

knotty quartz
boreal iron
knotty quartz
#

Got it

knotty quartz
boreal iron
#

Uhm… idk 5 min aren’t long, an hour is

#

I would probably choose 15 min but… yeah idk

drifting cairn
#

do 15 minutes s_duck_shrug

#

ye

#

what they said bearWalkfast

knotty quartz
boreal iron
knotty quartz
surreal sage
#

Version 13.9.2

Stops at the if statement since no .message while it should exist

#

And yes

#

nvm collected.message = collected

lyric mountain
#

...what?

surreal sage
#

Documentation was incorrect

exotic ivy
#

Site is back since a good while but no update was posted about it and it caused unnecessary delay for people to vote, way beyond the downtime. If you not gonna post a "fixed it" message at least warn people about it beforehand in your error post

#

So they will check the site time to Time instead of waiting for your update

spark flint
#

its still not really working for me

spark flint
#

so

#

no update to post

exotic ivy
spark flint
#

its unstable atm

exotic ivy
#

I reloaded a few times and it was fast and correct each time

#

Many people DMed me about the out of date error post

#

Started voting more than a hour ago

#

So

lethal mantle
#

question any way to retrieve the reviews?

boreal iron
#

On topgg? If so, no

lyric mountain
#

technically, yes, but requires scrapping

scarlet hinge
#

How do you add bots

#

Help me please

earnest phoenix
scarlet hinge
#

Is that how you add bots?

earnest phoenix
#

You asked for that, I answered for it

scarlet hinge
#

Thank you

earnest phoenix
earnest phoenix
#

interesting 🤔

lyric mountain
#

?

#

why...would scrap equal to ssr?

earnest phoenix
#

nah, i mean they render the comments in server

#

server side rendering

lyric mountain
#

no they dont

earnest phoenix
#

they don't get the comments from json

#

that's sad actually

lyric mountain
#

???

#

ssr has nothing to do with lack of api endpoint

dusk cloak
#

i cant speak

#

oh nvm Now i can

scarlet hinge
#

Sussy Baka

#

🧐🤨🤔

#

Daddy chill

dusk cloak
#

🤓 😐

ancient nova
#

yo is anyone still up?

spark flint
#

no

quartz kindle
#

no

ancient nova
#

well thanks, I need some help with my game, just need to think of some good gameplay points or some narrative ig

lyric mountain
#

Narrative? For backrooms? Narrative?

#

Isn't the whole deal with backrooms being "unnerving and evenly lit rooms with seemingly no escape"?

ancient nova
lyric mountain
#

Well, u kinda chose a bad theme tbh

#

From all creepypastas, backrooms is the most boring one

ancient nova
#

I already talked to like 4 people who were interested at first but dropped out after a few days

#

I can't keep working on a si gle person

#

I'll finish it myself if I have to

#

just need some ideas

lyric mountain
#

Download gmod and play a few matches of nextbot escape

ancient nova
#

at least give me some common horror game ones I'll find a way to implement them

lyric mountain
#

It might give u some ideas

ancient nova
#

I played it lol

#

I already have an "AI" that is pretty smart

#

it has eyesight and hearing

#

pathfinding is meh it still can get stuck but I bumped out the avoidance to max

lyric mountain
#

The thing is:

  • the player can't fight
  • the player can't escape
  • the player will lose regardless

Don't seem like a good game theme

#

But that's what the backrooms is

#

If you add any objectives you'll be escaping the theme

#

I mean, beyond "goal: survive"

ancient nova
#

there is a game themed about the poolrooms, it's like 99% exploration and still they managed to make it interesting

#

I will not give up

#

😤

lyric mountain
#

Never hear about it

#

Neither google apparently

ancient nova
#

it has a different name

#

I'll send you a video in DMs

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

ancient nova
#

ok have you watched the first kane pixels video that caughed peoples attention? guy accidentally noclips, gets chased, gets out in the end but still dies, how about I make a game like that?

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

ancient nova
#

well do you want a link?

#

you'd wanna know what I'm talking about

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

ancient nova
#

because it's already been done 100s of times

stark abyss
sharp geyser
#

thats rich

#

Guy literally makes a mod bot with the whole idea of copying what other bots do

#

but doesn't like the idea of making a game other's have already made

ancient nova
ancient nova
#

and there is no way to add anything new to it

sharp geyser
#

I just found it funny thats all

#

idc what game you make or the reason behind it

lyric mountain
#

Ok so a few keypoints for game dev:

  • Replayability: nobody will play your game if the loop stays the same everytime.
  • Theme: a game must stay true to its main theme, else you break immersion
  • Difficulty: a game must not be a walk in the park, but it must also not be too punishing else it becomes boring and/or frustrating
  • Innovation: if there are other similar games, yours must have something unique before it even sees the light
  • First-contact: the first 10 minutes of both trailer and gameplay are the ones who'll define whether people will invest time into it or not
#

You must attain all those 5 points to have a time-worthy game

sharp geyser
#

Sometimes it being a walk in the park is fun and fine, only if its theme matches its difficulty

#

Same with it being challenging

wheat mesa
#

High skill level and high difficulty = maximum enjoyment

sharp geyser
#

IF that is the theme of the game sure

#

you can't market a game as easy going then make the player die every 5s if something is done wrong

wheat mesa
sharp geyser
#

Yea

#

A lot of games are like that

#

High skill high difficulty

ancient nova
#

into it

#

will start making up the first part of the map now

#

would you be up for play testing it? (given ur PC can run it)

#

also this time I will be adding a full fledged LOD system so the map won't lag anymore while loading

#

it will still be there, loaded in ram, but it won't be visible so won't take up resources

sharp geyser
#

Why not load all assets before letting the player join the map

ancient nova
#

that's what I'm doing, that's what the LOD system is

sharp geyser
#

LOD?

ancient nova
#

they just won't be visible until the player gets close enough

sharp geyser
#

What kind of game are you making again

ancient nova
ancient nova
sharp geyser
#

Gosh that sounds boring

#

I never understood the hype around backrooms

ancient nova
#

wooow 😐

ancient nova
sharp geyser
#

Yea

#

and it seemed like there was jack all to do other than try and not get caught by whatever they called it

ancient nova
#

really? You've seen the kane pixels renders too?

ancient nova
sharp geyser
#

I've already seen plenty

#

and it still hasn't changed my mind of how boorish the game is

ancient nova
#

and I want to make my game similar to that one

#

with a single theme added: survival

wheat mesa
#

Horror games are boring imho

sharp geyser
#

A lot of them are yea

#

Most of them don't really accomplish anything

ancient nova
#

even games like outlast? 😐

sharp geyser
#

yea

ancient nova
#

😐

#

I'm bad at level design lol

#

glad I put everything into a tile system

#

gonna add a couple structures soon, then gonna implement sections of the poolrooms and other levels

#

I think I can actually make it interesting

wheat mesa
#

Isn’t the point of the backrooms is that it’s infinite

ancient nova
#

but I want to introduce story into the game so it's not as boring, it's gonna be linear instead of procedural

sharp geyser
# wheat mesa Isn’t the point of the backrooms is that it’s infinite
Backrooms Wiki

For a list of Sub-Levels, click here. For a list of Negative Levels, click here. For a list of Anomalous Levels, click here. For a list of Joke Levels, click here. Feel free to create more pages by clicking on the red links and helping make the list updated! Notice: This page is constantly a W.I.P to maintain its accuracy as many levels change t...

#

but doesn't seem infinite

ancient nova
#

I'm going to add like 10 or 20 max tho 🤣

wheat mesa
#

It goes past infinite levels

#

Past omega

#

But there’s not ACTUALLY that many

#

I meant the actual backstory behind the backrooms is that it’s an inescapably infinite repeating amount of generic looking rooms

sharp geyser
#

Also I don't necessarily think the levels are infinite

#

but it is a non ending loop iirc

#

which is exactly what you said

#

but I misread

ancient nova
#

anyways, I guess I could call my game more inspired-like since I probably will add an actual ending instead of having the game just be pure exploration

sharp geyser
#

If you wanted to be really boring

#

you could make a loop that isn't endless but at a certain number of clearing all the levels you have they escape

#

so say you have 20 levels, they go to each level randomly and once they get through all 20 levels they start over, this happens at least 5 times before they ffinally escape

ancient nova
#

nah I don't want to be boring, that's what I mean, I want to add some gameplay, a story, a narrative or at least some puzzle elements to make it interesting

sharp geyser
#

and each playthrough the content changes but the maps stay the same

ancient nova
#

btw I'll make a test build rn will anyone be able to test it, I just want to see if the performance is better

sharp geyser
#

different puzzles

ancient nova
#

the game will get boring and repeatable in 10 minutes even if I change it each playthrough

#

what I can do, is make the game finite, but long

#

and instead of procedurally generated maps, I will premake them, but with precision and they will look better

#

anyway I'm baking the demo right now, is your PC good?

sharp geyser
#

Im not downloading anything sorry

ancient nova
#

I see alr

#

I hope the game isn't gonna be too big

#

there is literally 3 different games inside the games source cause I keep changing my mind

#

unity usually filters anything that isn't used in the actual scenes so it should be fine

lament rock
#

I fucking love how silly stupid that game is

ancient nova
#

the game is 53MB, not as big as before, well I removed 2 whole levels from it so no wonder

sharp geyser
ancient nova
#

if the game is this small would anyone be up for testing it?

ancient nova
#

can you record it as well?

civic gorge
#

hey everyone

ancient nova
#

the game minimum specs are quite high so not sure if you're gonna be able to

civic gorge
#

is there rest api issue on vote counts?

#

when i pull the votes it gives me 223 while web page shows over > 300 for my bot

ancient nova
civic gorge
#

oo ok

ancient nova
#

alr, dm me I'll send you the game

#

I can't seem to DM you either

earnest phoenix
#

Who is the staff members

#

I need help

ancient nova
#

add me I'll send it that way

wary helm
#

some one pls help i have no idea i need to add a server to top gg but it doesnt work help pls!

civic gorge
#

@wary helm mostlikelly is due to the issue they have

wary helm
#

where do they post there issue

civic gorge
#

They dont i see it when I am making calls to rest api

eternal osprey
#

Hey guys could someone help some with some advice. I own a big server and it’s constantly being flooded by selfbots who are dming my members. I am trying to find a solution to prevent selfbots of joining.

#

The first thing I’ve tried was: a verification system. But basically only 1 should join and verify to get the ids, and this could be passed on to the other bots to send the dms.

#

so that isn’t really an option. Does anyone else have a good suggestion?

earnest phoenix
#

Can someone help me make reaction roles?

eternal osprey
earnest phoenix
eternal osprey
earnest phoenix
#

Try google or help from another server honestly I think the best thing to do is put them in time out and see what happens like see if more join

vivid fulcrum
#

you'll need a verification system

#

you should use a captcha though

#

generate a few letters and numbers and scramble up the image

#

while selfbots can also solve that

#

it isn't worth it in the long run for them

#

you can also do multiple stages of the captcha

#

i.e. the first stage would be your regular captcha (scrambled up letters and numbers), then you could send a message and tell the user to click a specific button that's taken out of a randomized set

boreal iron
#

Sounds like a good reason to leave the server immediately because it’s annoying as fuck

urban belfry
#

pretty sure

vivid fulcrum
boreal iron
#

Just live with the fact those are out there and have an active moderation team dealing with reports 24/7

#

Take a look at the mod-logs, that issue is happening on all larger servers

pine nova
civic scroll
#

o

rotund river
#

hello, i whant to create a voice channel, and move the member in that channel when join in a determinated voice channel, what is the event name for detherming what channel the user join? for discord.js

quartz kindle
#

voiceStateUpdate

earnest phoenix
#

Can someone help me make reaction roles

#
await message.guild.channels.create(channelname, {
            type: 'GUILD_TEXT'
        })

i am using this and getting errors a lot like

earnest phoenix
drifting cairn
#

read it

earnest phoenix
#

cant understand whys this happening

drifting cairn
earnest phoenix
#
const channelname = `slot-${member.user.tag}`

        await message.guild.channels.create(channelname, {
            type: 'GUILD_TEXT'
        })
#

isnt this enough?

drifting cairn
#

thats not how you create channels in v14

earnest phoenix
#

than

drifting cairn
#

read the error

earnest phoenix
drifting cairn
#

the field "name" is required

earnest phoenix
#

whats and how to solve id

#

it

#

peoples too using same in tutorials

drifting cairn
#

do you know the basics of javascript?

earnest phoenix
drifting cairn
#

then learn it before you make a bot

earnest phoenix
drifting cairn
#

you've passed the field "type", so pass the field "name" since its a required field.

earnest phoenix
drifting cairn
earnest phoenix
#

but error same

drifting cairn
earnest phoenix
#

no sorry

#

its v13

#

v14

#

so GUILD_TEXT

#

i think

drifting cairn
#

yep

#

either that or enums

earnest phoenix
drifting cairn
#

ye, its enums

earnest phoenix
#

thanks

drifting cairn
#

chikathumbsup no worries, please learn javascript though it'll help you out in the long run

earnest phoenix
drifting cairn
earnest phoenix
#

ok

drifting cairn
#

v14 is all enums

earnest phoenix
#

sucks

#

first find for this and does

drifting cairn
#

ur doing permissions right?

#

you can just do this if you are, its an array of all the enums Sip

earnest phoenix
#

define it in main file

#

hm i was doing wrong

knotty quartz
#

Hi, how do I add a second if statement to one current if statement to:

  • First grab the sub command (Already got that)

But how would I add this: if (premium.includes(interaction.user.id)) {
so if the user is premium it executes too.

earnest phoenix
#

PermissionsBitField.Flags.AttachFiles not working shows undefined

knotty quartz
earnest phoenix
#

already done

knotty quartz
#

What does your permissions look like?

earnest phoenix
#
{
                    id: member.id,
                    allow: [PermissionsBitField.Flags.ViewChannel, PermissionsBitField.Flags.SendMessages, PermissionsBitField.Flags.AttachFiles]
                }
topaz bloom
#

Anyone want to help me code a website?

earnest phoenix
#

this working if we remove attachfiles option

knotty quartz
topaz bloom
#

Anyone want to have a coding session

earnest phoenix
#

i am creating channel

#

with the permissions

knotty quartz
topaz bloom
#

Anyone want to have a coding session

drifting cairn
wheat mesa
drifting cairn
earnest phoenix
topaz bloom
boreal iron
#

why not importing PermissionFlagsBits instead?

#

instead of continuesly calling the flags property

surreal sage
#

Does Promise.then(resolved => {}) "resolved" get overwritten if you take another promise?

#
    Promise2.then(resolved=>{

    })
})```
earnest phoenix
#

solved

sudden geyser
surreal sage
#

You're saying that the first resolved is only outside the second one?

drifting cairn
#

just tried doing what you're asking and it wasn't overwritten but you'll have to keep inmind that the scope block exists peeposhrug

surreal sage
#

My focus is Promise2

sudden geyser
#

I'm saying that:

Promise.then(resolved => { // outer, `resolved` is available here.
    Promise2.then(resolved=>{ // inner, this one *shadows* the outer `resolved`
      // If you use `resolved` here, it'll use the *inner* one.
    })

    // Inner scope ended, so `resolved` points to the outer one now.
})
surreal sage
#

Yup gotchu

#

Thanks ThumbsUp

hybrid cargo
#

Just use different parameter names

#

¯_(ツ)_/¯

drifting cairn
boreal iron
#

discord must be kidding me

#

can't send a DM to my own bot lol

#

of course we share the same guild

#

oh man

#

tf is this bullshit

pale vessel
#

I'm sorry

boreal iron
#

i dont trust your words

#

tf am I supposed to do now

sage bobcat
#

One message removed from a suspended account.

cinder patio
#

backrooms as a concept is lame and only became popular because of the liminal spaces trend

sage bobcat
#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

#

One message removed from a suspended account.

fervent moss
#

https://sourceb.in/AUQayZJ3Oy
In this while a button interaction it shows error at line 55 toLowercase line while it is a button interaction.
(Pls ignore thta things like messagembed aren't updated to d.js v14)

boreal iron
#

if (!interaction.type == InteractionType.ApplicationCommand) return;

#

smh

#

dude... for real, load and import your command files once on a startup and save 'em like you did with your buttons

#

also without telling us the error, we can't do shit

#

I mean you will tell my toLowerCase() isn’t a function but still, do it freerealestate

#

The reason it does that is the mentioned line above which doesn’t do anything, it never will

surreal sage
#

I've been debugging for 2 hours and still can't solve it

sudden geyser
#

Can't solve what

surreal sage
#

Getting the members from the roles is inconsistent

#

D.js 13.9.2

#
const client = new Discord.Client({
    intents: ["DIRECT_MESSAGES", "DIRECT_MESSAGE_REACTIONS", "GUILDS", "GUILD_MEMBERS", "GUILD_MESSAGES", "GUILD_MESSAGE_REACTIONS"],
    partials: ["CHANNEL", "GUILD_MEMBER", "MESSAGE", "REACTION", "USER"],
});```
sudden geyser
#

Can you explain your exact problem

pale vessel
#

You probably don't cache all members

#

That's why

sudden geyser
#

Right now you're just explaining your solution

surreal sage
pale vessel
#

Cache all members 🧠

#

Fetch them all!

surreal sage
#

(await client.guilds.fetch(config.guild)).members.fetch(); doesn't do it

drifting cairn
quartz kindle
#

wdym doesnt do it?

#

the code you showed doesnt use members.fetch()

surreal sage
quartz kindle
#

then show the updated code

surreal sage
quartz kindle
#

you didnt await members.fetch

#

also you can simplify that code quite a lot

#

its never a good idea to repeat async functions, because you cannot assume they are being cached in the background

#

you use guilds.fetch() 3 times in there, which is fine only because djs automatically caches the results, but most of the time that will not be the case, and you will end up making 3 repeated requests to an api for no reason

#
const guild = await client.guilds.fetch(config.guild);
const members = await guild.members.fetch();
// here you can either use guild.roles or you can loop over members directly and parse the roles yourself
lament rock
#

Hey Tim, do you think storing all strings in an Object to avoid re-allocation is a good idea

quartz kindle
#

i would do something like this ```js
for(const member of members.values()) {
if(member.roles.cache.has(config.management) || member.roles.cache.has(config.staff)) {
...
}
}

surreal sage
#
                                                        await (await client.guilds.fetch(config.guild)).members.fetch();
                                                        let roles = (await client.guilds.fetch(config.guild)).roles.cache;
                                                        let mgnmt = roles.get(config.management).members;
                                                        let staff = roles.roles.cache.get(config.staff).members;
                                                        let list = mgnmt.toJSON().concat(staff.toJSON());
                                                        let listb = [];
                                                        list.forEach((item) => {
                                                            if (listb.findIndex((f) => f.id == item.id) == -1) {
                                                                listb.push(item);
                                                            }
                                                        });
                                                        console.log(listb);
                                                        let listOfStaff = [];
                                                        listb.forEach((f) => {
                                                            listOfStaff.push({
                                                                value: f.id,
                                                                label: f.user.tag,
                                                            });
                                                        });```
wheat mesa
#

it concerns me how indented that is

surreal sage
quartz kindle
#

so you dont really need to do it yourself

lament rock
#

I meant in scopes where they can get run multiple times

surreal sage
quartz kindle
quartz kindle
boreal iron
#

_Tim already warming up his benchmarks _

lament rock
# quartz kindle can you give an example?
this.connection.on(Constants.STRINGS.STATE_CHANGE, async (_oldState, newState) => {
    if (newState.status === Discord.VoiceConnectionStatus.Disconnected) {
        try {
            await Promise.race([
                waitForResourceToEnterState(this.connection, Discord.VoiceConnectionStatus.Signalling, 5000),
                waitForResourceToEnterState(this.connection, Discord.VoiceConnectionStatus.Connecting, 5000)
            ]);
        } catch {
            if (newState.reason === Discord.VoiceConnectionDisconnectReason.WebSocketClose) parentPort.postMessage({ op: Constants.workerOPCodes.MESSAGE, data: { op: Constants.STRINGS.EVENT, type: Constants.STRINGS.WEBSOCKET_CLOSE_EVENT, guildId: this.guildID, code: newState.closeCode, reason: codeReasons[newState.closeCode], byRemote: true }, clientID: this.clientID });
        }
    } else if (newState.status === Discord.VoiceConnectionStatus.Destroyed && !this.actions.destroyed) parentPort.postMessage({ op: Constants.workerOPCodes.MESSAGE, data: { op: Constants.STRINGS.EVENT, type: Constants.STRINGS.WEBSOCKET_CLOSE_EVENT, guildId: this.guildID, code: 4000, reason: "IDK what happened. All I know is that the connection was destroyed prematurely", byRemote: true }, clientID: this.clientID });
    else if (newState.status === Discord.VoiceConnectionStatus.Connecting || newState.status === Discord.VoiceConnectionStatus.Signalling) {
        try {
            await waitForResourceToEnterState(this.connection, Discord.VoiceConnectionStatus.Ready, Constants.VoiceConnectionConnectThresholdMS);
        } catch {
            parentPort.postMessage({ op: Constants.workerOPCodes.MESSAGE, data: { op: Constants.STRINGS.EVENT, type: Constants.STRINGS.WEBSOCKET_CLOSE_EVENT, guildId: this.guildID, code: 4000, reason: `Couldn't connect in time (${Constants.VoiceConnectionConnectThresholdMS}ms)`, byRemote: false }, clientID: this.clientID });
        }
    }
});
quartz kindle
#

like this js const str = "abc"; function a() { return str; } instead of ```js
function a() {
return "abc"
}

lament rock
#

Something to that effect

quartz kindle
#

afaik all strings are put somewhere and replaced by references by the jit compiler

lament rock
#

That would be smart, but I wonder how it would determine the difference between static strings and concatenated strings

quartz kindle
#

concatenated strings are different, they are stored in a rope-like object

surreal sage
#

lmfao

civic scroll
#

"lmfao"

quartz kindle
#

generally it should make no difference to have hardcoded strings or to have strings taken from objects, if anything i believe hardcoded strings would be faster, but the jit compiler will replace and inline them anyway so its the same thing in the end

#

the only reason people put all strings in a constants object is to make it easy to rewrite texts, make translations, etc

lament rock
#

Yeah I'm just doing it to prevent reallocation

#

I think what I'm doing has its benefits for when JIT hasn't kicked in

#

also moving regular expressions to root scopes since those have nasty compile times

quartz kindle
#

yeah, i believe node has a v8 flag to run jitless which can be used to test

#

agreed with regex

surreal sage
wheat mesa
#

Can you show your main file where your mod starts from

#

Like the Mod.java file or something like that

earnest phoenix
#

there thunder

wheat mesa
#

that's not a solution to his issue :p

earnest phoenix
#

u problem tbh

wheat mesa
#

Do something like this @covert gale ```java
@Mod(modid = "yourmodidhere", name = "Create Casings", version = "0.0.1")
public class CreateCasings {
// ...
}

quartz kindle
#

better bullied than billed :^)

wheat mesa
#

Man that's a rare occurrence, seeing :: in java

#

even when using the stream api I don't see people using it as much as they should

quartz kindle
#

nice mention

wheat mesa
#

That shouldn't be the case

#

It works just fine for me

#

what version of forge are you using

#

For what mc version that is

#

The minecraft version is 1.18.2 though yeah?

#

Go into your mods.toml file in src/main/resources/META-INF

#

And change the version ="${version}" to version = "0.0.1"

#

C:

#

Or you could do version = "${mod_version}"

#

this name needs to match what you're putting in mods.toml

#

idk then, I hate forge

wheat mesa
#

forge/gradle is very finicky with everything

#

if that doesn't work then idk

ancient nova
#

dude does anyone know what the hell happened, yesterday was fine I finished working on my game and closed my PC ever since morning I can't get my PC to boot. It always goes straight into a black screen with just the cursor after loading. Even doesn't want to go into recovery mode it just goes black for no apparent reason???

lyric mountain
#

always have an ubuntu stick

wheat mesa
#

his code caught up to him

lyric mountain
#

lmao but really, if it goes into a black screen all I can think of is the ol' trusty eraser trick

#

remove the ram sticks -> use a generic school eraser on the golden parts of the ram -> return the sticks

ancient nova
#

I managed to open something that looks like commandline by mashing random keys but I can't type in it xd

lyric mountain
#

u can also remove the power cord and wait a few minutes to reset the cmos

#

oh, remove the battery too

ancient nova
#

it goes into black screen after booting up, straight into it, all I can see is my mouse

#

okay what's cmos?

lyric mountain
#

jsut remove the battery and the power cord

#

wait around a minute

ancient nova
#

I did

#

many times

lyric mountain
#

then use the eraser trick

#

if that fails, you'll probably need an ubuntu stick

ancient nova
#

I don't think that's my issue... I can't even boot into recovery mode

lyric mountain
#

that's the battery btw

lyric mountain
#

dont ask me why, it just works

#

we've been doing that for ages already, and most tech people ik also recommend doing that

ancient nova
#

well anyways if that doesn't work then what do I do?

#

I can't do literally nothing

#

oof wot

#

I was mashing keys again and now my PC started rebooting itself

rustic nova
quartz kindle
#

yes

ancient nova
#

nvm it's doing the "preparing automatic repair" thing again

rustic nova
#

whats happening

ancient nova
#

🙂

rustic nova
#

am smort

#

whats issue

quartz kindle
#

pc dead

#

garbage

ancient nova
#

my fucking PC stopped working randomly for no reason

wheat mesa
#

probably because you fucked with your regedit's gpu values :^)

ancient nova
#

yeah but that's not the issue

wheat mesa
#

You said you can see your cursor and nothing else, right?

ancient nova
#

it worked fine, for months it's definitely not the issue

wheat mesa
#

Sounds GPU related to me

ancient nova
#

I can see the logo and the booting animation when I first power it on

wheat mesa
#

Just because it worked before doesn't mean it works forever

rustic nova
#

overheat?

quartz kindle
#

nah that aint gpu

rustic nova
#

dead power supply?

ancient nova
#

then it just goes black before anything else

rustic nova
#

what did you do before that

ancient nova
#

can't even touch recovery mode

wheat mesa
#

But the most likely thing is probably just some sort of OS corruption or slight hardware issue

ancient nova
#

I don't have an ubuntu stick

rustic nova
#

but it still boots right?

#

just not into the os?

wheat mesa
#

inb4 his SSD is fucking dead, had that happen to me

rustic nova
#

thats what I'm thinking if it still boots but not into os

wheat mesa
#

Booted into the bios and it said "0.0gb/0.0gb" free

#

SSD was fried

rustic nova
#

nice space

wheat mesa
#

Had to buy a new one

ancient nova
# rustic nova but it still boots right?

okay let me write down what happens in steps

  1. I press the power button
  2. PC logo shows and it does the circle animation thing
  3. Either boots straight to black with mouse or does "preparing recovery mode" then goes to black with mouse
rustic nova
#

dead/corrupted harddrive

wheat mesa
#

sounds like an OS corruption issue

rustic nova
#

does it show the windows 10 rotating logo?

#

aka that circle with the dots?

ancient nova
#

it does

rustic nova
#

then ded os

wheat mesa
#

Yeah definitely OS

ancient nova
#

bruh

rustic nova
#

ye dead os

#

reinstall, perhaps hook up the drive to another pc

#

to recover

#

does it not jump into recovery either?

ancient nova
#

no it shows that but my pcs manufacturer logo it never goes into this screen

rustic nova
wheat mesa
#

Get a USB stick, go on to another windows pc and download the boot media tool, install a windows 10 iso on the USB stick, plug it into your PC, go into bios and set it as your boot device

ancient nova
rustic nova
#

thats normal, manufacturers can modify it

ancient nova
#

yes either "loading" or "preparing recovery mode"

rustic nova
#

give it a bit of time on that screen

#

give it like 10 minutes

ancient nova
#

I waited an hour

rustic nova
#

oop

#

no thats not it

ancient nova
#

nope

lyric mountain
#

ah wait, I just remembered

rustic nova
#

dead os

#

surely

wheat mesa
#

If you want to get to the bios, boot up the PC while spamming the delete key

lyric mountain
#

bae is the one who used regedit to change how much ram the computer sees

ancient nova
#

vram*

wheat mesa
#

on most manufacturers it works

ancient nova
#

and it worked for months

#

fine

wheat mesa
#

doesn't mean it works forever dude

solemn latch
wheat mesa
#

you shouldn't do that

solemn latch
#

And only work if you hit them once

ancient nova
#

okay but it randomly decided to die that just doesn't happen

solemn latch
#

But that's uncommon

wheat mesa
#

manually touching regedit values without truly knowing what you're doing is a terrible idea

ancient nova
#

worked fine yesterday

#

I can record it?

wheat mesa
ancient nova
wheat mesa
#

"it worked once so it must work forever right!"

lyric mountain
#

ubuntu stick maybe?

#

meh

ancient nova
#

what is winpeshl.exe?

lyric mountain
#

idk then, maybe u can boot it on console mode?

ancient nova
#

i massed my keys again I got the right click menu pop up and pressed details

pale vessel
#

You can't boot to safe mode?

ancient nova
#

this popped up

ancient nova
pale vessel
#

Just backup your data from a portable linux instance and reinstall windows

lyric mountain
#

they dont have an ubuntu stick

wheat mesa
#

if it doesn't boot then it's most likely irreparably damaged tbh, windows rarely is able to fix itself in my experience

pale vessel
#

sfc /scannow is what they all say

#

Totally works

ancient nova
#

I can't open cmd

wheat mesa
#

fuck you is what my drive always says back :^)

earnest phoenix
#

Windows' scan functionality be like

print("Scanning for issues...")
sleep(60)
print("No issues found.")
wheat mesa
#

true

earnest phoenix
# ancient nova I can't open cmd

Let's get this straight from the ground up, first of all what Windows edition are you running? Some have different ways of booting into the Command Prompt for such scenarios

#

A Windows edition can be Windows 10 or Windows 11 for example

ancient nova
ancient nova
#

I don't remember

ancient nova
earnest phoenix
ancient nova
#

it showed that initial "Please wait" text but booted straight into black

earnest phoenix
#

If those don't work then there's an alternative way, you can power off the PC 3 times right when the Windows logo appears to boot into the recovery environment on the 4th try

ancient nova
#

yeah I know it does that "preparing automatic repair" as u see above but it boots into black yet again

#

bruh and I finally started making progress on the game

#

and all my fucking other games which I didn't finish

#

😁

earnest phoenix
#

That's not the recovery environment status, Windows itself is trying to automatically repair itself, not boot into the recovery environment

ancient nova
#

well then it never tried ig, I restarted it like 20 times at this point

#

all I can turn on is winpeshl.exe when in the black screen

#

it looks like cmd but I can't type anything in it

earnest phoenix
#

That shouldn't even appear in the first place

#

You've probably fucked up too much

#

If the aforementioned solutions don't work at all you have no choice but to burn a Windows 10 ISO to a USB drive and boot into the recovery environment from there using the options it provides

#

It runs entirely on the USB drive so your regedits won't affect it

ancient nova
#

bruh I didn't even do anything

#

it worked fine yesteday

earnest phoenix
#

Doesn't mean it'll work as always

wheat mesa
#

OSs are very complex

lyric mountain
#

if u have a spare computer, install some linux distro into it and boot through it

ancient nova
#

I don't

earnest phoenix
#

@ancient nova let me ask you something, why did you even edit the registry?

lyric mountain
#

to run gta v

ancient nova
#

just yesterday everything was fine

#

so I don't get it

solemn latch
#

I've had issues with a registry edit I did once every Tuesday for some reason

ancient nova
#

so it just randomly decided to say " fuck it I'm never gonna boot up ever again" xd

solemn latch
#

Only had issues on Tuesdays

ancient nova
#

so windows fucking broke itself is that what you are saying

lyric mountain
ancient nova
#

I'll sue them if I have to idgaf imagine my PC was some important government property

#

it's still important

#

I had my shit on there

lyric mountain
#

or buy a cd whatever (if they still sell it)

ancient nova
#

bro that's not the thing that caused this and you know it

#

worked for literal months or even years at this point

lyric mountain
#

if u can get to the files, it's possible to retrieve the system logs

#

to see the real cause

#

but it's most likely something was written where it shouldn't which caused the deadlock

ancient nova
#

yesterday after I finished working on my game I compiled it, saved into a rar and sent to myself on Discord, then I just turned it off
ever since morning this happens when I turn it on

lyric mountain
#

that's not what I mean

#

the computer does stuff under the hood frequently, like regular checks, validations, dumps, etc

ancient nova
#

so if windows killed itself I'm eligable for compensation idgaf I lost something I worked hard on

lyric mountain
#

the change to segmentation size might have affected where the computer saved something, which might have corrupted some files from having trailing/leading bytes overwritten

earnest phoenix
# ancient nova I swear to god this has nothing to do with the registry, I only edited that one ...

The segment size should not be fucked with, if some games are able to go beyond the specified limit and write something dedicated to the non-existent segments (which you've specified higher than the existing ones), it can break some parts of the OS

It can also be that you've also accidentally edited or deleted a registry value related to the boot process

If that's not the case then Windows also saves user session states every time you power off or restart, which if corrupted can cause issues, these states are either written to the disk or the boot partition

#

This issue can also occur if you're using an unstable build of Windows, which can be the Windows Insider builds

ancient nova
#

well I'm not

lyric mountain
#

unity and UE have highly integrated versioning tools, there's really no reason not to use it

#

you can still save your data, if you find someone to borrow a linux pendrive

earnest phoenix
lyric mountain
#

cringe image

knotty quartz
#

Hi! I found an error:

This is only temporary while I begin looking into databases

        const { premium }  = require('./premium.json')
        if (!premium.includes(interaction.user.id)) {
        return interaction.reply('You are not a premium member.')
    }```

This doesn't seem to work ^^
#

Any databases suggestions will work too.

ancient nova
#

even my hdmi cable

#

and plug it back in like 20 minutes

drifting cairn
knotty quartz
drifting cairn
knotty quartz
lyric mountain
#

btw, it doesn't work cuz u used { premium }

#

I don't think u can do decomposing in json imports

knotty quartz
lyric mountain
#

premium

knotty quartz
#

Oh so it only works for checking

lyric mountain
#

btw I recommend some sql database if u plan on having relationships between data

earnest phoenix
knotty quartz
knotty quartz
earnest phoenix
knotty quartz
#

It supposed to send it if I'm not on the list.

earnest phoenix
#

Have you tried logging the premium array and see if it's what you expect?

knotty quartz
#

Would you recommend another method of doing this?

earnest phoenix
#

That probably happens because you may be importing it once, which won't change the array if you modify it somewhere else, you should try logging the values you're trying to check

ancient nova
#

why not just do
[id, id2, id3] lmao

earnest phoenix
#

And use a database

ancient nova
#

what's the json for

knotty quartz
ancient nova
#

@earnest phoenix if I take out my HDD how can I take the data out of it? do I out it in another PC?

knotty quartz
earnest phoenix
knotty quartz
ancient nova
earnest phoenix
ancient nova
#

to check the contents

ancient nova
knotty quartz
ancient nova
#

I will wait like an entire day

#

before trying to boot again

knotty quartz
ancient nova
#

and now doesn't want to boot up no matter what

earnest phoenix
knotty quartz
drifting cairn
#

just host your own cluster

knotty quartz
#

oh alright.

knotty quartz
earnest phoenix
#

Man people are so terrible at making these images

knotty quartz
lyric mountain
#

and what a gross crop

knotty quartz
earnest phoenix
#

Even my grandma can do better than that

quartz kindle
#

lmao

knotty quartz
knotty quartz
quartz kindle
#

as someone who forged documents with photoshop, ew

knotty quartz
#

Omg a good picture?

#

I need to full on examine this.

earnest phoenix
#

That's still pretty bad AndroidSkull

sudden geyser
#

Open your internal computer and see if there's a skull on the cpu

knotty quartz
knotty quartz
#

The zoom in of it sucks 😭

earnest phoenix
knotty quartz
#

What apps do you lot use to stop ads on websites?

earnest phoenix
knotty quartz
earnest phoenix
knotty quartz
#

Are you getting tired of writing essayysss

With Grammarly you will never have to worryyyy about that againnn 👿

sudden geyser
#

We need access to cookies, either disable these 10 toggles, accept them all, or read this bible on why we need it

earnest phoenix
knotty quartz
knotty quartz
sudden geyser
#

The best cookie prompt is the one that doesn't exist

knotty quartz
earnest phoenix
knotty quartz
#

Also gn people

#

I got to sleep so i can actually deal with the 6 cruel hours of school tommorrow

lyric mountain
ancient nova
#

@earnest phoenix @lyric mountain YOO

#

I LEFT MY PC ON THAT BLACK SCREEN AND FOR THE FIRST TIME IT SAYS "DIAGNOSING UR PC"

#

DO YOU THINK IT WILL TURN ON RECOVERY MODE OR FIX ITSELF?

lyric mountain
#

who knows, let it finish

wheat mesa
#

doubt

#

your windows is fucked

lyric mountain
#

depending on what windows checks, it might revert the changed regedit values

ancient nova
#

idk what it's doing but it's the first time it's done that so far so I'm hopeful

wheat mesa
#

inb4 you lost all your data on your hard drive and your OS is reinstalling itself

sharp geyser
#

what you do this time

wheat mesa
#

his pc won't boot

sharp geyser
#

what he do

wheat mesa
#

unknown reason

#

probably related to the regedit thing

sharp geyser
#

people need to stop fucking with regedit

lyric mountain
ancient nova
#

😔

#

it worked, for months and now decided to break randomly 💀

sharp geyser
#

That is by far the dumbest idea

ancient nova
#

yoooo

#

it's saying "repairing disk errors"

#

😤

sharp geyser
#

then it will say "Reinstalling Windows" mmLol

lyric mountain
#

do what u do, DON'T SHUT DOWN THE PC NOW

ancient nova
#

I hope it doesn't do that 🗿

ancient nova
sharp geyser
#

welllll

ancient nova
#

unless the power decides to cut 🗿

sharp geyser
#

Shutting down while it does that isn't as dumb as fucking with regedit while not being experienced

ancient nova
#

I read about it before changing the regedit

sharp geyser
ancient nova
#

changed it to the recommended value for the amount of ram I got

sharp geyser
#

yes and that makes you an expert

ancient nova
#

anddd it said it wasn't anything dangerous

lyric mountain
#

anything that starts with seg is dangerous

earnest phoenix
#

Except for the segway to today's sponsor, NordVPN

sharp geyser
#

NordVPN sucks

#

ExpressVPN better

ancient nova
#

make your own VPN 😎

quartz kindle
#

mudfish best

earnest phoenix
#

Nah, tried ExpressVPN; works way slower than NordVPN, and it isn't as customizable

#

Though one thing I hate about NordVPN is it's buggy CLI for Linux, it works most of the time but sometimes it just goes haywire

ancient nova
#

what should I do if it manages to fix itself?

#

anything specific?

quartz kindle
#

i put 5 bucks in mudfish like 8 years ago and i still have half of it unspent

#

they charge per gb not per month

earnest phoenix
earnest phoenix
ancient nova
#

once it boots into windows am I safe to power it off?

lyric mountain
#

when it finishes everything, yes

ancient nova
#

great

#

btw @earnest phoenix have you played the concept demo I sent to u in dms?

#

since my PC is probably going to work again I'll quickly make a git backup

earnest phoenix
#

I haven't played it yet because I was switching back from Fedora to Ubuntu (because Fedora ships bleeding-edge software that are too unstable to use), so yeah

#

I'll play-test it tomorrow

solemn latch
#

Worst vpn I've ever gotten and I bought two years of it

ancient nova
#

btw the graphic bugs that wine experienced should be fixed

#

it was because too many light sources were being redered at the same time

#

the LOD system I added turns off any light sources that you can't see

#

increased the performance also

lyric mountain
#

that's not lod, that's occlusion culling

earnest phoenix
#

I'll be play-testing it with Steam Proton, not just Wine alone

ancient nova
#

since it automatically toggles off any gameobjects that are far away from you

earnest phoenix
#

Because the latest stable release of Wine (which is v7) isn't available for Ubuntu 22.04 yet

ancient nova
#

which works with scriptables, models and even light or sound

ancient nova
#

also increased the graphics a lot, since the performance improvement was so high I also added realtime shadows

lament rock
#

imagine realtime lightmap baking if the whole scene was procedural

lyric mountain
#

just a thing, your walls doesn't make much sense

#

like, make them connect to each other

#

like an office

ancient nova
#

nah the backrooms walls are actually supposed to be like that

lyric mountain
#

you sure?

ancient nova
#

yeah, google some pictures

lyric mountain
#

because iirc they're office-like rooms

earnest phoenix
#

Well not all of them are supposed to be separate

ancient nova
earnest phoenix
#

A decent amount of them are also connected

ancient nova
#

I just threw together a quick example scene

#

I will add more biomes and structures

#

btw I also added a very cool movement effect with cinemachine, it feels really realistic

earnest phoenix
#

Hmm, I'm just gonna test it now give me a few minutes

ancient nova
#

try taking a few screenshots also if possible

ancient nova
#

someones picture from google

#

they also went for that randomly placed aspect

earnest phoenix
ancient nova
#

you executed the backrooms the travelers guide exe?

earnest phoenix
#

Yes

ancient nova
#

ok.. I'm not sure why

#

what does it do?

#

does it just not open at all?

lyric mountain
#

u should store logs for the game btw

#

like for bots

ancient nova
#

won't that be kinda bad?

#

like I'm logging who's playing my game lol

#

unity should throw and error code if somethings wrong so it's up to the people playing to report it ig

earnest phoenix
#

That's also with the latest stable release of Steam Proton

lyric mountain
#

when I say "log" i mean like literal logfiles

#

like you'd have on a bot

ancient nova
ancient nova
earnest phoenix
#

I'm gonna try it with just plain Wine and see how it goes, Steam Proton sometimes has issues with non-Steam games

ancient nova
#

yall my PC booted 😭😭😭

lyric mountain
#

first thing: revert the regedit

#

second: make backups

#

third: make a restoration point

earnest phoenix
#

Man fix your game AndroidSkull

spark flint
#

ask the cookie monster

ancient nova
# ancient nova yall my PC booted 😭😭😭

ok what it's beeb like 20 minutes, I put in my password and it's sitting on the desktop, but the desktop is black and there is no icons on the task bar besides the windows logo and the search key 😔