#⌨coders-cave
1 messages · Page 104 of 1
looks better = more readable
still not convinced
if you dont make it readable now
you will suffer in a couple of days when you go back to read your code and you cant understand it
amongus
…
@fathom vine Do !rank in #🤖bot-commands next time
@barren shale do you know why the colliders arent touching each other when i use physics to get closer to them?
it annoys me couse then i cant use OnCollisionEnter2D
i mean it works only sometimes
when i speed up and rush at the collider
there's OnCollision and OnColliding make sure you are using the correct one
oh nvm
they removed the other one
show code maybe ?
that's why i dont use unity for 2d
i just use unity for rendering my 2d games
and then i write everything else from scratch
using some unity libraries
like the physics library for ray casting and stuff like that
been modding rimworld lately
c# is so confusing after not having done it for a while
but its fun
FUCK
ok
ok
use-traiteditor command
-traiteditor
blender.
Guys use C# Code
no
Are u okay
No what shut up u sound stupid
Its a code to help beginner coders
Tf is the is that assembly arm64 or smt
@empty terrace c# isnt as great as you advertise it to be get used to it noob
Get 360 no scoped
no
c# is great
ill show u
im generating GAN using tensorflow in c#
wait it still doesnt make sense
wait it does
Use g#xth
I decided to go back to opengl with c++ for a while
Because composing a dynamic memory manager by yourself and designing it to be flawless has proven to be quite the challange
And I can say that c++ with and without std feel like two completely different languages
But it feels so much easier
||faster than expected||
U know what i just brought ur house
Thats great but my house is your walls
Chad i can outsmart u
This is delightful however I ate your mother
Ayo
i use vulkan in C and i write my shaders directly with spir-v
So I'm doing this project on this solo learning coding thing
I need some help lol
It's C++
"~traiteditor"
Vulkan....
I probably need to switch to vulkan
Considering how much better it is than opengl
But its also kinda hard to self learn
Also why spir-v and not glsl
Wait im stupid
Vulkan only supports spir-v
Could anyone help me with this code project? C++
ew no
This is the most well educated joke this channel has seen
It sounded so real
Yes
Dont listen to hamza
What do you need
C++ is bad
C# better
And with unity
Is there anyone that is new to codind wanna learn c#?
If yes dms are open

By c# i mean use it to make games
In unitu
Unity*
How is c++ bad?
I am more into game dev, so that why i chose c#
Oh! I thought any code would be good for game development
That's new info
Nope, c# is the one that both unity and ue5 uses
And making your own engine is a sueside mission
If u want i can teach u some game dev

Yes
slowly wiggles over
It will take a long time tho....
Like a long long time
So if u think u wanna learn it dm me
In an hour i will be able to respond couse now i need to go
Ok
I hate when people say this
"os development is hard so its bad"
"Creating games from scratch is hard so bad"
NO!
Its easier and better if you put in some time to actually read documentation
More control over your game/machine better memory management
Its also relatively interesting
easier?
bro i dont care if it interesing if i will spend more time on making the engine than using it
I mean I guess it matters if you care more about the code or the end product
I personally care more about the code and how interesting it is to make
So I choose the harder option
its bad not because its hard
if you want to create a game use an engine
if you want to create an engine then do it from scratch
*use an existing one
so you can focus on the game
you will never be able to make an engine as good as the ones that already exist
if you want to make ur game as good as possible you should use an engine
Why use an engine why create one
Just
english be like 
i mean you did it and you got 1 fps
With maximum control
i did it and my game started stuttering
Over everything
Could you please stop mentioning that for fucks sake
It was a joke
using an engine will still be better
It was a year ago
I have said this before and I will say it again
If you wanna use an engine use one if you wanna have control over everything create your own
I support both options
But i personally prefer the second one
,work
You are hired to construct a Czar Bomba, getting paid
198.
,bj 15000
Result: Bust
-15,000

Value: 23

Value: 10
@humble wasp bad
@humble wasp you fr rn?
Hi
damn another warn?
Ban?
They are not
But @humble wasp used economy bot here
So it looks like the commands are allowed
And thats not cool
he also got warned for it
,work
You were hired by a dwarven king to find a wanted woman. The king allowed you to bring soldiers to assist capturing her. Upon finding the woman, you and the soldiers return her to the king. You were compensated
355.
,bj 100
Result: Bust
-100

