#⌨coders-cave
1 messages · Page 56 of 1
we need HEngine
the world will die without it

thank god i was getting worried
Eternal_Engine has been...
well
...
Delayed
for a long time
i wanna work on it but opengl is too damn hard
when you start trading code maybe 
i can make a window and make it differ in colors but actually making sprites and models is as impossible as coding gta 6 for me
if i get through that i will actually have a sorta working engine
@orchid frigate no
Anime
@wanton summit yes
fun fact: if you make fun of 2d you're making fun of everything because your eye sees 2d instead of 3d
its rendered 3d in your eyes meaning its 2d

Vegan teacher:
why the f*ck are you not vegan yet?
why are you not in a brain surgery right now

also does anybody know what bootstrapping means
AHHHHHHH https://pastebin.com/P9Y1BvLx
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
math be like
everyone that is coding has a mental breakdown atleast once a day
im about to have mine because math
also the thing i posted? Doesnt even kinda work
reinventing the wheel is inefficient most of the time
fok it
wheel 4.0 time
most of the time the wheel has been already optimized to the best
inb4 6 fps game
more then 0 fps amirite
i have 0.1fps
and it took me 10s to load 1 frame

still better then 0 fps amirite
i guess so..
that's not possible
its actually
O(n)
n being the bytes of the image
to load the whole picture
and if a whole picture is considered frame
same answer
its probably like 1/0.01ms
if the picture is small
🚫 This channel cannot be used for music commands.
this has nothing to do with fps
xd
how many times does the frame of an image update ?
once
when the image loads the fps is 1
then it becomes smaller
until its 1/infinity
found a way to do what i want to do better
i just generate a single chunk with code
that generates more chunks
no need for lists or anything
still doesnt work tho because math
ok I’m new to unity and c# any tips?
I recommend you start learning c# before unity
So that you can have a better understanding of the language
And if you wanna learn unity, start a big-ish project or have an idea what you want to do
And whenever you get stuck search the internet for the answer
That's how I learned what I know
No

Never start a big project
You will never finish it and you will get unmotivated
Make a lot of small projects
Helps you learn concepts
And never do big projects alone
Seeing other people work will motivate you
So everyone is motivating everyone
Big projects should wait atleast 1-2 years
Unity is very sensitive
If you dont know the best practices
Its really easy to have very bad performance in your game
Getting that 30 or 60 FPS is really important
Absolutely agree with this. I made this mistake too many times. The idea is to make short projects so you don't get unmotivated, because your excitment for something new is very, very strong, but at the same it doesn't last long. As soon as that spark goes away, so does all your interest to continue/finish a project.
Also when you want to start making profit
Never do something that has already been done
And DON'T do mobile apps
Most companies buy reviews to make their app go to 1#
And it's very competitive
A good idea with good development on steam is much better
i made something terrible with css
and something awesome in javascript
and made something simple in html
i have the power to sadistically kill frontend devs
okay i think im gonna stick to this cave
i feel like im in uncivilized channel in #🇮🇩-obrolan-indonesia

#⌨coders-cave best channel
Hmm I want to start my first JavaScript any advice
JavaScript
Bruh
because of the new python java
javascript can be two things
although ecmascript is more reasonable

my first suggestion is use Typescript
it will scream at you for small issue
but help alot
Ok
also use let everywhere

use async instead of promise callback
use literals
like for arrays, object, string
I just found tutorial for typescript🗿
in normal javascript it just returns
undefined
typescript is javascript but more serious
javascript is on crack

Lovely this😄

