#⌨coders-cave
1 messages · Page 65 of 1
your school
understands
whats better for you

that's why schools in finland are good
cuz they know whats good
in college theyll teach us ew++ first

I would've liked c++ lol
Hey
Heya
I finally learned what % actually does lmao
I never bothered to learn
but now I learned
modulus be like
its like / but for remainder
its the remainder of the division
x + y % 2 == 0 makes a checkerboard pattern
Rei
is
Nub
Rei is 
oh god loading textures in opnegl inst fun at all 
alot of reading will need to be made to understand the process
def modulus(num, num1):
previous = 0
while True:
previous = num
num -= num1
if num < 0:
return previous
elif num == 0:
val = 0
if isinstance(num, float):
val = 0.0
return val
a = 4
b = 10
print(modulus(a, b), a % b)

lol
that's a lot
I'm just in class learning about arithmetic operators
it's boring af
function saysworld(sw){ if (sw = helloworld){ return "helloworld" } return "undefined, you failed, you did not copy and paste the whole code" } console.log(saysworld(helloworld))
- should work tho
- copy and paste whole thingy in whatever code editor
- open console.log
- delete it
- done
not as efficient as possible 
first divide the numbers
and check if you get a natural number or not
cuz if you get a natural number you just return 0
sure
that wont work
sw = helloworld isnt a thing
@everyone
The function requeres the argument sw which Doesn't have a data type therefore it won't work and will probably give an error if it's not In some language that doesn't require datatypes in arguments. Second of all, the function is not a string. There are many other mistakes but I won't count em all, but basically use more datatypes
and thats how you asnwer questions hamza

its javascript
you dont need a data type
the problem is sw = helloworld
helloworld does not exist therefore it gives an error
So make it exist.
and ur mum
Which one?
both
all of them
You've lost the chance.
ur mum
its like python
you just name the variable
no datatypes
it doesnt even have classes

