#⌨coders-cave

1 messages · Page 60 of 1

wet girder
#

my mic seems to have turned unusable tho

barren shale
#

roblox xzibit

wet girder
#

well I promised to make the script

wet girder
#

seems that Roblox devs are shit at making readable code

#

I was trying to steal their code

#

but all code I can find so terrible

barren shale
#

its mostly kids

#

so

#

its expected

copper peak
#

Hello

barren shale
#

yo mama

night thicket
#

joe*

barren shale
night thicket
#

Ur mom so fat that it takes 3 panoramic photos to take only one side of her

barren shale
#

u mom is so fat when she goes to mcdonalds they call wendys for backup

night thicket
#

ur mom so stupid that she sees John Cena

wet girder
#

just don't insult

barren shale
#

jupe

#

ur mum is so fat

#

that you became a discord mod

main brook
#

Hamza

#

your mom is so fat

#

you have to insult other people mom to feel better about yourself because of your mom

hoary hound
#

your mom so fat

#

I forgor 💀

main brook
#

My mom is so cautious about covid

barren shale
#

my mama is so fat

#

indeed

main brook
#

she even hired anti covid

barren shale
#

but your mama is even more fat

main brook
#

hamza

barren shale
#

yes daddy

main brook
#

i already know my mom is fat

barren shale
#

:o

main brook
wet girder
main brook
#

1% of your mom fat takes up 1PetaByte of storage

hasty bane
#

so i think I might've found out a way to make better games in discord

#

unless someone found that out before i did

wet girder
#

How?

hasty bane
#

you know how discord bots are just text

#

and images with stats and whatever like idlerpg

wet girder
#

ye

hasty bane
#

so how about you take an array/list/whatever you're using to store data

#

attach the values to a "tile"

#

which could be terrain, an item or anything you want to add

#

and then have the bot make a X by Y image by merging many of those tiles together

#

creating a 2d tiled map

wet girder
#

It'd be very slow to update the map for movement if you mean that

hasty bane
#

you think?

wet girder
#

and people do that on some places

hasty bane
#

can you gimme a few links to bots that do that

#

i wanna look deeper into how they do it

hasty bane
#

the map doesn't have to be big

#

break it up into chunks if you're making a global map

wet girder
#

I don't really know any bots but I used similar technique in AMP clans but scrapped the idea for the time being because it was too big

hasty bane
#

hmm

#

well

#

i think the breaking up stuff into chunks should solve the issue or at least part of it

main brook
#

dynamic games in discord is bad

#

ratelimit exist

hasty bane
#

ratelimit won't affect it

main brook
#

if its changing often

#

yes

hasty bane
#

all the bot needs to do is send the image back and take the input from the user

main brook
#

otherwise no

#

ah

hasty bane
#

all the processing is done on my side

main brook
#

well that's possible

#

But

hasty bane
#

ye

main brook
#

that'll put more strain

#

to your memory

#

ive been using an imaging library

#

takes alot of memory

hasty bane
#

what was the image size you were working with

wet girder
#

any image size is heavy

hasty bane
#

hmm

#

well

main brook
hasty bane
#

I'm gonna do a performance test tomorrow

main brook
#

by small i mean 1024

hasty bane
#

1024px?

main brook
#

yes

#

1024x1024

hasty bane
#

wew I'm talking about things like 16x16 / 32x32

main brook
#

ah

hasty bane
#

well that's per one tile

main brook
#

holy nuts

hasty bane
#

nothing stops me from reducing it down to 8x8 when i have to

#

like if i have a 200x200 map or something like that

main brook
#

are you gonna use an async library for the bot

hasty bane
#

not sure atm about what I'm gonna do to implement it tbh

wet girder
#

how do you see the image in discord without scaling it up which takes a bit of recourses too

hasty bane
#

i think discord only messes with images on mobile

#

but that's just what i read

#

which makes small images look reeeally bad

main brook
#

not really

#

an image issue was fixed

#

for 1x1 images

#

on mobile

hasty bane
#

i tried a 160x160

main brook
#

image on embed are pretty similar for both pc and mobile

hasty bane
#

