#⌨coders-cave

1 messages · Page 33 of 1

tulip quest
#

it came preinstalled on my computer, and I think I factory reset immediately and it didn't go

quartz pumice
#

start in safe mode

#

but it will still be futile you haved to reinstall windows to get rid of mcafee

tulip quest
quartz pumice
#

that wont work

#

I dont think that even uninstalled it

#

when I tried 😭

tulip quest
#

the actual inconsistencies between windows installs

#

microsoft out there using random.random() > 0.1 to determine whether you get to change a given setting or nah

quartz pumice
#

lmao

#

true

#

and thats why I use linux strongr

tulip quest
#

or if I'm forced to upgrade to windows 11

quartz pumice
#

yeah

#

I want to put windows on a portable ssd and keep it in a faraday cage

#

I need windows to play some games

tulip quest
#

windows 11 deserves to be ran on a minimum specs computer, isolated from internet connections while being underclocked to 1 hertz and being tricked into thinking it's being run at full speed

quartz pumice
#

lmao

#

fuck yeah

tulip quest
#

actually tho, Microsoft made such a huge deal over windows 10 being the final OS that everyone needs to upgrade to forever and now it's abandoned just like that

quartz pumice
#

I was a toddler when they released windows 10

tulip quest
#

when was it released?

quartz pumice
#

I remember me and my sister would play with cortana for hours on end

quartz pumice
tulip quest
#

oh, so I assume you're slightly younger than I am

#

or same age if you count 4-ish as a toddler

quartz pumice
#

I was born before 2010

#

I was a big toddler lol

tulip quest
#

I was born days before 2010

quartz pumice
#

im older than you then

#

owo

tulip quest
#

yeah, that's fine

quartz pumice
#

wait fuck I gotta act liek im older

tulip quest
#

me and the boys out there acting like adults until we let it slip that we're not

quartz pumice
#

lmao

tulip quest
#

anyway microsoft be like

#

"Upgrade to windows 10, now!"

quartz pumice
#

atleast microsoft isnt the worst

#

company

quartz pumice
tulip quest
#

they've got a big enough share in the market that they can do anything legal without dying for a long time

quartz pumice
#

yeah

#

atleast linux is becoming a competitor now

tulip quest
#

yeah

#

windows 11 is Microsoft advertising to switch to linux, I've heard

quartz pumice
#

I believe it is

tulip quest
#

I don't care if it's decent or not, it's not a good enough improvement from 10 to mandate update

quartz pumice
#

its worse

#

I have windows 11 and linux on my computer

#

going from windows 11 to 10 is not a downgrade but an upgrade

tulip quest
#

even if it was equal with windows 10, there's enough change to be a pain to switch

#

but it's not, so it's pain all the way through

#

good thing my computer has arbitrarily been selected to be ineligible for update

quartz pumice
#

lol

#

yeah those requirements are weird

#

meanwhile I could probably transplant my hard drive into a computer from 2005 and run the exact same linux just fine

tulip quest
#

yep

#

as a programmer, there's literally no reason that you can't just make a compiler for instructions older devices can't run and update their OSes

quartz pumice
#

the only debilitating difference between x86 instructions in 2005 and 2024 is that theres some more registers for higher bit count math

tulip quest
#

even then, addition for bigger numbers can be done with smaller ones

quartz pumice
#

and compilers dont even let you use those

karmic cave
barren shale
#

wsl? or actual linux

#

i dont see any reason to dual boot these dayss just use wsl

#

unless you have low ram i guess

quartz pumice
#

every time im not playing roblox or helldivers 2 im in linux

#

helldivers2 anticheat is so shit you can use wine but for some reason it doesnt work on my computer

karmic cave
#

but, arent there emulators in linux for games?

quartz pumice
#

and helldivers2 just doesnt work on my computer with the emulator (wine)

karmic cave
#

thats sad

#

why do you even use linux? xd

quartz pumice
#

because its the fuckin best

karmic cave
#

for what? :DD

quartz pumice
#

everytihng

#

its so fast

#

and my computer fully supports it too

#

even the shitty proprietary softare that hp makes supports linux

#

lol

karmic cave
#

well, okie

quartz pumice
karmic cave
#

but thats as i can see, ive never used linux

quartz pumice
#

the ammount that wine supports or is made to natively support linux will surprise you

quartz pumice
karmic cave
#

i can just install windows that can everything that i need

#

but, again, ive never used linux

quartz pumice
#

linux comes with all the drivers pre installed

#

dont evne haved to download them

karmic cave
#

just cuz why not

#

but im affraid to install linux on my labtop xd

quartz pumice
#

you haved to wipe your hard drive to create large enough partitions for linux and windows at the same time

quartz pumice
#

unless you have 2 drives idk

quartz pumice
# karmic cave ?

to dual boot you need either 2 hard drives (and have windows and linux on each hard drive) or partitions which you cant safely create without wiping everything first

#

linux will also happily run on a usb

#

though usb's are slow asf lo

karmic cave
quartz pumice
#

ive dual booted for like 6 months after installing linux with a new laptop and havent had a single issue

quartz pumice
#

I sometimes hear though that windows update can sometimes completely wipe the linux drive and replace it with windows stuff if your unlucky

#

linux wont even read other drives/partitions unless you allow it to

#

you can even look at .pdf's and .docx and shit too because of libreoffice which microsoft and whatever owns .pdf kept trying to shut down but cant 🤣 or atleast thats what I was told

