#⌨coders-cave
1 messages · Page 33 of 1
start in safe mode
but it will still be futile you haved to reinstall windows to get rid of mcafee
I got rid of it eventually, but only through the piece of obsolete UI that is the control panel
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
I'm going to use it next computer I get
or if I'm forced to upgrade to windows 11
yeah
I want to put windows on a portable ssd and keep it in a faraday cage
I need windows to play some games
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
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
I was a toddler when they released windows 10
when was it released?
I remember me and my sister would play with cortana for hours on end
somewhere 2014-2016
oh, so I assume you're slightly younger than I am
or same age if you count 4-ish as a toddler
I was born days before 2010
yeah, that's fine
wait fuck I gotta act liek im older
me and the boys out there acting like adults until we let it slip that we're not
lmao
raaa
I mean, they're big enough not to care about people now
they've got a big enough share in the market that they can do anything legal without dying for a long time
I believe it is
I don't care if it's decent or not, it's not a good enough improvement from 10 to mandate update
its worse
I have windows 11 and linux on my computer
going from windows 11 to 10 is not a downgrade but an upgrade
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
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
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
the only debilitating difference between x86 instructions in 2005 and 2024 is that theres some more registers for higher bit count math
even then, addition for bigger numbers can be done with smaller ones
and compilers dont even let you use those
yeah
dual boot? why? :0
wsl? or actual linux
i dont see any reason to dual boot these dayss just use wsl
unless you have low ram i guess
I only have one drive and I have games that only work on windows that I want to play with friends
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
well, seems not bad
but, arent there emulators in linux for games?
yes wine which roblox used to support but doesnt anymore presumably because people were hacking and shit
and helldivers2 just doesnt work on my computer with the emulator (wine)
because its the fuckin best
for what? :DD
everytihng
its so fast
and my computer fully supports it too
even the shitty proprietary softare that hp makes supports linux
lol
well, okie
and we are also in coders cave if you are coder and dont like linux somthings off with your head
linux is just inconveniently
a lotta soft are only on windows
but thats as i can see, ive never used linux
the ammount that wine supports or is made to natively support linux will surprise you
the only thing stopping me from running games on wine is their anticheats
like, i dont need to suffer with drivers and things that may dont work
i can just install windows that can everything that i need
but, again, ive never used linux
mb ill try dual boot with linux
just cuz why not
but im affraid to install linux on my labtop xd
you haved to wipe your hard drive to create large enough partitions for linux and windows at the same time
?
unless you have 2 drives idk
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
yea i know, dont think that it would be problem for me when i get a new pc
ive dual booted for like 6 months after installing linux with a new laptop and havent had a single issue
🤷🏻♂️
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
My cat
meow
when I was setting up partitions for my dual boot I didn't notice anything happen to my data and I'm also using one hard drive
I don't think that's safe at all, you just got incredibly lucky there wasn't data in the parts you cut off
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
no u cant
oh
nah
ok
you got baited
xp doesn’t even work like that
alr
Thank you :D
lua opinions
its cool
extremely fast compile time and easy syntax
no other reason to prefer it over more established programming language tho
As long as you're ready to tinker, go for it
No. Arch is a do it yourself linux.
Unless you are willing to learn, i do not suggest arch for no experience user.
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.
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
VS Code lol
If it gets the job done, I'll take it.
All I'm trying to do is make snow stay on mountaintops.
rider isn't really more lightwewight than VS CPU wise
it uses way more CPU
at least that's what i remember not 100% sure
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
visual studio code is an IDE disguised as a text editor
visual studio code is a terminal masqueradimg as a text editor
Unusable for big projects though
Just going through the files will be annoying and we are not talking about autocomplete
I don't have autocomplete on my notepad
Anyway, you can't use it for large projects, but it works in small cases
it is not an IDE. It's a text editor with some IDE features
it's missing a lot of features absolutely necessary for enterprise projects but works fine for most devs working alone
code editor is the word you are looking for
Yeah that's a better word
Isn’t that basically like
Just use the integer limits lol
?
Yes
(I'm in class rn I need this quickly)
tf u mean
like if you input 3 it spits out 1+1+1?
or is it expecting you to rearrange stuff to get a number
I think it meant like a total amount maximum
total amount of what
Like 50000 is max, so 40000+50000 won’t work
But 40000+10000 will
k
welp marv didn't give enough context lol
Like I think
short int 32676
(That’s c++)
Maybe long, long long, long double
int
float (decimals, loads of it)
thats called addition
1+1
python implementation:
print(1+1)
```without `print()`
```py
1+1
no need to thank me
Was that even his question
we have no idea
1+1
(This adds up to 2 btw)
You gotta stop giving such easy questions! After all, what computer possibly wouldn't know that?! ||
||
ikr such a simple calculation, a potato computer can easily do it
That is correct 👍
Someone should make a modern mod
sorry to be bland with you, but this is not the place
this is for casual coding discussion
Mb
np 👍
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
tf is this?
update_top_left_ui sounds like a bad function
your fault dont blame bevy
apparently using low level languages doesnt make you good at programming smh my head
R.I.P. Marv btw
who is Marv
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
What will be?
Get our GitHub Actions course and get the Git course for free: https://dometrain.com/course/from-zero-to-hero-github-actions/
Subscribe to my weekly newsletter: https://nickchapsas.com
Become a Patreon and get special perks: https://www.patreon.com/nickchapsas
Hello, everybody. I'm Nick, and in this video, I will talk about the Result and Opti...
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);
}
Any written articles on it?
I hate watching videos about stuff like this
Yeah same but it’s a proposal
Couldn’t find any articles
Basically C# types will become like typescript types
Or similar at least
it is a bad function
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
well goodluck changing anything inside of it in the future
the future is already here
better get working then 
what i do is commit then completely rewrite it and if theres no terribly obvious error I give up and git undo
lol
not actually a bad strategy
woah no way
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
. 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
Wow
That's looks pretty nice 👍🏻
That's really cool
I would use as screensaver lol
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
That’s nuts
Just you wait until I add more
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
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
I made some level generation stuff :DD
impressive! What is this for? Just a test project? It's good
Thanks :3
That is for my game. I haven't done with this yet (I have to make more bigger rooms)
it looks like you've got it down, seeing as there aren't overlapping features or doors that lead to nowhere
I know I wouldn't get it to work first try without "artefacts"
Hehe
I can send some fails of it
lol you can if you want
I don't tend to have "interesting" failures in my projects, sadly
I found it xd
Also, as I remember, I had a lot of problems with bugs which was making my ram blow up
that first one's density starts to form a sort of normal distribution lol
I'm not at all surprised
Looks perfectly fine
It was lagging at end of the video 
Real
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
How is the liquid generated?
Tiny particles?
it's tile based, and currently every tile starts with a random liquid type with a random density from 0-80% full
most of the problems I've been having are because it's meant to be tile based
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
Is your simulation uses some type of hard physics things or something like that? :0
it's just based around lists of numbers and mathematical manipulations designed to not destroy or create any liquid
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
Sounds pretty interesting
and how much time did you spend for this? :DD
it's been somewhere from 9 months to a year at this point
the hard part is the designing of processes that actually accomplish what I need
Wow, that's impressive
Really a lot of time
It's always hard to make something exactly what u had in mind
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
👽 you could average the density of the layer and determine which way it goes
Sounds like something that u can easily fix by just working with your project architecture
:>
dude, layers are an emergent property of the simulation
I don't program them, I program how the tiles change
I know that, but you could still probably find it

