#⌨coders-cave

1 messages · Page 104 of 1

cloud solar
#

hm

barren shale
#

looks better = more readable

cloud solar
#

still not convinced

barren shale
#

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

knotty root
#

amongus

slow cloud
#

pale geyser
#

@fathom vine Do !rank in #🤖bot-commands next time

cloud solar
#

@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

barren shale
#

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

hasty bane
#

been modding rimworld lately

#

c# is so confusing after not having done it for a while

#

but its fun

round reef
#

FUCK

orchid frigate
#

ok

cloud solar
#

ok

verbal spoke
#

use-traiteditor command

orchid frigate
#

#🤖bot-commands

#

damnit

swift path
#

-traiteditor

ashen berry
#

blender.

empty terrace
#

Guys use C# Code

errant trail
#

no

empty terrace
#

Are u okay

empty terrace
errant trail
#

i will use

#

arm64

empty terrace
#

Its a code to help beginner coders

main brook
#

uh

#

not sure about that

#

everyone have different opinions

#

so

orchid frigate
#

@empty terrace c# isnt as great as you advertise it to be get used to it noob

#

Get 360 no scoped

next lotus
#

no

#

c# is great

#

ill show u

#

im generating GAN using tensorflow in c#

#

wait it still doesnt make sense

#

wait it does

arctic wolf
#

Use g#xth

orchid frigate
#

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

barren shale
#

||faster than expected||

empty terrace
orchid frigate
empty terrace
#

Chad i can outsmart u

orchid frigate
#

This is delightful however I ate your mother

empty terrace
#

Ayo

lofty pewter
#

i use vulkan in C and i write my shaders directly with spir-v

dawn niche
#

So I'm doing this project on this solo learning coding thing

#

I need some help lol

#

It's C++

proven sun
#

~traiteditor~

#

me no brai

cloud solar
orchid frigate
#

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

cloud solar
#

Worldbox is using perlin noise right?

#

I mean for random generation

errant trail
#

noise moment

#

🎵🎵🎵🎵🎵🎵🎵

orchid frigate
#

Vulkan only supports spir-v

errant trail
lofty pewter
#

but the joke not work

dawn niche
#

Could anyone help me with this code project? C++

barren shale
#

ew no

orchid frigate
#

It sounded so real

orchid frigate
#

Dont listen to hamza

#

What do you need

cloud solar
#

C# better

#

And with unity

dawn niche
#

Imma just dm you

cloud solar
#

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*

dawn niche
#

How is c++ bad?

cloud solar
dawn niche
#

That's new info

cloud solar
#

And making your own engine is a sueside mission

cloud solar
cloud solar
#

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

dawn niche
#

Ok

orchid frigate
#

"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

cloud solar
orchid frigate
#

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

barren shale
#

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

cloud solar
orchid frigate
#

Why use an engine

#

In the first place

barren shale
#

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

orchid frigate
#

Just

barren shale
#

english be like wat

orchid frigate
#

Render things

#

With a graphics library

#

Using your own custom shaders

barren shale
#

i mean you did it and you got 1 fps

orchid frigate
#

With maximum control

barren shale
#

i did it and my game started stuttering

orchid frigate
#

Over everything

cloud solar
#

@orchid frigate just lost 1% of respect to you

#

119 left

orchid frigate
#

It was a joke

barren shale
#

nah

#

doesnt matter

orchid frigate
#

A fucking joke

#

And 1 year ago

barren shale
#

using an engine will still be better

orchid frigate
#

It was a year ago

orchid frigate
#

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

humble wasp
#

,work

undone lionBOT
#
Eye#7572

You are hired to construct a Czar Bomba, getting paid crabcoin198.

humble wasp
#

,bj 15000

undone lionBOT
#
Eye#7572

Result: Bust crabcoin-15,000

**Your Hand**

9C 4H jS

Value: 23

**Dealer Hand**

qD cardBack

Value: 10

humble wasp
#

,bj 15000

#

bruh

#

,work

#

Smh

hoary hound
#

@humble wasp bad

humble wasp
#

why are you a bot now 👽

#

hoary hound
#

always have been

#