it was really blurry

hasty bane
main brook
#

depends

hasty bane
#

mmmm

#

this leads to another thing

main brook
#

it shows the original resolution

wet girder
#

embeds are shit to work with

hasty bane
#

why so

main brook
#

but

#

it also affects size

wet girder
#

images need to be uploaded to web so they can be used in embeds

hasty bane
#

ahhhh

#

crap

main brook
#

or no

wet girder
#

because embeds use links not images

main brook
#

you can use

#

the

#

attachment://

#

on the embed urls

wet girder
#

oh

main brook
#

so if you have a file named file1.png

wet girder
#

good to know that few months after it would've been useful

main brook
#

attachment://file1.png

#

plus the file

hasty bane
#

i really need the performance test to see how many 8x8, 16x16 and 128x128 maps my laptop can put out

main brook
#

it wont show the file only the embed

main brook
#

use small one

#

like a raspberry pi

#

or aws

hasty bane
#

don't have access to that yet

main brook
#

okie then

hasty bane
#

not enough moneyz

#

but that's not really the issue

main brook
#

might be good to put a limit

hasty bane
#

fair enough

main brook
#

i dont

#

i like to torture my devices

#

last time i forked a shell thousands of times

hasty bane
#

im concerned that write speed might affect the speed

main brook
#

and crashed my phone

main brook
#

so dont worry

#

as long as you don't store in on disk

#

its good

hasty bane
#

yeah but i need to save the files to pc to upload

main brook
hasty bane
#

lmao

main brook
#

no

#

its sending bytes

hasty bane
#

OH

main brook
#

you can save the image bytes

#

and send it

hasty bane
main brook
hasty bane
#

nice

main brook
#

you can read the dev docs

hasty bane
#

docs are for noobs, real chads use trial and error

main brook
#

dimwits

hasty bane
#

also

#

something I couldn't really find

#

are buttons out yet

main brook
#

you mean

#

rich presence with buttons?

wet girder
#

reactions are used as buttons peepoShrug

#

they're just super slow method

hasty bane
#

yeah but im pretty sure discord added buttons

wet girder
#

and annoying to write

hasty bane
#

actual buttons with text

wet girder
#

oh yeah but they're as slow

main brook
#

ah that button

hasty bane
#

yeah

main brook
#

nope

hasty bane
#

well

main brook
#

i dont think its added

#

you can check on

wet girder
#

it is

main brook
#

dapi

wet girder
main brook
#

woah

#

let me sss

hasty bane
#

they aren't rate limited as badly... right

#

please

main brook
#

hopefully not

#

reaction are overrated

hasty bane
#

pain

main brook
#

and i mean it literally

#

over rate limited

hasty bane
#

buttons will be cool

#

i hope you can stack like 4 billion buttons on a message

main brook
#

no

wet girder
#

definetly not

hasty bane
#

well at least 10

#

lmao

#

just kidding, I don't think I'll need that many buttons

main brook
#

it looks better

#

since it doesn't require you to bloat your bot server

#

to have every emojis

#

for every options

wet girder
#

look how much 4 buttons take

main brook
hasty bane
#

yeeeah

#

not good

#

I'll use them for critical things like quit, next turn or whatever

#

speaking of turns

main brook
#

ill use it for text based

hasty bane
#

how about actual AI

main brook
#

wha-

hasty bane
#

hell yeah

#

AI

main brook
#

what do you mean-

hasty bane
#

since I'll have a map

#

why not make AI

main brook
#

ah

wet girder
#

I started scripting on some random roblox game today for some stupid reason, which is very different to this

hasty bane
#

roguelikes like Dwarf Fortress are turn based anyway

hasty bane
#

they make entities take a turn when you move etc

main brook
#

enemy AI

hasty bane
#

mhm

wet girder
main brook
#

that sounds hard

wet girder
hasty bane
#

not if it's simple AI

main brook
#

i can't even make a good pathfinder

main brook
hasty bane
main brook
hasty bane
#

math works

main brook
main brook
#

its not smooth

main brook
hasty bane
#

don't need smooth if its turn based kekw

main brook
#