yeah, it wasn't too bad. I just made everything in the fluid maps update at the same time where the changes only apply once the update is finished
How are you calculating the tile changes currently
a bunch of functions that:
-create an empty tile map
-make each tile in the new map an updated version of the one in the previous map (as to not let tiles update before other tiles)
-replace current map with new map
for example, one of them averages out the tile values with the neighboring tiles (as long as they're the same kind of liquid)
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?
And that determines where the liquids end up?
yeah, tile-based simulations are grids of tiles that have different properties that change over time
yep, there's an averaging one that makes it spread out, there's a gravity one that makes it compress towards the ground, there's a swapping one that makes oil and water settle, etc.
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)
Make this type of things in pygame is strange imo xd
I just use pygame to have a display window
all the other stuff is python doing calculations
It should be pretty easy to replace pygame with something other, isn't it? :0
yep, there's no pygame-specific features necessary
I just need a window I can write squares with colours to
Great :D
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
Is all of your code really only in 1 file?!
I just don't use python, but anyways it seems really inconvenient to work with
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
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
Well, okie
Cuz why not xd
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
Don't think that's it a problem
yeah, I just don't like how "trusted developers" are restricted to people who pay microsoft, and everyone who pays microsoft is a trusted developer
Fnny
Microsoft trust them 👽
Really
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"
Microsoft bribing developers to be trustworthy?
no, developers having to bribe microsoft
It kinda makes sense. If someone were to upload a virus, then that would be bad and Microsoft should warn people. If they bribe them, Microsoft gets money and the developers get to upload their viruses
That way, it’s beneficial for both parties
No way Microsoft would allow shady apps to be trustworthy even if they're "bribed."
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
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
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
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
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
<!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
Good
But only enough amount of protein and calories makes you grow faster, or many calories if you need to grow in all directions
Eat a salad is propaganda
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
wut file
html
What exactly do you mean by this?
make it public for the users?
What
i want the user to search for it and find it
Are you talking about github pages or making a public repo?
exactly
Which one?
i retract my statement about javascript being goated
Good
this
So you want to make that a webpage with github pages?
This guide should be able to help
https://docs.github.com/en/pages/getting-started-with-github-pages/creating-a-github-pages-site
i finally finished this :DD
a bit inconsistent
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
yeah i know
nah, my game isnt about this
i just have small, medium and big rooms
yeah this is an example
and corridors
but having a consistent number of each type of rooms make the map generation more consistent
I only have a number for rooms, that limits quantity of spawning for each one
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
My rooms are separated by sizes
And I can choose which room will be spawned by size in room exits
But I'm still agree with u, not enough controll for this
I didn't find a tutorials for exactly what I want so I had to make this myself 
But anyways it was pretty easy lol
I thought it would be harder
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
Ofc I wouldn't do this thing if I didn't have to xd
Can someone Teach me how to code on iOS?
get a computer
On iOS
Okay
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
there are websites that let ya run code on em to learn
w3schools
replit
codepen.io
etc
Alternatively the cheapest way to code efficiently is to get a cheap used Chromebook
Because coding on phone is not the way 
I will code on phone and u can't stop meeeee
and honestly ain't that bad
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.
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.
Honestly, for me, it's not that bad of a drawback since it can be pretty much fixed by connecting a proper keyboard to the phone.
My main annoyane was the complete lack of screen space.
you can connect a keyboard, mouse and headphones, but mobile still has worse services and performance when it comes to programming
Yeah, precisely, those aspects are the actual problems.
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
For me, that aspect also wasn't all that bad when doing a hotfix for AMP because I could just ssh into our VPS and use nvim there, which was configured with a Python LSP and whatnot.
That's a very specific scenario though and not gonna be applicable for most other people trying to code on mobile. xD
yeah, but on desktop you install IDE and run it
Yeah, significantly easier.
not saying you don't agree
what were u coding on exactly tho?
also slow typin seems like a skill issue :P
Ok, then why don't you compete in typing on your phone against someone with an actual keyboard? :P
slow typing is the default on mobile bro
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
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
But that's only lowercase letters, isn't it?
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)
Alright typer tacer tome
not even practice
just simply using phone as normal :P
that counts
I use pc as normal to ig
and up to like 120 wpm on type racer
i falter when it comes to caps and punctuation
140-150 all lowercae
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
Oof got 63 wpm doing typeracer on hpone
which is one reason a real keyboard is way better, you don't need to hit a button to get special keys
Watch any resemblance of speed on mobile go to hell once characters like [ get involved.
I mean, those aren't too bad [I'm pretty sure]
On my mobile keyboard, it's 3 clicks, all on the left hand side.
I actually type faster with those charcters on mobile tbh
probably cause of the emoticons lmao :P
bruh
:3333
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
Someone needs to get you into some PC rehab, because this is a critical case. IwI
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 🤦♂️
well that was pain