⚠ Warned Eye#7572

barren shale
#

@humble wasp you fr rn?

naive storm
#

Hi

humble wasp
#

damn another warn?

humble wasp
#

problem?

barren shale
next lotus
#

why

#

are bot commands

#

allowed here again

wet girder
#

They are not

cloud solar
#

So it looks like the commands are allowed

#

And thats not cool

wet girder
#

he also got warned for it

spring mantle
#

,work

undone lionBOT
#
Glitching Eclipse#0003

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 crabcoin355.

spring mantle
#

,bj 100

undone lionBOT
#
Glitching Eclipse#0003

Result: Bust crabcoin-100

**Your Hand**

9H 3H aS jH

Value: 23

**Dealer Hand**

8H cardBack

Value: 8

spring mantle
#

,bj 100

undone lionBOT
#
Glitching Eclipse#0003

Result: Bust crabcoin-100

**Your Hand**

3S 5D 8S jD

Value: 26

**Dealer Hand**

10H cardBack

Value: 10

spring mantle
#

,bj 100

undone lionBOT
#
Glitching Eclipse#0003

Result: Push, money back

**Your Hand**

9S 2D 3D 6S

Value: 20

**Dealer Hand**

qD 3D 7H

Value: 20

spring mantle
#

,bj 100

undone lionBOT
#
Glitching Eclipse#0003

Result: Dealer bust crabcoin100

**Your Hand**

jS kS

Value: 20

**Dealer Hand**

jD 5C kH

Value: 25

spring mantle
#

,bj 100

undone lionBOT
#
Glitching Eclipse#0003

Result: Dealer bust crabcoin100

**Your Hand**

6C qD 5D

Value: 21

**Dealer Hand**

5D 5D 5C qC

Value: 25

spring mantle
#

,bj 150

undone lionBOT
#
Glitching Eclipse#0003

Result: Win crabcoin150

**Your Hand**

10D 4H 5S

Value: 19

**Dealer Hand**

6H kC aC

Value: 17

spring mantle
#

,dep all

undone lionBOT
#
Glitching Eclipse#0003

check Deposited crabcoin508 to your bank!

spring mantle
#

,bal

undone lionBOT
#

Use the leaderboard command to view your rank.

Cash:

crabcoin0

Bank:

crabcoin508

Total:

crabcoin508

spring mantle
#

,work

undone lionBOT
#
Glitching Eclipse#0003

stopwatch You cannot work for 1 minute and 16 seconds.

spring mantle
#

,crime

undone lionBOT
#
Glitching Eclipse#0003

You decide to scavenge the ruins of a castle. You happily walk away with crabcoin308 in loot.

spring mantle
#

,dep all

undone lionBOT
#
Glitching Eclipse#0003

check Deposited crabcoin308 to your bank!

cloud solar
#

@wet girder warn this guy: @spring mantle ok?

#

he also spammin

spring mantle
#

Bruh

cloud solar
spring mantle
#

Ah

#

I see

cloud solar
#

for commands use #🤖bot-commands

#

ok?

#

@spring mantle

spring mantle
#

Okay

hasty bane
#

wbeyes should prob disable all bot commands in this channel

hasty bane
#

id suggest removing view perms for every bot :D except the moderation ones

cloud solar
hasty bane
#

???

#

to mute/warn/ban people?

cloud solar
hasty bane
bold rover
hasty bane
#

weird

#

they never bugged out for me

bold rover
#

Yeah

main brook
#

just set bots role overwrite to the channel

#

or the bot user itself

bold rover
#

@main brook

main brook
#

L

#

why does bots even have administrator

bold rover
#

I knowgoose10

main brook
#

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"

wet girder
#

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

humble wasp
orchid frigate
#

Lets give it consciousness

#

And see what happens

#

:)

#

Maybe it will moderate better

#

Maybe it will overtake humanity

bold rover
#

Ehehehe

hollow bronze
#

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

main brook
#

hackers in movies: im inside their server and breached their mainframe security system, i also hacked the firewall *proceed to type "oehwjsosuhwoq9wisbndkx8dhenwpwubsdkidhd"*

main brook
#

