How do I get a mod on GitHub?

Post Reply
User avatar
Phoenixflo44
Member
Posts: 639
Joined: Fri Jul 28, 2017 15:01
In-game: EvilPhoenix
Location: Behind my PC, in Germany

How do I get a mod on GitHub?

by Phoenixflo44 » Post

This may sound a bit weird but I don't know how to upload a mod or map there. Can explain to me a step by step. But please just here. Because I don't get along on the page myself because everything is in English.

Greetings Phoenixflo44
+ Spoiler

User avatar
Hamlet
Member
Posts: 731
Joined: Sat Jul 29, 2017 21:09
IRC: H4mlet
In-game: Hamlet
Location: Lombardy, Italy

Re: How do I get a mod on GitHub?

by Hamlet » Post

Phoenixflo44 wrote:This may sound a bit weird but I don't know how to upload a mod or map there. Can explain to me a step by step. But please just here. Because I don't get along on the page myself because everything is in English.

Greetings Phoenixflo44
Try this: https://git-scm.com/book/de/v2

The first chapter is in German, it might be helpful to understand the basics.
My repositories: Codeberg.org | My ContentDB's page | I'm on PureOS with XFCE

User avatar
Krock
Developer
Posts: 4524
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker
Location: Switzerland
Contact:

Re: How do I get a mod on GitHub?

by Krock » Post

Don't upload large binary data to git. It's only suited for source code and rare changed, small binary files. The reason for that is because git keeps all the changes in its history, which makes change reverting (undoing) possible. Instead, consider using a fast and reliable web hoster to upload your world in an archive file.

Here are some DuckDuckGo results of pages with German explanations:
Command line: https://rogerdudler.github.io/git-guide/index.de.html
Command line: https://www.youtube.com/watch?v=hSbJaIdqwKg
TortoiseGIT: http://www.informatik.uni-leipzig.de/~g ... ByStep.pdf
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>

User avatar
Phoenixflo44
Member
Posts: 639
Joined: Fri Jul 28, 2017 15:01
In-game: EvilPhoenix
Location: Behind my PC, in Germany

Re: How do I get a mod on GitHub?

by Phoenixflo44 » Post

That didn't help me anymore I still don't understand it
+ Spoiler

User avatar
Lejo
Member
Posts: 683
Joined: Mon Oct 19, 2015 16:32
GitHub: Lejo1
In-game: Lejo

Re: How do I get a mod on GitHub?

by Lejo » Post

First create a new Repository.
There is a Upload files button near the green Clone or Download button.

User avatar
rubenwardy
Moderator
Posts: 6146
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: United Kingdom
Contact:

Re: How do I get a mod on GitHub?

by rubenwardy » Post

Lejo wrote:First create a new Repository.
There is a Upload files button near the green Clone or Download button.
Don't use the upload files button, it's the wrong approach for git

I suggest downloading the Github Desktop client and using that. Create a repository which is the mod directory - init.lua should immediately be in that dir. Learn what commits are and what push and pull means, and you're good to go. Do not upload zips on git

User avatar
Linuxdirk
Member
Posts: 2538
Joined: Wed Sep 17, 2014 11:21
In-game: Linuxdirk
Location: Germany
Contact:

Re: How do I get a mod on GitHub?

by Linuxdirk » Post

rubenwardy wrote:I suggest downloading the Github Desktop client and using that.
Better install the regular Git application and learn the most basic git commands.

User avatar
rubenwardy
Moderator
Posts: 6146
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: United Kingdom
Contact:

Re: How do I get a mod on GitHub?

by rubenwardy » Post

That is better but come on, be realistic

User avatar
Linuxdirk
Member
Posts: 2538
Joined: Wed Sep 17, 2014 11:21
In-game: Linuxdirk
Location: Germany
Contact:

Re: How do I get a mod on GitHub?

by Linuxdirk » Post

rubenwardy wrote:but come on, be realistic
I am. There is absolutely no complicated thing in installing and using Git. Even on Windows.

GitHub gives copy&paste-able lines to initialize a repository and do the first commit. After this for the most basic usage you literally need two commands (git commit -a and git push) to have your stuff versioned by GitHub and get automatic public availability.

User avatar
rubenwardy
Moderator
Posts: 6146
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: United Kingdom
Contact:

Re: How do I get a mod on GitHub?

by rubenwardy » Post

For us it's easy, not so much for someone less technically competent

User avatar
Linuxdirk
Member
Posts: 2538
Joined: Wed Sep 17, 2014 11:21
In-game: Linuxdirk
Location: Germany
Contact:

