SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Discussion

Reply
 
Thread Tools Display Modes
Old 05/12/2017, 07:05 AM   #1
Wiruspwns
Little Clucker
 
Wiruspwns's Avatar
 
Join Date: Aug 2013
Location: 127.0.0.1
Posts: 6
Reputation: 2
Default Scripting as a team

Hello,

For few days i have to start scripting in a team. We have big project, and one developer is not enough. What is the best way to script in team. In terms of file sharing?
__________________
Wiruspwns is offline   Reply With Quote
Old 05/12/2017, 07:49 AM   #2
CrystalMethod
Big Clucker
 
CrystalMethod's Avatar
 
Join Date: Dec 2011
Location: West Michigan
Posts: 92
Reputation: 12
Default Re: Scripting as a team

I'd say either GitHub or DropBox. Only worry is if two people start working on the script at the same time out of dropbox, and when they both save, one person's work is lost. If you guys make separate copies of the script to work on sections, then paste it all together at the end, perhaps that'd work? I'm not totally sure, but that's my best guest. I've only ever scripted solo, never on a team.
__________________

Trucking across San Andreas, Liberty City, and Vice City!
CrystalMethod is offline   Reply With Quote
Old 05/12/2017, 12:16 PM   #3
Y_Less
Spam Machine
 
Y_Less's Avatar
 
Join Date: Jun 2008
Location: 629 - git.io/Y
Posts: 14,730
Reputation: 3073
Default Re: Scripting as a team

Quote:
Originally Posted by CrystalMethod View Post
I'd say either GitHub or DropBox. Only worry is if two people start working on the script at the same time out of dropbox, and when they both save, one person's work is lost. If you guys make separate copies of the script to work on sections, then paste it all together at the end, perhaps that'd work? I'm not totally sure, but that's my best guest. I've only ever scripted solo, never on a team.
This is why github is vastly superior - code tracking and merging. It will automatically take care of issues like this for you. Technically it isn't "github" that does this, but "git", the source code control system that github provides one possible web interface too. If you want to keep your code private, either get a github premium account or use a different website like bitbucket which allows private repositories for free.

git allows full history and many other features like diffs for seeing small changes, branches for developing major new features off the active code base until they are ready, bisections for finding when a bug was introduced, and more.

