#⌨coders-cave
1 messages · Page 71 of 1
you know what ima give up on coding for until i dont get this fixed im so sick of having stupid errors and problems that are unfixable in every project i make
every fucking project
from unity to opengl and vulkan and now this
its called
doing things that you cant do
and you get burnt out very quick
cuz difficulty > skills
you dont see progress over time
you get burnt out
No its fucking compile time errors
Or no compile time at all
I have the kernel code with no way to see it
Vulkan would randomly not detect my gpu
Opengl had a massive memory leak which i had to rewrite the same code over 10 times to barely fix
And unity was...unity
Nothing needs to be said about unity
yeah i code
I know a 13-year old kid from Poland who coded an ASCII engine and made a functioning Minecraft clone with world generation in it haha
it was me
Not true
yoooo ok i fixed it
i can now boot stuff
ok coding depression time is over gotta code extra hard now
yeah it was? lol
Is your name Dominic Sliwinski
Dang you know about me?
call it AmogOS
already exists
only problem is i have to create a new boot image every time i save it which takes like 5 seconds
but im so happy its working i dont even care
you start with very high level language
close to human language
and you either stay up there and do normal people code or be like me
go very low aka not close to human language
so you'd say human language is harder to learn than code?
uhhh
yea
kinda
matters what
making a website? yea its way easier
making an os? Nope incredibly difficult
but like learning it on a fluent level
(a functional os i mean)
it would be harder right
what was fluent again 
What does a line of code usually look like in C#?
Console.WriteLine("Hello world!");
Lua, BCMP...
For me, I just enjoy solving problems and after you learn a programming language well coding in it is just solving problems.
Or well coding isn't problem solving programming is
What is the most used coding language?
Python
programming more like POGramming
you just start doing it and you keep doing it
It's like drugs, you get hooked and just can't stop ever no matter how much it hurts you
depends on what drugs
😳
not in C#
C# consoles are a bit slow
since you cant access the buffer
csharp is a lua ripoff
Wtf
Hello new fartis
cope 
@orchid frigate I’m learning rust
Not because it’s better than C# in anyway
Just cuz I’ve seen cool text engines made with it
Oh nice
And good luck as rust is...
Hard
Very very hard
I would say way harder then cpp
Also did you see that i got my emulator to work?! Im still shocked that qemu doesnt need cpu virtualization to work
qemu >> virtualbox
qemu is literally a vm....
i already learnt rust
im working on the engine rn
2 hours youtube video and a couple of google searches make wonders
Yea thats not gonna cut it
if you know one language well, you basically know them all
wanna bet ?
Mutables are like cpp's pointers but way more annoying you will see what i mean soon

If you don't have problems with mutables and traits until the end of the project im putting your name in the os or whatever project i finish'credits as the best coder (which may be none)
you can put it rn
traits are interfaces
idk why you would have problems with interfaces
I mean i coukd display your name on screen
Actually i cant
Because i dont have electricity
Oh and
You may have problems with macros if you gonna have a pipeline
Which also counts
Because i ended up deleting an entire project because of macros but it was a very specific use
And the worst part was that it wasnt my code's fault the compiler was broken
Confidense is the best thing a person can have in programming so glad you have it
👍
Keep it up
Bro imagine being Hamza.
im getting the hang of rust

still having a bit of a hard time
since im so used to oop
my way of thinking is too oop
like i want abstract classes so hard
but ill have is traits

I told you its hard
You just said...
i said ez
Whatever you know what

Whatever
i said im having a hard time adjusting
Are you making global vars
like this ?
Are you using vars from one file to another?
Like
i dont have variables in files i just have structers
Thats a nice way to make global vars
What i meant was the following:
i dont have global variables
cuz i dont need them
I've never used global variables
sounds like something a nub would do

