#⌨coders-cave

1 messages · Page 22 of 1

feral bramble
#

Ok unreal is like 5% royalty

#

neat

#

and Godot is just pretty much free if following the licensing terms right?

royal dust
#

Ye

barren shale
#

well that looks a bit more fair now

#

they just have to fix the multiple installs confusion

wet girder
#

Imo that's still scummy

#

They already take so much money if you make money with the game engine

#

Adding fees based on estimated amount of installs is a scummy thing to add on top of that

barren shale
#

unreal engine takes 5% of revenue

#

which is way more than the license fees

#

it was coming

#

the execution is really bad though

wet girder
#

Well per install fee ain't the way

barren shale
#

i think they should just do what unreal engine did

wet girder
#

Per purchase I could understand but Imo revenue percentage is the most fair

barren shale
#

revenue percentage is the same thing as per purchase xzibit

#

its just a different percentage for different games ig

wet girder
#

Well yes but making it a set price for every purchase is not good because it affects cheaper aka indie games more

barren shale
#

per purchase wouldnt be good profit because they cant really charge that much for it

#

per install is just dumb

#

how are you going to track multiple installs on the same machine

#

without tracking hardware ids

#

too much tracking

wet girder
#

They aren't tracking much, they just estimate the amount of installs per purchase

#

They try to get as much data by making the engine call home everytime a game is booted up

barren shale
#

probably gonna scrap it and make it revenue percentage

#

too much backlash

wet girder
#

They already doubled down on it

#

Lol

barren shale
#

that's just dumb

#

i believe companies have big brain when they see their numbers go down

#

so we just need to wait until the numbers start to go down

#

and then they will

wet girder
#

Stocks went down by 10% just mere hours after the announcement

wet girder
#

And allegedly unity execs sold a lot of their stocks in unity right before the announcement

#

There are a lot of fraud allegations going on against unity lol

#

The whole situation Imo is really bad because UE is gonna have a monopoly in the engine market

barren shale
#

i would use godot over unreal

#

for low res games

#

basically godot would replace unity

wet girder
#

Same but a lot are gonna use UE because it's made by a big company

barren shale
#

the unreal market is kinda different at this point anyway

#

its mainly for very high res triple A titles

wet girder
#

Yep

#

It's apparently becoming fuckin amazing for any kind of fps games

#

Or so I've heard

barren shale
#

low res games normally use unity

#

because its so much easier to use

#

also ive never seen someone do 2D in unreal so idk if that's even a thing

wet girder
#

2.5D is sometimes done in UE but never seen pure 2D

#

Godot sounds cool tho, it even allows to use 3 different languages for scripting out of the box

barren shale
#

2.5D is still 3d rendering so yeah maybe unreal doesnt have good 2D rendering or something

wet girder
#

I'm honestly kinda thinking of doing a project in it because I'm missing game development. Last time I did anything related to it was in school and I uses to love it

barren shale
#

the other two are not very supported

#

i wanted to try godot but im over my game dev days xzibit

#

@orchid frigate download rust rover so you can actually write decent rust code

#

if its anything like rider it should tell you where youre using bad code

royal dust
#

My bots first actually useful message

knotty root
#

I want to rule the world

orchid frigate
#

Because I'm doing vulkan and vulkano kinda sucks

barren shale
#

Bruh I’ve seen you write c++ code like a year ago and you suck ngl

orchid frigate
#

I do yes

#

I prefer c

#

Because I don't have to worry about the code being good in c

#

But idk if it's a good idea to fully do it in c

#

So I'm just using c++ for one class which is the application one

#

And that's it

#

And for exceptions

#

If I tried using anything else I think any professional c++ programmer will have a stroke reading it

quartz pumice
naive minnow
#

me as a game developer, what you suggest for writing more clean code?

#

and what to do improve my old code?

orchid frigate
#

What language

#

What game engine

#

And the best way to improve old code is to never look at it again unless forced to

orchid frigate
# quartz pumice

Or make one c++ class that contains fucking everything for no reason

#

And call it system or something

naive minnow
naive minnow
#

but I think old code gonna give me hard times in the future

quartz pumice
#

nobody gives a shit about future you

naive minnow
nova oasis
#

.

quartz pumice
#

Why did you take that the wrong way bruh

#

How do I rephrase it

#

😭

static solar
hardy field
#

Yeah, it isn't trying to force a new contract and tos without the consent of the people it affects

naive minnow
barren shale
#

idk if you are just getting into game dev unity isnt a bad option

#

you wont be releasing your 200k downloads + 2 million revenue game yet

#

and unity is very easy to use so learning the concepts will be easier

main brook
#

windows sucks

#

imagine having a fresh install and the next time you restart

#

a critical process just died randomly

#

i swear to god

#

imagine you just bought apple and it just fades out of reality for no absolute reason

#

fr i hate ones and zeroes now

#

imagine everytime you install windows it just corrupts itself

#

how does a program even corrupts itself

#