just prototypes
Ф
still better than ew++
if (userinfo. cookies.agreed) { google

sussy hin pfp
woah what the fuck
who would've known
uvloop on python can run far better than Golang

Wait what
What
if (hin. die) {
if (!help) {
if(!help){
Ask_for_help("Help pls");
}
moder
Hey @lapis flint Sorry for the ping but does this considered Emoji Spamming?
@woven bay do not flood
PY:
if !help == !help:
Ask_for_help()
elif 
!help is an invalid variable name
Error: Nothing found

Pain 
Ok make it then
int help;
char infoLog[512];
Glgetshaderiv(vertex_shader, GL_COMPILE_STATUS, &help);
if(!help){
glgetshaderinfolog(vertex_shader, 512, NULL, infoLog);
cout << infoLog << endl;
}
actually
we can have
that variable name
by using the globals
globals()["!help"] = "hamza mom"
now it'll be a global variable
Also doesnt !help check if the value of the int
Like if its not 0 then !help will be true
Or the other way around idr
yes
Learning that when i was learning c++ was ao complicated to me because i was like "how can you check if an int is true wtf"
When i was a kid i invendted Stupidity
So yea im the one you can thank for this invention

Ima make your mum look fat
Tomorrow is the day
HEngine will be back in business

Hamza Edgy
Yeah if it's non-zero or non-nullptr then it'll be true. It's very helpful for error handling.
if (!help)
{
if (!helper.getHelp())
std::cout << "No help for you.";
else
std::cout << "They had us in the first half, not gonna lie";
}
not at all
hamza best
maybe a bit edgy
but not as edgy as rei
Can you add horses for transportation
its not the place to ask
Add horses for transportation
just reading about matrices and im realising that they are just multi-dimensional arrays
they do have some interesting multiplication tho, pretty hard to figure out
matrices are 2d arrays
if u want help with matrices i can help
e
it looks weird in code\
\
\
im just reading the opengl documantation about them and i feel like im back in math class
Oof
they arent but
they look really weird to work with in code
which is sadly what must be done
nah they dont
OpenGL big annoying to work with in general.
||have to disagree||
nah its just hard in the start
afterwords its awesome
haydot
should my window be working in 0-10 fps tho?
months*
look i figuered out shaders
and ebos
and now i will figure out math
after 1 year
3 + 4 = 8
u stoopid its 3.15
2.14
2.14159265
69.14
02496
glgetshaderlol
.
Oh hold up.
What happens if you put a null character in the beginning of a string?
uhhhh lemme check
idk but my renderer class is the hardest shit to read
Bet.
i will make a paste bin if you wanna check it out
I've done working GL code for an hour but I'm bored.
So I'm gonna challenge myself.
Pastebin.pl is a website where you can store code/text online for a set period of time and share to anybody on earth
trying to read this hurts my eyes and brain
and i will be adding math to it

also i know the paths shouldnt be my paths for exportation but shhh
It's fine.
if it ever goes on another computer it will throw enough errors to crash the os 
I don't really judge other people's code unless they mess up python with anything but indentation.
And they're not new.
damn
reminds me of one meme
in which a guy runs his code and gets his an bsod
idk how but the madlad did it
;
me when compile-time errors that have more zeros then words
BCMP when exist
Yeah
but atleast i always know that its something wrong with my opengl code, because it only throws them when opengl complains
Exactly.
and it does that alot
OpenGL throws errors for correct syntax.
opengl when no glfwInit()
So does GLAD.
i hate them with a passion
'rust is great but
really complicated and the fact that most vars are local makes it hard to use
i feel like if i got a penny for every time i thought "why does textured rectangle window keep crashing" i would have a dollar. Doesnt sound like must but the fact it happened 100 times is weird

i feel like my brain is melting from all the math i just read
i use it
only for the
state hook
better than handling the input output yourself
but i still use jinja for server rendering
more performance
and seo friendly
I had to do this piece of code and 9 pretty similar to this today in school (variable names and prints are in finnish because school made me do them in finnish)
using System;
class HelloWorld {
static void Main() {
Console.Write("Kuinka monta bittiä koneessasi on? ");
int bitMaara = Convert.ToInt32(Console.ReadLine());
int vastaus = 2;
for (int i = 1; i < bitMaara; i++) {
vastaus = vastaus * 2;
Console.WriteLine(vastaus);
}
Console.WriteLine(vastaus);
}
} ```
I gotta say that it was not the most fun I've had with coding
I have 3 word documents of code. I don't like storing code in word documents
it's shit
Word beat ide wdym
You can color your code however you like
You can use different fonts
Its amazin
I use it every day
lol
we used some random online compiler because we had to use some random math class pcs
in my old school we had vs code on the pcs so i was pretty happy in it class
we don't have vs code
we only have visual studio
but I like to use it more for C type languages anyway
visual studio better for C
ye and we use C#
nice, are you gonna start learning cpp at some point?
I'd like to know that too ¯_(ツ)_/¯
if yes i will be pretty jealous
Coders cave gives off Pablo's pub vibes
but what even is C# good at 
I've been thinking about this the whole day and I just don't know
idk why I haven't googled
Windows app development, web development and game development
intresting
The last one is what I expected and think C# is good for but why not use JS for web development and C++ for app development
you can even make apps work on Unix based operating system
microsoft made C# very good and easy to use when it comes to web and apps
.NET core works on linux
oh nice, I've just never heard anyone who makes apps for Linux use it
but I don't know lots of peiple who make apps for linux
it only has support for console applications
but im pretty sure there are some third party packages who will allow you to make an app with a gui
😳 @orchid frigate
😳
jesus christ what have i done
this was not supposed to happen i just want to clarify
by creating this i have probably commited several warcrimes
there is no memory leak what you talking about
it got to 4gb at some point
ugly
yes use a low level language then use it like a high level language
It wouldnt be bad if it wasnt just an empty screen

mium
opengl

@main brook do not make gay jokes
Hm?
That's strange I didn't Noticed anything
how hard would it be to code self learning ai via reinforcement learning to citizens in worldbox
Jupe: the problem of being faster than light is you can only live in darkness
if you're making your own machine learning
it'll take a year
unless you're a prodigy
not own machine learning
great
from someone elses open sorucef work
If You're an Expert on ML or DL probably not that much
yea find some framework
Ah
best machine learning:
name = input("please insert your name ")
print("hello, "+name+"!")
deep learning

Probably ask someone that has codex access to help you/Seriously
No one haven't tried the capabilities of Codex on coding Machine Learning Agents
i want to deeplearn the citizen ai on some simple points
Ow
and the ai have the base background
Like what?
punishments and reward systems based on damage and other stuff
Ow that stuff,It would probably be possible to be honest
endless possibilities alot of tweaking though
I always Love thinking About AI agents in Worldbox because The system is there and it's possible
damage hunger and kingdom being taken over = punishments
killing enemy having kids (up to 3) being full being rich alot of other stuff conquering = reward
imagine the new military strategies the ai comes up with
Aha... probably work on more Simpler Reward and punishment system
Reward=
• If the Agent keep it self alive
• Don't stand in single place
Etc.
Punishment=
• If Agent Doesn't keep it self alive
• if it doesn't move and stay in a single place
etc.
Build the model upon that and continue adding things
Also While The Sonic speed button is a thing in Worldbox you can probably do this farely quickly
this should be implemented the real game lmao
if the agent doesnt do task it gets punished
Yup
if people are gluttony they require to eat more
giving actual character traits meaning other than charisma
and diplomats rewards are being kings
while military leader rewards are conquering
Probably should work on a more simpler agent than other future plans
Just make it self alive
Build a House
Populate
And repeat
populate needs to belimited
Yup, Resources are limited
hmm
this is getting more and more advanced each second
if they are unhappy they want more resources
so they mine more
Yup, It's Machine Learning
Also Been thinking about this a long time and you need to change a whole lot of things in the game
If you want a Realistic simulation you probably want to remove things like Immortal and etc.
if someone is immortal
how long will it take for them to max out everything
for knowledge wise
60k maybe
if they arent killed
Not Really,Been Watching people From a far and learning 1 and 2 things, Love what I can give people and point them to resources I know It can be useful
Nonetheless
Goodluck with the worldbox agent
thanks
Like this guy
The person looks more in the in-depth behavior of models but you can probably get inspiration
Honestly If you did created a fully fledge Worldbox Agent you definitely need to write a paper on this, Because this is some Deepmind and OpenAI type agents
||```py
print("never gonna give you up")
print("never gonna let you down")
print("never gonna run around and desert you")
print("never gonna make you cry")
print("never gonna say goodbye")
best code in 2021 
unefficient
still
never gonna is there 5 times
could be made as a variable
saves 20 bytes of memory
or wait
more
Aw cute

a language system (trading diplomacy communication system) would be so advanced
in a system where one side wants something one doesnt
aka deep learning
Yup
You would need to code a whole new system
You can't copy paste someone code in the internet
I mean there's no code available publicly
ya
Most system like that are like in civilization games
its 69420 lol
Would be pretty neat
im just trying to figure out the basis of the system
and loops and things i might encounter
i wish i could actually work on a game but i need to figure out most of opengl first
😔
i mean i could probable start now but...
no lightning, basic shaders
broken cam
and huge memory leaks
UE5?
Ow
ur own engine?
ye
Goodluck
interesting
i mean actually creating a game wont be much more difficult then creating a game on a public engine
but creating a rendering system is a HUGE pain
@barren shale is also working on one
called hengine
but he copy pastes code smh my head
what
no
i only copy pasta the init stuff
its like reading documentations then writing it
thats like 90% of it
still
copy pasta bad 
look the fact that my game runs for 5 seconds and crashes doesnt mean its bad
id rather have something work
it just needs a bit more...work
the fact that it took you 2 months to make it is tho
yea but having a memory leak is awful because most of the time you have no idea why it exists
i just wont deal with it until i need to actually create the game
Pastebin.pl is a website where you can store code/text online for a set period of time and share to anybody on earth
the fact that this whole thing is just to create weirdly angled triangle is pretty...amazing yet awful
well its like ur creating a wheel in the 21st century
i mean its not special
but man its a wheel i madd
Wheel 3.0
I could also use unity but....the physics engine is pretty overcomplicated and you can hardly customise it
making your own engine isnt recreating the wheel
its actually very good
you have full control of the engine
makes ur games run faster
cuz u wont put stuff that you are not gonna use
its not u just dum dum

Hamza is boring man
Hamza is bestest man
Hamza has mom
a dad too
Hey dudes! Can you say please where you learn a python?
YouTube is the best place to learn python in my opinion. Lemme show you few good tutorials to learn python
My favorite YouTuber, makes amazing software videos and probably the best at explaining programming IT in YouTube just started new series for python but it only has one episode so it's gonna take a while learning through his videos:
https://youtu.be/mRMmlo_Uqcs
Then tutorial how to learn python from also one of my favorite YouTube channels, definetly good video to check out:
https://youtu.be/5mJ_Qftw2_0
the video on how to learn python tells better than I could ever but these are my recommendations
What I use to learn (the BEST IT training): https://ntck.co/itprotv (30% off FOREVER) *affiliate link
🔎🔎FREE Python Lab: https://ntck.co/pythonep1
Support the course: https://ntck.co/pythonrightnow
🔥🔥Join the NetworkChuck membership: https://ntck.co/Premium
**Sponsored by ITProTV
SUPPORT NETWORKCHUCK
-----------------------------------...
Ex-Google Tech Lead teaches you how to learn Python Programming in this tutorial. You will learn the fundamentals of how to learn Python, server backends and frameworks, databases, frontend, pet projects, and examining what is involved in learning how to set up a Python project that can help you land a job in tech!
Join ex-Google/ex-Facebook e...
Thanks Jupe
Well we've always been small group inside big place
I'm honestly not sure how this channel still exists, I suppose it's pretty active and add diversity but is still related to WorldBox in a way
idk how it still exists either but im happy it does
Dang.
techlead is kinda sus ngl
is that a mf among us refrence 😳
Techlead has become bad but wasn't always bad.
He was at one point a good person.
Then he decided to turn an m into a b.
Hey change Gregor gameplay status to playing fairs simulator
https://automatetheboringstuff.com/ (for complete beginners to programming)
https://learnxinyminutes.com/docs/python3/ (for people who know programming already)
https://docs.python.org/3/tutorial/ (official tutorial)
http://python.swaroopch.com/ (useful book)
see also: http://www.codeabbey.com/ (exercises for beginners)
Collection of programming problems to practice solving, learn to program and code, and win certificates
youtube is good too
but its not good when they teach you tutorials
and not a language
like instead of teaching you how to make functions and how to do something
they just write crap for you to follow
nice
Top: Aiohttp
Bottom: HTTPX
i requested to 3 websites
10 times
facebook, google, youtube
aiohttp runs faster

you dont need any youtube tutorials or shit like that
just do something
and google
that's how i learned

you don't even need a degree
no no no not that type of camera
game cam
like i can move around in my game window that needs 4gb of ram every 5 seconds
and I'm still getting a degree because fuck being hard to get a job because you don't have a degree
and also fuck high school
i will probably at one point need to get a job but idk what i will work considering my programming knowladge
noone needs opengl devs
and all cpp jobs require 1000 years of practise
and frontend is boring af
lol nice
we getting there
lmao i just saw the visual studio memory usage graph and its fucking hilarious
lemme get a screenshot
gas gas gas im gonna step on the gas

it got to 4gb in 6 seconds once
its weird because its always different
i think the main problem is is i kinda have everything inside of the render loop
but the fps seems fine at first def over 500 atleast
anyone with a 32bit os wanna try to run this
I'd like my computer to not explode thanks
Just run it in 32 bit
You dont need a 32 bit os
Took you long enough
Looks like someone needs garbage collection
Too bad cpp doesnt have it

lol xd im laughing hamza
can you also not tell
this me irl
his jokes is so awesome
i died
of laughter
i ded now

his jokes is so world class
that he even got charged
dont die after dying you might not live anymore
for international mass homicide
you know
i died
and then woke up from my grave
im a certified doctor with 420 degrees and i can assure you that after dying you do not live
i have 69 years of experience

i have 100 years of experience in c++
im very funi
the mostest ebicest embedded fail
its good when you dont know how to manage your memory
hamza be like: no chad
haydot be like: yes chad
-haydot
-hamza

if you
admit
that cpp is better
i will give you
all my code from the engine
👀
whyd i want to get code
that has memory leaks
and is in general bad
or is it bad in general
idk
its bad
ok ill admit
noooooo
im the creater
creator*
of the best engine
worst*
called cozy
cozy memory leaks*
Do YoU KnoW WhO I Am!?
haydot ?
yes
that is true
i speedran creating a memory leak
and failed
it took me 2 months
but still
i bet you cant even create a memory ;eak
yes i can
im the best memory leaker ever
i will one day have a program
that uses 8gb of ram
cant create a memory leak in C# :(
its just too good
you can disable the garbage collection
so you actually can
it just doesnt let nubs like haydot do it
c# is so cringe

it cant even create memory leaks
smh at c#
garbage collectors are cringe
i can collect garbage myself
i just need a garbage can
get it because of i CAN and garbage CAN
yea you get it

just keep it sfw 😬
ieam
iam

i just call it daddy
"father" sounds
kinda not me
Balls
Tennis balls
ur mums balls
😳
my matrix class grows bigger everyday
id give it one week till 1k lines

did i say 1k
i meant 10k

this has more spaces then the cosmos
ofc
unrelated stuff should be spaced
unless you want your code to look like haydot code
its ugly
literally
everyone spaces code
you do it too
haydot does it
sometimes
i guess no one is awesome

i space my code
format is one of my biggest weakness
because if i see bad formatting
i die
same lmao
bruh
for me its not even about bad formatting
if i see someone formatting anything differently from me i die
if(condition) doSomething();
this kills me
if(condition)
doSomething();
this is good

that's basically twitter user
Look
As a master programmer myself
I will give my opinion on what good code looks like
I think that code should be spaced out to a certain point, like certain parts of it, kinda like paragraphs
But comments are very good
And make sure to separate declaration from definition.
In my education if your code has even a small thing that could be more readable your teacher tells me how to make it more readable which is kinda good ngl
Imagine if he taught Assembly.
less spaces is better
entire scripts in 1 line is fun
I would do that but I use C++ and any includes have to be on another line.
So that would mean no I/O, no standard library stuff.
Maybe JS.
i personally hate the format where you open parenthesis or bracket
and then do stuff
and then close it
the only time that feels natural is declaring new function or method, but like regular use? ew, make it one line
Python and Assembly are syntactically impossible to do on one line.
Like this?
if (expr)
{
stuff();
}
ew
Oh yeah.
Just use
button.onClick.AddListener(delegate {
Debug.Log("Button pressed");
});
at the worst.
using it to either call a function elsewhere or some temporary function where youve written some code
Yeah.
these buttons have places for onHover, its how the game already does its tooltips
Ah.
Oh nice.
makes it very simple
Is showTooltip a function or a variable?
a function
I really hate why you don't need to use () after some functions in C# like in this image. It's really confusing to me
just fancy "show message" stuff
Function pointers don't I would assume.
those are almost always during delegates or weird calls
like 90% of the time you use (params) like normal
ye thankfully
I haven't seen that yet, I just started learning C# in school
Damn C# is weird.
usually this would be traitButton.load(traitName)
but its inaccessible
reflection can bypass the access stuff
oh gosh, that doesn't look fun to deal with
its not!
i stayed away from this sort of stuff for a very long time, its tedious and confusing
but its almost essential for bepinex and making compatible mods
right now im trying to figure out some of the actual game ui stuff, nikon has a lot done already and im learning from him
my mods are "simple" guis, using a whole seperate system that is wayyyy easier

Atleast you're working to learn it. I've been having a problem of not coding because I just don't find the motivation to do it and then I don't really learn anything
just gotta find something that gives you that passion
im noticing how much interest powerbox got just from these custom windows and wanting my own 👀
I haven't really played WorldBox with mods that much but Powerbox gui is really making the mod feel better even if it doesn't actually really help that much
i think the compatibility with other mods is what sells it
can use its features to improve a lot of other things
new mod coming lets you control people again
powerbox adds maxim and mastef.. can play as them lol
lol
thats just one lil thing, plenty of random stuff like that for people to figure out
~ $ lua5.4 code.lua
hello!
~ $ ./code.lua
hello!
~ $ cat code.lua
#!/usr/bin/env python3
print("hello!")
~ $
just like rei's mum
what's wrong with my mum
Keh

Why it still shows like that
no
You have outdated info
It was renamed

I am exploring my first c# projects
and
One of them asking admin rights
it is custom screenlocker(not a virus, just thing that keeps your pc under password)
And
i remember that this thing
Disabling task manager
Mb better do not run it

This is cringe rn
But 5 years ago
i thought that it looks cool
It's cool

Cringe? It looks like so good and star wars like
At first I thought it was something related to Star Wars
Hmm, I found out what software the busses in my area use
http://www.thoreb.com/index.php/en/our-solutions/28-elsy
Thoreb's intelligent E/E architecture system ELSY
kinda intresting

imagine being a programmer, having a child and teaching them C
and when they're lost
someone taught them C
the one who teaches instantly died
because your child is more superior

this reminds me
i should use docker for my projects
actually a good idea
why are you doing it then
I did all my programming assignments in school for like another week so the teacher told me to do some hard challenge online and I picked binary clock challenge. It's quite hard but I almost finished in about 30 minutes
school just ended too early
im making neural networks from scratch
but the tutorial is python
im not gonna use python

how will i make an system that will every mobile players can get mods in worldbox mobile ?
🤔
Be a dev?
Make a marketplace style setup.
Require connection to the internet.
It'd have to be an official source or we would have to download APK's from a website.
Which likely wouldn't have much luck with in-app purchases, so no premium.
Plus you would only be able to get one mod.
So modding would need to be official.
@orchid heart
numc#
Not if it's made the right way👀
It doesn't have to directly edit the code, could also add onto the code in a seperate file like BepInEx does for PC
num#
That's hard as fuck on mobile.
It would be easier if it were official.
For everyone.
there's a package called numpy.NET
i just wanna have some understanding of the code
so im writing it myself
im not rewriting everything ofc
Nice
just the things i need for my machine learning things
Machine learning is cool, what are you planning to do / doing with it?

python bad
Nah its ez
Whats hard is to code a video game without a game engine/create your own game engine
literally me
lmao
you couldnt do it with unity

Matrix math is hard
Not as hard as haydot think it is
Its just a bit confusing sometimes
Bru unity sucsks i hat unity
My game engin better
Wont ve able to work on it tho because different project now
matrix math is like riding a bike, work hard on it for a couple weeks then its breezy
i made my own game engine but seeing all the features of unity make me doubt this statement