#

can still read/modify .pdf and .docx plus more with completely free software as long as you are on linux

#

i fuckin love this shit 😭 I wish more games allowed me to play them on linux

#

and the only problems I have had with linux are literally my doing from fucking up its insides

#

I think I have like 4 login screens installed

#

and whats best is that my computer only has like 8 gigabytes of ram, if I need more I can just turn off literally everything then suddenly I only use a few hundred megabytes of ram and most of that isnt even actually ram its so unused linux just puts it on the disc

karmic cave
#

My cat

quartz pumice
dense peak
quartz pumice
mental turret
#

cam o spam?

#

can i spam

karmic cave
#

Yoo, that looks pretty nice, especially for the first jam.
I think u could add some particles and post processing effects to make it much better, thats pretty easy to do on unity :DD

karmic cave
mental turret
#

oh

knotty root
mental turret
#

ok

knotty root
#

you got baited

mental turret
#

they said that i can because no one will see it

#

but

knotty root
#

xp doesn’t even work like that

mental turret
#

alr

errant trail
#

arch linux with no experience with linux

#

yay or nay

proud pawn
#

lua opinions

errant trail
#

its cool

#

extremely fast compile time and easy syntax

#

no other reason to prefer it over more established programming language tho

wet girder
kind rivet
#

Unless you are willing to learn, i do not suggest arch for no experience user.

spare totem
#

I have a shitty laptop. Any recommendations for a lightweight c# Ide? (Visual Studio is unusable)

#

Which I don't understand, because I can run Worldbox just fine.

wet girder
#

VSCode should be fine but is not an IDE

#

If you want an IDE you should try rider probably

#

It's quite a bit more lightweight than VS

#

But Imo inferior to VS but some people like key prefer it

spare totem
#

All I'm trying to do is make snow stay on mountaintops.

barren shale
#

it uses way more CPU

#

at least that's what i remember not 100% sure

tulip quest
#

When in doubt... you always have a default text editor

#

I use notepad for c# because I cannot be bothered to get something I like

errant trail
quartz pumice
#

visual studio code is a terminal masqueradimg as a text editor

barren shale
#

Just going through the files will be annoying and we are not talking about autocomplete

tulip quest
#

I don't have autocomplete on my notepad

#

Anyway, you can't use it for large projects, but it works in small cases

wet girder
#

it's missing a lot of features absolutely necessary for enterprise projects but works fine for most devs working alone

barren shale
wet girder
#

Yeah that's a better word

ionic swan
#

guys

#

give me a code that adds up to a certain amount

onyx goblet
#

Just use the integer limits lol

ionic swan
#

