#⌨coders-cave
1 messages · Page 52 of 1
Minecraft
D
Eicks dee
I wonder if old openGL renders sprites the same way as new openGL
Wonder alone bye

I have minecraft 64D
my imagination
and not able to implement it

i keep imagining the solution but not able to implement it
anybody suggest if i should make mapping that actually update the actual database
like if im using mongodb
i could just
MongoServer.Collection1["me"] = {money: -69}
and it would update it
instead of running a function
isnt that just a dictionary
basically yes
but instead of running
FUNCTIONS
to set the keys
we just do it on the key assignment
I KNOWWWW
but like i mean
something like
.SetKey("key", value)
can be just
["key"] = value
and it would update it realtime
i avoided dictionaries for a while and it was dumb
not even redis
oh i see the problem then
sortof
Hi
in relational database its foine
hey I want to learn how to do mods teach me?
but for KV is sortof fine
hm probs #🔧modding-talk
Well, I already went there, it wasn't much help.
well not different here
What I want is to be on a channel where I can learn a little.
usually people talk about general codes
Xd
ecksdee
and how did you learn to create mods
basically
never
i stopped playing worldbox
SPECIFICALLY IM TAKING A BREAK
probably gonna come and do stuff when a big update came
ok
Just override the [] operators
If you can
Depends on the language
In java you cant override operations
Operators*
Cuz they want the language to be "simple"
But theyre probably lazy tbh
There are no properties
Cuz simple
You have to make the getter and setter functions urslelf
Which makes it more complex
So i just make everything a field


imagine java saying its supposed to be simple
and get beaten by python for being simple

i somehow like kotlin better
than java
idk why
that's what im doing
but the community im asking is shit
so im asking here
seems like bad and good idea at the same time
Its js right?
tis nothin but secert
We already know its JS
its not

no no
i mean like
code art
Bruh
Wtf is that
Object Relational Mapping
Cuz ur probably the first person who uses that language and want to do this
so no issue
yes 
how did you know me so well

also ORM isn't a language
Whyd u do that
ert
big numbers go brr
else if (money > 1000000000000000000000000000000000000000000000000000000000000000d)
{
returnString = (money / 1000000000000000000000000000000000000000000000000000000000000000d).ToString("F") + " Vigintillion";
}
Vigintilion

now we need Chadintilion
Just have these numbers as a constant somewgere
Instead of writing them teice
Twice*
It would look cleaner
but uglier
And the art would still be there
appreciate the art
No shit cuz it doesnt matter in the art gallery

i should reverse the pyramid tho
it starts big so the smallest numbers are figured out last
dumb
alternating it
nvm

Befunge.

Making a tic tac toe game on phone is fucking awful
Actually making anything on phone is awful
I think I also overcomplicated it, @barren shale when you did the tic tac toe game did you draw the thing using a multi- dimensional array or just using a single console.writeline
Does that matter
Even if you overriden the ToString to make tge Console.WriteLine work with it
U still have to do the loop over array in the ToString
Why 
So you can draw the whole thing ??
I mean can't you just draw a map in a multi dimensional array and then use a foreach statement to draw all the things
Like assign a letter to be a certain character that is being drawn in the console
The only problem I had with that is that I couldn't put a space after the third line...wait
I just realised I'm dumb
Or wait am i
for (int j = 0; j < height; j++)
{
for (int i = 0; i < width; i++)
{
Console.WriteLine(arr[i, j]);
}
Console.WriteLine();
}
I'm confused
String
Ok this should work
Oh no wait
You need to check if its empty
And draw something like #
If its empty
That's the least of my concerns
I already have a way to check if it's empty
I just check if the spot I need to check has a default value of -
If arr[x, y] == ""

Well then this should work
You loop over the Y axis first so it doesnt get drawn flipped
Wait ia this true
height = Map.GetLenght(1); //map is the array
Width = Map.GetLenght(0)
Ye
Writing on phone is so goddamn bad
Should it be <=
Shouldn't*
Ok so the height of the array is 3 right ?
Mine is more but correct
Ok so three indices
First one is 0
Second one is 1
Third one is 2
Theres no 3
:o


:0
:( )
:( )
Ah yes
Beautiful
Xd
As all things should be
I didnt know u could underline a line
XD
How could you underline an underlined line

±
I'm gonna code a way to do that
±
:o
While experimentijg with the for loops
I accidentally made a way to make rain in the console