Plus you might want to look at y_master, which allows you to seamlessly split a mode up in to multiple scripts. Then one person can have the source code to the fisherman job and compile that to a filterscript, while someone else has access to the source code to the admin system and can compile that to a different filterscript. The fisherman script can call functions normally that are in the admin system, and vice-versa (i.e. can just do "if (IsPlayerAdmin(x))" instead of using "CallRemoteFunction()". So the code doesn't know that the function is in a different script, and each scripter only has access to part of the code. This way if you don't fully trust someone yet (e.g. a new team member) you can give them the other filterscripts and just some of the code. They can still modify and compile their part, but they have not been given the full code so can't leak it all. Then the lead scripter (or an automated system) which has all of the code at once can compile everything in to one big script instead of in to lots of little filterscripts. Again, all seamlessly without having to change any code.
Y_Less is offline   Reply With Quote
Old 05/12/2017, 04:20 PM   #4
Juvanii
Huge Clucker
 
Juvanii's Avatar
 
Join Date: Jun 2014
Location: San Andreas
Posts: 351
Reputation: 21
Default Re: Scripting as a team

I suggest to script alone, most sa-mp servers developers have worked lonely and released large servers. Someday you will make problems with developers and they will open a new server with same script with some edits on it.
__________________
Juvanii is offline   Reply With Quote
Old 05/12/2017, 07:05 PM   #5
Y_Less
Spam Machine
 
Y_Less's Avatar
 
Join Date: Jun 2008
Location: 629 - git.io/Y
Posts: 14,730
Reputation: 3073
Default Re: Scripting as a team

Quote:
Originally Posted by Juvanii View Post
Someday you will make problems with developers and they will open a new server with same script with some edits on it.
If only someone had said a way to entirely prevent this in the post immediately before yours...
Y_Less is offline   Reply With Quote
Old 05/12/2017, 07:14 PM   #6
Dignity
High-roller
 
Join Date: May 2013
Location: Belgium
Posts: 1,863
Reputation: 1082
Default Re: Scripting as a team

Use Bitbucket and SourceTree. Essentially the same as Github but free. I also like to keep my dev files on ****** Drive so it's shared with my other developer.
__________________

Dignity is online now   Reply With Quote
Old 05/12/2017, 10:08 PM   #7
DRIFT_HUNTER
High-roller
 
Join Date: Oct 2009
Posts: 2,147
Reputation: 169
Default Re: Scripting as a team

Like people already said, GIT for code tracking and merging. GitHub is most popular and i would say for a reason (could be argued). GitHub provides GUI application to help you and has best UI (at least that's what i personally think - you or someone else may disagree). But the downside of GitHub is that you need to pay for private repository. Best alternative would be BitBucket. Please note while they allow private repositories, they limit it to team of 5 people (at least they did about a year ago - that is last time i used BitBucket).
__________________
Путин here,
Путин there,
Путин просто everywhere.


Any PM's that include question about any kind of help will be ignored.
Use appropriate boards for that
DRIFT_HUNTER is offline   Reply With Quote
Old 05/12/2017, 10:13 PM   #8
Misiur
High-roller
 
Misiur's Avatar
 
Join Date: Jul 2009
Location: Poland
Posts: 2,539
Reputation: 552
Default Re: Scripting as a team

My 2 cents, I hated bitbucket at work, is use gitlab exclusively for my private projects. It strives to be github clone I think, as it has all the features github has, such as project board. You can login with your github account. Unlimited free private repositories! And only one fuckup so far (they lost 4 hours of users commits once)
Misiur is offline   Reply With Quote
Old 05/12/2017, 10:23 PM   #9
AndreiWow
High-roller
 
AndreiWow's Avatar
 
Join Date: Nov 2014
Location: Romania, Bucharest
Posts: 1,068
Reputation: 48
Default Re: Scripting as a team

Quote:
Originally Posted by Juvanii View Post
I suggest to script alone, most sa-mp servers developers have worked lonely and released large servers. Someday you will make problems with developers and they will open a new server with same script with some edits on it.
You can't achieve success without a team.
AndreiWow is offline   Reply With Quote
Old 05/12/2017, 10:49 PM   #10
Kaperstone
High-roller
 
Kaperstone's Avatar
 
Join Date: May 2011
Location: Russia
Posts: 3,352
Reputation: 822
Default Re: Scripting as a team

Quote:
Originally Posted by AndreiWow View Post
You can't achieve success without a team.
Actually, if you're a hard working, then you might do.

Quote:
Originally Posted by Misiur View Post
My 2 cents, I hated bitbucket at work, is use gitlab exclusively for my private projects. It strives to be github clone I think, as it has all the features github has, such as project board. You can login with your github account. Unlimited free private repositories! And only one fuckup so far (they lost 4 hours of users commits once)
As I read an article about GitLab, it strives to be what GitHub isn't.
__________________
Kaperstone is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Tutorial] Getting Started on TDM Scripting for newbie (Setting up team, Setting up team color, Anti teamkill[EXPLAINED] qazwsx Tutorials 7 14/10/2013 07:13 AM
Looking for a scripting team RainMultiGaming Scripting Help 0 15/12/2011 04:14 PM
scripting team [asg]davo Help Archive 19 18/05/2010 07:51 AM
Need A Scripting Team Saurik Help Archive 0 16/05/2010 11:46 PM
Scripting Team armyoftwo Help Archive 1 15/12/2009 04:02 PM


All times are GMT. The time now is 07:55 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.