Value: 23

Value: 8
,bj 100
Result: Bust
-100

Value: 26

Value: 10
Result: Push, money back

Value: 20

Value: 20
,bj 100
Result: Dealer bust
100

Value: 20

Value: 25
,bj 100
Result: Dealer bust
100

Value: 21

Value: 25
,bj 150
Result: Win
150

Value: 19

Value: 17
,dep all
Deposited
508 to your bank!
,bal
,work
You cannot work for 1 minute and 16 seconds.
,crime
You decide to scavenge the ruins of a castle. You happily walk away with
308 in loot.
,dep all
Deposited
308 to your bank!
Bruh
do u know whats the name of this channel?
Okay
should prob disable all bot commands in this channel
agreed
id suggest removing view perms for every bot :D except the moderation ones
u know what? why we need moderation bots anyway
we not need any bot

People already have been suggesting that, But admins says the bots will bug out? (I don't know, seems like a random reason if they haven't done it yet)
Yeah
how does it bug
just set bots role overwrite to the channel
or the bot user itself
@main brook
I know
just give them the needed perms not all
💀
imagine someone like
"oh boy a random bot from one of my server member i sure hope it doesn't nuke, lets give it permission 8, now lets *explosion sound*"
just make administrator to the "Admin Bot"
mee6 oddities
I wasn't the one who set it up
but now I have to suffer because it has admin perms and it's way too hard to make it so mee6 doesn't answer to commands in some channels
only when i request
Lets give it consciousness
And see what happens
:)
Maybe it will moderate better
Maybe it will overtake humanity
Ehehehe
bots are as dangerous as users
wouldnt be too hard to create a fast kick script if you had perms as a user
thats when you become big brain programmer and force them to use commands from the bot with delays or alerts or something built in to the commands
and then users use EMPs to take out the bots, and start taking over the server
they hack into the mainframe and reroute the firewall
its a whole book/film in the writing
hackers in movies: im inside their server and breached their mainframe security system, i also hacked the firewall *proceed to type "oehwjsosuhwoq9wisbndkx8dhenwpwubsdkidhd"*
true but
integrated role exist
which makes it more op
since you can't change the perms in it
unless you reinvite with new perms
all bots are like reinvitable
if you can change perms on here, you can probably add discord bots
it is weird they have integrated role stuff though
be neat if they had a bot log that shows actions attempted by bots related to the guild they're in. Would show permission errors, etc.
God knows discord needs more text to store somewhere though
there's like
websockets event
to everything everyone does
excluding yourself
permission errors only happens on the server side
so
yeth
although the new slash command
you can apparently
let some command uses for public
or private
not sure how
but its on the discord moderation announcement
No they usually type the legendary Mov-Script+
Tyuidjdcapqqosk snfvowqme
"a gigabyte of ram should do the trick"
hes just passing the jvm flags to allocate a gig of ram into his java bruteforcer
fuc java man i just had
an entire project forced to be made of java
reflection is ass, you cant have abstract variables, variables on interfaces are also not allowed
just wow every answer on stackoverflow is either a huge function just to do simple task or a recommendation for a library that does simple task
kek
you'd still need the actual ram to allocate more ram
what's physical ram XD just use virtual ram its easier and cheaper lmao you nab
*every gamer who found out about swap for the first time*
Java is just bad csharp
I found a minecraft plugin that generates Linux swap for memory LMAO
it's called downloadmoreram or some shit
swap is slow af
i use it because most of my processes are idle
this the point
well it does like
thats*
runs on the disk
agreed
i like java
because hamza uses it
minecraft plugin devs
I should learn golanf
golang is fun
go seems cool
its error handling is cool
it's way better than python
but I wanna learn rust
and async by nature
rust seems cooler
golang and python
rust seems cool
no thanks
who doesn't write machine code???
men are weird
just look how good assembly x86 docs look like https://hjlebbink.github.io/x86doc/
🤐
ye?
just ask haydot
fr gunna kms
for assembly lessons
I demand css
its like
for assembly
I won't stand for this injustice
it looks like phishing site
ahh way better
you do you weird person
bro roboto makes everything look good change my mind
imagine having to lookup status codes
I fuck up so often I know them all
enumerator < hamburger
can a hamburger solve issues you can solve with enums
yes
error? eat hamburger > happy
how does error relates to enums
fat? workout > no coding > no errors > no more hamburger > no fat > happy life
enum*
everyone doesn't deserve happiness
don't let them buy hamburger
im 14
fuck you
i wonder when python 3.11 is released
hmm
lemme see
never, your room
why specify a place then
you're being weird
I can do it
@wet girder help
💃 me
also dpy haven't been stable for weeks and im suffering
balls
?
"how to make a tile?"
does that
not sound
very vague?
there's like
shit fuck tons
of answer how
Thats a normal question
it is not
There should be a template somewhere
really vague
what template
what tile
is it for construction?
you're not being specific
just go to grassland
you're still not making any sense
what tile
are you making a game
are you doing construction?
making sprites?
there's like fuckin 1000jxnsisbsbz x of fuckin
answer
think about it
this is
coders cave
literally
non worldbox
related
"This chat is NOT WORLDBOX RELATED"
pit
This is coders related too?
you know that's a mistake
you're pointing a very obvious
mistake
to one
Acually your mother
don't care
my mom is abandoned
at child
she lived through abusive nuns
pit
you've been here
shit load of times
you know better
than to be those asking for worlbox mod help
Hm...
in a channel not for #🔧modding-talk
Thx