The entire console was filled with randomly places vertical lines
Hi
Taht looked like rain
Hello
I did that while trying to create a tic tac. Toe game

Im not a coder but i always wanted to be xD
Nice, if you wanna start learning code I wish you good luck because it's alot of reading and researching
If you have any questions you can ask them here
And this chat is generally about coding
I tried unity for my 1st time and coded in c# from a 3 hour toturial i actully had full control of unity program but i didint know how to code becuse when i tried codeing i did exactly what he did but it didint work at all
It was long time ago but ill search it real quick
Unity is a pretty good start for.learning to code, I learned basic c# through unity
I mean
That's litteorly the start of every script
There is nothing in it to work
There is no code
Idk lol he added a code when he clicks
The
Entities
It changes the color
Of it
One sec lemme see
Because there is nothing in that script to actually do anything
Oh theree
It's pretty much blank
Ah well that makes sense
Also you can also send them here
You don't have to send them to me
Yep not all pepole are good some pepole ruin servers
Any way i typed that code
It didint wok tho
I mean i wouldn't type it that way but I guess it works
Try this if you can
Lemme just type it
I dont have unity on my computer rn
Oh well
void Update(){
If(Input.GetMouseButtonDown(0)). {
GetComponent<SpriteRender>.color = Color.Red;
}
}
Damn that looks ugly
Writing on phone sucks
Oh my gawd thats so long lol
Anyway it's not a full script
All of that for a click and change color
Yes
Wow this takes lots of time
In coding a simple tic tac toe game can take up to 200 lines
Its because you can just tell the computer what a tic tac toe is and tell it to draw it
GTA took around 2 million lines I think

@orchid frigate welp i feel bad for that coder
If you know how to write it yes
It's not just one
There were like
1000
That's why a big team of people make games, making GTA 5 on your own is relatively impossible to do alone
Bruh
Now im questioning how
Wait you know dani? @orchid frigate
That weird coder
How dose he make these games in 1 week 2 week
Like he makes a nice mobile game in 2 weeks
Well...they are relatively simple
And it dosent actully suck
Ever noticed how his game are all about the coding
And the graphics is simple
That's how
He explains it perfectly
@barren shale but its like 10k lines of coding
No
Coding a simple 2d game takes around 2 weeks
Its 3d
Which is like 10 hours of work if you know what ur doing
Doesnt change a lot
Even 10 k lines don't take that long to code
And he placed over 8 levels and a shop and good mechanics and nice graphics and each level is different and there was difcultty ai
Relatively
The same
He probably put more time into the game if that's the case
Or he worked overnight which most coders do
It is for my schedule lol

It took me that long to draw a shiny rectangle in openGL
Welp i might look into codeing
I recommend you first choose in what language
Actually...not really....idk
Matters what you wanna do I guess
If you wanna do game development stuff, learn either c# or c++
The more responsible choice would probably be c++ but the c# is also amazing
I personally know c# and I love it
C++ looks simple enough 
Looks
Some people say its harder to master than assembly
Cuz theres so many things to learn
I wouldn't tell beginners what not to learn other than very low level languages. It's annoying when everyone tells not to learn something, it's more important to have intrest in the topic they start learning and if it involves c++ they should go for it
lol
Me and my 20. Minutes of coding a day take offense to that
Yes
Loop over a 69 dimensions array den
why'd anyone beed 69 dimensional array
Give me a few thousand years to write that and then I will show you
I used 9 dimensional array to create a tic tac toe board that ended up not working because I put a , and not a ; on the for loop
9 dimensions
Ye
why tf
Wait
Wrong thing
I was thinking of a different concept lol
I saw that @barren shale
And I want you to make it
Saw what
The 9d Minecraft
Who did
I can barely do 2d
I will make 9d Minecraft
Then
With multiverse time travel and....
What else is there in 9d
This indian guy somehow explains arrays well wtf
https://youtu.be/JJ2iSrwIkVs
This video covers Array Data Structure
1D and Multidimensional Array Data Structure. || Watch Freely on your Laptops, Tablet, smartphones ( Windows, Android, iPhone )
Indian people explain things very well, it's just sometimes I don't understand them lol
Indian guy says sorry for bad english
Then proceeds to say words even Shakespeare doesnt know the meaning of

