It is currently 10 Sep 2025, 08:55
   
Text Size

A little help with git on NetBeans

Moderators: North, BetaSteward, noxx, jeffwadsworth, JayDi, TheElk801, LevelX, CCGHQ Admins

A little help with git on NetBeans

Postby philvt101 » 20 Feb 2015, 17:10

So I'm done coding Scuttlemutt, which required a new BecomesColorOrColorsTargetEffect class in mage-abilities-effects-common-continious (during this process I noted that the current effect called by Swirling Spriggan does not work as intended but I didn't want to go fiddling with someone else's code).
I'm very excited to contribute but I'm not quite sure how to do so from NetBeans. I cloned the repository in NetBeans and have committed my changes. Now do I root>git>remote>push or am I missing some steps?
philvt101
 
Posts: 6
Joined: 27 Jan 2015, 12:58
Has thanked: 1 time
Been thanked: 0 time

Re: A little help with git on NetBeans

Postby LevelX » 20 Feb 2015, 20:17

Yes with the push you transfer your commits to the forked remote repository.
User avatar
LevelX
DEVELOPER
 
Posts: 1677
Joined: 08 Dec 2011, 15:08
Has thanked: 174 times
Been thanked: 374 times

Re: A little help with git on NetBeans

Postby philvt101 » 20 Feb 2015, 20:55

ok, I've got it pushed to my fork and added pull request.
Last edited by philvt101 on 20 Feb 2015, 21:34, edited 1 time in total.
philvt101
 
Posts: 6
Joined: 27 Jan 2015, 12:58
Has thanked: 1 time
Been thanked: 0 time

Re: A little help with git on NetBeans

Postby LevelX » 20 Feb 2015, 21:32

Yes of course.
I never do it myself so I'm missing the practice.
User avatar
LevelX
DEVELOPER
 
Posts: 1677
Joined: 08 Dec 2011, 15:08
Has thanked: 174 times
Been thanked: 374 times

Re: A little help with git on NetBeans

Postby philvt101 » 20 Feb 2015, 21:37

LevelX, I believe you coded Swirling Spriggan. The ChangeColorOrColorsTargetEffect you used calls BecomesColorTargetEffect but that just keeps overwriting the previously selected color when you loop through it. I believe you can instead call the BecomesColorOrColorsTargetEffect I just uploaded to make Spriggan's ability work properly. No for loop required though, just pass the chosenColors list directly to the effect.
philvt101
 
Posts: 6
Joined: 27 Jan 2015, 12:58
Has thanked: 1 time
Been thanked: 0 time

Re: A little help with git on NetBeans

Postby LevelX » 21 Feb 2015, 00:22

philvt101 wrote:LevelX, I believe you coded Swirling Spriggan. The ChangeColorOrColorsTargetEffect you used calls BecomesColorTargetEffect but that just keeps overwriting the previously selected color when you loop through it. I believe you can instead call the BecomesColorOrColorsTargetEffect I just uploaded to make Spriggan's ability work properly. No for loop required though, just pass the chosenColors list directly to the effect.
You're right I guess.
If you like you can fix it and add to the pull request.
Thanks for pointing out.
User avatar
LevelX
DEVELOPER
 
Posts: 1677
Joined: 08 Dec 2011, 15:08
Has thanked: 174 times
Been thanked: 374 times

Re: A little help with git on NetBeans

Postby philvt101 » 21 Feb 2015, 12:39

I'm happy to have made my first contribution to mage and it's nice that my ability code could be applied to a handful of cards.
Next time I'll be a little more thorough before my pull request.
philvt101
 
Posts: 6
Joined: 27 Jan 2015, 12:58
Has thanked: 1 time
Been thanked: 0 time

Re: A little help with git on NetBeans

Postby JotaPeRL » 08 Mar 2015, 21:16

Hi guys,

I implemented a simple card, Wrecking Ball, from DIS and CMD. I don't know how to send my files back. I did a git -> commit... and it appears to work. I can't do a git -> remote -> push... It asks for a username/password.

I don't know if the file was sent, or what is the correct procedure to send the file for consideration.

I cloned the repository as specified at the Developer Getting Started document.
JotaPeRL
 
Posts: 11
Joined: 18 Nov 2013, 13:01
Has thanked: 1 time
Been thanked: 0 time

Re: A little help with git on NetBeans

Postby LevelX » 08 Mar 2015, 23:24

JotaPeRL wrote:Hi guys,

I implemented a simple card, Wrecking Ball, from DIS and CMD. I don't know how to send my files back. I did a git -> commit... and it appears to work. I can't do a git -> remote -> push... It asks for a username/password.

I don't know if the file was sent, or what is the correct procedure to send the file for consideration.

I cloned the repository as specified at the Developer Getting Started document.
You have to do a "Pull Request" with your changes to the main repository.
Currently no such request is available to merge yet.
So you missed something.
User avatar
LevelX
DEVELOPER
 
Posts: 1677
Joined: 08 Dec 2011, 15:08
Has thanked: 174 times
Been thanked: 374 times


Return to Developers Talk

Who is online

Users browsing this forum: No registered users and 5 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 5 users online :: 0 registered, 0 hidden and 5 guests (based on users active over the past 10 minutes)
Most users ever online was 7967 on 09 Sep 2025, 23:08

Users browsing this forum: No registered users and 5 guests

Login Form