Teach Me
-
- Member
- Posts: 19
- Joined: Thu Jan 11, 2018 17:55
- In-game: DrakeCahill13
Teach Me
I would like to be a programmer. Please, can anyone direct me to any resources that could help me code and design and the like? A Youtube series, maybe?
- Phoenixflo44
- Member
- Posts: 639
- Joined: Fri Jul 28, 2017 15:01
- In-game: EvilPhoenix
- Location: Behind my PC, in Germany
-
- Member
- Posts: 19
- Joined: Thu Jan 11, 2018 17:55
- In-game: DrakeCahill13
Re: Teach Me
Starting :P
- Phoenixflo44
- Member
- Posts: 639
- Joined: Fri Jul 28, 2017 15:01
- In-game: EvilPhoenix
- Location: Behind my PC, in Germany
- Phoenixflo44
- Member
- Posts: 639
- Joined: Fri Jul 28, 2017 15:01
- In-game: EvilPhoenix
- Location: Behind my PC, in Germany
-
- Member
- Posts: 19
- Joined: Thu Jan 11, 2018 17:55
- In-game: DrakeCahill13
Re: Teach Me
Call me a noob, but I'm looking to start from scratch
-
- Member
- Posts: 19
- Joined: Thu Jan 11, 2018 17:55
- In-game: DrakeCahill13
Re: Teach Me
Thank you :P
- Phoenixflo44
- Member
- Posts: 639
- Joined: Fri Jul 28, 2017 15:01
- In-game: EvilPhoenix
- Location: Behind my PC, in Germany
-
- Member
- Posts: 19
- Joined: Thu Jan 11, 2018 17:55
- In-game: DrakeCahill13
Re: Teach Me
I mean everything, Mods, the game, Gamepacks, Textures, etc. etc.
-
- Member
- Posts: 19
- Joined: Thu Jan 11, 2018 17:55
- In-game: DrakeCahill13
Re: Teach Me
How did you start?
-
- Member
- Posts: 19
- Joined: Thu Jan 11, 2018 17:55
- In-game: DrakeCahill13
Re: Teach Me
Alright, anyway, can anyone suggest anything?
Re: Teach Me
hi, there are some resources :
Youtube channel : https://www.youtube.com/channel/UCdiury ... se2rarVqPg
Minetest Modding book : https://rubenwardy.com/minetest_modding ... index.html
minetest devs wiki : http://dev.minetest.net/Main_Page
minetest API : https://github.com/minetest/minetest/bl ... ua_api.txt
Youtube channel : https://www.youtube.com/channel/UCdiury ... se2rarVqPg
Minetest Modding book : https://rubenwardy.com/minetest_modding ... index.html
minetest devs wiki : http://dev.minetest.net/Main_Page
minetest API : https://github.com/minetest/minetest/bl ... ua_api.txt
- GamingAssociation39
- Member
- Posts: 858
- Joined: Mon Apr 25, 2016 16:09
- GitHub: Gerold55
- IRC: Gerold55
- In-game: Gerold55
- Location: Maryland, USA
Re: Teach Me
I've just looked at the code and got the jist of it so I had made some mods with even more help from other devs.
Jesus Is Lord and Savior!!!
Re: Teach Me
To properly code you have to learn about algorithms firsts since that's like «the heart of coding». After understanding what's an algorithm try learning a simple language like BASIC, or go to Lua if you want to; after you are fluent with it try to learn more complex ones. Try learning with books.
If you want to code Minetest mods, after knowing how to code, try learning with Rubenwardy's Modding Book the basics of the Minetest modding API and then if you have questions look up on the dev wiki or ask in the forum.
If you want to code Minetest mods, after knowing how to code, try learning with Rubenwardy's Modding Book the basics of the Minetest modding API and then if you have questions look up on the dev wiki or ask in the forum.
Have a nice day! :D
- Andrey01
- Member
- Posts: 2579
- Joined: Wed Oct 19, 2016 15:18
- GitHub: Andrey2470T
- In-game: Andrey01
- Location: Russia, Moscow
Re: Teach Me
At first read this official manual in order to understand how to code in Lua at all: https://www.lua.org/manual/5.3/
Then learn Minetest API:
https://dev.minetest.net/Main_Page
Preferably also read rubenwardy`s manual: http://rubenwardy.com/minetest_modding_book/
Here it spoons-feed all concepts in Minetest API.
Then learn Minetest API:
https://dev.minetest.net/Main_Page
Preferably also read rubenwardy`s manual: http://rubenwardy.com/minetest_modding_book/
Here it spoons-feed all concepts in Minetest API.
Re: Teach Me
Dis gon b gud.
The important part about programming is understanding.
Take a small mod, read it, and try to figure out - just by reading it - what each part does.
Than change that little part (make backups! Backups are the essence of programming) and look what it does.
Why do it that way? Because you're going to end up on lua-homepages, minetest API websites etc. anyways, and you have a working example of what to do.
As soon as you feel comfortable enough, program your own mod. (You're going to end up stealing stuff from other mods, but as long as you write where you got the parts from, it should be alright).
And after you got the first running, bugged piece of crap mod, delete it, no backups, and try to write it again.
As soon as you've done this, you will figure out the essence of programming: Nothing you do matters, there is always a better way to do things. (But that's just a psychological issue, and its far worse than the "I don't understand anything" feeling you will have at the beginning). It will take about 1-2 months until you get there.
As soon as you are done contemplating if you want to go on, there will be the next hindrance: Writing good and readable code.
Some rules:
Always comment the "why", never the "how". If you need to write how the code works, you did something wrong. Code has to be clear, each .lua file should be about 2 pages, printed out, max.
That also means you will stop coding spaghetties and start using external funktions; It will work a bit like that: Write a function, write another function, see that both functions got something in common, make a third function which has what both functions have in common, screw up the third function, be glad that you made a BACKUP and rant about how stupid LUA is and that you're gonna do something better (no you won't).
Even though you're trying to make your code look good, it will still look like a dinosaur in a mudbath with diarrhea. Deal with it. Everybody will tell you it's ugly.
Okay, now 2-4 months have passed and you're starting to understand that programming might not be easy. (If you still think it's easy, you didn't understand shit and you should stop touching a PC, because now you're one of those "I know programming" kiddos who screw up our reputation.)
That's when the learning curve kicks in. You'll get better and better from now on.
The important part about programming is understanding.
Take a small mod, read it, and try to figure out - just by reading it - what each part does.
Than change that little part (make backups! Backups are the essence of programming) and look what it does.
Why do it that way? Because you're going to end up on lua-homepages, minetest API websites etc. anyways, and you have a working example of what to do.
As soon as you feel comfortable enough, program your own mod. (You're going to end up stealing stuff from other mods, but as long as you write where you got the parts from, it should be alright).
And after you got the first running, bugged piece of crap mod, delete it, no backups, and try to write it again.
As soon as you've done this, you will figure out the essence of programming: Nothing you do matters, there is always a better way to do things. (But that's just a psychological issue, and its far worse than the "I don't understand anything" feeling you will have at the beginning). It will take about 1-2 months until you get there.
As soon as you are done contemplating if you want to go on, there will be the next hindrance: Writing good and readable code.
Some rules:
Always comment the "why", never the "how". If you need to write how the code works, you did something wrong. Code has to be clear, each .lua file should be about 2 pages, printed out, max.
That also means you will stop coding spaghetties and start using external funktions; It will work a bit like that: Write a function, write another function, see that both functions got something in common, make a third function which has what both functions have in common, screw up the third function, be glad that you made a BACKUP and rant about how stupid LUA is and that you're gonna do something better (no you won't).
Even though you're trying to make your code look good, it will still look like a dinosaur in a mudbath with diarrhea. Deal with it. Everybody will tell you it's ugly.
Okay, now 2-4 months have passed and you're starting to understand that programming might not be easy. (If you still think it's easy, you didn't understand shit and you should stop touching a PC, because now you're one of those "I know programming" kiddos who screw up our reputation.)
That's when the learning curve kicks in. You'll get better and better from now on.
A man much wiser than me once said: "go away, you are bothering me"
-
- Member
- Posts: 19
- Joined: Thu Jan 11, 2018 17:55
- In-game: DrakeCahill13
Re: Teach Me
Amazing, thank you!R-One wrote:hi, there are some resources :
Youtube channel : https://www.youtube.com/channel/UCdiury ... se2rarVqPg
Minetest Modding book : https://rubenwardy.com/minetest_modding ... index.html
minetest devs wiki : http://dev.minetest.net/Main_Page
minetest API : https://github.com/minetest/minetest/bl ... ua_api.txt
-
- Member
- Posts: 19
- Joined: Thu Jan 11, 2018 17:55
- In-game: DrakeCahill13
Re: Teach Me
Riiiight. XD Anyway, to start, do you have any suggestions for a "small mod" to look through?Vapalus wrote:Dis gon b gud.
The important part about programming is understanding.
Take a small mod, read it, and try to figure out - just by reading it - what each part does.
Than change that little part (make backups! Backups are the essence of programming) and look what it does.
Why do it that way? Because you're going to end up on lua-homepages, minetest API websites etc. anyways, and you have a working example of what to do.
As soon as you feel comfortable enough, program your own mod. (You're going to end up stealing stuff from other mods, but as long as you write where you got the parts from, it should be alright).
And after you got the first running, bugged piece of crap mod, delete it, no backups, and try to write it again.
As soon as you've done this, you will figure out the essence of programming: Nothing you do matters, there is always a better way to do things. (But that's just a psychological issue, and its far worse than the "I don't understand anything" feeling you will have at the beginning). It will take about 1-2 months until you get there.
As soon as you are done contemplating if you want to go on, there will be the next hindrance: Writing good and readable code.
Some rules:
Always comment the "why", never the "how". If you need to write how the code works, you did something wrong. Code has to be clear, each .lua file should be about 2 pages, printed out, max.
That also means you will stop coding spaghetties and start using external funktions; It will work a bit like that: Write a function, write another function, see that both functions got something in common, make a third function which has what both functions have in common, screw up the third function, be glad that you made a BACKUP and rant about how stupid LUA is and that you're gonna do something better (no you won't).
Even though you're trying to make your code look good, it will still look like a dinosaur in a mudbath with diarrhea. Deal with it. Everybody will tell you it's ugly.
Okay, now 2-4 months have passed and you're starting to understand that programming might not be easy. (If you still think it's easy, you didn't understand shit and you should stop touching a PC, because now you're one of those "I know programming" kiddos who screw up our reputation.)
That's when the learning curve kicks in. You'll get better and better from now on.
-
- Member
- Posts: 19
- Joined: Thu Jan 11, 2018 17:55
- In-game: DrakeCahill13
Re: Teach Me
Whelp, thanks everyone! I'm looking forward to learning and failing and learning and so on :P Wish me luck XD
-
- Member
- Posts: 58
- Joined: Wed Aug 03, 2016 08:09
- GitHub: SlackCoyote
- In-game: SlackCoyote
Re: Teach Me
Minetest uses lua 5.1: https://www.lua.org/manual/5.1/Andrey01 wrote:At first read this official manual in order to understand how to code in Lua at all: https://www.lua.org/manual/5.3/
Then learn Minetest API:
https://dev.minetest.net/Main_Page
Preferably also read rubenwardy`s manual: http://rubenwardy.com/minetest_modding_book/
Here it spoons-feed all concepts in Minetest API.
Slackware64 14.2, MT 0.4.16. My best mod.
Who is online
Users browsing this forum: No registered users and 27 guests