integrated role exist

#

which makes it more op

#

since you can't change the perms in it

#

unless you reinvite with new perms

hollow bronze
#

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

main brook
#

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

orchid frigate
#

Hi

#

Ok bye

main brook
#

hai haydot

dawn niche
lilac dune
#

hes just passing the jvm flags to allocate a gig of ram into his java bruteforcer

next lotus
#

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

hasty bane
#

kek

next lotus
#

and like

#

why is there no

#

unsigned variables

#

like just

#

why

main brook
hasty bane
#

he's too advanced for that

#

no physical ram needed

main brook
#

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*

lilac dune
#

it's called downloadmoreram or some shit

main brook
#

that's really unnecessary

#

i can just like

lilac dune
#

it is

#

It does nothings

#

nothing

#

just buy a better vps

#

lmao

main brook
#
dd if=/dev/zero of=/swp bs=256M count=1
mkswap /swp
swapon /swp
#

bam

wet girder
#

swap is slow af

main brook
#

duh

#

jupe

#

its supposed to be for inactive pages

wet girder
#

ye

#

Ik

main brook
#

i use it because most of my processes are idle

lilac dune
main brook
#

well it does like

lilac dune
#

thats*

main brook
#

runs on the disk

lilac dune
#

I fucking hate java

#

it works so weird

wet girder
#

agreed

main brook
#

i like java

lilac dune
#

in csharp I can use int for assigning and parsing

#

in java it's int and Integer

main brook
#

its for a reason

#

int a = 1;
Integer(a);

#

i actually hate C#

lilac dune
#

int.Parse cs
Integer.parseInt java

#

wait

#

I forgor

main brook
#

because hamza uses it

lilac dune
#

does java have positive infinity for integers

#

or only floats

main brook
#

float

#

i think

lilac dune
main brook
#

we all hate a language

#

but don't attack people liking it

#

like hamza here

lilac dune
#

I should learn golanf

main brook
#

golang is fun

wet girder
#

go seems cool

main brook
#

its error handling is cool

lilac dune
#

it's way better than python

wet girder
#

but I wanna learn rust

main brook
#

and async by nature

wet girder
#

rust seems cooler

main brook
#

golang and python

lilac dune
main brook
#

is like

#

comparing

#

machine and biology

lilac dune
#

real men code in assembly

#

fr

main brook
#

no thanks

lilac dune
#

who doesn't write machine code???

main brook
#

men are weird

lilac dune
#

I'm not gunna get banned yet

#

I won't comment

wet girder
lilac dune
#

🤐

main brook
#

jupe

#

jupe

wet girder
#

ye?

main brook
#

just ask haydot

main brook
#

for assembly lessons

lilac dune
#

wtf is this

#

no css

#

could have changed the font

main brook
#

its literally

#

a doc

#

for a super

#

complex language

lilac dune
#

I demand css

main brook
#

its like

lilac dune
#

for assembly

main brook
lilac dune
#

I won't stand for this injustice

main brook
#

it looks like phishing site

wet girder
#

ahh way better

main brook
#

you do you weird person

lilac dune
#

bro roboto makes everything look good change my mind

#

imagine having to lookup status codes

#

I fuck up so often I know them all

main brook
#

uhm

#

all of us?

#

usually a http lib

#

have their own

#

enums

#

for the http code

lilac dune
#

enumerator < hamburger

main brook
#

can a hamburger solve issues you can solve with enums

lilac dune
#

yes

main brook
#

how

#

explain it

#

in details

lilac dune
#

error? eat hamburger > happy

main brook
#

how does error relates to enums

lilac dune
#

fat? workout > no coding > no errors > no more hamburger > no fat > happy life

lilac dune
main brook
#

are you saying

#

being fat

#

doesn't mean happy life

lilac dune
#

being fat > happy

#

no fat > happy

main brook
#

everyone doesn't deserve happiness

lilac dune
#

you want to beat up kids?

#

workout

main brook
#

sir

#

im a minor myself

lilac dune
lilac dune
main brook
#

im 15

#

smh

#

anyway

lilac dune
#

fuck you

main brook
#

i wonder when python 3.11 is released