pub static INT: i128 = 123;
pub const STRING: i128 = "cool";
```rs
I use them all the time 
Why
idk
Why would this way be inferior
usually global variables are bad
that's what i learnt at the start of programming
make the scope as small as possible
that's why you dont make everything public
even tho you can
Yea the thing is structures are good but im not making a structure for a single var or multiple vars that qre completely different from each other
you can make a structure called Settings
put every setting you want in it
and make it global
and now you have 10 global variables in one
Yes i agree
That is good
But sometimes you need just one global var
Would you make a structure for it?
depends
and you can still avoid global variables
by just making a local one
and passing it around
which makes you look like a kewl programmer 
still figuring some things out
its probably gonna take like another day to just translate everything from C#
Understandable as this looks pretty complicated
bruh
there's like no info on some shit
how do you even implement a trait for another trait

i guess my code wont be as clean 
@orchid frigate
just gotta figure out how to flip this thing

rust so ez
C# > rust
I told you but you didnt listen
I wish i could get used to assembly this easy but nah
This shit complicated af
Looping through a "string" has not been fun
But thats fine cuz now i can look at my code which makes me happy 
Y’all ever make art with lines of code before?
Like lines of code in the shape of something?
And it still runs?
Not bad
You could do that with any language that doesn't use indentation as only thing they care is where is the ;
well it's a lot more complex than that but the point is still there
but code is already enough art Imo lol
it's just magnificent
😳
That looks way too complex for me so i dont but i will try it at some point
omw to do that
it means
you're trying to access
a chad
that is non-existent
there's chad1 and chad2
but you're accessing
chad3
which doesn't exist
Ues
It's a silly mistake to make
Wait it's still not working
No error message
But
It's just printing the symbols not the named I gave
Assembly is so cool yet so fucking difficult
Everything is difficult in it
everything
But its so fun to write at the same time
Code?
Ok i dont know python
But i will try to help
What is it printing?
I wanna see if the way arrays work is the way i think they work
Oh wait is it only printing ",," because if thats the case i think i understand
So try to instead of printing the entire array print the name one at a time and then put the commas
Should work
Also please dont put spaces in your file names you will thank me later
Is that pydroid?
yes
Oh yes
and index starts from 0 not 1
start the list indexes from 0 instead of one
Maybe I should watch the tutorial again
I did
can you show how your code looks at the moment
I have quite a bit of experience with python
You know, learning assembly really reminds me of the time when i was first learning programming and how painful writing anything was
Not proud to say how many times i would forget that lol
Ok so… why is it ==
== is for comparing and checking if they are equal
To set values you use =
You're using comparison not assignment.
friends[0] = input("enter friend 1")
Also, arrays start at 0.
And there are way more exclusives.
portable
Yes.
Yes, I can.
Bye.

Anybody know which programming language or game engine WorldBox was made in?
haskell
C#
AKA
BEST LANGUAGE
unity engine
ye
Does that mean it can be modded from unity?
Well technically
Follow this guide to learn about modding and how to use mods yourself
https://the-official-worldbox-wiki.fandom.com/wiki/Modding
this tells a lot ^
and you can ask the awesome community of modders more questions in #🔧modding-talk
Ok ty
There could be a way, but I'd mainly use Unity to get knowledge about how the game works and use something else like Visual Studio or dnSpy to mod with.
Unity helped me understand gameobjects a bit.
I wouldn't recommend doing coding in dnSpy, I've tried it but it's unnecessarily hard compared to Visual Studio
maybe try some C#
I need to learn more C
As I will need to make the kernel in it
Could also do it in rust, but i dont think its well enough documented plus i dont get to make the boot sector myself
And sadly im a completionist who wants to create everything from scratch
I realize now that thats more of a disability then ability
Nah
Visual Studio Code
Vim
that's it
if you want you can use PyCharm
but its an IDE
Thx
What programming language can i use to make 3D games?
I use ursina engine but i want something more difficult
if you want to get into java programming a good IDE would be Idea's intellij
Ok
there's tons
but your question is supposed to be
"what lib"
also ursina isn't a language
They said Ursina engine.
assembly
@solemn lagoon it depends on what you want you for your game.
If you want something really fast, then try using C++. Unreal is a really good game engine you can try out with C++. Unity is a great game engine as well, which uses C#. Java is a pretty good choice as well, although it isn't the fastest here. Python would suck in a release but it's good for prototyping, although I don't know any good libraries. Javascript is another alternative, and pretty much the only option if you want to make your game on the web, but I don't know of any 3D Javascript libraries except WebGL, which is not a great choice for beginners, at all.
triplea studios wtite their games in assembly
Do not use Assembly.
Use assembly, do not listen to this man
It's basically bitcode.
amateur
You are writing processor code bro.
AMATEUR
It's literally the closest to the machine you can get.
which is exactly why you should use it
clearly a skill issue
Then you use it.
no
Make a game with no engine or libraries with only Assembly.
nonononono
:/
You would recommend they do it but then refuse to do it yourself?
Yeah
And phrase your responses a way that makes you seem scared of it?
Like REI said, vim works (if you're on Linux). IDLE is a pretty solid choice. Visual Studio is strong. Notepad/Notepad++ is fine (if you're on windows). Anything that edits text and saves it with ASCII encoding (most, if not all, good text editors) will work. The best option is probably Visual Studio, which supports full syntax highlighting (not even IDLE highlights as much as VS does), and Visual Studio includes project support which is really helpful.
If you can use Visual Studio or Visual Studio Code for something, it's almost garunteed to be the best option.
And because they support extensions, they can be used with pretty much everything.
and they say "what programming language" before
so its kinda weird
unless they continue it with
"i use python with ursina"
that's understandable
Hm
#🤖bot-commands
Why can't someone just Disabled the Command running in other Channels
c sharp
unity
#🤖bot-commands
ah, it has admin perms. I'm not gonna mess with perms now as I could accidentally make something unusable in the bot in this server
Damn
i think
mee6 should have a server sided
filter
so like
if the message is in a text channel and in the records, that channel is blocked by the server configuration
like !block #channel
it'll be filtered
aka just don't do shit
return immediately
ok
mee6 too bad to have good stuff
me when e6
Oh yes
I forgor 
Learn to script on paper
How do i compile the code
Scan
Does this text editor let me customise my code and theme?
Does it have extensions like vscode and vs?
I need Answers Because from what i have heard thus far its far inferior then any other text editor
Or ide
Ofc
Ah good
It does seen Powerful but
Saving to file seems far too complex and long
I would give it a solid 2/10
Its better for yo eyes dawg
code using word
Dude doesn't word add extra characters that would absolutely ruin your code?
I know word is impractical, but how impractical?
the most inpractical
Well any editors that don't support utf-8 which is almost none make ä and ö random mess which is annoying with WinSCP as if you quickly want to edit something through it to upload to a server it just doesn't have a practical way with the built-in editor
0/10 would not recommend
no
you're coding in alien language
smh
assembly
Joe
Joe Biden
is
Yo momma
help what

you can't be more vague than that
GIVE PHONE NUMBER
wtf
i never use kaggle
why is it so long
so eh
looks fake
ok delete this
or 64
before u get dosed
ok gib code
done
TYTYTYTYTYTYTYTYTYTYTYTYTYTYTYTYTYTYTYTYTYTYTYTYTYTYTYTYTYTY
<3<3<3<3<3<3<3<3<3<3<3<3<3<3<3<3<3<3<3<3<3<3<3


i was trying temp numbers for two days
what's kaggle though
coding challenges
ah
i wanna compete in the lux ai challenge
have a nice binge watching
very sad indeed
and now you will suffer for ever
cuz its not C#
my life is sad
always error
and another error
Please do not wish such an awful fate upon me
oh lmao
i fixed the error
but i sent the file with the error
lmaoooo
moment of truth


Is this piece of finely crafted code made in the low level language known as assembly x16?
Spam
Ban
Report
Kick
It appears that your code is in fact doing its job
now my bot will play against other peoples bot
For which i congratulate you
and will destroy them obviously
and it will clime the leaderboard
and become numba owan
and ill win 4k$
Your plan seems very dependent on your finely crafted bot which has a chance to win
Goodluck🥳
But considering the competition the chances are slim to say the least
im using the strategy that's everyone using
hug all the resources and build as many cities as u can

Did it loose
DESOTRYED
Oh
That's lovely
Tis very good
Ah
Oww :o
so you have to scroll down
XD
im number 331
click on the little arrow to watch the games ive played
screen with a little arrow*
OMG
ANOTHER GAME
OMG
WON AGAIN
EZ
$10k not bad
im playing it for fun
im now 300th 😎
my bot plays a game every 5 mins
rank 1 plays a game every 2 hour
cuz there are not a lot of people he can play with
i think i might get to top 50
then i have to start tweaking it a bit
:OOOOOOOOOOOO
another game
won
ez
Ow wow :o,I taught you want to join Because 10k is a whole lot of cash in your place
But kaggle challenge seems interesting
Interesting
i dont think i can beat everyone
and there's still 2 months until the challenge ends
2months god
ill try
wots this
but i wont be doing it fulltime
Start copying people code
you cant
you can try to imitate strategies tho
Follow along on my journey of coding a Python AI agent for the Lux AI Kaggle competition.
Lux Competition on Kaggle: https://www.kaggle.com/c/lux-ai-2021/overview
Lux AI Tutbot: https://gist.github.com/Sentdex/971fa96b6b706627d69ba0a09ae437cc
75% off Self Driving cars Udacity Nanodegree: https://bit.ly/3EQ4WjQ
General 75% off on Udacity: https...
gather resources build houses
Hm,im gonna guess People in the next 2months of the challenge just gonna use RL/ML to beat this challenges
cool cool
you have 3 seconds per action
Oof
so you can analyze them
Nice 🎉
Honestly
the best thing you can do is get a genetic algorithm going
do you like fight or smth
to get some good settings for your bot
i choose the vein of resources workers go to by settings
that need a bit of tweaking
cities need fuel in the night
target ml users
This could better if Worldbox
by making a bot that acts incredibly erratically
you cant use ML
too hard cuz you need a very small network
yeah true
3 seconds per action
rip
Just hand written code?
yes
Pain
if it runs in less than 3 seconds
lol im already rank 261
per action
based
I've no idea what an action is in that thing 
building a house
moving
researching
doing nothing
my bot is winning
then killing itself

i just lost to a guy who built one city
OOF
WON ANOTHER ONE
Hi hamza
hi
Goodday
That's tough.
You should implement ML into your code if it becomes a problem.
But if you're stronk boi then it shouldn't.
At least not for a while.
my bot seems to be a 1K score max
Hmm
Probably want to use RL if possible and look at Top bots
i dont have a GPU

training that thing is gonna take years
the code is already out of RL
its missing some features in the game
like cargo units
anyone has an rtx 3090 i can borrow

@orchid frigate how the fuck do you make a local vpn
I got HP Elitebook 845 G7 or HP Elitebook 840 G8 laptop (not sure which yet) from school today
Finally I can code wherever the fuck I want
it's neither, it's HP Elitebook 840 G8
or HP Elitebook 840 G8
Ow wow
Wtf is a local VPN
...i guess you already have one?
Because it puts you in your local region ???
I'm sure your bot is better then you may expect
That is quite sad to hear my good friend
CAN YOU FIX IT THO ?
Give him to following piece of code to fix this:
City.sustain(true);
its gonna be a bit longer than that
Nah
Just give him this it's gonna work
This is how high level languages work after all, you just say some words in stoopid human language and stuff happens
Unlike in pog low level language like assembly

keh reinstalling java
wait its in java
i chose java
cuz its close to C#
you can choose
you have options like python c++ javascript java
Was there assembly option
@barren shale i understand how to make it sustain cities
sup peeps
okeh
im gonna start versioning my bots
and uploading each version
i just redid the whole action system for the bot
and made it clean
and called it V1
Versioning stuff is weird af, I have seriously no idea how you're meant to do it and I don't think there's like a guide line for it
i just write V1
submit the bot
the next bot i submit is V2
unless i do a small update
if its maybe crashing or something
so this is V1
its probably gonna go to 1K then stop
cuz its basically the old bot
with cleaner code for expandabilty
the meta for the game seems to be build as many workers and hug as many resources
you go with major.minor.patch
e.g. you start with 0.0.1 if it's early alpha
you can read up on semver
Given a version number MAJOR.MINOR.PATCH, increment the:
MAJOR version when you make incompatible API changes,
MINOR version when you add functionality in a backwards compatible manner, and
PATCH version when you make backwards compatible bug fixes.
Additional labels for pre-release and build metadata are available as extensions to the MAJOR.MINOR.PATCH format.
very simple
there's plenty of room to decide on your own when you want to use which one
Hello dear my good friend hamza, I wish that your first version of the bot manages to get to a high score
it wont
but thanks
depends
Well... I just thought of a way to make the best running game ever
Make an os thats actually a game
👍
old but okeh
Now im not gonna do it
good luck writing the different graphics drivers etc
Because god forbit i dont wanna go back to game development
I would say there is always google but there is like no info on this
You really have to dig into the darkest depths to find anything
Reinventing the wheel is fun
sure but not practical
Better then using it
I could also write html but thats the most boring thing i have done in a while
netcode is already hell enough
why is it boring
i mean
what's your goal after all
is it the writing or the finished thing
never lose sight of the finished thing
meh
Its doing so much for me without making me do the hard work
html is fun af. You get something showing on the screen with just so simple ways
hmm thanks, that's actually really damn helpful
whut
that website has some nice ruleset
like 0.y.x you don't expect to have any stable apis
that starts with 1.y.x
All the drawing and stuff without asking me to set up a graphics API, asking for shaders, managing memory and all the memory leaks
I miss those things surprisingly
yeah but did u get the thing done
Plus its so much more rewarding to see a cube on a screen when you have written hundreds of lines of code for it
b-but did you get the thing done, and can you easily add the next thing to it
yeah set your priorities straight 
even john carmack got things done
first commander keen, then doom, etc
you learn by getting things done
then your brain starts overthinking how to optimize it for the next thing
then he did quake, then they started licensing out the quake engine to other companies ( half life was born )
then quake 3 was amazing , engine wise
and now he does the oculus stuff with VR
but it all started with some 2d games
I don't wanna create a game no more, not after realising all the non code stuff i will need to do
My goal is to learn os development... for until i dont start hating it
Then...who knows maybe bios development 😳
just contribute to some linux kernel then
but why 
why 
If im doing something its from scratch
Dont wanna learn someone else's code
Wanna learn my code

Its stupid i know but if i wanted to learn someone else's is code i would have still been learning game development in unity
what do you need your own bios for
Eh not gonna make my own bios i was just joking
Not customisable enough
And could roast my motherboard
My dad does IO controller programming or atleast used to do. I have no idea what he does at his work because I don't think he's allowed to tell anyone outside the company hea working in
He's told me a lot of how IO works in OS's
very interesting stuff
But like even IO require shit ton of people to work on it for it to function well
I just want to learn how it works, not make something big
I wanna work this in the future, this is the first thing in programming I genuinely enjoy alot doing
Interesting
yes
its very interesting
the underlying implementation
literally all I/O shit in the OS level
is literally just fd's
i like how stdin, stdout, stderr
are basically 0,1,2
blank stare
@everyone
Comunissim bad👎
Nice :o