nepxd true

#

you could make it have atleast base knowledge

#

about the system

hasty bane
#

the whole turn based thing is great

#

literally 0 resource usage if there are no interactions

main brook
#

ah yes

#

lazy loading

#

good choice young person PI_KannaCool

#

lazy loading is always good

#

unless you're synchronous

hasty bane
#

we do little loading

main brook
hasty bane
#

this is still pretty much all in my mind atm

main brook
#

also are you making discord bot from no library?

hasty bane
main brook
#

ah

hasty bane
#

pandas
opencv

#

why write to json when have csv

main brook
#

because

#

json is more organized?

#

but also repetitive

#

also dynamic

hasty bane
#

nah who needs that

main brook
#

i do-

#

but also i moved to toml

hasty bane
#

it's kinda slow tho

main brook
#

since i use json as configuration

#

i was*

hoary hound
#

why use csv

main brook
#

so yes its slow

#

its dynamic too

hoary hound
#

when you can make your mysql server think

hasty bane
#

cba making mysql server

#

checkmate sql shill

main brook
hasty bane
#

but really though csv is pretty pog

hoary hound
#

because I only studied how to make mysql server oink

hasty bane
#

easy to use too

main brook
#

not me the person who made like 100 database in the span of 1 year

hasty bane
#

just don't forget to do the sanitizing

main brook
main brook
hoary hound
#

aren't graphs like

#

complicated

main brook
#

not really

#

its

#

like C

#

when you point at other variables

hasty bane
#

i would love to have a lot of GRAPHS

#

after collecting usage statistics

main brook
#

let me just

hasty bane
#

and just feeding it into the graph-i-nator
and balancing the bot based off the data

main brook
#
int a = 1;
int b = 2;
int* c = a;
hasty bane
#

nah

main brook
#

all i do is make bots for fun

#

even random things

#

like the one that shows how gay you are

hasty bane
#

im making this bot because im bored

main brook
hoary hound
#

what does the bot do?

hasty bane
#

game bot

#

zombie apocalypse game bot

hoary hound
#

cool

hasty bane
#

you get to run around, loot and kill zombies

main brook
#

i think its better to make a webgame

#

with discord data synchronization

#

rather than a game

#

in discord

hasty bane
#

nah

main brook
#

trust me

hasty bane
#

that's the whole point

main brook
hasty bane
#

making a game in discord

main brook
#

i suggest use caching

hasty bane
#

why would i bother making it elsewhere when CD:DA exists

main brook
#

what's

#

CD:DA

hasty bane
#

its C:DDA

#

cataclysm: dark days ahead

#

if you ever heard of project zomboid, cdda is the real man's project zomboid

#

and it's a roguelike

#

good game.

#

so, back to the point

#

discord game

main brook
#

interesting name

hasty bane
#

i feel like it's something worth doing because well
it's a pretty new thing, the 2d map i mean

#

and if it ends up being fast enough to be viable

#

maybe other people will do it too

#

the generic "numbers go up" games have gotten a bit boring

#

and i also haven't seen a zombie apocalypse survival bot before so yeah

main brook
#

sounds heavy

#

doesn't sound suitable for discord

#

although you do you

hasty bane
#

I'll make it suitable for discord

main brook
#

okie then goodluck

#

im gonna watch youtube

#

hopefully i fall asleep

hasty bane
#

alright cya

wet girder
hasty bane
#

maybe

#

im willing to bet it won't be as bad as you're saying

#

after all I'm not gonna be working with huge databases or dozens of images per second

#

i seriously doubt it'll ever blow up like idlerpg or other bots of that nature

hasty bane
#

i had a prototype text based version that had around 700 lines of code and did some basic things that players would usually be doing and it was quite fast save for a few dumb choices i made while coding

wet girder
#

It coild be heavy or could not be heavy true. Depends how much you do it probably

#

in my experience tho opencv is pain to work with and takes lots of recourses

hasty bane
#

I'll test alternatives to it too obv

#

maybe i could write my own script even

#

don't really need any complicated things, just gluing images together

#

either way, performance test

#

coming soon (tomorrow)