most painful looking thing there is the spaces... I wouldn't know when to type a tab, space or enter
the formatting goes wonky for whatever reason when race ends
ahh, ok
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
And either way, the "slower typing" point wasjust a pretty minor one compared to others.
yep
Can you guys make world box mods work on mobile
Like mojang made mods work on bedrock
try #🔧modding-talk
this channel is for general programming discussion, not worldbox modding
Mojang didn't make mods work on mobile tho
I remember trying those but none of them did bat shit
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
I found one that worked when I was a kid
FACTS
why we hate bedrock
lmao
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
To manage your Leveling settings please visit your server dashboard via the button below
why would you use that in this channel
idk
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
nice, 9 hours
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
Shikkan noko noko noko koishtantan
Hi chat
Propaganda
Sup
lol
Who is goodd at c++ or c#
I code C# at work
you
Shut up mee6
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)
bruh
no input, just bruh
bruh() has no parameters

banned for spam
Helo
How are you?
guys im learning C# so cool right
bery kewl
Who is good at c++ tell me in dm
@scarlet light This channel is for coding related discussion, not for interrogating admins about your staff apps! ^.^
Hey, if you need any kind of coding help or something, I'd suggest giving https://dontasktoask.com/ a read for future reference!
Does that mean you're gonna become smart
😨
yeah
it was just one message T-T
And you only got a verbal for it, so just don't do it again! 
Btw, since you said you're learning C#, how exactly is that going?
uhh its ok
Enjoying the language?