omg ikrrr man
we have to do shit like Long.toString(0) and Double(somevalue).something()
and there's no built in reflection library
we cant initialize classes on the go in c# we can just AppDomain.CurrentDomain.GetAssemblies().SelectMany(s => s.GetTypes()).Where(p => interfaceType.IsAssignableFrom(p)) to create classes that implements interface
in java theres no such thing so whats the point of even having interface
Rust
Is cool af
But its also pretty difficult
More difficult than C in my opinion
Or it might be because im not used to that type of syntax idk
Assembly has the best docs change my mind
Only thing is
You only really need like 10% of the instructions
As stuff like cli and sti are used for the interrupt flags
Which you shouldn't touch
thank you but i dont wanna write 20 lines just to add 2 numbers
Now do it in RISC-V 
Nah I think im good with x86
Even arm
light theme
XD
i do not understand how to add the ncms
what's ncms
Please use #🔧modding-talk . They can help you more with it
You shouldn't return something when in a void
You just return
Nothing
Instead of creating a function that returns a void
Create a function that returns whatever you want to return
We ourselves were the real enemy for the entire time!
Is this 2011
Yeah it’s nice
But frameworks are now much nicer
fair
gotta learn some framework well at some point
I am starting to become quite decent with plain html, css and js
and some libraries to them
I love git
Please do more jojo reference in #🌎general
Not here
how is that a jojo reference? 
lmao
This means that the critical strike chance adjusts based on the number of normal attacks landed. It makes critical strike a damage multiplier, rather than a chance which can spike and cause issues in game. Over time, the critical hits it adds average out, ensuring that it cannot effect the game in unpredictable ways.
it depends on what you want since you are the dev
there is no set rule
crits use pseudo randomness and the percentage of damage it adds is your choice
pesudo randomness means the more you crit the less chance you will crit, the less you crit the more chance you will crit
which removes the i hit 5 times without a 33% crit
because by the fifth hit critting would be almost guranateed
get git gud
because
its not large
although they can just
check if the str is in an array
but then again
you'll need an extra space
for the arrays
string comparison is never the best option like
ever
imagine it comparing each char
use enums instead
or like
check length first
lol
How make code
Thats my response too its like
Do that in C
You get nothing
Or you get something
You get alot of undefined behaviour
Kids these days with their high level languages smh my head
01000110 01010101 01000011 01001011 01011001 01001111 01010101 00100001 im a binary genius
So for my probability and statistics course we have this website where we get an exercise daily and must submit the answer in max 48 hours. Every exercise is then evaluated automatically and you are assigned a score between 0 and 30. At the end of the course, you can use the weighted average, combine it with the score you get in a small exam you have to do physically at university and if it's > 18 you can accept it as a final score for that course.
The point is, that website is shit. Me and my friend figured out a way to get all the solutions just by analyzing the REST requests sent by the website. There is literally a local session.admin variable that you can set to true and get access to an interface that let's you grab the solution for a specific student in a specific date.
Just used Postman to send a bunch of POST requests and boom, exercise solved.
Do they offer a cybersec course?
yes lmao