hoary hound
#

Copilot I'm coming maximpog

#

They asked me why I would be a good canditate for the copilot, I guess they don't really let everyone inwbsmirk

wet girder
#

noice

wet girder
#

This went as I expected
https://youtu.be/sJC3JsvhM9o

Which language produces the fast apps? How do C# and Java Compare? How are bytecodes and IL different?

Dave takes you on a tour of C# and Java and then drag races them by running them through their paces with a prime number generation benchmark in Episode 03 of the epic Computer Language Drag Racing Series episode 03. This series tests more ...

▶ Play video
barren shale
#

ofc java

#

java is much lower than C#

#

even tho they are both high level

wet girder
#

the speed difference in this particular test is 3% so Java didn't win by a huge margin

full forge
#

alguien sabe lua

#

y tambien de como programar en roblox

bold rover
#

Espanol?

#

Wait no they're probably a Programmer in Roblox

main brook
#

@hasty bane btw you're gonna need crap tons of concurrency

#

if you're gonna handle multiple images every second

hasty bane
#

well ye

hasty bane
#

so i did the performance test

#

not as bad as you thought

#

around 20 4 by 4's per second

main brook
#

also why not

#

make the bot open source

#

so people can host their own

#

and reduce loads on yours

hasty bane
#

maybe

#

feels good to be back in python after 2 months of c#

#

now i need to find a way to quickly load data from csv to objects

main brook
#

you can't with async

#

also

#

make an object

#

use it in a mapping style or object style

#
def parse(fs) -> list[dict[str, str]]:
    columns = fs.read_first_line()
    datas = []
    for values in fs.read_all():
        datas.append(dict(zip(columns, values)))
    return datas
#

or something similar

#

this is just an example Aki_Wink

hasty bane
#

functions it is then

#

oh this is gonna be really hard to optimize

wet girder
#

I made actually working thing in roblox studio poggers

#

I also managed to break my roblox studio it seems like

hoary hound
#

I'm working on a simple quest system

#

working good so far

wet girder
#

nice

#

only reason I might ever change back to windows is because developers don't make anything work on Linux

#

well WorldBox works flawlessly atleast

hasty bane
#

lol

#

I'll probably switch to Linux because why not

#

literally free and literally safer

wet girder
#

Just don't change to POP!_OS

#

it is so buggy

hasty bane
#

gotcha

wet girder
#

I made that mistake because I didn't know how bad some things are

#

now I am too lazy to set up another distro

hasty bane
#

tfw update deleted graphics driver for the lulz

#

and another time i had to restore because it screwed up the update

#

lost some files

wet girder
#

true, POP!_OS still better than win10 but like KDE Neon or Open Suse would've been better options for me

hasty bane
main brook
hasty bane
main brook
#

goodluck

hasty bane
#

no amount of optimizing scares me after trying to make a RTS in unity

main brook
#

what's a

#

RTS

hasty bane
#

real time strategy

#

the genre is dead

main brook
#

ah

hasty bane
#

making the game was really hard

#

i only got to a few UI elements and units working

main brook
#

i feel like i wanna stream code

hasty bane
main brook
hasty bane
#

why so

main brook
hasty bane
#

lmfao

main brook
hasty bane
#

ahh

main brook
#

but frontend is

#

crap

hasty bane
#

well

#

im bad at ui design

main brook
#

me too

hasty bane
#

it was just a couple buttons to spawn things where you needed them

#

pretty much lmao

#

unity is really slow

main brook
#

atleast faster than Java engine

hasty bane
#

im sure it has to do sth with the quality of my code too but

hasty bane
#

it's way too slow for what i was trying to make

main brook
hasty bane
#

i had to make every model myself too sadcat

#

blender is pain

main brook
#

that's why i dont use blender

#

if you never need a model

#

you don't have to handle making them

hasty bane
#

can't argue with that lmao

#

i do need to draw the tiles for my game though

#

gonna be sliiiightly difficult

#

just a little bit

main brook
#

good thing im good at 2d games

main brook
hasty bane
#

yeah, most likely.

#

take a look at this

#

it's bad.

#