my installation kept doing ```
if(installed) {
int result = corrupt();
if(result == 1) {
corrupt_until_broken();
}
}

#

windows sucks and im not taking back my words for it

#

btw have anyone tried surrealdb

quartz pumice
#

open source too hot damn

#

would be complete if they gave a free crappy server with 5 megabytes of storage to use it with

#

nope

#

guess im sticking to supabase 😭

barren shale
#

just use vercel

#

works with nextjs and sveltekit and more stuff too

#

and mongodb for database

#

atlas free tier is enough for most things

#

im using it for speciesbox and it works fine

orchid frigate
orchid frigate
# naive minnow unity c#

to be honest unless the script becomes bigger than like 100-150 lines of code you shouldnt try that hard to make it clean

#

all you really have to do is follow the calling conventions and make it visibly good looking to you

barren shale
#

Yeah it is

lapis flint
#

There are ways to code on c#, their own python-syntax-based language, or c++, or even combined

barren shale
#

But I heard only GDScript is decently implemented

#

Idk if that changed

lapis flint
#

Nah, i am working on project rn, using c#

barren shale
#

Ooo that’s nice

lapis flint
#

They received generous donation from microsoft for implementing c#

barren shale
#

I guess then yeah godot should be the go to engine now

lapis flint
#

System of nodes is very similar to unity's gameObjects, but code side is more friendly then unity's by my opinion

wet girder
#

only real difference between C# and GDScript in interpreted vs compiled

#

GDScript is faster to develop with but C# makes better running games

distant wraith
#

I hate writing docs

orchid frigate
#

And the people that haven't too

#

And the people in general

lapis flint
orchid frigate
#

The process itself is boring as fuck

#

And if you have a larger project you have to revert back to code you don't remember how you scrapped together

#

And if you have a smaller project it's a waste of time

barren shale
#

if you really wanna sustain a project

#

unit tests and docs as you go

orchid frigate
#

Hexadecimal is used pretty much everywhere in programming

#

It's the average way to represent numbers

#

However I don't think it's used as much in the back end simply because it doesn't require as many numbers in general

#

Hexadecimal is just a number notation meaning it's no different than the normal decimal notation

#

You can convert them at any website/calculator

#

There is math to it but those sites do it for you

humble nimbus
#

!rank

split parrotBOT
barren shale
#

cringe

wet girder
#

If you want hexadecimal in decimal format, you can just google "hexadecimal to decimal converter"

quartz pumice
#

What's with the purple names

wet girder
#

Event

ornate lark
#

0100101110101

wet girder
quartz pumice
wicked blaze
barren shale
#

bro did it again fr fr

wet girder
#

@humble nimbus use #🤖bot-commands for bot commands

green spade
#

@wet girder what hosting do you use for worldbox amp

wet girder
#

some random vps

#

I'm planning on moving it to a hetzner vps

barren shale
queen zodiac
barren shale
queen zodiac
#

Better

green spade
wet girder
#

I don't remember the server providers name but some cheap vps

green spade
#

Aw ok

quartz pumice
orchid frigate
# quartz pumice

Real c programmers don't use free at all and still complain that their programs are slow

forest quartz
#

yo guys, do admins donate free god sim occasionaly

#

I dont habe money

static solar
barren shale
#

not really

static solar
#

Not going to user Unity, like ever now

#

Really dragged their reputation through the slums with that one

barren shale
#

i mean if you wanna blame the whole company for a mistake somone made you do you

#

but most people will still be using unity

#

companies that areusing unity will probably not switch

static solar
#

Of course they wouldn‘t

#

Never said they would

#

Yet I don‘t trust a company, which tries to implement such a drastic decision, and only slowly paddled it back after backlash. I don‘t think it‘s a reliable practice

barren shale
#

every company has a major fuck up

#

unity's one is done

#

and it went pretty well i must say

static solar
#

I hope this won‘t a precedence case for Unity

#

And they will slowly try to bring it out under the radar

#

Or try to change the course of the company

barren shale
#

companies are in it for the money always

#

there's no company that is not in it for the money because you cant run a company without the money

#

so they wont do this after all the backlash that happened

#

because they have determined that this is not good for money xzibit

static solar
#

Well, as you said, most companies will not switch, if they were to sell out, most people would be stuck with it

barren shale
#

not really

#

companies will switch if unity didnt go back

static solar
#

I wouldn‘t migrate my game, if I were a large corporation

barren shale
#

well nobody will migrate already made games

#

but new games will be made with new engines

static solar
#

Just not develop on there

#

Yep

barren shale
#

that's a huge loss for unity if fcompanies did that

static solar
#

I just think those money hungry CEO‘s stink

#

They would try everything to make a quick buck

barren shale
#

that's their jobs

#

if they dont do their jobs

#

they get fired

static solar
#

And this case alone shows, they don’t take bigger picture into consideration

#

An impulsive decision, made to make money, not satisfy the customer, potentially ruining their stance on the market

#

Alone taking that risk, makes them untrustworthy

barren shale
#

in one month everyone will forget

static solar
#

But I will just wait how Unity develops until I actually form a lasting opinion on them again

static solar
barren shale
#

companies are in it for the money

#

making games with unity is very good money

#

because there are a lot of unity devs

static solar
#

True

barren shale
#

so as long as unity stays like this

#

they will use it

static solar
#

I just hope they don‘t drive themselves into the dumpster

#

As it is a really good tool

barren shale
#

you shouldnt expect companies to do everything perfectly

#

a company that backs off when they see consumer backlash is a good company

static solar
#

They didn’t have much of a choice

barren shale
#

they did

static solar
#

Everyone would have backed down

barren shale
#

they can just drag everyone down with them

#

like blizzard

static solar
#

They tried to backpaddel, tune it down, and when nothing worked, they just gave up on it

#

Anyways, I will head out now

timid field
#

Hopefully it goes smooth, i am lucky i havenot seriously began investing into C# for unity CookieBruh

wet girder
#

Idk what you guys were talking about but Imo the new runtime fee is good

#

Now Unity only has 2 problems, way too many employees and they're using too many resources to compete with unreal when they should be using resources to be the best Mobile + VR + indie games engine that they currently are

rose pawn
#

I need advice

#

How do i safely send a package to someone i know from online without anyone sharing adresses?

lofty phoenix
wet girder
rose pawn
#

Really

#

Im gonna open a company that does this

quartz pumice
#

@orchid frigate I finally got around to making my file system, I was doing other projects for a while

#

python file which makes it

orchid frigate
#

Is this the source code or the image

quartz pumice
#

source code makes image

orchid frigate
#

Why not paste bin it

quartz pumice
#

I forgot pastebin exist

orchid frigate
#

I'm on phone so making it will be annoying

#

Then paste bin it

#

oh wait I didnt read the inside

#

so making your own filesystem requires you to make shit like this

#

this does no look fun

#

like at all

#

is implementing it into the os easier atleast

quartz pumice
#

idk

#

it was fun

quartz pumice
#

and errors were easy to spot by just looking at the output file

#

alot of the lines in there arent even needed, I just wanted to add some convenience to future me

#

the lines where it makes the entries into the table are a bit ugly, but they are easy to read and I was just too lazy to make them look good

wintry crescent
wintry crescent
# orchid frigate I'm on phone so making it will be annoying

There has to be a way to make a phone into windows computer os system when I was in 6th grade I didn't know much but I bought a 30 Doller TLC Phone and Wiped the data off of it and tried to use a USB hard drive to put windows on it big waste of money im much older now and want to try again

wintry crescent
#

Why so mean

quartz pumice
queen zodiac
#

io?

ashen bane
#

Lua

quartz pumice
#

stdio is the best

rose pawn
distant wraith
#

Wtf is that thing

barren shale
#

imagine developing in C

#

you have to make your own dynamic arrays

#

and making your own dynamic arrays is ez

#

imagine making a mutable array

queen zodiac
#

Also

#

🇨🇵

#

Gotta keep working

rose pawn
#

Fr en ch

wet girder
#

Average coding experience

oak cobalt
#

How can I increase the features of any NPC from mobile?

cobalt spruce
distant wraith
#

I want to kill myself after looking into a project's source code

orchid frigate
#

So don't

wet girder
#

I've been working on adding encryption to a part of the project that was implemented 7 years ago and not touched since then other than very minor bug fixes. Literally painful to do

#

my head hurts so much

barren shale
#

depends

#

how is it written

#

if your variables are all one letter

#

yes very painful

#

does the code does something complicated and still has 0 comments

#

🤮

#

that's why i dont stack statements

wet girder
#

The code that I have to deal with is method calling a method calling a method calling a method and some more layers

queen zodiac
wintry crescent
#

Does anyone have any tips for learning how to make data servers im trying to make a system that saves and stores a players info they input and for some reason I truly cant

barren shale
#

Look into APIs

quartz pumice
#

And databases

barren shale
#

well databases are super easy to do

#

with things like mongodb

quartz pumice
#

Fr

#

Why are there even SQL classes its like the easiest thing to learn

orchid frigate
#

Because when you start learning SQL you don't know that

#

And you are probably very new to programming so you you everything is difficult

#

And it's very easy to make money off of this

wet girder
#

You guys have clearly never done any actual SQL work

#

A toddler could learn the basics but it gets complicated

#

I did an SQL script at work and it got insta rejected in code review because it was very shitty. Would've caused a deadlock

#

Had to ask one of the senior devs to help me through it and it took like 1.5 hours

barren shale
#

i got 97/100 on my DB class because im a wbnerd

#

but even the other nerds managed to get around 80/100

#

because you want to try to squish everything you want to do into one SQL request for speed

#

you can do anything with the basics of SQL but its just gonna be slow

rose pawn
#

LOL

quartz pumice
#
  ; pray to the assembly god that it worked
  mov rax, 49
  mov rbx, 69
  ; ^ praying to the assembly god```