lilac dune
#

you're older than me

#

so fuck you

lilac dune
#

real

main brook
#

hmm

lilac dune
#

aight

#

when and where

main brook
#

lemme see

lilac dune
#

when and where rei

#

WHEN AND WHERE

main brook
#

oh nice

#

its already on the work

main brook
lilac dune
#

why specify a place then

main brook
#

because

#

you'll never get anything in your room

lilac dune
#

I was born in a sink

#

I can duck my own dick

#

suck

main brook
#

pretty weird there

#

but oki

#

reminds me

lilac dune
#

I can and will

#

give me head

main brook
#

you're being weird

lilac dune
#

I can do it

main brook
#

@wet girder help

lilac dune
#

💃 me

main brook
#

also dpy haven't been stable for weeks and im suffering

lilac dune
#

I'm going to sleep I'm tired

#

gb

main brook
#

okie gn weirdpet

#

go away weird person

lilac dune
#

balls

cloud solar
#

How to make a tile?

#

Like with own texture

#

Ect

main brook
#

you're not making any sense

#

very vague

cloud solar
main brook
#

"how to make a tile?"

#

does that

#

not sound

#

very vague?

#

there's like

#

shit fuck tons

#

of answer how

cloud solar
main brook
#

it is not

cloud solar
#

There should be a template somewhere

main brook
#

really vague

#

what template

#

what tile

#

is it for construction?

#

you're not being specific

cloud solar
#

Or water

#

Or any other tile

main brook
#

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

cloud solar
#

Worldbox

#

Mod

main brook
#

this is

#

coders cave

#

literally

#

non worldbox

#

related

#

"This chat is NOT WORLDBOX RELATED"

#

pit

cloud solar
main brook
#

you've been here

#

many times

main brook
#

you're pointing a very obvious

#

mistake

#

to one

cloud solar
main brook
#

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

cloud solar
#

Hm...

main brook
cloud solar
main brook
#

LITERALLY FUCKER CAN JUST

#

you know what I don't care anymore

cloud solar
next lotus
#

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

orchid frigate
#

I get you but how about

#

We use assembly for everything instead

orchid frigate
#

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

orchid frigate
#

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

next lotus
orchid frigate
#

Bru

#
mov ebx, 5
inc ebx

Or

mov ebx, 5
add ebx, 8
#

Its that simple

hoary hound
#

Now do it in RISC-V maximdark

barren shale
#

addition is not hard

#

since its baked in

#

everything else is stupid

orchid frigate
#

Even arm

next lotus
#

light theme

next lotus
#

i can fuck myself all day

#

but no one can stop me using light theme :)))

sharp knoll
#

Ew Light Theme I'm gonna vomit

#

MY EYES

#

Ewww
Ahhhh Its Burning

#

MY FACEE

#

Aaa

sharp knoll
#

XD

main brook
#

sir this is coders cave

#

not memers cave

orchid frigate
#

Not coders cave

unique swallow
#

i do not understand how to add the ncms

main brook
#

what's ncms

orchid frigate
#

Not comedic morning sandcastle

#

Obviously

#

I thought everyone knew that

wet girder
orchid frigate
#

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

pliant wadi
#

ITS STAR WARS DAY PEOPLE MAY THE FOURTH BE WITH YOU

#

maybe u first bigmouthed one

barren shale
#

enemy inside the player class

#

ahh yes

hoary hound
wet girder
#

okay but have you guys had to learn jquery in an hour for internship

hoary hound
#

zamn

#

never had to but it doesn't sound fun

wet girder
#

it was actually fun

#

I enjoy jquery a lot now

wet girder
#

lmao

#

but like jquery is honestly nice

#

I like using it

barren shale
#

Yeah it’s nice

wet girder
#

but well most of my experience with web development is plain html, css and js

#

lol

barren shale
#

But frameworks are now much nicer

wet girder
#

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

main brook
#

get git

#

didn't know a wafer can give me ptsd

wet girder
#

I love git

main brook
#

same

#

i just love it

#

when you get

#

merge conflict

bold rover
#

Not here

hoary hound
errant trail
#

google

#

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