i tried to use visual studio but my pc got obliterated
IwI
Relatable, it does take some relatively good hardware to get that thing running well...
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
And people think that modern games are bad. 
We will watch your career with great interest
@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
var is a C# feature that infers the type of a variable based on what value you initially assign to i.
so like should i use var for everything?
I'd personally specify the types, but it's a matter of personal preference tbh.
k
ty
i guess specifying the types is good practice
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.
there's an option that shows you the datatype even when using var
that's what i do
because i dont want to write Task<IEnumerable<IResult<ResultClass>>>
but i want to know what the datatype is
You should use var when the datatype is obvious from the right side of the =
That's best practice at least
like age and stuff
It's technically bad practice when the datatype is obvious from the right side but honestly you can do whatever you feel like
var a = 5; is obvious that its an int but var a = b; is not obvious what it is
that's what jupe means
yeah
i just var everywhere and have the option that shows the datatype
which
its been years
Fsr, I get that logic, but only when deciding whether to use auto in C++. 
i have a fix for that
dont use C++

Sorry, not in a mood to quit my job anytime soon! 
What is C++ actually used for?
Idk, I'd say I get paid quite fairly considering my work hours, my (current lack of) education and experience, and it being the first ever programming job I got at all.
+I also enjoy it!
anything that can be done in C++ can be done in a better way in rust/zig these days
sorry but i hate you now
Do they have good support for graphics engines?

yes
found it
Seems like I should learn rust
it can be very hard some times
Isn't anything that's networking related a nightmare?
@orchid frigate
rust expert maybe
i think networking related zig is better
low level related rust is better
zig is like a better go
This looks too much like python
they are new languages so they dont have the trash of old languages like try catch and events

also too much like JS
What makes it good?
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
Honestly, it looks pretty nice to me.
Yeah, would just require a lot of getting used to
I'd totally use that over error handling approaches like what C#/Java/Python/etc do.
For sure, especially if you've been doing OOP exception handling for the last few years.
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
Ok, no need to trash on try/catch that hard. xD
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
_Not if you're in some abhorrent garbage language like Python!
_
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
I never understood why try is it's own scope
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
Yeah, con of trying to force a different paradigm onto a language that already does one particular one.
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
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.
)
yes it does
but
in the future 
Code walls everywhere
Wdym...
Ah, I guess that's nice.
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
NGL, that then just makes your result type obsolete entirely since you'd instead just return CorrectType | Exception.
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
Progress on my godot project!
the ui size + the zoom is making it look like the world is moving not the player
but the art looks very good
also movement looks good too
these should be ez to fix
I do not know what's happening but it looks cool 👍
I made a simple menu for my game :DD
Looks pretty good
But movements are sharp, try this thing: https://easings.net/
dont use these on player movements
just camera 
Why not?
because these are meant for animations not movement
camera movement is an animation
player movement is physics
Player movement is not always physics but okay
Like
Why not use this for accelerations and decelerations?
you can but in very specific cases
In this case he can do something like that for sprinting
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
yeah but it doesnt look as good as just a linear acceleration in this case
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
Add force is bad for those things actually
worked fine for me back in the day
Like, its always the same movement, u cannot control this
Parabola
yeah it is going to look like one of these
close to this
Yeah, if it was just x*x it would be same thing
And u can't change this
That's why I think that add force isn't good for this
Cubic
Congrats on being able to read
im Cubic
Yes, I know
Nice joke, cuuuubic
ig rider doesnt change the color scheme of error output and user input (both are controlled by the standard output)
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
not available in rider
this exists but the bottom 2 just dont work 
I'm a visual studio guy myself so I don't know much how rider works
Much better
How's rider much better?
lots of little things
it forces you to write cleaner code by default
just use windows terminal
maybe the rider terminal doesnt support colors
even though im pretty sure it does
Hello my fellow Hello world'ers
Im good at HTML
Many build-in stuff that you need to do with plugins in vs
And just feels much better
Das crazy
wowsie
y u threatening the bot
...
how do i have a 2d object point towards another 2d object?
pretty sure there's a function for that
yea its atan2
its for 3d so you just have to reset the 3d part of the rotation back to 0
just found out
no
well yeah
but that wasnt the one i was talking about
you were talking about transform.lookat right?
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
why do u even need open source programmmmmm?
just try Aseprite lul
Piskel, free online sprite editor. A simple web-based tool for Spriting and Pixel art. Create pixel art, game sprites and animated GIFs. Free and open-source.
open source pixel art sprite editor
here it isssss
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
wait
aseprite costs money as i remember
not if you compile it urself
Well okie
nope
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
Why would they do that on software they're trying to sell?
i guess so
make it so only people who really want it free or devs can download it for free
but also steam has auto updates
Yeah, I think it works well enough in regards to not hurting sales significantly, I think that cody actually does the same with his paid WorldBox mod.
paid worldbox mod
bro 3 years ago cody didnt know what classes were