Re: How do I get a mod on GitHub?

by Linuxdirk » Post

rubenwardy wrote:For us it's easy, not so much for someone less technically competent
But you realize we talk about people who are able to program in Lua, right?

Reedych
Member
Posts: 58
Joined: Wed Aug 03, 2016 08:09
GitHub: SlackCoyote
In-game: SlackCoyote

Re: How do I get a mod on GitHub?

by Reedych » Post

Everything written in English at 99% was translated to Deutsch.
Slackware64 14.2, MT 0.4.16. My best mod.

Punk
Member
Posts: 158
Joined: Sun Dec 25, 2016 06:52

Re: How do I get a mod on GitHub?

by Punk » Post

Can I download current mods, games and textures with "apt upgrade" on the terminal somehow?
Thanks!

Punk
Member
Posts: 158
Joined: Sun Dec 25, 2016 06:52

Re: How do I get a mod on GitHub?

by Punk » Post

Strange advice for those who can not download from github...
Phoenixflo44 wrote:That didn't help me anymore I still don't understand it
Don't worry.

The easy way: Download zip file, unzip, and put the folder in the appropriate location in the Minetest folder.

The Minetest folder has folders like games, mods, textures, worlds... it is.
games = subgames, worlds = maps

User avatar
Phoenixflo44
Member
Posts: 639
Joined: Fri Jul 28, 2017 15:01
In-game: EvilPhoenix
Location: Behind my PC, in Germany

Re: How do I get a mod on GitHub?

by Phoenixflo44 » Post

I meant I don't know how to upload a mod on GitHub. I've been downloading for a long time, just like unpacking.
+ Spoiler

User avatar
Linuxdirk
Member
Posts: 2538
Joined: Wed Sep 17, 2014 11:21
In-game: Linuxdirk
Location: Germany
Contact:

Re: How do I get a mod on GitHub?

by Linuxdirk » Post

Phoenixflo44 wrote:I meant I don't know how to upload a mod on GitHub. I've been downloading for a long time, just like unpacking.
Actually it is incredibly easy to do the basic things with Git. When using GitHub it is even more easy.

First step is installing Git on your computer. Install it like any other application. Then you go to GitHub and create a new repository. This gives you a set of commands you need in order to actually "set up" the repository on your computer. Run the commands in the directory where your mod is located (on Windows: Shift+rightclick the folder and select "Open Command Prompt here").

Oh, by the way: GitHub's own help pages are fantastic. Start here: https://help.github.com/articles/create-a-repo/

After doing all the initial stuff there are literally two commands you need on a daily basis: git commit -a let's you commit all changed files (combine with -m "message" to add a commit message, otherwise the editor will open and let you write a message there) and git push sends the committed changes to the server. You can commit as many changes you want before pushing them to the server. I usually code and commit some time and when I'm done with everything I want to achieve for the day I push the changes to the server.

For adding new files to the repository copy them where you want within the repository's folder and run git add path/to/file.name or git add path/to/folder to add all files within that folder at once. Don't worry, you can run the commands as often you want, git adds the stuff only once. After doing the initial stuff shown by GitHub you need to add the files of your mod to the repository. Run git status to see what Git currently knows about the repository in relation to the files it has access to.

For deleting files, well, simply delete them. Even if git has some functions for that it also takes care of this automatically when committing the changes (you should commit changes after every larger action like adding/removing files or implementing a new feature).

You should do it right from the beginning on, so read here before starting to commit changes: https://chris.beams.io/posts/git-commit/

See here for the awesomely great Github docoumentation.

https://help.github.com/articles/adding ... mand-line/
https://help.github.com/articles/pushing-to-a-remote/

See here for a fun little live-demo/tutorial: https://try.github.io/levels/1/challenges/1

User avatar
LMD
Member
Posts: 898
Joined: Sat Apr 08, 2017 08:16
GitHub: appgurueu
IRC: appguru[eu]
In-game: LMD
Location: Germany
Contact:

Re: How do I get a mod on GitHub?

by LMD » Post

1. Create a GitHub account
It's quite easy :
- first, open a terminal. Press Strg+Alt+T on Ubuntu.
- then, type : cd "/home/<username>/pfad/zu/ordner"
- afterwards type git init to init repo. Specify "origin"(=online repo where you wanna upload it) by : git remote add origin https://github.com/<username>/<reponame>
- now : git add . to stage all files for commit
- finally : git commit -m "Uploading all files" to create commit
- to upload it : git push origin master -f to force upload
Voila !
Tell me if it doesnt work.
My stuff: Projects - Mods - Website

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 0 guests