but im not quite sure how i can make my tiles better

#

gonna have to look up pixel art tutorials again

bold rover
#

Add depth into them

#

Also why mostly all of them have a brick like texture?like Single directional line

hasty bane
#

it's 100% top down

#

sort of

bold rover
#

Ow

#

Well don't try to be super consitant Be Random with it

hasty bane
#

yeah

#

these tiles aren't final

barren shale
#

im not the only one with shitty drawing skills

#

they are too bright too

#

and make edges when the grass meet the water

hasty bane
#

lmao

#

ye

#

it's bad

#

not planning to have water though

bold rover
#

Just a border?

#

Hm

hasty bane
#

ye

#

when you enter a location you end up on a random spot on any of the edges

#

move outside of the map area and you leave the location

#

don't think I'll be making some sort of free roam mode so it'll be just a way to leave locations

bold rover
#

Ah

#

That's interesting

hasty bane
#

i am kind of getting worried about the performance though

bold rover
#

Hm

#

You can play test it

hasty bane
#

finished the registration command

hasty bane
#

100 4x4 images took 4,26s

#

that's on a potato laptop from 2014

#

It seems that it generates images much faster after that one 4,26s try

#

for some reason

#

time dropped to like 0,45s

bold rover
#

Well,That kinda should be expected,But a 100 4x4 that's seen strange

hasty bane
#

4x4 tiles*

#

the tiles are 16x16

#

each weighs like 150-300 bytes tho

#

a 4 by 4 is 8,5kb

#

and the 10x10 i sent above is actually 2,41kb

#

( the original one )

#

not the upscaled one i sent

bold rover
#

Really strange

#

Your laptop can probably handled that

hasty bane
#

yea

hasty bane
#

and think about what i really want to add

bold rover
hasty bane
#

it's kinda hard to do though lmao

#

you have to make all the elements work well together

bold rover
#

Well it's game development

hasty bane
#

aye

bold rover
#

You'll find The Path I guess

hasty bane
#

glad i kept the 700 line text bot

#

I'll just steal the core stuff from there troll

soft geode
hasty bane
#

i have entered numpy hell

#

help

#

i also need to make a random map generator... aaaaaaaAAAAA

#

though it's not gonna be as bad when i get the numpy stuff working

#

or maybe I don't even need to do the numpy hell stuff

#

wait

#

i actually don't

#

lmao

hasty bane
#

turned out i do

#

so far I've tried shoving numpy arrays into a list (did not work) and appending numpy arrays to eachother (hello 1x49500px image)

barren shale
#

Thats not how it works

#

If the tiles have the same texture

#

It wont be loaded again

hasty bane
#

which is good for not using as much internet

barren shale
#

Wait

#

Ur making a game

#

In

#

Python

#

?

hasty bane
#

yes

barren shale
#

Uhmm

hasty bane
#

do not question it
bad idea

barren shale
#

I don't recommend

hasty bane
#

i know that python is bad for games

barren shale
#

Just iterating over a 500x500 array in python takes like 5 seconds

hasty bane
#

either way i need to find a way to glue images together while adding rng into it

barren shale
#

Make a bigger image

#

Put the two images in

hasty bane
#

mmm

#

or

#

i could do it the hard way

#

and make every single location on my own

#

which is probably gonna make the experience much better

#

but it's a lot of work

#

mmmmm

#

i think I'll go with the designing them myself option

orchid frigate
#

Can someone point out everything that's wrong with this image, I'm asking because Idk if it's even possible

#

Creating games is pog

#

Creating game engines tho...

#

Not so pog

#

It is

#

But creating a game engine is incredibly difficult yet very rewarding

#

But still incredibly difficult

humble cloud
wet girder
#

I don't really like making games, it's quite fun but I don't like the visual psrt of it

hasty bane
#

i don't even want to think about making the visuals

long lintel
#

Lua is a real coding language. If I remember correctly unreal engine uses it sometimes too.

hasty bane
#

lua is

#

weird

long lintel
#

Yeah I don't think I could have learned lua at the beginning of my interest in these things

hasty bane
#

python is a great start

long lintel
#