knotty root
#

trait_list:

  • id: invincibility
    name: Invincibility
    description: Renders the entity immune to all damage.
    effects:
    • name: Invulnerability
      description: Grants immunity to all forms of damage.
      type: damage_immunity
      duration: -1

Question for you guys, is this even a code that could be used in Worldbox for a Invincibility trait?

knotty root
barren shale
#

we wouldnt know

knotty root
#

'K

queen zodiac
queen zodiac
#

Make sb2 insteadwbaye

orchid frigate
queen zodiac
orchid frigate
#

You do it before testing a function you worked on for 3 hours or more knowing it probably won't work

quartz pumice
#

me trying to read makefile errors

quartz pumice
barren shale
#

why do i smell java

quartz pumice
barren shale
#

def java

#

cuz this looks like intellij

#

and its java syntax

#

oh or it could be unity + rider

#

cuz it has the word Component

rose pawn
#

K

wintry crescent
quartz pumice
white ingot
#

I might work on a WW1 mid for WorldBox

#

*mod

worldly star
white ingot
worldly star
worldly star
white ingot
worldly star
queen zodiac
#

No hamzawbconfused

marble token
#

Ham

old mural
#
+i code stuff
-in lua
rose pawn
#

pyton good

quartz pumice
#

I likey c pee pee