True
making 9d array in c++ would be like
data_type array_name[int][int][int][int][int][int][int][int][int];```
I've never heard anyone use anything bigger than 3d arrays
I did it like this
String [,] Map =
{
{"","","","v",""},
{"H","h","h","v","h"},
{"","","","v",""},
{"H","h","h","v","h"},
{"","","","v",""},
{"","","","v",""};
//This map sucks lol
}
Wait
There
Or actually
that's one dimensional array lol
Good point
Its 2
Also does hengine have a physics engine
Not yet
Hamza will be disappointed in me
My ai script for the tic tac toe game is 200 lines of repeating if statements
😔
if human brains would have code in them it'd probably be mostly if statements so sounds correct lol
I'm sure I could have made it smaller plus the entire project look like someone just slapped a whole bunch of loops and if and else statements and called it the day
Doesn't even work because something something AI and refreshing the console doesn't work
Use minimaxing
Makes it play perfectly
Because TicTacToe has a maximum depth of 9
And 9 maximum moves
So its pretty simple for a minimaxing algorithm to solve
@orchid frigate wanna do a 1v1
My ai vs urs
Humans brain are technically more like a neural network
Thats how machine learning works
You probably know that already
tru
Ive taught a neural network to learn snake
Using python
But machine learning on cpu is very slow
Took hours for it to play okey
lol, wouldn't probably be fast on GeForce gtx 1080 either
hmm ye tru
Its sometimes 10 times faster
Because of cuda cores
And new gpus now have tensor cores
Which are specifically for machine learning
And thats why i want a 3060 TI
Its cheap and has a shit ton of tensor cores
We already have some in stock in syria
Because not a lot of people have the money to buy them
I think i saw a picture on reddit of a store in Indonesia
Full of rtx 30 series
Like 30 gpus
Or even more
You don't want to do that because my ai is superior already
Because it's not really an ai, it's just a bot writing things that I pre made 
For the bot ?
Because the previous code looked fucking awful
Ye
What is it filled with
Minimaxing algorithm
I want to compare it to mine
I know what that it lemme just search it up because I'm smart
Ah yes
I definitely know how to code that

So easy to code
Actually...I guess it wouldn't be that hard...wait
No no it's still hard
So because I want to compare code could you please like share some of it so that I can
..compare it
I won't steal it
fully
Im fixing a bit
I'm watching Eurovision atm and everytime there's a bad song I just come to read this lol
yeaj
Atleats from what I heard
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.
Here u go
my favorites are san marino, Iceland and Finland
Its 200 lines
But the Finnish song was pretty nice
ooh it's france now
This is negamaxing with alphabeta pruning and transposition tables

Git gud nub
Tell me when ur bot is ready
So we can 1v1
See whose bot is superior
my 20 minutes of using openGL didn't prepare me for this

I...know what vbo is
@fierce epoch is your bot ready yet
I bet you don't know that
Or do u need 5 more years
shut up
No no no

Uni
and everyone continue to
Be nice
You two
Be nice to each other
Im always nice
no
Idk why maddox be rude
i get daily bullied
By who ?
u
Whos u
I bet you don't know what GL_TRIANGLES IS
I dont
hamza
Probably some useless thing
u hate me
Finally
Why would u say that 

It's actually very useful
I luff maddox <3
Not that you would know Mr nub
You forgot the 😳 After Minecraft
Ahh shit my bad 😳
Anyway so your tic tac toe bot is very easy to make
Because I'm a pro
It doesn't even have an if statement for every situation
Cringe
Couldn't be mine

Only pros rewrite the same thing 3000 times for it to end up not working


u suck u suck u suck u suck u suck u suck u suck u suck u suck
Uni*
If this situation is better than best situation
Uni please
Be nice
Love u too 

wait
It's still not better then mine
Because I have an if statement for every situation
Ofc its not
Theres only 29 situations
So thats not a lot
Codys art might be longer than that

Yes but remember
For every situation
I have to write a couple of if statements
Liek 8
9*

213 if statements
And remember
That it has to go their them all every time it's turn is on
And it's on phone
Its gonna be fast
Dont worry
213 if statements will take less than 1 sec
Make sure u use else if
So its faster
No

Im gonna use while just to piss someone that makes fast code off
Who could that be ?
The guy that spent hours implementing alpha beta pruning and transposition tables to make it a. Bit faster ?
Mine solves the game in milliseconds
Who makes the fastest code in the world
Slow
Imagine not solving the game in Planck seconds
Or you could make it solve in a few seconds using if statements 
Wait...
If we apply my logic to making a chess AI...
Oh god

Will that be fast?
It will take a couple of millions of years
Per move
Idk why people use minimax
When u can use if statements
200000y per move
Now that amazing
I wonder if a supercomputer would run this better
This could be the new chess bot meta if it does

Remove a 0
Well
It's an improvement
It would almost be completely unplayable
And not why tho level
hm yes
wait
no elseif?
hm this is an avenger level threat
huh
sublime text 4 is released
stable one
probably not
everytime i save
its like trying to open rar
WouLd YOU LiEK To BUy WiNrAR
that's when i moved to command line unzip
But winrar is actually free
yes
just the license
ig
i like UI better than GUI
idk why
same goes how i like to use ffmpeg than program that turn mp4 to mp3
yes
except without the GUI
i like being more not bloated
also the program is shit
when im not focusing on the program
the program restarts

Then make a better one
Use C#
oh wait i actually know how
Windows forms
but im lazy
Its drag and drop
i haven't even completed my C++ project 
how am i supposed to use C#
(also congrats to me for migrating programming on phone to my mom laptop)

Windows forms are only windows
shit
Ur moms laptop is a mac ?
Its slow ?
I mean ram isnt a big deal
its good
$20 is like 10% of my mom wage
im not allowed

funny enough
my brother got 8gb ram
for like $40
because he's using it for
school
C# < C++
no
👀
Shakin that opinion
Hey guys lua is best language! \s

fools
Bestest language
i use the electric current
01000011110101110110011110011
jokes on you
I use atoms
then i shall use
the power of
dark energy
but they're not normal source of energy meaning they can't be merged to make electricity
shit
you win
bye then
😳
Best programming language is English guys
:o
ive seen russian used in code
but not code written in russian...
oh wow
I'm guessing that иначе is else
BCE; is break
But I have no idea about most of the other code
case or break i think, but yeah i cant tell about anything else lmao
No probably else, because иначе in Bulgarian is else and russian is very similar to Bulgaria
ooo alright
This does not look fun to write
Damn I don't know how to spell that on a keyboard even in Bulgarian lol
Вьиход
Something along does lines
thats almost it
the bl is something special
thats cool though
didnt actually know code could be in something other than english
This might be like console.writeline
This language is called rapira
I think
I wonder what language it compiles to
C# is written in C#; C# is a language in and of itself. You can name your variables whatever you want, but reserved words are C#, not English, Spanish, or any other language.
Take the word for the type "int" (or Int32). You can't say that "int" is an English word; no English speaking person really uses the word Int32 to talk about an integer. Or how about the phrase "do while"? No one says: "Hey Bobby, do task x while the time is less than 5pm".
lol
googled if c# could be written in spanish or something else
didnt really consider it a standalone language
I say words as ints
yeah i kinda figured int was english too
but i guess not
int, float, doubles, people dont refer to numbers like this usually
Repira is also a very old language
and i wouldnt either unless its got context lol
Of course Integer is english.
isn't that russian
Short form, same thing.
I wrote it in Bulgarian
yeah true
Rapira was made in 1987
"exit"
You could define all the control words in another language in C/C++, but it might cause a huge mess.
oh nice, thanks
"hey Bobby, do task give me salt while my dinner is still warm"
That would leave Bobby continuously giving you salt until the dinner finally cooled down.
I will end up the most salt rich man alive
He would also give me salt once no matter if my dinner is warm or not so I end up getting salt nevertheless
True.
Of course people have already done this as a joke. https://github.com/IGBC/Deutsche-C/blob/master/deutsch.h
I mean u just have to translate the methods
And make them reference the english methods
Not that hard to do tbh
Its just a lot of easy work

I will make such a great game
You will be like
"this Minecraft 2d 😳 Is so much better then mine"
Doubt one more time and I will put you in a while(true) loop
Nou
uninstalled ubuntu
since it took like 2gb of my phone storage
apparently redis automatically set your key to have infinite lifespan
yet i still explicitly make it immortal


yes
that's me
i wanna make my own database doe
but i dont know crap about sharding
lmao
Whats funny
Its not loading

Oh lol
Yes never update unity while working on something

10 min break be like:


Break is over
Wtf
That was fast 
never even used unity
Unity is bad
This post was made by HEngine and eternal Engine gang
Making your own engine is just that
Which me and Hamza are doing
HEngine is for Minecraft 2D😳
And eternal engine is for roguelikes
Raw engine is an engine that isn't medium rare
I'm too but I'm just learning opengl first
Soup engine

lmao, that's actually a good name
Jupe the coding turtle, creator of the Soup Engine
sounds epic

noted
am i allowed to make an abomination