Phyton 3
Or C/C#
Most people recommend C/C# then moving below to other Programming languages like python
But you probably know it😄
Ok
Yeah
ew
What
It's easy to use use
use something like pydroid3
Ok
Python
Yeah
you can switch variable easily by doing this
a, b = b, a
without temporary variable
nice 
Thanks
try the input()
it will halt the terminal until you type something
something like
print(input())
Ok
You shouldn't pick a language by what other people suggest
Pick based on what you want to do
All kinds of projects have an easy language that can do them effectively
And have a hard one 
Hmmm ok
But I'm still learning to code though
And rei actually helping me with some code
i wanna code but i dont wanna math :(
You should get a cheap laptop
The requirements are not that high for coding
Any cheap used laptop can do
hamza wanna do some math
Coding on mobile can be really annoying
practice your math skills :)
If its easy sure
If its not then after one hour
I'm coding using my phone and it's kinda annoying ngl
its annoying af
Really really suck
Yeah exactly
openGL on phone be like 😳
OpenGL on phone be like doesnt even exist
Opengl?
ik but imagine coding it on phone
Graphics interface
you are too young to suffer
Oh
What math

i just need time
What math
can someone make days last longer then 24h
Ask god
ok god can you please make days last long ok bye
I feel like youre over complicating things again
im creating wheel 3.0 😳
Are you using unity?
yes because i gave up on opengl
Wheel: Unnecessary stuff included
Ok
Nub
look im gonna show you some code you tell me if its overcomplicated
Its
by some i mean...200 lines
That's long AF
its short

compared to alot of other stuff
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
first code
also code 2.0 ????? wtf is this and when did i make it
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Rendering_Chunks : MonoBehaviour
{
public GameObject chunk;
void Start()
{
//generate first chunk
Instantiate(chunk, new Vector3(0, 0, 0), Quaternion.identity);
}
}
every chunk
Yea
Cuz you are thinking about it the wrong way
Yea
oh
Even blocks should be nothing
but then it still needs a monobehaivior or whatever its called
but i need to put models in them
is nothing everything then
You use sprites
its 3d
Cubes ?
yes but i have thought of something
same thing as minecraft's cubes but with real models
that kinda...interact wuth eachother
they are models that are not cubes...atleast fully
If they are not cubes its gonna be a bit complicated
i know but i need to cross the bridge before i think about the rest
aka chunks and blocks
i can do it
but i dont wanna math rn
also scales in unity also suck
i put a scale on one thing and the same on the second thing
completely different sizes
Depends on the size of the model
not a model both of them are gizmos
one is used for me to be able to see the chunk
Parent objects are different sizes??
the other is used to see what is getting checked
not a parent either
or child
im sick of unity again back to suffering in opengl
the code in my opengl project looks so clean compared to the unity code
its obviously me
but i blame it on the engine
because smh unity sucks and eternal engine is better
ah right i figuered out how input works in this project
opengl so easy man
Wait how
if (Glfw.GetKey(DisplayManager.window, Keys.Escape) == InputState.Press){
Outer.Message("escape has been presses!");
}
its in c# but you get the idea
Ok
still cant render anything tho
and i need to somehow turn a black screen into a 3D space
but we get the lil wins 😔
turns out opengl isnt nearly as difficult if you actually read something about it
who would have thought that putting time and effort into something actually gives results
you need to learn the Rei Way

ive been coding on my phone for 2 years
Really wise 

Wait I can Probably Get a Desktop And Just Get Mirror app to use PC on my phone everywhere🤔
Linux right?
ans i mean it seriously
Ow literally
yeah i used Ubuntu as the desktop
and alpine for programs
let me just show you
Sure😄
okie nevermind i can't i forgot my desktop environment is just a few
but i will still show you
@bold rover



At this pace you will need 50 years to finish

slow and steady wins the race
but it might not take that long because now i have actual time to think and learn
im also reading the entire learnOpenGL book and it helps

now i just need to figuere out how to....do everything else
shouldnt take that long
wait wtf....EBOs? Yea this is gonna take long
Whaaaat
Now you not only can put a video as a wallpaper
But also put more than one video
Must be a great program

multiple video