static solar
#

Should I start to learn the Rust Programming Language after I got the basics of C# in?

distant wraith
#

What will you use it for?

barren shale
#

learning languages isnt that hard

#

stop learning a lot of languages it will not benefit you

#

go deep in a specific language

wet girder
#

yeah it's not really beneficial to learn a lot of languages. Just focus on doing actual projects

distant wraith
#

Python 3.12 is coming out today 😃

wet girder
#

anything cool in it?

distant wraith
#

Some wacky statement and syntax

orchid frigate
#

The language is difficult af

#

Far more difficult than c++ in my opinion

#

And far more difficult than c# if you go deep in it

#

But it's very rewarding as it's very fun to write in and offers alot of uses from low to high level

#

While they aren't really specialized for the language and alot of them are just wrappers you can make it work

barren shale
#

rust is not really that hard to do most things

#

you can learn 95% of rust with ez

#

i'd say going deep in any language is hard

#

including C#

#

but its hard in different ways

orchid frigate
#

And very different

#

When I was learning rust it was like learning programming for the first time

#

And I'm still learning new shit every time I use it

barren shale
#

because you knew shit about programming xzibit

orchid frigate
#

I was making operating systems back then I think

barren shale
#

took me a couple of hours to implement the ray marching algorithm and that's my benchmark

#

os programming doesnt count

orchid frigate
#

I think I was working on hexaos and wanted to migrate to another language

barren shale
#

because nobody does it

orchid frigate
barren shale
#

no need to respect people that dont exist 👍

orchid frigate
#

Windows devs:

#

Tbh they got the base premade

barren shale
#

yeah exactly

orchid frigate
#

So to them it's more.like app development

barren shale
#

its already made

#

windows os devs work for two days every year or smthing

orchid frigate
#

Still they definitely improve stuff like memory design

#

Heap designs

#

Even if a little

#

They spend the time thinking how to make the ultimate heap design

#

That doesn't have any fragmentation

#

Unless it's already made

barren shale
#

you cant

#

you have to predict the future

orchid frigate
#

You can dream

barren shale
#

to know where exactly to place every bit

#

so there wont be any fragmentation

orchid frigate
#

You can minimize it

#

To values that don't matter

#

And manage it so that it matters even less

barren shale
#

well yeah you can do stuff about it

orchid frigate
#

But all low level devs dream of it

barren shale
#

but once the memroy starts to fill up

#

then it becomes impossible

orchid frigate
#

It would be beautiful

wet girder
barren shale
#

well C# isnt a lot about the language

orchid frigate
#

Language developers need to chill out

#

No need for the base language to include everything a syntax could

barren shale
#

C# most complicated stuff are spans and marshal utilities and ref structs in general

#

but since you code things like APIs in C# you need to learn a shit ton about api architecture

#

and application design

wet girder
#

I don't even know what those are lol

barren shale
#

they make your code unnecessarly faster

orchid frigate
#

Meanwhile rust devs promise they will add a few quality of life features
They add them to the nightly version in a very basic way
Then they remove them all together and remove something from the base language with them

wet girder
orchid frigate
#

The language is literally devolving

barren shale
#

yeah application design is a fucking headache

#

im restructuring half the code base of sb 2 everytime i wanna add something

#

because i learnt something new

wet girder
#

I code very little honestly and even when I code I don't write a lot of code usually

orchid frigate
#

They are like Mojang devs but even lazier somehow

barren shale
#

jusst like rust devs they are bad

wet girder
#

lmao

orchid frigate
#

Mojang makes me mad to think about sometimes

#

If they tried harder

#

They could make Minecraft good again

#

But the most major thing they add per update is a mob that is just a remodel of another existing one

#

And the reasons they give to not adding shit is insane

wet girder
#

Minecraft was made good when notch was lead designer but after the other guy who's name I don't remember became the lead designer the focus of Minecrafts game design shifted a lot

queen zodiac
#

Who's now called by his real name for some reason

wet girder
#

Oh yeah

#

Some people like his design but I preferred notches style

half jackal
#

What coding software should I start with as a beginner?

rose pawn
orchid frigate
#

It will teach you the basics of programming in a visual way which is better than the traditional

#

For code editor use visual studio or vs code vscode is lighter but I prefer visual studio for unity

#

Then do some c++ without visual software to get used to more advanced yet simple programming

#