barren shale
#

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

barren shale
next lotus
#

omg is that string comparison inside an if why

#

why

main brook
#

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

next lotus
#

string comparison is never the best option like

#

ever

#

imagine it comparing each char

#

use enums instead

#

or like

#

check length first

#

lol

knotty root
#

How make code

orchid frigate
#

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

untold cosmos
#

01000110 01010101 01000011 01001011 01011001 01001111 01010101 00100001 im a binary genius

hoary hound
#

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.

hasty bane
#

Do they offer a cybersec course?

hoary hound
#

yes lmao

hasty bane
hoary hound
#

it was probably made by some zerolow cost CS student

hasty bane
#

poor intern

knotty root
#

Ok so I make code good how do

#

No have YouTube

#

Wat do

gentle fractal
#

Copy code

#

From internet

#

Until it work

barren shale
#

Damage + Damage * CritStrke

#

that's an expression

#

you cant have an expression

#

only statements

next lotus
#

please use enums

#

a single value getting compared is better then an entire char array

barren shale
#

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

gray hollow
#

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

next lotus
#

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")

hollow bronze
#

probably not worth bothering with

#

I'd say have fun creating and solving problems for a bit

barren shale
#

depending on the game

#

xd

#

sometimes its Damage = Damage + Damage * Crit

hollow bronze
#

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

next lotus
#

isnt it supposed to be Damage * 2

#

crit strike is the probability your damage will be doubled

hollow bronze
#

its whichever system they've setup

#

or intend to setup

next lotus
#

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

hollow bronze
#

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

hollow bronze
#

just uh replace any number to a certain point with a text that says "too much damage"

next lotus
#

actually just make it decimal instead but up to you

#

wait actually no double has bigger range

hollow bronze
#

i think uh

#

you probably wont hit the limit either way

#

staff that gives you 3.4 * 10^38 damage is a bit overkill

jolly plinth
#

I like caves

pulsar tiger
#

loots.lenght

next lotus
#

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

pulsar tiger
#

lenght

next lotus
#

wait a second is this specific to one Enemy?

barren shale
#

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

safe prawn
#

everybody here use unity?

wet girder
#

I use it for school projects

main brook
#

I don't

orchid frigate
next lotus
orchid frigate
#

I use rust with vulkano

#

Which is

#

Fun but

main brook
#

hai haydot

orchid frigate
#

More difficult than some parts of os development imo

main brook
orchid frigate
main brook
#

because

#

minecraft plugins are fun

orchid frigate
#

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

knotty root
#

i use poop code.

orchid frigate
#

I support the message above

next lotus
#

did someone say

#

java

#

why

#

why java

barren shale
#

minecraft plugins

#

there's no other way

next lotus
#

ah yes minecraft

#

the only thing keeping java alive

orchid frigate
#

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

hasty bane
#

@orchid frigate honestly
c# is good

orchid frigate
#

It may be but

#

Im so sick of people treating it like the superior language to all that

#

I cant take it seriously anymore

hasty bane
#

just ignore hamza ig

main brook
#

at this point what makes a language bad or good is the community

hollow bronze
#

if you judge something based off of its community you are stupid

#

plenty of great things have garbage communities

main brook
#

see igniz

#

if you don't know shit

#

and wanna ask

#

if the community is shit

#

you get shit

hollow bronze
#

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

main brook
#

true but its majority of literally all

#

community

#

other than the

#

community for positive stuff

hollow bronze
#

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

barren shale
#

dota 2

#

trash community

#

great game

main brook
#

well it does makes

#

first impression bad

#

little annoyance overtime gives a whole different opinion about something

#

unless you're immune to it

hollow bronze
#

indeed but thats your own foolish brain's instincts

barren shale
#

lost ark
trash community
trash publisher
trash developer
game was great but getting shitter by the day

main brook
#

our brain are so foolish

hollow bronze
#

indeed, you have to train your brain

main brook
#

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

hollow bronze
#

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.

main brook
#

1.8

#

while latest was jdk 1.18

main brook
#

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

hollow bronze
#

competition is just about doing an idea really fast a lot of those

main brook
#

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