Yes

#

I started with python

hasty bane
#

same

wet girder
hasty bane
#

but then i tried c# for gamedev because python isn't really a game dev language

#

spent 2 months writing around 500 lines of code

#

now im back to python

long lintel
#

Yeah python is for algorithms nore than games

wet girder
#

functions are written

function test()
    print("something")
end```
#

I don't like it

long lintel
#

I haven't tried C# what's it like

hasty bane
#

why is there a space, why is there end

#

is this pascal

long lintel
hasty bane
wet girder
#

why

long lintel
#

Also the space isn't supposed to be there

hasty bane
#

was a bit difficult after python

#

ngl

wet girder
hasty bane
#

i got used to the lack of curly brackets

long lintel
#

End is because you can easily make multiple functions in the same script

#

You need to determine when one ends and the next begins

wet girder
#

why not just use spacing or curly brackets

long lintel
#

Idk

#

I didn't design it

wet girder
#

it's way too easy to write bad code in lua

long lintel
#

Although curly brackets are used for tables

hasty bane
#

it's also easy to write bad code in c#

long lintel
#

It's easy to write bad code no matter what

hasty bane
#

agreed

wet girder
#

like every publicly available Roblox part has shitty code

wet girder
#

python is way easier to read always

hasty bane
long lintel
#

That's why you don't use public things

wet girder
#

Bad Lua is impossible to read

hasty bane
long lintel
#

And half of them are written like that to hide viruses

hasty bane
#

mm nice

long lintel
hasty bane
#

virus in the roblox equivalent of a unity asset

wet girder
#

not so much in Python

long lintel
#

Yeah true

#

But python is mainly used as a beginner language

hasty bane
#

not true

long lintel
#

It has to be easy to read

wet girder
#

no definitely not, it's for scripting and data stuff

hasty bane
#

python is the go-to language for machine learning

#

and data science

long lintel
#

And also for 6th grade coding

hasty bane
#

yeah that too

long lintel
#

But yes it's used for machine learning as well

hasty bane
#

ml is fascinating

long lintel
#

I just use lua because it's easy to get people to play when they don't need a download link

#

Ml is awesome

hasty bane
#

i use python because it's easy to get people to play when they don't need a download link

bot go brrrrrr

long lintel
#

What

hasty bane
#

yes

main brook
#

what no

#

they're made for small to medium sized application

#

python on the other hand

#

can go much more

main brook
#

my teacher told me

#

coding is useless

hasty bane
#

your teacher is useless

#

anyway

#

i finished the algorithm that converts a manually made 2d array into an opencv image

long lintel
#

I hope you aren't serious

main brook
#

i said

#

"my teacher"

long lintel
#

Ik

hasty bane
#

it's gonna be a lot of manual work

main brook
#

im serious

hasty bane
#

so

main brook
#

they don't teach us shit here

hasty bane
#

wait

#

wait wait wait

#

if i made that

#

why can't i make a random map generator that just fills in the nested lists of the 2d array

main brook
#

you can use noises

#

though

#

oh waut

#

that's world generation

#

silly me

hasty bane
#

wot maybe i just solved my problem

main brook
hasty bane
#

yep

#

no numpy array hell!

main brook
#

why use numpy

hasty bane
#

idk

#

but I don't have to anymore

#

except I'll have to save a lot of .npy files

#

in the thousands

main brook
#

why though

#

is it a static file

#

like as in permanent

#

or does it change frequently

hasty bane
#

it's gonna be the base files for locations

#

so yes, permanent

main brook
#

okie

#

atleast you're not using it as a memory

#

like someone i used to know

hasty bane
#

lmfao

main brook
hasty bane
#

nah

main brook
#

oh btw if you're accessing the file

#

make sure not to use any await

#

before closing it

hasty bane
#

mm

main brook
#

or have a lock

hasty bane
#

ic

#

so uhhh

main brook
#

mhn

hasty bane
#

still not sure how I'm gonna implement the tiles and movement

main brook
#

i have an idea

hasty bane
#

hm?

main brook
#

store the player position

#

from the map

#

so since it's 2d array

#

player.pos = map[5][2]

#

x = 5
y = 2

hasty bane
#

I'll probably store player position as the tile the player is currently on

#

tile id

main brook
#

good idea too

#

but

#

oh nevermind

#

but how do you know

#

the next tile is gonna be

#

without iteration

hasty bane
#

like pathfinding?

main brook
#

no just

#

the next element on the array

hasty bane
#

oh

#

well

#

uhh

#

tile id is gonna be like

#

1,2,3,4...

main brook
#

incremental

#

ah

hasty bane
#

mhm

main brook
#

maybe starts from 0

hasty bane
#

yeah

#

my main focus rn is gonna be adding players to the map

#

as a thing

#

that moves around

main brook
#

entity?

hasty bane
#

yep

hasty bane
#

it is kinda hard ngl

main brook
#

its always hard

#

and it doesn't get easier

#

you only get stronger

#

and smarter

hasty bane
#

I might have to make a separate dataframe for:
floors
entities (player, enemies, impassable objects, interactable)
loot lying on the ground

#

but im not sure

#

it's uhhh

#

a lot of image layers

#

thankfully they generate pretty quickly

main brook
barren shale
hasty bane
#

ye

#

not sure if im gonna give them a separate layer or keep them in the floors one

#

ig floors

main brook
#

you should make a index for the sprites

#

tiles = 0
background = 1
foreground = 2
entity = 3

orchid frigate
#

Haven't coded in so long I finally started thinking like a human being again

hasty bane
#

okay.

#

interesting thing happening rn

#

i have a command that reads an image from folder and sends it into channel

#

i noticed that it sent it twice

#

even though i only have one ctx.send for it

#

so i commented out the ctx.send

#

it still sends one image

#

i commented out the entire command

#

still sends one image

#

there is no other command that does that

#

ok i fixed it

#

apparently it was somehow running in the background

#

even though i stopped it

main brook
#

ive been thinking this

#

"if god exists, would they use multithreading, async, or multiprocessing to handle the universe"

#

but i think it'll be multithreading

#

since quantum tunneling exist

main brook
#

n O

#

iTs DiFFerEnT

#

async + threading

#

threading + process

barren shale
#

You can run async on a single thread

#

It would just be bad

#

Like coroutines

main brook
#

that's why

#

we seperate them

#

on threads

#

and then chunk them

barren shale
#

Nah

main brook
#

in process

barren shale
#

None would use async on one thread

#

Thats bad

#

Unhealthy

main brook
#

since most event loop are O(n)

#

i dont know about libuv though

main brook
barren shale
#

Synchronous asynchronous method

main brook
#

funny though

barren shale
main brook
#

since asynchronous are just sync

#

but halts

barren shale
#

No

main brook
#

yes

barren shale
#

In C# its a different thread

main brook
#

same with Lua

#

its aliased as

#

Thread

#

in Luau its

#

technically green thread

#

but normal Lua

#

no threading implementation

barren shale
#

Sounds slow

main brook
#

yes

#

it is

#

function calls are slow

barren shale
#

Imagine not being able to use 25 threads at the same time

main brook
#

mine is 5*8

#

5 thread per core

#

and i have 8 core

barren shale
#

Wtf is 5 threads per core

main brook
barren shale
#

No

main brook
barren shale
#

I dont have 25 threads

#

I have 4 threads xzibit

#

I have a potato laptop rn

main brook
#

there's a thread that runs in parallel

barren shale
#

2 cores 4 threads

main brook
#

but its sick

#

3gb ram and 8 core

barren shale
#

My laptop which is getting fixed has a core i7-7700HQ

#

I miss it sadcat

main brook
#

enough to fork atleast 100 shell session

barren shale
#

So fast

main brook
#

rich

barren shale
#

6 cores 12 threads

#

Ma ma mia

#

A fan broke and the gpu got fried

main brook
barren shale
#

Im gonna still use it even if the gpu cant be fixed

#

The cpu is just too good

#

You can feel the difference between a U cpu and an HQ one

#

This potato had 2 cores on 2.7 max

main brook
#

U cpu sucks

main brook
#

my mom laptop

barren shale
#

The beast had 6 cores on 3.4

main brook
#

the one im using

main brook
barren shale
#

I want it NAW

fringe vapor
#

cpu gaming

barren shale
#

It actually trains neural networks faster than the 970MX in the potato laptop

#

Ive never tried training anything on the gtx 1050 it has

#

Cuz it got fried before i got into ML

#

I can just dream about the speed

fringe vapor
#

meanwhile im pretty sure my cpu is a massive bottleneck

hasty bane
#

i think i know how to sync dataframe and map

hasty bane
#

why make a .npy

main brook
hasty bane
#

when you can just write the 2d array into a txt

orchid frigate
#

I don't even know what that is but I will tell you to ask google

orchid frigate
hasty bane
main brook
#

text files

#

use Bytes

hasty bane
main brook
#

or use JSON atleast

hasty bane
#

i mean

#

why?

orchid frigate
hasty bane
#

don't really need json here

orchid frigate
#

Not very useful for what I'm doing but still

main brook
#

yes you do

hasty bane
#

w h y

main brook
#

it have EASY PARSING

#

for array

#
[
    [1, 2],
    [3, 4]
]
#

with the json module

hasty bane
#

mmmm

main brook
orchid frigate
#

Wasn't that objects

#

And not arrays

wet girder
#

Completely different topic but if anyone wants to start learning hacking this website is really good
https://picoctf.org/
And because I am staff here and don't want to get attacked
Disclaimer: Never use the material to malicious purposes

main brook
#

.json can store arrays

hasty bane
#

lmao

main brook
#

but js array are array

orchid frigate
#

No I mean wasn't [] for containing objects

main brook
#

no

#

its {}

hasty bane
#

im just gonna use text anyway

orchid frigate
main brook
#

okay have fun suffering

#

( ╹▽╹ )

hasty bane
#

don't think I'll suffer tho

#

like

orchid frigate
hasty bane
#

considering how small the arrays are

#

I don't think it matters

main brook
#

how Small

main brook
#

it matters on scale

hasty bane
#

the one im testing rn is 6 nested lists with 6 elements each

#

and they're all one letter

orchid frigate
#

So char

hasty bane
main brook
#

one number

#

or one

hasty bane
#

not a thing in python though iirc

main brook
#

char

hasty bane
#

one char

main brook
#

as in

#

character

#

or int

hasty bane
#

character

main brook
#

okie

hasty bane
#

in python it's string

main brook
#

mhm

#

i use ' for char

#

" for string

hasty bane
#

i still need to test something

main brook
#

test me daddy

hasty bane
#

CEASE

#

the emperor does not approve

barren shale
#

In python you can switch them up

#

Doesnt matter " or '

hasty bane
#

stuff's getting a bit complicated

#

well not really but

#

it's hard to make this work properly

#

cuz im not quite sure how im gonna edit the 2d array

#

once i figure it out tho everything else is gonna be a piece of cake

orchid frigate
#

Char

#

More like

#

Completely broken in cpp

#

I thought a.char was supposed to be a single character but boom now you can also use them as a string with "

hasty bane
orchid frigate
#

In fact you have to include string if you want to use it in cpp which basically means noone uses them

#

Such a weird language

hasty bane
#

huh

woven snow
#

Hmmmmmm

orchid frigate
#

Hmmmmm

woven snow
#

I win

orchid frigate
#

Let's talk about vectors

#

@woven snow you too

hasty bane
#

lets not

#

:)

orchid frigate
#

When you come to coders cave you talk about coding

orchid frigate
hasty bane
#

:)

orchid frigate
#

Orange is corrupt btw

woven snow
hasty bane
#

@knotty root what do you have to say about this

woven snow
#

I make pixel art

#

Not coding

orchid frigate
woven snow
#

Uhhhh

#

Coding

orchid frigate
#

And apply arguments to it

woven snow
#

Good

hasty bane
#

vectors are bad (very)

orchid frigate
#

No

#

They are amazin

hasty bane
#

the only amazin vector is the vector3 in unitytroll

orchid frigate
#

Better then arrays imo