man grew up
Same here, only difference is that I learned from school instead of WorldBox modding. 
bro got the worst .gitignore file
¯_(ツ)_/¯
lesson 1: classes
lesson 2: fix your stooopid .gitignore
lol
I see that you're a professional at roasting cody. 
not only cody
anyone can show me code and ill roast it to its fullest
ill roast code that i wrote two weeks ago
Looking forward to the roast. 
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
Huh building bepinEX mods be pretty simple
Tbf, you can blame old NCMS standards for that one. 
but
He says as he's looking at an NML mod.
why the fuck you dont have spaces in some of these files
man trying to save bytes or what
I'm just looking at a bepinEX mod making tutorial lol
Oh, that was very not obvious based on the context tbh. xD
:P
Ngl, I literally cannot remember why that's like that...
I was probably trying to fit it into little space for a screenshot and then forgot to undo or soemthing. 
also your scheduler class is disgusting
constructor adds to a static list?
what kind of pattern is that
Ok, tbf, it was 1 AM and the reason why I needed it in the first place was even more disgusting. 
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.
unnecessary nesting
coroutines
Do I look like I can be bothered to learn more Unity specific technology than I absolutely need to? 
bruh
2 minutes of reading
also why is your todo list in a code file not in the readme
Btw, where did you see that?
Ok, I genuinely have literally no excuse for that one. IwI
shorter than i expected
That class doesn't contain a single static list...?
its not short but you just need to read it for 2 minutes
oh it doesnt
its just the lines being clumped up fucked me
still bad pattern >:(
how do you add new schedules?
Even for my standards, what you described seemed to bad to believe for even my own standards. xD
I understand nothin 🙃
With the Schedule method?
OOOOOOOOOOOOOO
its schedule not scheduler
i thought the schedule method is the constructor
that's on you x)
Ok, I now very much understand why you were hating on it so hard. 
okay its good
:P
im gonna go look at some other stuff you've done x)
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
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. 
id rather die than write ugly code
Ok, now please get a time machine and tell Nikon before he made NCMS. xD
Well, we can't just suddenly break 90% of existing mods because we don't like stuff done by NCMS. xD
Y'know, that's just backwards compatibility being a pain.
too bad let the people rebuild their mods
okay im done with roasting you
who is next
Welp all ncms mods will probably break come major update
I do not have even a single spark of faith in the WorldBox modding communities ability to not collapse upon such a scenario.
You need to create a character first. Use _start
_I need to get admins to remove this bots access from the channels it doesn't need.
_
You need to create a character first. Use _start
IwI
STOP USING UNDERLINE
another one of nikons master pieces "only joke pls dont kill me"
ur mum
It's in my muscle memory. 
use *
stop it
ur mum
wait what singlje _ works for italics as well breh
I can't just kill my old habbits like that...
You need to create a character first. Use _start
test
nvm i was just bein stupid
hello there
How's making the replacement that hopefully won't have this issue going? 
good
its taking too long
(cuz i only write god tier code)
its been over 3 years
but we ballin 
Are you still doing it entirely solo?
Tbh, sometimes, you gotta prioritize getting something actually released over perfection.
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
as in discord tos?
Are you already doing caching and stuff where possbly to minimize that risk?
its not about the speed of the bot
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
I meant caching in a sense of trying to minimize GETs to Discord to avoid rate limiting.
gets to discord are not the problem
Generally though, it's a fair risk to be considering.
i am caching yea
the only thing i need from discord is player names
and im caching that
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.
ip ban?
why would it ban
since you hit the global rate limit
it should just ignore your requests
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.
(god tier beatifully written code btw)
also getuserasync function has its own cache
but i just double cache the name only cuz why not
Looks nice, but is there no expiration mechanism that could catch when users change their names?
bot will most likely have daily restarts
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
Ah, fair. AMP alsso has restarts often, but only because of how arbitrarily we just dump new features onto it. xD
Would be pretty nice, though it adds minor extra effort in regards to having a proper management system for that.
~owoify oh yeah speakin of new features... @prisma grail does that still ping
bruh i splet it wrong
meh
~ping
oh bot just doesn't run in here
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
Very understandable. xD
Their UI system REALLY isn't made for it.
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 
Oh dear god.
It's both impressive and sad how you're just resorting to images for the info display. xD