What do you think @main brook
I must go find the cavern.
Niceee
Yeah
Learning if statements Is very important
Indeed
As they are getting used constantly in coding, try also using booleans as they are probably used way more
Booleans?
Wth is that
Types that have a true state and a false state
Basically lemme give you an example
Ok
What the heck was that
Ok
Ok
its in c#
i will try to translate it to python
but my python skills are limited
Oh that's why I don't understand
bool i = True;
if i == True:
print("i is not false");
idk how to make vars in python lol
maybe its just i without bool...
lemme check
Lemme test it out
try with and without the bool at the start
ah makes sense
my finger automatically does that lol
i = True
if i == True:
print("i is True")
i dont like python
doesnt have enough symbols
cya
hmmm i need to ask hamza for how long he has coded
anyway @shy scarab did you understand what bools are?
I'm a bit understand
hmm ok well try to combine everything you know about python at this point into a program
doesnt have to be long or complicated
the purpose of this is to try to understand how you would use all your knowledge in a real project
ok
which language used for worldbox?
alright ty
np
Masterpiece game with masterpiece language
I thought it was made using java
java and c# and very similar
but its made in c#
because unity code is in c#
Oh ok
they are so similar that i can probably make a small program in java even tho i have never worked or learned in java just because i know c#
probably
never tried it
so i might be wrong
That's will be dope though
since 2014
started C# since 2016
if we are saying technically
then it would be 2012
but i dont think that would count

i used to code in a language called monkeyx
the website for the language doesnt exist anymore
Well I did code in scratch very very actively most like June 2013 - Novemer 2013. Then I learned python the first time in 2015 and started actively coding with it when Igniz gave me amp
So I've known basics of programming well last 5 years but started actively learning 8(?) months ago
that is also a shortcut for bool(i) for non bool value
like
l = []
if l:
print("list has elements!")
empty list will be False and non empty will be True
Thanks
Hmm I actually never knew this, intresting 
it probably returns len(l) == 0
lets see 
also probably yes
on the uhm
__bool__
that one at the end got me like 
the shape