Then you will know enough to decide what you wanna do for yourself

barren shale
#

Why unity if you are just starting

#

Just download visual studio and learn C#

#

Or vscode for other languages

quartz pumice
#

If your a beginner don't use visual studio because you will make a shit ton of bad habits and fall in love with visual studio and ultimately be a bad programmer

barren shale
#

why would visual studio be the reason you have bad habits xzibit

orchid frigate
#

You see what you code

#

Making the process of learning a bit easier

#

Otherwise everything is just numbers and syntax which for a beginner can be tough

half jackal
barren shale
blissful surge
#

Brp

#

How about make modding for worldbox mobile compatible

wet girder
orchid frigate
#

You can learn it in a week half a week if you push it

#

And c# unity doesn't use that many c# features so it's not that difficult to learn either

soft nexus
#

anyone here coded a discord bot? im kinda new to coding but im coding one with python using a yt tutorial and im curious if anyone has any other sources i should use to help me learn

barren shale
#

then everything becomes easier

knotty root
static solar
#

I regret it

#

But if you want to, I suggest Discord.js

#
discord.js

discord.js is a powerful Node.js module that allows you to interact with the Discord API very easily. It takes a much more object-oriented approach than most other JS Discord libraries, making your bot's code significantly tidier and easier to comprehend.

barren shale
#

it doesnt really matter which framework you choose

#

unless you're going with big bots

#

just use the framework for the language you are most comfortable with

soft nexus
wraith ibex
soft nexus
#

i mean

#

it's basically a glorified economy bot

#

it doesn't do any of the maps or stuff

barren shale
#

just go to the frameworks website and read the docs

wet girder
#

If you have any problems tho you can message here and at least I'll try to help

strange mist
#

What happened

prisma jasper
#

Don’t spam ping

#

Lol

static solar
barren shale
static solar
#

What? 👽

#

Did I waste my time learning .js when there is .NET?

#

Are you kidding me?

wet girder
#

It's a real thing

#

No kidding involved

barren shale
#

i wouldnt recommend using it for small bots

#

id say stick to discord.js for small bots

#

but use typescript please

jaunty latch
#

On top

barren shale
#

nah dont use python

#

python is good for learning and for AI

#

and data science ingeneral

#

using python for anything else is a pain

queen zodiac
#

This place is somehow very alive

distant wraith
#

It's fine for me confusedcat

barren shale
#

anything decently big is a pain in python

#

or javascript

#

or anything that is not typed

#

you just need docs or you will forget

distant wraith
#

Humans can remember confusedcat

soft nexus
barren shale
#

im not remembering that

#

this is a small sample

#

as you can tell by the scroll bar this is just a quarter of the files

#

with half of the folders closed

distant wraith
barren shale
#

enjoy remembering

soft nexus
#

im almost completely new to coding

distant wraith
barren shale
#

well imagine they are

#

because im not crazy enough to use python for huge projects

distant wraith
#

What a surprise

orchid frigate
#

And when you are met with a problem you become clueless

#

I recommend slowly getting into docs and making your own stuff

#

But at the same time for very repetitive stuff you don't really need to know you can just copy paste it each time for initialization and stuff

#

Only learn what you will newd

queen zodiac
golden grail
#

How do i download powerbox without steam?

wet girder
golden grail
distant wraith
#

Sus

golden grail
wet girder
#

I fucking hate python

rose pawn
#

NOOO

#

DONT

wet girder
#

I am tryna do clean code for AMP the only way I know how so the C# way and python is annoying me so fucking much

rose pawn
#

DONT DIVORCE PYRHON 😭

wet girder
#

I should rewrite @bitter sedge in C# frfr

#

not even joking

rose pawn
#

HAMZA GET OUT OF HIS HEAD

#

😤 frciking virus

wet girder
#

I have 1.5 years of professional experience rn writing mostly C#

#

it's just a nice language to write in

#

I actually nowadays code even python in VS

#

that's how much of a .NET developer I am

distant wraith
#

Can already tell by how you name methods and variables

barren shale
#

the better way

barren shale
#

rewrite it

quartz pumice
barren shale
#

But yeah python in vs I wouldn’t do that

#

I code python in vscode and even use conda in WSL to do it

#

Python just runs way better on Linux

wet girder
wet girder
barren shale
#

Not when I used it a couple years ago

#

Also as I said python works best in Linux

wet girder
#

I use WSL

#

I just edit code in VS

#

it's just a glorified text editor with a debugger if I don't use WSL

#

idk how to make debugger work with WSL

barren shale
wet girder
#

ngl I am too lazy to set it up

barren shale
#

||takes 5 minutes||

wet girder
#

I know

quartz pumice
#

I got it working through qemu in wsl in minutes lol

orchid frigate
#

Today I did some research on sorting algorythms because I saw one of those videos of sorting algorythms visualised

#

did some benchmarking

#

here are the not finished results

#

also realized how long it takes to do research like this

barren shale
#

ive made a sort visualizer a couple of months ago

orchid frigate
#

like what renderer

#

I wanna try it out too

barren shale
#

opentk

#

in C#

#

just use opengl

#

and draw lines

#

ez to get started

