Jump to content
⚠️DATA BREACH ⚠️ ×
Mr. Green Gaming

Development topic (Lua, Github), ask here if you need help with git or the resources


SDK

Recommended Posts

In this topic we'll be providing help and answers for people who are trying out to contributing via Github.
 
We're going to be creating some tutorials in the future (like adding horns or adding commands) so everyone can try out contributing to the server.
 
For beginners my advice is to use the Github desktop app
 
Tutorials:
Github (video) guides
Lua tutorial
MTA lua tutorial
"How To Get Started With GitHub" tutorial by AleksCore

How To Add Horn

 

Our resources: https://github.com/JarnoVgr/Mr.Green-MTA-Resources

Edited by AleksCore
Link to comment
  • 4 weeks later...

I need help with this part.

A lot of resources need access to MySQL and GC accounts to work:Older resources still need their SQL tables created before they can run, use the dumps Mr.Green-MTA-Resources/config/green_coins.sql and Mr.Green-MTA-Resources/config/mrgreen_mtasrvs.sql to create themSet up the connection to your MySQL server in the gcshop settings (with runcode for example): /srun set("*gcshop.host", 'localhost'); set("*gcshop.dbname", 'mrgreen_mtasrvs'); set("*gcshop.user", 'root'); set("*gcshop.pass", '');Set up gc devmode, this skips the need to check passwords with /gclogin: /srun set("*gc.devmode", true)Now you can login with /gclogin <forumid> admin, the forumid is the id for an account you can choose

Cold you try to explain me?

Link to comment
Guest AleksCore

Introduction

Open GitHub Glossary and look there every time when you see unknown word in this tutorial.

I. How to get started with GitHub?

  1. Register an account here https://github.com/
  2. Download GitHub Desktop here https://desktop.github.com/
  3. Add your GitHub.com account information to GitHub Desktop. Press here to see how
  4. Follow this link and press "Fork" button. A fork is a personal copy of another user's repository that live on your account.
  5. Open GitHub Desktop and clone your fork (Mr.Green-MTA-Resources). Press "+", clone.

 Now you are able to edit scripts and make Pull Requests.

II. Contributing to Open Source on GitHub

Click me

 

Edited by AleksCore
Link to comment

I need help with this part.

A lot of resources need access to MySQL and GC accounts to work:Older resources still need their SQL tables created before they can run, use the dumps Mr.Green-MTA-Resources/config/green_coins.sql and Mr.Green-MTA-Resources/config/mrgreen_mtasrvs.sql to create themSet up the connection to your MySQL server in the gcshop settings (with runcode for example): /srun set("*gcshop.host", 'localhost'); set("*gcshop.dbname", 'mrgreen_mtasrvs'); set("*gcshop.user", 'root'); set("*gcshop.pass", '');Set up gc devmode, this skips the need to check passwords with /gclogin: /srun set("*gc.devmode", true)Now you can login with /gclogin <forumid> admin, the forumid is the id for an account you can choose

Cold you try to explain me?

 

What exactly do you not understand? You need to know what SQL is before doing this

Link to comment
  • 1 month later...
Guest AleksCore

I updated my post above, there is some more useful information. I'm sure it will be interesting for some admins and probably for some players  :)

P.S. Commands from step 3 are to avoid "Merge remote-tracking branch" commits (spam)

P.S.S. http://pastebin.com/9ApjhiNd :)

Edited by AleksCore
Link to comment
  • 1 month later...
Guest F1MADKILLER
On 24/01/2016 at 11:39 PM, AleksCore said:

I updated my post above, there is some more useful information. I'm sure it will be interesting for some admins and probably for some players  :)

P.S. Commands from step 3 are to avoid "Merge remote-tracking branch" commits (spam)

P.S.S. http://pastebin.com/9ApjhiNd :)

Stop stealling data off my PC aleks ....

Link to comment
  • 3 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...