it was probably made by some zerolow cost CS student
poor intern
Damage + Damage * CritStrke
that's an expression
you cant have an expression
only statements
no you cant use enums in this case
if you want it to look like this
you need to assign them to something after doing the math
this has an equal sign
this doesnt
You guys should make It possible to have mods for android
Why not
Just a suggestion
It would be cool and lots of people would be happy
Nvm
why not
if (resp == Response.Atk) looks and performs better than if (resp == "atk") string comparison is not even safe what if the input was " atk " or "Atk" then at this case you need to if (resp.ToLower().Trim() == "atk")
probably not worth bothering with
I'd say have fun creating and solving problems for a bit
in short, you gotta set a variable
Damage + Damage + CrtStrke you're not setting any variable
using "=" next to a variable like "Damage = Damage + Damage * CrtStrike"
will set damage to the result of the math problem
without the "=" you're just doing math and not assigning it anywhere, which would do nothing
isnt it supposed to be Damage * 2
crit strike is the probability your damage will be doubled
then there should be another variable Crit Damage where it adds up to the damage done by crit strike
idk man i play league of legend
technically it could be whatever they want
want to add +3 damage for each crit? by gods you do it
I mean if you've got a variable crit damage, where it changes the amount it could be used Damage = Damage * CrtStrike
like maybe you want 4x or 6x damage for some reason
just uh replace any number to a certain point with a text that says "too much damage"
actually just make it decimal instead but up to you
wait actually no double has bigger range
i think uh
you probably wont hit the limit either way
staff that gives you 3.4 * 10^38 damage is a bit overkill
I like caves
loots.lenght
you see all these
make these static
expecially Random, you only need one instance per entire program
static int[] loots = {2, 34};
static int Golds = 45;
public static int health = 100;
public static float exploot = 2.6f;
static Player player = new Player();
static Random rand = new Random();
static int index = rand.Next(loots.lenght);
static Data dat = new Data();```
like this
but ngl this is kinda messy you might wanna clean your code
or maybe make Enemy an abstract or interface because maybe you'll have many types of enemy in the long run
and oh no dont do this
maybe make a static class that handles random
also its .Length
lenght
wait a second is this specific to one Enemy?
this doesnt make sense
why is there a player inside the enemy class
parameters?
you dont make a new player inside the enemy
you can give to the enemy as a parameter
it doesnt make sense for the enemy to have a player
everybody here use unity?
I use it for school projects
I don't
Nope
everyone here is separated
hai haydot
More difficult than some parts of os development imo

Hey
i use java now
because
minecraft plugins are fun
Nice
I havent done anything java yet
Which is something that I have been planning to do
For since I started to program
Using vulkano has made me realize
How unused I am to using libraries
I try to do everything using the basics making my code shit
Which is a problem
Thats a text editor
i use poop code.
I support the message above
The only reason I would use java
Is if I wanted to use c# but I dont wanna use c#
Because yall know what I think of c# ever since the cult arrived in the chat
@orchid frigate honestly
c# is good
It may be but
Im so sick of people treating it like the superior language to all that
I cant take it seriously anymore
just ignore hamza ig
at this point what makes a language bad or good is the community
if you judge something based off of its community you are stupid
plenty of great things have garbage communities
see igniz
if you don't know shit
and wanna ask
if the community is shit
you get shit
If I see a movie has like 4/10 ratings from like 10,000 people I probably wont watch the movie, but if I see some weird reddit kiddos spamming terrible memes about it Its not going to make the movie any less good
true but its majority of literally all
community
other than the
community for positive stuff
remove worldbox community from worldbox and you can still enjoy the game lul
there are benefits to having a built up and dedicated community, but having a bad one wont make the product bad
it only amplifies them
well it does makes
first impression bad
little annoyance overtime gives a whole different opinion about something
unless you're immune to it
indeed but thats your own foolish brain's instincts
lost ark
trash community
trash publisher
trash developer
game was great but getting shitter by the day
our brain are so foolish
indeed, you have to train your brain
my brain wants to kill itself
by living
also
for some fucking weird reason
for Java you have to also change the javapath
located usually at
C:\ProgramData\Oracle\Java\javapath
to the actual new
java
because apparently
recommend for this program is
that said, I dont like when people argue over languages. Just use what you prefer and get the most out of unless its detrimental to your project to use it.
yes
agreed
i usually just suggest people use a language they're comfortable with
that's why i never participate in any competition or some sort in programming
i just code casually

competition is just about doing an idea really fast a lot of those
true
it usually came with alot of cut corners tho
and im a perfectionist in code
my config takes longer than the actual project
and the formatting
c# be like
(where is my reddit gold)
i literally thought of everything before adding new features
i don't have reddit, why you may ask?
because my shitty country blocked it because of "unsafe content" while literally promoting casino ads on a government website

that said
its like 2am rn
자야 돼
also i found out that
windows are again
shit
you have freedom from the cringe (reddit has good communities too, but there is a lot of cringe on there)
now bai
indonesian content are mostly cringier than most reddit post tbh
i usually just
surf actually good contents
when i use a vpn
bbc food without the "food"
I totally understand nothing because I’m not a coder lol
Don't flood.
my brain is fried trying to understand how you ended up with this code

the code just runs the same exact thing over and over again
yes i know that is what method and functions are for but the parameters are the exact same everytime
and its not even doing the intended purpose 😭
public void atk(int DamagedHealth)
{
// atk(100); idk what this is for
if (dat.response == "atk")
{
Damage -= DamagedHealth;
Player.health -= DamageHealth;
}
}
?
yeah
i didnt see the rest of the code and it makes sense that you subtract the hp in the atk
wait i have an insane idea
instead of doing that why not just
public int DoDamage {
set { Player.health -= value; }
}```
so when you wanna damage a player just do Player.DoDamage = 50
i swear man this is new not even bill gates is gonna do this
Why not
Use structures
So a structure for the player with the health
And other stuff
And just
Wait
Can you implement things to structures like in rust
So like
impl Player {
pub fn DoDamage(){
}
}```
But in c#
why
it seems good
or maybe
not for a player but
for all alive things in general
kinda limits the player but still
Bill gates room
structures are value types
they are passed by value by default
classes are reference types
they are passed by reference by default
entities get passed a lot and you usually want the reference not the value
dude chill thats a c programmer he minimally knows oop
I have no idea what he said
im trying to get web workers to work rn and this thing is making me go and learn about blob USVString
damage -= player.health; //damage - health
player.health -= damage; // Health - damage
Explain in C terms I dont understand your magic words
Oh
Thats a pretty popular opinion
nvm found lib
Im doing some graphics API stuff rn
As im taking a break from the kernel
And its so fucking fun its insane
Rust is amazing
Best language imo
ReferenceError: self is not defined
```BRUH THE LIB ITSELF HAVE ERROR
Lmao
You know you fucked up when the lib starts getting errors
its the first instruction that i told my code to do
and it gave error
there is no fixing that
ok
i cant make my own library if it wont let me do the basic thing
ok
Maybe your own os on a custom cpu
mmm
Nah but on a real note
How can self not be defined
Isn't self like...a const thing like it just either exists
¯_(ツ)_/¯
What is self anyway in js
idk
Oh so there is also a this
And a self
Ok I looked at it for 1 minute and left
Wow that seems overly complicated
Tbh as overly complicated as that seems rust is still on top for the most insanely complex ownership system that im sure absolutely noone understands fully
This shit gets wild sometimes
screw it
embrace
RangeError: Maximum call stack size exceeded
at self (/home/runner/eval/index.js:6:2)
at self (/home/runner/eval/index.js:6:2)
at self (/home/runner/eval/index.js:6:2)
at self (/home/runner/eval/index.js:6:2)
at self (/home/runner/eval/index.js:6:2)
at self (/home/runner/eval/index.js:6:2)
at self (/home/runner/eval/index.js:6:2)
at self (/home/runner/eval/index.js:6:2)
at self (/home/runner/eval/index.js:6:2)
At self....which self tho
uh oh
That seems like an awful error message
self undefined
In c you would pass it as a pointer
its not torture unless you go in the networking stuff
In C# you can just make it a class
Yeah
hippity hoppity
my server is about to everyone's property
Oooohhhh I get it
I forgot what we were talking about
But I get it
google thinks that im phishing myself
Well
Are you phishing yourself?
no!!!!
Are you sure???