orchid frigate
#

opengl in c#?

#

why

barren shale
#

its opentk in C#

#

opentk is C# opengl but has a lot of the shit ready

#

so its super easy to get started

orchid frigate
#

I will do it in rust but rust has a shit ton of wrappers for the graphics libraries

#

most of which suck

#

and are unfinished

barren shale
#

just do it on the terminal

orchid frigate
#

but before that I need to finish this benchmarking thing I started because

#

idk

#

I wanna see it finished

#

be proud of myself pat myself on the back

orchid frigate
#

im not crazy like you to do ray casting in fucking ascii

barren shale
#

that's not crazy

#

wanna see the code?

#

its in rust

orchid frigate
#

YES

#

love rust

barren shale
#

you probably have to download them and put them in a rust project

orchid frigate
#

I dont really know how raycasting works

#

so this kinda looks like nothing to me

#

but I will see it

barren shale
#

it uses the ray marching algorithm which is very simple

orchid frigate
barren shale
#

but can only render specific shapes

#

you start with a point in origin and a direction, you keep moving the point in the direction according to the amount of distance between the point and the closest object, if the distance between the point and the closest object becomes very small then the point has hit an object if its very big then the point has not hit an object

#

you can see it in the march function in the march.rs file

orchid frigate
barren shale
#

its not

#

but that's how the ray marching algorithm works

#

and it works

#

super fast

#

but only works with specific shapes

#

like spheres and squares and stuff like that

#

since you need a signed distance function

#

In mathematics and its applications, the signed distance function (or oriented distance function) is the orthogonal distance of a given point x to the boundary of a set Ω in a metric space, with the sign determined by whether or not x is in the interior of Ω. The function has positive values at points x inside Ω, it decreases in value as x appro...

#

a signed distance function takes a point and returns 0 when the point is on the edge of a shape, < 0 if its outside the shape and > 0 if its inside the shape

orchid frigate
barren shale
#

i mean nobody uses ray marching

#

its only used for fun projects

#

its just not very useful

orchid frigate
#

yes now the algorythms are probably even more complex

#

and even worse

barren shale
#

yeah xzibit

orchid frigate
#

and people are slowly frying in front of screens

#

and books

#

trying to figuere them out

#

poor souls

#

they should just do os development

#

atleast we all know are frauds and just steal code and piece it together to make something thats garbage

orchid frigate
#

waiting for bubble sort to sort 1mil elements is not fun

#

im gonna have grandkids by the time it has to do that 1000 times

#

@barren shale About the sorting algorythm bars visualizer things

#

what do the highlighted bars actually represent

barren shale
#

One is the current bar getting sorted

#

The other is the bar getting checked if it’s the correct bar to switch

#

Some algorithms can only have one highlighted bar

orchid frigate
#

in quicksort

#

the pivot and the thing getting checked would be highlighted

#

right

#

the element*

barren shale
#

yeh

quartz pumice
#

I am practically dieing here trying to read a file in my custom fs

#

Have parsed the file name to find it's id so that's good

#

But now I am wishing I made it a table per file instead of entrys in it's folder's table

quartz pumice
orchid frigate
#

Fat divides it into 4 segments

quartz pumice
#

I dont 😭

orchid frigate
#

Reserved fat root and data

quartz pumice
#

its just a range of raw lba sectors

orchid frigate
#

WHAT

#

How do you find

#

Anything

#

Is it just a large mess of files

quartz pumice
#

well it tells the first and last sector in a range

#

so idk

orchid frigate
#

Do you not have a

#

Root segment

quartz pumice
#

mhm

orchid frigate
#

With all the file locations

quartz pumice
#

yeah its a single folder on the 7'th sector

orchid frigate
#

And then a data segment

#

Containing the data

quartz pumice
#

mhm

orchid frigate
#

Do you have a scheme or something of how the fs works

quartz pumice
#

ye an entire markdown file

orchid frigate
#

Send it I need help here

quartz pumice
orchid frigate
#

No I meant like

quartz pumice
orchid frigate
#

A scheme or an explanation for the design

#

Ok there we go

quartz pumice
#

im not very good at writing them though

#

the python file is probably easier to make sense of

orchid frigate
#

Big fancy Tree

quartz pumice
#

fr

orchid frigate
#

It seems very

#

Chaotic

quartz pumice
orchid frigate
#

But with some improvements

#

Like actually dividing the disk into logical partitions

#

It has potential

quartz pumice
#

okay what if they are in logical partitions its just very dynamic and only for files

#

thats what the ranges technicaly are right?!?!!

orchid frigate
#

Yes but finding the ranges seems too hard

quartz pumice
#

all im doing in the bootloader is just looping through the folders entrys and saving the ranges for later

#

can subtract them and then would probably work flawlessly?

orchid frigate
#

So you keep them in memory?

quartz pumice
#

yesh why wouldnt you

#

and they are only like 32 bytes, thats with all the blank space at the end of them

orchid frigate
quartz pumice
#

long mode cuh

orchid frigate
#

Oh

quartz pumice
#

I load the string into registers and cmp them if you dont understand how lazy I am lol

#

j

orchid frigate
#