(I'm in class rn I need this quickly)

feral bramble
#

like if you input 3 it spits out 1+1+1?

#

or is it expecting you to rearrange stuff to get a number

onyx goblet
feral bramble
onyx goblet
#

But 40000+10000 will

feral bramble
#

k

onyx goblet
#

maybe.

#

Idk what he rlly meant

feral bramble
#

welp marv didn't give enough context lol

onyx goblet
#

Like I think

#

short int 32676

#

(That’s c++)

#

Maybe long, long long, long double

#

int

#

float (decimals, loads of it)

onyx goblet
#

What was your problem

errant trail
#

1+1

#

python implementation:

print(1+1)
```without `print()`
```py
1+1
#

no need to thank me

onyx goblet
tulip quest
#

we have no idea

flat valley
#

(This adds up to 2 btw)

barren shale
#

can you tell me what 0.1+0.2 is?

prisma grail
barren shale
wet girder
edgy flare
knotty root
#

Someone should make a modern mod

tulip quest
#

sorry to be bland with you, but this is not the place

#

this is for casual coding discussion

knotty root
#

Mb

tulip quest
#

np 👍

orchid frigate
#

fn update_top_left_ui(fps_query: Query<&mut Text, With<FPSComponent>>, score_query: Query<&mut Text, (With<ScoreTextComponent>, Without<FPSComponent>)>, high_score_query: Query<&mut Text, (With<HighScoreTextComponent>, Without<FPSComponent>, Without<ScoreTextComponent>)>, entity_text_query: Query<&mut Text, (With<EntityCountTextComponent>, Without<FPSComponent>, Without<ScoreTextComponent>, Without<HighScoreTextComponent>)>, current_state_text_query: Query<&mut Text, (With<CurrentStateTextComponent>, Without<FPSComponent>, Without<ScoreTextComponent>, Without<HighScoreTextComponent>, Without<EntityCountTextComponent>)>, timers: Query<&mut ActionTimer, With<FPSDisplayTimerComponent>>, entities: Query<Entity>, high_score: ResMut<HighScore>, time: Res<Time>, score: Res<Score>, current_state: Res<State<GameStates>>)
gotta love bevy

barren shale
#

your fault dont blame bevy

#

apparently using low level languages doesnt make you good at programming smh my head

carmine epoch
#

R.I.P. Marv btw

karmic cave
#

who is Marv

barren shale
#

finally C# will have proper error handling

#

im done with this try catch bullshit

#

even though i built my owwn error handling but its gonna be native which wiwll make it so much better

lapis flint
barren shale
#

errors as values

lapis flint
#

I mean

#

Where i can read about it?

barren shale
#

I made my own error handler

public class Result
{
    public bool IsSuccessful { get; protected init; }
    public Exception Error { get; protected init; } = default!;


    public static Result FromSuccess()
    {
        return new Result()
        {
            IsSuccessful = true,
        };
    }

    public static Result FromError(Exception error)
    {
        return new Result()
        {
            IsSuccessful = false,
            Error = error
        };
    }
    
    public static implicit operator Result(byte value) => FromSuccess();
    public static implicit operator Result(Exception error) => FromError(error);
}

public class Result<T> : Result
{
    public T Value { get; private init; } = default!;
    
    public static Result<T> FromSuccess(T value)
    {
        return new Result<T>()
        {
            IsSuccessful = true,
            Value = value
        };
    }

    public new static Result<T> FromError(Exception error)
    {
        return new Result<T>()
        {
            IsSuccessful = false,
            Error = error
        };
    }
    
    public static implicit operator Result<T>(T value) => FromSuccess(value);
    public static implicit operator Result<T>(Exception error) => FromError(error);
}
wet girder
#

I hate watching videos about stuff like this

barren shale
#

Yeah same but it’s a proposal

#

Couldn’t find any articles

#

Basically C# types will become like typescript types

#

Or similar at least

orchid frigate
#

and it can be made into several functions extremely easily

#

however with my luck Im scared to touch it

#

if it works dont touch it

#

plus I dont supply the arguments myself but the engine does so idc

barren shale
#

well goodluck changing anything inside of it in the future

orchid frigate
#

the future is already here

barren shale
#

better get working then xzibit

quartz pumice
#

lol

tulip quest
#

not actually a bad strategy

quartz pumice
#

woah no way

tulip quest
#

I've been trying to get a (tile-based, because reasons) liquid simulation working nicely for 6 months or more, but I can't get the layers to settle properly wbsuffer. How good is it so far? (I know the performance is horrible, I've got it written in Python at the moment for ease-of-modification but intend to write in in C in the future, as this took 9 hours to render)

#

that message took 5 minutes to upload lol

karmic cave
quartz pumice
#

I would use as screensaver lol

tulip quest
#

I'm making it as a part of a simulation game, this is the only stuff I've made so far because if the liquid is all goofy it just won't be the same

#

exploity liquids ruin metas

tulip quest
#

currently I'm stuck on wanting liquids to settle perfectly level, but once that's out of the way I'm going to add solids, gases and state changing

tulip quest
#

making significant progress towards it being perfectly flat, I'd show it but... it's not pretty.

#

when it's finished I'll make another 9 hour prerender

#

anyway gn

karmic cave
tulip quest
karmic cave
tulip quest
#

I know I wouldn't get it to work first try without "artefacts"

karmic cave
#

Hehe
I can send some fails of it

tulip quest
#

lol you can if you want

#

I don't tend to have "interesting" failures in my projects, sadly

karmic cave
#

Also, as I remember, I had a lot of problems with bugs which was making my ram blow up

tulip quest
#

that first one's density starts to form a sort of normal distribution lol

edgy flare
edgy flare
#

Looks perfectly fine

karmic cave
tulip quest
#

the main problems I've been having with my simulation is liquids flinging themselves around unnecessarily, leaving reserved space where there's nothing and essentially oil stubbornly refusing to float on water

#

not to mention liquid duplication

#

but that's a past problem

edgy flare
#

Tiny particles?

tulip quest
#

most of the problems I've been having are because it's meant to be tile based

edgy flare
#

👽

#

That crazy

tulip quest
#

yeah, I'm trying to turn the simulation into a fully-fledged tile-based simulation so it can run at scale if you have good parallel processing

karmic cave
tulip quest
#

which is why having liquids settle can be a bit of a problem, because they need to pass through each other without destroying each other

karmic cave
#

Sounds pretty interesting
and how much time did you spend for this? :DD

tulip quest
#

the hard part is the designing of processes that actually accomplish what I need

karmic cave
karmic cave
tulip quest
#

the main problem is how hard it is to describe as a mathematical process stuff like how oil floats and water sinks

#

it's not the worst making it not destroy or create, you just make every change in liquids symmetrical

edgy flare
karmic cave
#

:>

tulip quest
#

I don't program them, I program how the tiles change

edgy flare
tulip quest
edgy flare
#

How are you calculating the tile changes currently

tulip quest
#

for example, one of them averages out the tile values with the neighboring tiles (as long as they're the same kind of liquid)

karmic cave
#

As I understood, "tile-based" is when you have a grid, where you change every tile of grid by specified rules that u have to create. Like a "Life game"

Or is it?

edgy flare
tulip quest
tulip quest
#

I think I'll post the current code here in a second, keep in mind it needs pygame

#

(and python, but I'm going to rewrite it in C eventually to make it fast)

karmic cave
tulip quest
#

all the other stuff is python doing calculations

karmic cave
#

It should be pretty easy to replace pygame with something other, isn't it? :0

tulip quest
#

yep, there's no pygame-specific features necessary

#

I just need a window I can write squares with colours to

karmic cave
#

Great :D

tulip quest
#

I'd need to do it myself though... I doubt my code is very readable in its current state

#

I don't tend to comment code seeing as I don't tend to work with other people often

#

sometimes I do it though because it's 100% necessary

#

for that reason, I need to modify it a little bit before posting it so it at least says how to use it lol

#

should be decently ready to run, there's some comments for reading after the function definitions end

karmic cave
#

Is all of your code really only in 1 file?!

tulip quest
#

yeah, right now it is

#

I don't really need to split it up at the moment

karmic cave
#

I just don't use python, but anyways it seems really inconvenient to work with

tulip quest
#

it's mainly good for when you have a programming idea and want to structure it but don't want to worry about complexity of a programming language

tulip quest
# edgy flare

lol you can get around that by just copy-pasting my code into python

#

don't know why I felt the need to say that

karmic cave
tulip quest
#

at least discord isn't biased like microsoft where if you don't pay them money windows will say your apps are risky when you try and run them

#

discord just tells you to be careful about executable files in general

karmic cave
edgy flare
#

Wait

#

What if I just made a virus

#

Wouldn’t that be funny?

tulip quest
karmic cave
karmic cave
#

Really

tulip quest
#

it's funny because I thought bribing was meant to work in the other direction

#

"let me get away with something shifty because I gave you money", not "recognize me as trusted because I gave you money"

edgy flare
tulip quest
edgy flare
#

That way, it’s beneficial for both parties

sharp swift
#

No way Microsoft would allow shady apps to be trustworthy even if they're "bribed."

barren shale
#

its just used to mitigate shady apps by forcing them to buy a license that they can take away if they do anything sus

#

everyone does that

#

android, ios, windows have these

#

a cheap hacker cant afford to keep buying licenses

tulip quest
#

I'd just rather it was done by a systemized check done with the money you spent on getting windows instead of having to buy a license

#

yeah, I'm a cheapo, but microsoft is a bajillion dollar company

barren shale
#

without a certificate you can't tell for sure if this is still the same app

#

it just binds the app to the publisher so you can tell for sure that this app is owned by this publisher

flat valley
#

Would maybe be better if there were different guidelines for different kinds of publishers, maybe smaller or indie dev teams can have cheaper or free licenses while larger companies have to pay more

barren shale
#

the licensing is not handled by microsoft

#

its just like website certificates

#

they just do the verification they dont sell the certificates

#

and the companies that sell the certificates sell them for a lot

tired needle
#
<!DOCTYPE html>
<html>
    <head>
     <meta charset="UTF-8">
    </head>
    <body>
    
     <p></p><h1>Hi</h1></p>
     <p><h1>just want you to know....</h1></p>
     <figure>
     <img src="https://cdn.loveandlemons.com/wp-content/uploads/2021/04/green-salad-1-580x803.jpg" alt = "" width="300xp" height="300xp">
     <p><h1>Dont forget to eat salad :D</h1></p>
    </figure>
     <hr>
     <ul>
     <h1>Fun facts about salad:</h1>
     <li><h2>Tasty</h2></li>
     <li><h2>Healthy</h2></li>
     <li><h2>Makes you grow faster :D</h2></li>
     </ul>
    </body>
</html>
#

Chat I'm proud of myself

lapis flint
#

Good

#

But only enough amount of protein and calories makes you grow faster, or many calories if you need to grow in all directions

edgy flare
#

Not even that healthy probably

#

I looked it up and the first results were fiber, weight loss, and hydration💀

#

Might as well just eat wet paper

tired needle
#

Chat

#

I don't know how to import the file on GitHub

feral bramble
tired needle
wet girder
tired needle
wet girder
#

What

tired needle
#

i want the user to search for it and find it

wet girder
#

Are you talking about github pages or making a public repo?

wet girder
#

Which one?

spare mirage
#

i retract my statement about javascript being goated

wet girder
#

Good

wet girder
#

So you want to make that a webpage with github pages?

tired needle
#

yup

#

my cousin told me that i should import the code on github to make it public

karmic cave
barren shale
#

idk if you are doing this but you should put rooms in categories and then have rules for how many of each type of room there should be

#

so like 5 big rooms, 10 small rooms, 2 massive rooms, 1 boss room

#

stuff like that

karmic cave
karmic cave
#

i just have small, medium and big rooms

barren shale
#

yeah this is an example

karmic cave
#

and corridors

barren shale
#

but having a consistent number of each type of rooms make the map generation more consistent

karmic cave
#

I only have a number for rooms, that limits quantity of spawning for each one

barren shale
#

yeah its a good first step

#

but it can still randomly pick too many big rooms or too many small rooms

#

and that would make gameplay inconsistent for most games but idk how your game will work

karmic cave
#

I didn't find a tutorials for exactly what I want so I had to make this myself wbsuffer

#

But anyways it was pretty easy lol

#

I thought it would be harder

tulip quest
#

It's pretty good anyway, making the generation more consistent past this point is mostly a matter of figuring out what it should be like

#

I'd recommend making something that uses this level generation before improving it further

quartz pumice
karmic cave
slow jasper
#

Can someone Teach me how to code on iOS?

fiery locust
slow jasper
#

On iOS

fiery locust
#

There's some apps for it, but I don't recommend it

slow jasper
#

Okay

fiery locust
#

I speak from experience, it's not worth it

#

iOS has most of the files locked away from you, and there's no terminal to test-run your code on iOS

#

you can write code in a text file but like…if you can't run it, you can't test if it works

feral bramble
#

there are websites that let ya run code on em to learn

barren shale
#

Alternatively the cheapest way to code efficiently is to get a cheap used Chromebook

#

Because coding on phone is not the way xzibit

feral bramble
#

and honestly ain't that bad

prisma grail
#

As someone who has had to do AMP hotfixes on my phone at least one time in the past, I would like to HEAVILY disagree. xD

#

Typing is slow, there's basically 0 space to fit code, navigating said code is even more of a pain, and basic actions like copy/cut+paste or find take an eternity compared to doing it on a computer in a software that has keyboard shortcuts for that stuff.

tulip quest
#

slow typing is already enough to make it bad

#

I remember making Scratch projects on an e-reader (for portability, I use Python for actual stuff that needs more than 1KHz of program speed) and even though Scratch is slow to work with, it is not as slow as typing stuff up. You either have to deal with autocorrect or an absence of autocorrect, which are both painful.

prisma grail
#

My main annoyane was the complete lack of screen space.

tulip quest
prisma grail
tulip quest
#

it's super easy to download a desktop IDE, but mobile tends to make stuff more difficult by needing specific mobile support and file-fiddling while files are basically hidden from you

prisma grail
tulip quest
prisma grail
#

Yeah, significantly easier.

tulip quest
#

not saying you don't agree

feral bramble
#

also slow typin seems like a skill issue :P

prisma grail
tulip quest
prisma grail
#

Like, hop on typeracer rn.

#

Against me.

tulip quest
#

I can reach maybe 70 WPM on keyboard and barely any on mobile because I'm either retyping everything or I'm fighting with autocorrect

prisma grail
#

I'm willing to bet that I can beat you on the built in keyboard of my Mac, and I'm saying that as someone who's bad at typing. xD

prisma grail
tulip quest
# feral bramble

ain't no way bruh, you must have practiced for years to get this if it's mobile (compared to a month on an actual keyboard)

feral bramble
feral bramble
#

just simply using phone as normal :P

tulip quest
feral bramble
#

and up to like 120 wpm on type racer

#

i falter when it comes to caps and punctuation

#

140-150 all lowercae

tulip quest
#

if I could actually come up with what I want to type in my head faster, I'd type faster

#

I get 70 wpm on benchmark sites including caps, punctuation and special characters

feral bramble
#

Oof got 63 wpm doing typeracer on hpone

tulip quest
#

which is one reason a real keyboard is way better, you don't need to hit a button to get special keys

prisma grail
tulip quest
prisma grail
feral bramble
#

probably cause of the emoticons lmao :P

tulip quest
#

bruh

feral bramble
#

:3333

tulip quest
#

funny thing is, there aren't really any characters I find slower to type

#

I kinda just freestyle it and have my fingers move to wherever necessary instead of having reservations

prisma grail
tulip quest
#

by freestyling it, I pretty much never have to use my middle or index finger (by index I mean the one next to the pinky, not the ring finger)

#

just making that distinction because it needs to be made

#

wait nvm I use my middle finger all the time 🤦‍♂️

feral bramble
#

well that was pain

prisma grail
tulip quest
feral bramble
tulip quest
#

ahh, ok

feral bramble
#

Honestly with practice definitely can get up to 60 wpm or more on this

#

don't really see the point tho as most my time coding is spent debugging trying to get desired outcome

prisma grail
#

And either way, the "slower typing" point wasjust a pretty minor one compared to others.

tulip quest
#

yep

knotty root
#

Can you guys make world box mods work on mobile

Like mojang made mods work on bedrock

tulip quest
#

this channel is for general programming discussion, not worldbox modding

quartz pumice
feral bramble
#

yeah people made 3rd party apps back in the day of pocket edition

#

en other stuff

quartz pumice
#

I remember trying those but none of them did bat shit

flat valley
#

most you can get on mobile is addons

#

which you can either get for free or you have to pay actual irl money for decent ones

#

Minecoins are the biggest scam

wet girder
karmic cave
wet girder
#

FACTS

quartz pumice
#

if minecraft didnt exist and microsoft just released bedrock edition it would be a flop
if minecraft didnt exist and microsoft just released java edition it would be as popular

young elkBOT
#

To manage your Leveling settings please visit your server dashboard via the button below

tulip quest
#

why would you use that in this channel

tepid egret
#

idk

tulip quest
#

ok

#

#🤖bot-commands is a better spot

tepid egret
#

btw

#

How do I get embed perms?

tulip quest
#

talk for a little while

#

you level up over time depending on how many (valid) messages you send (without spamming) and once you reach level 10 you get image perms

#

and link perms

tepid egret
#

alr

#

btw check my profile real quick

tulip quest
#

nice, 9 hours

tepid egret
#

Its 2 in the morning right now

#

trying to get life is a sim

tulip quest
#

I got it by accident, didn't know my computer was running it overnight one time and I got it

#

anyway this is a good time to stop and move to another channel

tepid egret
#

lol

#

alr

quartz pumice
#

Shikkan noko noko noko koishtantan

quartz pumice
queen zodiac
#

Hi chat

queen zodiac
karmic cave
#

Sup

karmic cave
feral bramble
#

lol

rancid shore
#

Who is goodd at c++ or c#

wet girder
barren shale
tepid egret
#

Shut up mee6

mental lodge
#

i learned recursion yesterday for c++
i learned recursion yesterday for c++
i learned recursion yesterday for c++
i learned recursion yesterday for c++
i learned recursion yesterday for c++

#

(this is a programming joke admins plz no)

tulip quest
#

no input, just bruh

#

bruh() has no parameters

finite tusk
queen zodiac
#

@wet girder hello

wet girder
#

Helo

queen zodiac
scarlet light
#

guys im learning C# so cool right

barren shale
rancid shore
#

Who is good at c++ tell me in dm

prisma grail
#

@scarlet light This channel is for coding related discussion, not for interrogating admins about your staff apps! ^.^

prisma grail
queen zodiac
#

😨

scarlet light
prisma grail
prisma grail
scarlet light
#

maybe

#

give me some time to understand 👽

prisma grail
scarlet light
prisma grail
#

IwI
Relatable, it does take some relatively good hardware to get that thing running well...

kind rivet
#

Bruh i have a ryzen 5 and booting up visual studio takes some time.

#

But what i hate about it is the GB i have to download like jeez

prisma grail
queen zodiac
scarlet light
#

@prisma grail what is the difference between the usual variables like "int, double, bool, char" and this other variable called "var"?

#

i tested it and var works for everything

prisma grail
scarlet light
prisma grail
scarlet light
prisma grail
#

I don't think there's an objectively better way to do it, which one to use is purely a matter of either your own preference or your teams preference.

#

Same kind of situation as with the debate between different bracket notations.

barren shale
#

that's what i do

#

because i dont want to write Task<IEnumerable<IResult<ResultClass>>>

#

but i want to know what the datatype is

wet girder
#

That's best practice at least

barren shale
#

still very opinionated

#

do whatever feels right for you

wet girder
barren shale
#

var a = 5; is obvious that its an int but var a = b; is not obvious what it is

#

that's what jupe means

wet girder
#

yeah

barren shale
#

i just var everywhere and have the option that shows the datatype

barren shale
#

i forgot

#

you can google it

scarlet light
#

real

#

k

barren shale
#

its been years

prisma grail
barren shale
#

dont use C++

prisma grail
barren shale
#

start looking for a different one xzibit

#

C++ jobs are one of the lowest paying anyway

wet girder
#

What is C++ actually used for?

barren shale
#

C++ becoming the new legacy language

prisma grail
#

+I also enjoy it!

barren shale
#

anything that can be done in C++ can be done in a better way in rust/zig these days

barren shale
wet girder
prisma grail
scarlet light
#

found it

barren shale
#

rust can do anything at this point

#

zig is still kinda new

#

but you can find stuff

wet girder
#

Seems like I should learn rust

barren shale
prisma grail
barren shale
#

@orchid frigate

barren shale
barren shale
#

low level related rust is better

#

zig is like a better go

wet girder
#

This looks too much like python

barren shale
#

they are new languages so they dont have the trash of old languages like try catch and events

prisma grail
wet girder
barren shale
#

i love the error handling in zig

#

but the package management is soooo confusing

prisma grail
wet girder
#

looks kinda confusing

#

also the link looks sus af but it's just a static tutorial page

#

not static

#

blog page

#

which seems to be written in a weird way that makes it static

#

wtf

prisma grail
wet girder
#

Yeah, would just require a lot of getting used to

prisma grail
#

I'd totally use that over error handling approaches like what C#/Java/Python/etc do.

barren shale
#

but without the

if err != nil
prisma grail
barren shale
#

its error as values instead of exceptions

#

i have a wrapper for C# to turn errors into values

#

error as values is THE way

#

its so much nicer than this try catch bullshit

#

who ever invented try catch should never code again smh my head

prisma grail
barren shale
#

but it suuuuucks

#

it has its own scope

#

so if you try to do something like

try {
  var value = funcCanThrow();
}
catch {
  // handle error
}

return value;
#

you cant

#

because value is in the try scope

prisma grail
barren shale
#

i guess

#

or if you use var in javascript instead of let

#

because var in javascript is always called at the start of the function

wet girder
barren shale
#

because sometimes the error handling part doesnt assign a value

#

so its ambigious

#
try {
  var value = funcCanThrow();
}
catch {
  // handle error
}

return value;

this is not safe

try {
  var value = funcCanThrow();
}
catch {
  // handle error
  return -1;
}

return value;

this is safe

#

it needs its scope but the root design is bad

#

that's why i made my own errors as values wrapper in C#

#
public class Result
{
    public bool IsSuccessful { get; protected init; }
    public Exception Error { get; protected init; } = default!;

    public static Result FromSuccess()
    {
        return new Result() { IsSuccessful = true };
    }

    public static Result FromError(Exception error)
    {
        return new Result() { IsSuccessful = false, Error = error };
    }

    public static implicit operator Result(byte value) => FromSuccess();
    public static implicit operator Result(Exception error) => FromError(error);
}

public class Result<T> : Result
{
    public T Value { get; private init; } = default!;

    public static Result<T> FromSuccess(T value)
    {
        return new Result<T>() { IsSuccessful = true, Value = value };
    }

    public new static Result<T> FromError(Exception error)
    {
        return new Result<T>() { IsSuccessful = false, Error = error };
    }

    public static implicit operator Result<T>(T value) => FromSuccess(value);
    public static implicit operator Result<T>(Exception error) => FromError(error);
}
#

here if someone wants it

#

it has implicit casting so you can keep your code the same

#
    public static Result<Image> GetMap()
    {
        try
        {
            if (_map is null)
            {
                const string path = "Data/files/images/map/map.png";

                _map = Image.Load(path);
            }

            return _map.Clone(_ => { });
        }
        catch (Exception e)
        {
            return e;
        }
    }
#

you still have to do one try catch at the top level

prisma grail
barren shale
#

yeah

#

but its still much nicer

#

it forces you to handle all errors

#

you are not forced to try catch throwing functions

#

but this returns a Result that you have to unwrap

#

kinda like what zig/rust/go do

prisma grail
# barren shale kinda like what zig/rust/go do

Does C# by any chance also have a nice way to type match it in some switch? (I wouldn't know since the last time I used a version newer than .net framework 4.8 was an eternity ago. wbtroll )

barren shale
#

but

#

in the future xzibit

queen zodiac
#

Code walls everywhere

prisma grail
barren shale
#

its a planned feature

#

this year or next year i forgot

prisma grail
barren shale
#

yeah C# type will become like typescript types

#

so an object can be int | string

#

which means its an int or a string

#

and then you can do a switch statement to handle all possibilities

#
var a = func(); // returns int | string

switch (a) {
  case string strA:
    doSomething();
break;
  case int intA:
    doSomethingElse();
  break;
}
#

something like this

prisma grail
barren shale
#

exactly

#

i want it to be that way

#

because then its built in

#

and i want an option to make exceptions not throw and instead get returned

#

when function can return Error

wispy osprey
barren shale
#

but the art looks very good

#

also movement looks good too

queen zodiac
scarlet light
#

good

karmic cave
karmic cave
# wispy osprey Progress on my godot project!

Looks pretty good
But movements are sharp, try this thing: https://easings.net/

barren shale
#

just camera xzibit

karmic cave
barren shale
#

camera movement is an animation

#

player movement is physics

karmic cave
#

Player movement is not always physics but okay

barren shale
#

true

#

but in this case it is

karmic cave
#

Like
Why not use this for accelerations and decelerations?

barren shale
#

you can but in very specific cases

karmic cave
barren shale
#

in most cases you can use just a linear expression and its gonna look almost the same + without all the bugs that it could cause

barren shale
#

when sprinting you dont start exponentially get faster in most games

#

so he can use it for the dash

#

but not the normal movement

#

but to avoid bugs i'd just use AddForce and put a big number in there

karmic cave
#

Add force is bad for those things actually

barren shale
#

worked fine for me back in the day

karmic cave
barren shale
#

just AddForce in the direction of the dash

#

once

barren shale
#

close to this

karmic cave
#

And u can't change this
That's why I think that add force isn't good for this

scarlet light
queen zodiac
scarlet light
queen zodiac
half hedge
#

Your tag is not cubic

scarlet light
#

I'm not cubic

karmic cave
#

Nice joke, cuuuubic

scarlet light
#

ig rider doesnt change the color scheme of error output and user input (both are controlled by the standard output)

wet girder
#

Neither does VS but I have an extension that makes errors red and I love it

#

I think it's called VSColorOutput if anyone's interested

scarlet light
wet girder
#

I'm a visual studio guy myself so I don't know much how rider works

wet girder
#

How's rider much better?

barren shale
#

it forces you to write cleaner code by default

barren shale
#

maybe the rider terminal doesnt support colors

#

even though im pretty sure it does

timid field
#

Hello my fellow Hello world'ers

rancid shore
#

Im good at HTML

lapis flint
#

And just feels much better

lapis flint
feral bramble
queen zodiac
versed lantern
#

how do i have a 2d object point towards another 2d object?

barren shale
versed lantern
barren shale
#

its for 3d so you just have to reset the 3d part of the rotation back to 0

versed lantern
#

just found out

barren shale
#

well yeah

#

but that wasnt the one i was talking about

versed lantern
barren shale
#

ye

#

at least that's what i used to do

#

but i guess atan2 is the correct way

wicked spindle
#

This isn't really a coding question but is there an open source pixel art program for my game, i'm using krita and it isn't really drawing or deleting pixels as precise as i want it to

#

Like it kind of draws pixels gradually instead of just setting it to the colour i want

karmic cave
#

just try Aseprite lul

karmic cave
#

here it isssss

barren shale
#

aesprite is open source

#

and free

#

which is something not a lot of people know since if you search for it you will get the steam page for it which is paid

karmic cave
feral bramble
#

not if you compile it urself

karmic cave
#

Well okie

barren shale
#

go to the github page and download it

#

oh nvm yeah

#

you donwload the code x)

#

i havent done it in a while and when i rechecked this morning i saw there was a release tab

#

but i guess that's just for the tags

#

wonder why they dont use github actions to compile it for you

prisma grail
barren shale
#

make it so only people who really want it free or devs can download it for free

#

but also steam has auto updates

prisma grail
barren shale
#

paid worldbox mod

#

bro 3 years ago cody didnt know what classes were

#

man grew up

prisma grail
feral bramble
barren shale
feral bramble
barren shale
feral bramble
#

lol

prisma grail
barren shale
#

anyone can show me code and ill roast it to its fullest

#

ill roast code that i wrote two weeks ago

prisma grail
barren shale
#

bad code

#

dont evven have to look

#

k fine ill take a look

prisma grail
#

Looking forward to the roast. wbtroll

barren shale
#

I hate that the folder where the code is is called Code

#

prefer Core

#

tbh you are working on top of Unity so I can't really roast you

#

you cant write good code on top of unity

#

its impossible

feral bramble
#

Huh building bepinEX mods be pretty simple

prisma grail
barren shale
#

but

prisma grail
barren shale
#

why the fuck you dont have spaces in some of these files

#

man trying to save bytes or what

feral bramble
prisma grail
feral bramble
#

:P

prisma grail
#

I was probably trying to fit it into little space for a screenshot and then forgot to undo or soemthing. GremlinRoseWheeze

barren shale
#

also your scheduler class is disgusting

#

constructor adds to a static list?

#

what kind of pattern is that

prisma grail
#

I needed to load a UI, and loading all elements on the spot would've made the game freeze for really long, and multithreading/tasks weren't an option because those make Unity have a mental breakdown.

barren shale
#

unnecessary nesting

prisma grail
barren shale
#

bruh

#

2 minutes of reading

#

also why is your todo list in a code file not in the readme

prisma grail
barren shale
#

PowerBox.cs

#

oh

barren shale
#

not that

#

Scheduler.cs

prisma grail
barren shale
feral bramble
#

I was just looking at it ..

prisma grail
barren shale
#

its not short but you just need to read it for 2 minutes

feral bramble
#

oh

#

i accidentally pasted link two times lol

barren shale
#

its just the lines being clumped up fucked me

#

still bad pattern >:(

#

how do you add new schedules?

prisma grail
feral bramble
#

I understand nothin 🙃

prisma grail
barren shale
#

OOOOOOOOOOOOOO

#

its schedule not scheduler

#

i thought the schedule method is the constructor

barren shale
prisma grail
barren shale
#

okay its good

feral bramble
barren shale
#

im gonna go look at some other stuff you've done x)

prisma grail
# barren shale unnecessary nesting

Ngl, that thought did not cross my mind at all when writing it. I'm sure you'll be happy to know based on that that this exact code has made it into the modloader itself by now, right?! :P

barren shale
#

people need to stop making mod loader

#

and start making mod utilities

prisma grail
#

I generally prefer not nesting, but it's easy to catch me in a mood where I can't be bothered to write even remotely good code. wbtroll

barren shale
#

id rather die than write ugly code

prisma grail
barren shale
#

well you dont do that again

#

with this nml

#

also your website sucks pp

prisma grail
#

Y'know, that's just backwards compatibility being a pain.

barren shale
#

too bad let the people rebuild their mods

#

okay im done with roasting you

#

who is next

feral bramble
prisma grail
rocky kernelBOT
#

You need to create a character first. Use _start

feral bramble
#

wha

#

why u use underline for italics

prisma grail
rocky kernelBOT
#

You need to create a character first. Use _start

prisma grail
#

IwI

barren shale
feral bramble
#

just do this sheesh

#

don't do the stupid `'__ __``

barren shale
#

ur mum

prisma grail
barren shale
#

use *

barren shale
#

ur mum

feral bramble
#

wait what singlje _ works for italics as well breh

prisma grail
rocky kernelBOT
#

You need to create a character first. Use _start

feral bramble
#

test

feral bramble
barren shale
#

UR MUM

#

_ or *

feral bramble
#

hello there

prisma grail
barren shale
#

its taking too long

#

(cuz i only write god tier code)

#

its been over 3 years

#

but we ballin xzibit

prisma grail
barren shale
#

yeah

#

not a lot of good C# devs that would work for free xzibit

prisma grail
barren shale
#

this is what we doing rn

#

but gotta make it bugless

#

(with "we" i mean me)

#

also im still not sure its gonna work

#

discord got some hefty limits on the amount of requests you can send to its api

#

and if the game gets big enough it might start lagging a bit too much

#

im thinking of solving this by having two seperate bots but im pretty sure its illegal

feral bramble
#

as in discord tos?

prisma grail
barren shale
#

its api requests to respond to players

#

because its going to be an interactive game

#

like in an adventure you get an event every 30 seconds and its synced

prisma grail
barren shale
#

gets to discord are not the problem

prisma grail
#

Generally though, it's a fair risk to be considering.

barren shale
#

i am caching yea

#

the only thing i need from discord is player names

#

and im caching that

prisma grail
#

Just a few weeks back when Maxim pinged in #📣announcements most reently, it literally caused so many reactions that AMP got a global rate limit and IP ban by Discord for multiple hours.

barren shale
barren shale
#

why would it ban

#

since you hit the global rate limit

#

it should just ignore your requests

prisma grail
# barren shale ip ban?

We apparently hit some hard limit by cloudflare that caused them to block our IP temporarily, in addition to the global rate limit by Discord.

barren shale
#

oof

#

that's deadly for speciesbox

#

we will see after first playtest how it goes

barren shale
#

also getuserasync function has its own cache

#

but i just double cache the name only cuz why not

prisma grail
# barren shale

Looks nice, but is there no expiration mechanism that could catch when users change their names?

barren shale
#

but there should be a TTL

#

also i might not end up using the discord username and instead making people choose names for their characters

prisma grail
prisma grail
feral bramble
#

~owoify oh yeah speakin of new features... @prisma grail does that still ping

#

bruh i splet it wrong

feral bramble
#

~ping

barren shale
#

compared to everything else

#

its mega smol

feral bramble
#

oh bot just doesn't run in here

barren shale
#

like the fighting system in the game

#

it took months to make it bugless

#

wouldnt recommend trying to make an interactive game in a discord bot

prisma grail
#

Very understandable. xD

barren shale
#

this is a pic of it

prisma grail
#

Their UI system REALLY isn't made for it.

barren shale
#

bro if discord knows what im doing with their shit

#

they gonna hire a hitman to come get me

#

im abusing stuff to get it to work xzibit

prisma grail
#

It's both impressive and sad how you're just resorting to images for the info display. xD

barren shale
#

i mean embeds are cool and all

#

but they are not very cool

#

images allow me to do way cooler UIs

prisma grail
#

Yeah, ofc.

#

At a cost of needing a high data trasnfer capacity.