hollow bronze
main brook
#

i literally thought of everything before adding new features

main brook
#

that said

#

its like 2am rn

#

자야 돼

#

also i found out that

#

windows are again

#

shit

hollow bronze
main brook
#

now bai

main brook
#

i usually just

#

surf actually good contents

#

when i use a vpn

#

bbc food without the "food"

main brook
#

uh what

#

you should probably just

#

Player.health -= Damage

velvet phoenix
#

I totally understand nothing because I’m not a coder lol

next lotus
#

ummm

#

why are you calling atk inside atk

#

thats gonna cause

#

overflow

#

xD

main brook
#

recursion be like

distant wraith
#

Don't flood.

solemn sentinel
#

ᴜᴡᴜ

#

sʀʏ

main brook
#

Kirill

#

do you know the basics

#

of functions

#

e

scenic notch
#

What do you so as a moderator

#

Hi

barren shale
#

i just ban them

#

i told you to use the player as a parameter dude

errant trail
#

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

next lotus
#

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

barren shale
#

bad design

#

you usually do things in methods

orchid frigate
#

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#
barren shale
#

structures for a player

#

bad idea

orchid frigate
#

why

#

it seems good

#

or maybe

#

not for a player but

#

for all alive things in general

#

kinda limits the player but still

mossy cedar
#

Bill gates room

barren shale
#

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

next lotus
errant trail
#

yes

#

yes

orchid frigate
errant trail
#

im trying to get web workers to work rn and this thing is making me go and learn about blob USVString

orchid frigate
#

Wait no

#

You are

#

Subtracting damage from health

#

Not health from damage

errant trail
#
ReferenceError: Worker is not defined
```😭
#

no web workers ig 🥲

orchid frigate
#
damage -= player.health; //damage - health 
player.health -= damage; // Health - damage
orchid frigate
orchid frigate
#

Whats that

errant trail
#

web stuff

#

multithread

#

js pain

orchid frigate
#

Oh

orchid frigate
errant trail
#

nvm found lib

orchid frigate
#

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

errant trail
#
ReferenceError: self is not defined
```BRUH THE LIB ITSELF HAVE ERROR
orchid frigate
#

You know you fucked up when the lib starts getting errors

errant trail
#

its the first instruction that i told my code to do

#

and it gave error

#

there is no fixing that

orchid frigate
#

Be a man

#

Make your own libraries

errant trail
#

ok

orchid frigate
#

You know what fuck it

#

Your own languages too

#

Ans while you are at it

errant trail
#

i cant make my own library if it wont let me do the basic thing

errant trail
orchid frigate
#

Maybe your own os on a custom cpu

errant trail
#

mmm

orchid frigate
#

Nah but on a real note

#

How can self not be defined

#

Isn't self like...a const thing like it just either exists

errant trail
#

¯_(ツ)_/¯

orchid frigate
#

What is self anyway in js

errant trail
#

idk

orchid frigate
#

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

errant trail
#

yeah

#

i just wanted an eval that will stop after a certain time 😭

orchid frigate
#

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

errant trail
#

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)
orchid frigate
errant trail
#

uh oh

orchid frigate
#

That seems like an awful error message

errant trail
#

self undefined

orchid frigate
#

Do you have to use js

#

Idk how web stuff works

#

Because this seems like torture

barren shale
errant trail
barren shale
#

In C# you can just make it a class

errant trail
#

and web workers

#

others are ok

barren shale
#

Yeah

errant trail
#

hippity hoppity
my server is about to everyone's property

orchid frigate
#

I forgot what we were talking about

#

But I get it

errant trail
#

google thinks that im phishing myself

orchid frigate
#

Are you phishing yourself?

errant trail
#

no!!!!

orchid frigate
#

Are you sure???

errant trail
#

yes

orchid frigate
#

wait can I go on your site

#

I wanna get phished too

errant trail
#

ok

#

its basically variables

#

but only for functions

orchid frigate
#

they are local

#

to the function

errant trail
#

maybe

#

probably

orchid frigate
#

just like how a variable made in a function, if statement or whatever is local to it

#

they cant be used outside of it

#

only in it