If it works it's good ig

#

Can you write to files

#

Or to the disk

quartz pumice
#

ye

orchid frigate
#

Also how do you read

quartz pumice
#

you read the sectors in the range

orchid frigate
#

Did you make the acpi drivers or jump to real mode

quartz pumice
orchid frigate
#

Wow it's that easy I always thought it was super hard and never tried it

orchid frigate
#

I might try and make my own fs too idk I have a few designs I wanna try

orchid frigate
#

They sound similar

quartz pumice
#

oh lol

orchid frigate
#

Ans i forget which is for which

quartz pumice
#

omg almost let a leak slip by me in the fucking bootloader

#

cringe

orchid frigate
quartz pumice
#

fr

orchid frigate
#

And then when I get that working just add my own features on top of it

#

Seems fun

#

I also kinda want to try to make a file system completely different from the traditional file systems

#

Like a completely unique design

#

But I will get to it when I get to it

quartz pumice
#

lol

#

thats what mine is

#

am having a blast

quartz pumice
#

what happens if I made a programming language that used the stack as a vector lol

quartz pumice
#

Bad idea but I don't care

dreamy citrus
#

What does std mean

quartz pumice
subtle cliff
distant wraith
#

Standard

dreamy citrus
#

Which one is it fellas

marble token
#

Sexually transmitted disease

orchid frigate
#

Std coming from standard or the standard

quartz pumice
quartz pumice
fierce crater
#

Hello

dreamy citrus
fierce crater
#

Who else watched Fionna and cake

static solar
fierce crater
#

i show meat

#

😘

dreamy citrus
#

No out of topic messages in the coders cave channel please

fierce crater
#

Sorry greg van houten

dreamy citrus
#

I am a mod of high authority

#

I can ban you

static solar
#

👽

fierce crater
#

farts

distant wraith
orchid frigate
orchid frigate
dreamy citrus
#

Respect your elders

knotty root
#

Please stop bullying him

#

He is my son

#

He just got started coding

dreamy citrus
#

Yes I came from his pants

languid summit
quartz pumice
fierce crater
#

Skibidi Rizz

dreamy citrus
#

In Ohio

fierce crater
#

?

#

My name is Rizz

#

I come from@ohio

quartz pumice
fierce crater
#

Haha

#

Twerk

sharp zenith
#

I use python 😎

next lotus
#

poop

#

fard

jolly field
#

Coding

#

I wish I knew how to code

#

Code

wet girder
#

I've been working with a .NET library lately and have had to do a lot of changes to the library to fit our needs and I fucking hate how .NET libraries are written

#

there's OOP and then there's this shit

#

there are so many unnecessary methods and classes

#

at one point the code jumps between 2 classes 4 fucking times in a row

#

that is excessive

#

it's literally this

dreamy citrus
#

On gang

#

It feels good to be a gangster

next lotus
#

i dont see anything wrong with having 20+ objects in the constructor and jumping 10 classes in one method wbtroll

barren shale
#

well depending on how you structure your code oop can be really fucked up

#

that's why a lot of people hate oop

#

because you can fuck up super easy

#

but if you write clean code, oop is probably the cleanest way of writing code

#

its just a double edged sword

#

especially C#

#

probably the cleanest oop language

wet girder
#

yep

#

but a lot of .NET libraries are a mess

next lotus
barren shale
#

not really

#

im talking about structuring

#

strucuring is really hard

#

the bigger the project the harder it gets

#

i think ive rewritten the fighting system for sb 2 like 7 times now

#

and changed it more than a dozen of times

#

everytime i learn something new that makes it cleaner

#

like what the fuck are TaskCompletionSources

#

that was me a couple of months ago

#

also the different types of services and how to split them

static solar
barren shale
worldly girder
#

How do I get around head hurt when coding debuff?

barren shale
#

Wat

quartz pumice
#

@orchid frigate help I ran out of space for my bootloader

#

lol

#

I was working on reading the kernel from my fs beacsue I finally had time to today

#

and it stopped working

#

so, confused, I dumped the memory

#

and after some debugging found out that I fucking ran out of space

#

it would be preferable for my bootloader to not be 2 stage

#

I can give myself two more sectors of space

#

but thats jsut forestall

#

fuck this im giving myself 2 more sectors of space

#

okay , im not out of space just very close