terminal
bridging
so i can send messages when the stdin is ready to be read
and receive messages
at the same time
T h R e A d S
My biggest program is @bitter sedge and it has like 4k lines of code in total
how do I change stats and traits on android
jupe do be flexing amp 
my biggest program is a game i was making in unity
my laptop broke and i lost it :(
sad
I think my biggest project has 10k lines lol
Alot of them are copy pastes tho because I didn't know how to make it better back then
I used Hamza's favourite if and else statements :)
oh gosh
Every experienced coder's true nightmare
Wait what
I prefer labels and goto

i mean come on
i only used if statements 300 times in my last project
that isnt that much
spelled germany wrong 
Why are u even here
This is only for smart people
accidentally clicked this channel 
were they copy pastes?
cuz stooooopid
Are there any plans to make Worldbox multithreaded?
Single-threading seems like a major reason for high RAM usage as processes pile up
When will the game comes out on steam?
if worldbox is not multithreaded then how does the GUI works

do you compute things and render the GUI
in the same thread
talk about blocking
i-
wait what
multithreading can pile up processes

i wonder what's multiprocessing is for
if multithreading is making processes
ah yes, yandere simulator
also single threaded are good if you're computing one thing
although multithreading helps
by running jobs in different thread
it takes a bit more memory than single thread
but more performance
if its cpu thread its better
if its a green thread then good

Quick math: 10 + 10
you cant use multithreading in unity
there's something called Coroutines
its like multithreading as you can do more than one thing at once
but its fake multithreading
it just switches between doing things
its basically async model
i like how Coroutines are sortof categorized similar to threading in some single threaded language
like Lua
although async is better than threading imo but using both at your advantage is far more superior

like having two event loop running in different thread running different jobs
async is still one thread
so its slow
but unity kinda breaks when you have more than one thread
so you dont have any other options
but yea single threading has nothing to do with ram usage
its just the amount of population in your world
single threading is like having 1 arm
multithreading is having multiple arm
multiprocessing is having multiple clone of you
and async is smart version of you with one arm
c++ is actually pretty fun to use
unity always breaks
its not a surprise anymore
programmers are modern cavemen
not true
im a programmer but the sun is not a deadly lazer
making it %99.9999999999...
of all programmer
instead of every programmer
You mean god
goddamnit c++ glfw doesnt use the Hints.hinthere command for the creating of the window meaning i gonna learn all the hints
lol
I should get back to learning opengl
It's been too long and I really enjoy doing it
havent seen his videos, i will check them out
They're in c++ and way too good
I'mma just stop playing minecraft and start learning opengl again
c++ is so much better then c# from what im seeing for now lol c# is so boring
its mainly the same stuff over and over
lol
function in c++ are kinda funky tho but i like the concept of em
"I'm not sure why they decided to be so inconcistant with their functions but hey this is opengl" - TheCherno
lmao
"unable to open glfw3.lib" Why? "Yes."
lol
Look, I made my triangle red
nice
im still making a window while learning c++
decided to put everything in one file because i dont know how to access other cpp files
🔨 Banned rlboogy#1000 indefinitely
Ive never learnt that
I skipped the tutorial

G o o g l e
i did
Im pretty sure it isnt that hard
Ask jupe
Cuz i dont know c++
Ive used it a bit before
For brute forcing stuff cuz its fast
Headers
too complicated plus like this i can read lines better
So basically, you have main file, and every other file you want to use has to have .cpp file and .h file. Header file basically gives instructions for the main file as of how to read the .cpp file
so you just include the .h file
it's quite simple really
after you learn how to make header files
so it would be
#include <Test.h>
well it says "cannot open source file"
i think you will be able to access classes and such after
so i will search it once more
my search history will be a mess by the end of the day
I learned it from this
i think for vs2019 you have to go to the properties menu every time you make a header which sucks, ima try visual studio code to see if it works better
oh no you just have to specify the folder
ok fixed it
download vs2022
What is that
Oh
visual studio is good for .NET/Python/C++
otherwise use visual studio code
which is good for everything

so you can talk as a bot in the terminal
nice
lol
Why tf would you do anything like that to a friend
I'd never be friend with a person who did that to me again I'm not gonna lie
Cuz sus
And installing a virus isn't related to coding so idk why he said that here
Bro wtf
Installing a virus to your friends work
Uncool
And because the virus was coded by me
But still uncool
I was doing an exam in the PC, was going to send him and the stupid guy turned off and disconnected the router
Wow
He deserved it
Kinda
Thats uncool
Yeah he kinda deserve it though
I feel like it someone deleted my code I wouldn't even be angry because I rewrite code all the time
Your brother
Or your sister
Either to make it look better and to make it easier to read or to make it work
I have a sister and she is 22 so she has better stuffs to do
Oh ok
how is learning going @shy scarab
Sorry for ping, had to specify who I was talking to
Doing great
No it's ok
Nice
When I was first learning to code 1 year ago or so...it wasn't going so great
I was learning unity do it should have been easier to understand
Then it was

public void Log(string message, LogType type)
{
string prefix = type switch
{
LogType.Normal => "Message",
LogType.Warning => "Warning",
LogType.Error => "Error",
_ => "",
};
Debug.WriteLine($"[{DateTime.Now}] {prefix}: {message}");
}
Wot
this is new
it looks so unfamiliar tho
kinda weird
the one thing i have yet to see in c# actually used 
this kinda reminds me of rust for some reason even tho it has absolutely nothing to do with rust
but yea this doesnt look like c# what so ever
~traiteditor
Can't someone that created the bot only be active in #🤖bot-commands 
they can just add filters 
like if the channel of the message is not inside the whitelisted channel
dont do anything
easier said than done though
this chat im not experienced in, dont belong here, i should leave, good idea


no smart no here
this is what coding was made for indeed
what if i write usa
instead of USA
you need to fix that
Where can i get mods for pc
Definitely not here
Idk
But theres a channel thats called mods
Maybe you should take a look
Ok thanks...
Why
It's cool now
If I try to fix anything it will only be more confusing. So no.
What if i type france instead of France
It wouldnt work
When you make an app you don't know who is gonna use it
So you have to make sure everything works
At least you need to give a warning that the first letter must be capital
Ok I have an idea
I am not making a app
But would be cool to have a system
If I could turn the input to the capital letters. Then it will be all right
If you use smoll letters, it will be converted to big stronk letters.
But I'm too lazy. So,
@mental jacinth duds
you can use tolower
or whatever it was
so like
name = input()
if name.upper() == "USA":
print("america, frick yeah")
if you put usa or uSA
it works
because it converted the original one to uppercased
so usa is now USA
and USA == USA
if str.lower(input) == "usa"

instances exists
idk how python works
i just guessed it was like this
never used this
is it input.lower() == "usa" ?
input().lower() == "usa"
no bruh
there's more than one if statement
that way you have to input for every if
input = input().lower()
if input == "usa":
youmomfat
elif...
oh ye
i completely broke the IDE
it also coppied files for no reason
doesnt reccognize the fact i have an include tag for a file with a class so it just doesnt want to recognize the class
oh yea and earlier it didnt want to call function because it was private even tho i made sure it is 100% public
maybe restart
I did
Still moderately broken
So as usual
Correction is also still broken because it gives me correction for every language
🍜
maggie in u?
anyone know where vs .obj files are
Idk
found them
deleted one
9 errors
idk what i was expecting
I have seen so many errors today and no coding
i fix one problem another comes right after
setting up glfw is a nightmare
yep
Why are namings so inconsistent. Sometimes it's like RigidBody and sometimes deltaTime. Why can't there be mutual thinking of what letters to be uppercase
and why tf does VS automatically make my brackets like this:
void Update()
{
}
When I try to make them like this:
void Update () {
}
Jupes rant time of learning Unity
I just realized this is a shitty example
welp I used a shitty example and it shall stay
because idk what else to put
this is the least of unity's problems
I'm only at the really begining and I'm already frustrated with some stuff
visual studio is weird until you get the hang of it, afterwords you might even like it more the vsc
its amazing for the C languages
or atleast c++ and c# idk about C and objective-C
but I finally, after a day of fixing errors, got glfw and glad to work and I can finally code
I cant remember what language uses echo
I used to code on it on notepad when i was younger
why are there so many shutdowns
im scared for what this may do
Ever since i use opengl I use _ for spaces
@knotty root what does this do
and why is it so long
please delete it then
how do you say that an answer to your question is good on stack overflow
there is no green checkmark next to the answer
3 in a row
world record
Properties start with a capital letter
Fields dont
ohh makes sense
if anyone is wondering how super mario bros was coded, there is some source code for it written in 6502 assembly
doesnt look like the most fun language to write in but its pretty understandable to read
lmao
Which language should I learn
depends on waht you want to do
i dont think so
cuz you didnt go too deep
you can learn the basics pretty easly
i mean he is a beginner so he wouldnt either
if you dont need the performance other languages can save you time and effort
you dont have to worry about memory leaks and stuff like that
idk if I could go back in time when i was learning my first langauge i would choose c++
c++ might be useful for more technical stuff
but i wouldnt choose rust as its pretty damn complicated
low languages in general are not good as a first language
they have a lot of stuff that you dont need to worry about in high level languages
eh depends on the language, technically you can even learn assembly as your first language
its just going to be very, very hard
imagine trying to learn glfw and glad as soon as you learn basic c++
saying this gives me the chills
as a first language
maybe opengl for java or C#
it could work
you just need to learn the basics first
and with some copy pasta
glfw is so much easier in c#
everything can work
in c++ you gave to worry about libraries, includes, you need to use both glfw and glad or glut or whatever other libraries there are
and then you get smiley faces as errors
this is nightmare fuel

any of yall know c#?
yes
me
it is probably the language i know most about
do you want to ask anything about it? @shrewd summit
wtf did i do i just opened the file????
that disrespectful

i have the midas touch but instead of turning everything into gold i turn everything into errors
nice how long have you been coding in it for?
very nifty
but there's someone with like 5 years of experience in C#
maybe even more
lol yea
i think it was @barren shale
LMAO
what??
its u
ik lol
not rlly lol
okey
What my teacher sees when I pass my work.
🙂

What
im extracting every grade of every highschool graduate
extracting like 100 student data per second
Chad move.