#
; memory copy.
; rax = from, rbx = to, rcx = how many bytes to transfer. garbage rdx
memcpy:
  mov dl, byte [rax]
  mov byte [rbx], dl
  inc rax
  inc rbx
  dec rcx
  cmp rcx, 0
  jnz memcpy
  ret``` this is zero'ing everything I think
#

I moved kernel read to upper memory idk if that will work or not

#

ive cut down my bootloaders space to 1872 bytes

#

crisis averted

#

nothing is wrong with my shitty memcpy I think

#

was just me being a dumbass with the long mode despite desiging my fs to be somewhat usable from real mode

knotty root
#

How do I talk?

timid field
orchid frigate
#

By the time you are in long mode memory should have long been a solved problem

quartz pumice
wintry crescent
#

What are other ways to shorten "else if" statements? Because I keep confusing myself and making my scripts take longer and be longer than it should

royal dust
#

I know how to ask for a poptart in Italian due to programming

#

The story is my programming teacher told me that we will be using c and after watching cs50 it will be like getting dropped off in italy only knowing how to say "can I have a poptart"

wintry crescent
static solar
#

Still learning the basics of the language

barren shale
static solar
#

😭

#

Tell me, person on the internet

barren shale
#

a way to turn typical event/callback to await/async

#

sometimes its impossible to start with await/async, so you can start with something simillar to event/callback and then use taskcompletionsources to turn it into await/async

static solar
#

Thanks

stuck bone
#

Hey I have a quick question, isn't WorldBox made with Unity? What's going to happen to it now?

lofty phoenix
#

the whole unity drama was resolved, unity fell back on their original statement

stuck bone
#

Ah I thought they would charge per install in future Unity versions, so I thought WorldBox would get frozen

royal dust
#

The rest of the world

#

Is smart enough to know poptarts are trash

wintry crescent
timid field
#

-> Any programming language 👆

lofty phoenix
#

fastest and easiest way to save hours

barren shale
#

life is too short to code just chatgpt everything

distant wraith
#

Can't wait until the day when ChatGPT can be lazy for me

timid field
#

???

#

What

#

Idk what r u even referring to

#

Ik the image

#

What in it

#

Bro what

#

He's wearing a pants bruh

#

Mark where is it

#

Screenshot and Mark bru

queen zodiac
rose pawn
barren shale
#

probably not chatgpting

#

maybe ai searching

#

google was not the first search engine

#

first doesnt mean best

#

we just have to wait to see what we get

rose pawn
#

CHATGPTING 🗣️🗣️🗣️📡📡📡💡

quartz pumice
static solar
quartz pumice
#
      if (isin(ray(cam, point(i.x,i.y)), i)) {
        drawplace(i);
        continue;
      }
      if (isin(ray(cam, point(i.x+i.w,i.y)), i)) {
        drawplace(i);
        continue;
      }
      if (isin(ray(cam, point(i.x,i.y+i.h)), i)) {
        drawplace(i);
        continue;
      }
      if (isin(ray(cam, point(i.x+i.w,i.y+i.h)), i)) {
        drawplace(i);
        continue;
      }``` I really want to optimize this shit
#

fit it in one line

#

3 can be true at any time, so I cant use or

#

if one is visible then i need to show it, so cant use and

tepid urchin
#

ever heard of turbowarp?

barren shale
barren shale
#

What language is this xzibit

#

Is there more code in the for loop?

quartz pumice
barren shale
#

yeah but its uglier

quartz pumice
barren shale
#

you already have to type if so might aswell add the else to it

#

but adding a continue on every line is ugly

quartz pumice
#

Ok

#

Yeah I already put it in one line with a bunch of or's

barren shale
#

i wouldnt make this a one line

quartz pumice
#

And there isn't a continue or brackets

barren shale
#

keep it readable

#

not everything has to be one line xzibit

quartz pumice
#

It was very readable

#

💀

barren shale
#

maybe to you

quartz pumice
#

I made a second function called "camcast" that made the isin thing way shorter

barren shale
#

also instead of isin maybe call it contains

#

isin shouldnt be a function name xzibit

quartz pumice
barren shale
#

youre*

quartz pumice
#

bro gets triple A's in his english classes

wet girder
#

I need help buying a laptop. My grandma has been using an old laptop for like 15 years now and really needs a new one and I am planning on buying her one but need recommendations on what I should get

#

I am thinking ssd because of longevity so she doesn't need to ever worry about getting a new laptop

#

other than that it just needs to be able to print stuff and watch some live streams and read news

barren shale
#

Maybe this if $500 is within the budget

wet girder
#

That laptop looks amazing

barren shale
#

Yeah

next shell
#

There is nothing on this planet that hates me more than python

queen zodiac
#

Jk

short chasm
short chasm
#

I started learning it today

#

HTML hates me

next shell
short chasm
#

That is true

static solar
echo breach
orchid frigate
#

Except rust and assembly

#

But the more you get into iy

#

The more you realize you are shit at it

static solar
#

🙏

wraith ibex
#

But for the most part it’s like learning another language

wet girder
#

I personally find python harder language than like C# but that's just because I don't use it how it's intended, I use it like C# lol

orchid frigate
wet girder
#

fr

zenith juniper
#

Python Its nice language

#

C Sharp was allien language

gritty galleon
#

I HATE C++

#

👎👎👎

zenith juniper
#

Hahhha

#

C its old language

#

But can survive till now

gritty galleon
#

Unreal

zenith juniper
#

Java better than c#

gritty galleon
#

Lua is unstable and it’s funny

zenith juniper
#

Lua ITS nice language

gritty galleon
#

Barotrauma Lua plug-in users after making the best mod imaginable (it causes 83 errors Everytime you switch levels)

gritty galleon
#

Yes

orchid frigate
#

I'm not sure how or for what they came to an agreement

#

But I'm.happy for them

austere arch
#

whos

jaunty latch
#

Python on top

silent root
#

fuck python, java, c#, php, js, c++, c and python (again)