It is currently 17 Sep 2025, 10:15
   
Text Size

SVN Build, Do It Yourself

Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins

Re: SVN Build, Do It Yourself

Postby RedSypher » 25 Dec 2010, 05:23

OK, now I know that this question has been asked alot, but is there any way to get the latest SVN up and working on a Mac? I was apprehensive before, but someone added something that I need to finish a card (Cryptic Command) and I'm excited to get it done. Anyone out there wanna clue me in? (Thank you forever whoever decides to help)
RedSypher
 
Posts: 25
Joined: 31 Oct 2010, 06:48
Has thanked: 0 time
Been thanked: 0 time

Re: SVN Build, Do It Yourself

Postby Chris H. » 25 Dec 2010, 13:15

RedSypher wrote:OK, now I know that this question has been asked alot, but is there any way to get the latest SVN up and working on a Mac? I was apprehensive before, but someone added something that I need to finish a card (Cryptic Command) and I'm excited to get it done. Anyone out there wanna clue me in? (Thank you forever whoever decides to help)
`
Some people install bootcamp and Windows on their Mac or they use one of the virtualization apps. This would allow a Mac person to use Snakco's scripts under Windows on their Mac and they could then transfer the the zip archive over to the Mac OS.

It might be possible to modify Snakco's scripts and to make it run-able under the Mac OS Terminal app which can be found in /Applications/Utilities/. I use a Mac myself but I do not have any experience in the Mac OS Terminal's commands.

Before the SVN was set up, the forge betas typically included the source code as part of the archive. I found and downloaded a Mac version of Eclipse and installed it on my computer. This allowed me to build the source code on my Mac.

When the SVN was set up I searched the web and found a matching set of Subversion and Subclipse. I installed these on my computer and asked for commit status.
User avatar
Chris H.
Forge Moderator
 
Posts: 6320
Joined: 04 Nov 2008, 12:11
Location: Mac OS X Yosemite
Has thanked: 644 times
Been thanked: 643 times

Re: SVN Build, Do It Yourself

Postby s1886x » 26 Dec 2010, 16:15

every time that i compile a new version or download a new beta, there are now decks and i have to copy and paste the ones that i had before into the corresponding folder. it has happened that these decks use cards that were dropped in the updated version. is there some place that i can get updated deck sets?
s1886x
 
Posts: 141
Joined: 14 Jun 2010, 01:07
Has thanked: 0 time
Been thanked: 0 time

Re: SVN Build, Do It Yourself

Postby Chris H. » 26 Dec 2010, 19:49

s1886x wrote:every time that i compile a new version or download a new beta, there are now decks and i have to copy and paste the ones that i had before into the corresponding folder. it has happened that these decks use cards that were dropped in the updated version. is there some place that i can get updated deck sets?
`
The three fantasy cards that Rares created were removed several betas ago over the last year and a half there have been three or four cards renamed to the correct name. In total there are only a few cards and old decks that are impacted by this problem.

If you load the problem deck into an older version of forge, you can then delete the problem card from the deck and save the deck with the remaining good cards. Then reload the deck into the new version of forge and add either the renamed card back into the deck or add a card that is similar.
User avatar
Chris H.
Forge Moderator
 
Posts: 6320
Joined: 04 Nov 2008, 12:11
Location: Mac OS X Yosemite
Has thanked: 644 times
Been thanked: 643 times

Re: SVN Build, Do It Yourself

Postby Chris H. » 28 Dec 2010, 15:48

Chris H. wrote:
RedSypher wrote:OK, now I know that this question has been asked alot, but is there any way to get the latest SVN up and working on a Mac? I was apprehensive before, but someone added something that I need to finish a card (Cryptic Command) and I'm excited to get it done. Anyone out there wanna clue me in? (Thank you forever whoever decides to help)
`
It might be possible to modify Snakco's scripts and to make it run-able under the Mac OS Terminal app which can be found in /Applications/Utilities/. I use a Mac myself but I do not have any experience in the Mac OS Terminal's commands.

Before the SVN was set up, the forge betas typically included the source code as part of the archive. I found and downloaded a Mac version of Eclipse and installed it on my computer. This allowed me to build the source code on my Mac.

When the SVN was set up I searched the web and found a matching set of Subversion and Subclipse. I installed these on my computer and asked for commit status.
`
If you decide that you would like to try to install Eclipse, Subversion and Subclipse on your Mac, then I and other people can help you to get started. We have a topic on the Developer's Corner portion of the forge forum named How to get started?

This topic includes the info people need to get set up and it will help to smooth out the learning curve. This would give you the ability to keep your local copy of Forge up to date. As an added benefit, it would also allow you to add new cards into the SVN for everyone to enjoy. It takes a little initial work to get started, but it can be a rewarding experience. 8)
User avatar
Chris H.
Forge Moderator
 
Posts: 6320
Joined: 04 Nov 2008, 12:11
Location: Mac OS X Yosemite
Has thanked: 644 times
Been thanked: 643 times

Re: SVN Build, Do It Yourself

Postby jhhh » 13 Jan 2011, 14:38

Since it is done to update forge with SVN?
jhhh
 
Posts: 58
Joined: 15 Oct 2010, 23:40
Has thanked: 0 time
Been thanked: 0 time

Re: SVN Build, Do It Yourself

Postby Ulthwithian » 15 Jan 2011, 17:46

Usage:
run-first.bat > sets up local copy of SVN run this the first time you use the package or if you delete forge-svn directory
update-and-build.bat > updates your local copy and builds forge, once it's done you get forge directory with all you need and a forge.zip which is a compressed copy of this directory
I did this, and when I try to run the Forge.exe in the Forge directory created, I get an error saying that it doesn't have the NewGameGUI, I think.

Does anyone know if I missed a step?
Ulthwithian
 
Posts: 28
Joined: 07 Oct 2010, 13:21
Has thanked: 0 time
Been thanked: 0 time

Re: SVN Build, Do It Yourself

Postby jhhh » 17 Jan 2011, 21:52

thanx
Name:AEther Vial
ManaCost:1
Types:Artifact
Text:no text
A:AB$ChangeZone | Cost$ T | Origin$ Hand | Destination$ Battlefield | ChangeType$ Creature.cmcEQX | ChangeNum$ 1 | SpellDescription$ You may put a creature card with converted mana cost equal to the number of charge counters on AEther Vial from your hand onto the battlefield.
T:Mode$ Phase | Phase$ Upkeep | ValidPlayer$ You | TriggerZones$ Battlefield | Execute$ TrigPutCounter | TriggerDescription$ At the beginning of your upkeep, you may put a charge counter on CARDNAME.
SVar:TrigPutCounter:AB$PutCounter | Cost$ 0 | Defined$ Self | CounterType$ CHARGE | CounterNum$ 1
SVar:X:Count$CardCounters.CHARGE
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/aether_vial.jpg
SetInfo:DST|Uncommon|http://magiccards.info/scans/en/ds/91.jpg
End
you can´t choose put counter
jhhh
 
Posts: 58
Joined: 15 Oct 2010, 23:40
Has thanked: 0 time
Been thanked: 0 time

Re: SVN Build, Do It Yourself

Postby jhhh » 17 Jan 2011, 21:55

correction
Name:AEther Vial
ManaCost:1
Types:Artifact
Text:no text
A:AB$ChangeZone | Cost$ T | Origin$ Hand | Destination$ Battlefield | ChangeType$ Creature.cmcEQX | ChangeNum$ 1 | SpellDescription$ You may put a creature card with converted mana cost equal to the number of charge counters on AEther Vial from your hand onto the battlefield.
T:Mode$ Phase | Phase$ Upkeep | ValidPlayer$ You | TriggerZones$ Battlefield | Optional$ True | Execute$ TrigPutCounter | TriggerDescription$ At the beginning of your upkeep, you may put a charge counter on CARDNAME.
SVar:TrigPutCounter:AB$PutCounter | Cost$ 0 | Defined$ Self | CounterType$ CHARGE | CounterNum$ 1
SVar:X:Count$CardCounters.CHARGE
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/aether_vial.jpg
SetInfo:DST|Uncommon|http://magiccards.info/scans/en/ds/91.jpg
End
jhhh
 
Posts: 58
Joined: 15 Oct 2010, 23:40
Has thanked: 0 time
Been thanked: 0 time

Re: SVN Build, Do It Yourself

Postby Hellfish » 17 Jan 2011, 22:24

Oh, thanks, I missed that. Fixed in SVN.
So now you're
Screaming for the blood of the cookie monster
Evil puppet demon of obesity
Time to change the tune of his fearful ballad
C is for "Lettuce," that's good enough for me
User avatar
Hellfish
Programmer
 
Posts: 1297
Joined: 07 Jun 2009, 10:41
Location: South of the Pumphouse
Has thanked: 110 times
Been thanked: 169 times

Re: SVN Build, Do It Yourself

Postby jhhh » 18 Jan 2011, 13:35

this remand only counter creature spells
Name:Remand
ManaCost:1 U
Types:Instant
Text:no text
A:SP$Counter | Cost$ 1 U | Type$ Spell | SpellTarget$ Creature | Destination$ Hand | SubAbility$ SVar=DBDraw | SpellDescription$ Counter target spell. If that spell is countered this way, put it into it's owner's hand instead of into that player's graveyard. Draw a card.
SVar:DBDraw:DB$Draw | NumCards$ 1
SVar:Rarity:Uncommon
SVar:Picture:http://resources.wizards.com/magic/cards/rav/en-us/card87919.jpg
SetInfo:RAV|Uncommon|http://magiccards.info/scans/en/rav/63.jpg
End
correction
Name:Remand
ManaCost:1 U
Types:Instant
Text:no text
A:SP$Counter | Cost$ 1 U | Type$ Spell | Destination$ Hand | SubAbility$ SVar=DBDraw | SpellDescription$ Counter target spell. If that spell is countered this way, put it into it's owner's hand instead of into that player's graveyard. Draw a card.
SVar:DBDraw:DB$Draw | NumCards$ 1
SVar:Rarity:Uncommon
SVar:Picture:http://resources.wizards.com/magic/cards/rav/en-us/card87919.jpg
SetInfo:RAV|Uncommon|http://magiccards.info/scans/en/rav/63.jpg
End
jhhh
 
Posts: 58
Joined: 15 Oct 2010, 23:40
Has thanked: 0 time
Been thanked: 0 time

Re: SVN Build, Do It Yourself

Postby jhhh » 18 Jan 2011, 14:21

correction of Abyssal Nocturnus
| TriggerZones$ Battlefield | added to card
Name:Abyssal Nocturnus
ManaCost:1 B B
Types:Creature Horror
Text:no text
PT:2/2
T:Mode$ Discarded | ValidCard$ Card.YouDontCtrl | TriggerZones$ Battlefield | Execute$ TrigPump | TriggerDescription$ Whenever an opponent discards a card, CARDNAME gets +2/+2 and gains fear until end of turn. (It can't be blocked except by artifact creatures and/or black creatures.)
SVar:TrigPump:AB$Pump | Cost$ 0 | Defined$ Self | NumAtt$ 2 | NumDef$ 2 | KW$ Fear
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/abyssal_nocturnus.jpg
SetInfo:GPT|Rare|http://magiccards.info/scans/en/gp/43.jpg
End
jhhh
 
Posts: 58
Joined: 15 Oct 2010, 23:40
Has thanked: 0 time
Been thanked: 0 time

Re: SVN Build, Do It Yourself

Postby Sloth » 18 Jan 2011, 14:42

Fixed Remand and Abyssal Nocturnus. Thanks jhhh. Please post bugs you find in the SVN version here: viewtopic.php?f=52&t=3721
User avatar
Sloth
Programmer
 
Posts: 3498
Joined: 23 Jun 2009, 19:40
Has thanked: 125 times
Been thanked: 507 times

Re: SVN Build, Do It Yourself

Postby Corwin72 » 07 Feb 2011, 18:13

SVN Builder script is currently not working with the current build.
This is a known issue.
User avatar
Corwin72
 
Posts: 793
Joined: 15 Sep 2009, 13:26
Location: Grayson, Ga
Has thanked: 25 times
Been thanked: 9 times

Re: SVN Build, Do It Yourself

Postby Snacko » 07 Feb 2011, 19:34

Updated:
Code: Select all
build\svn.exe update forge-svn
rmdir output /s /q
java -jar build\ecj-3.5.2.jar forge-svn\src -1.5 -classpath forge-svn\src;forge-svn\res\lib\google-collections-1.0.jar;forge-svn\res\lib\java-image-scaling-0.8.4.jar;forge-svn\res\lib\miglayout-3.7.3.1-swing.jar;forge-svn\res\lib\jl1.0.1.jar;forge-svn\res\lib\napkinlaf-1.2.jar;forge-svn\res\lib\nimrodlf.jar;forge-svn\res\lib\substance.jar;forge-svn\res\lib\xstream-1.3.1.jar -g:none -d output
mkdir output\META-INF
copy forge-svn\build\manifest.forge output\META-INF\MANIFEST.MF /Y
cd output
..\build\7z.exe a -tzip -r -mx=9 ..\forge.jar *.class META-INF/MANIFEST.MF
cd ..
rmdir forge /s /q
mkdir forge
xcopy forge-svn\res\* forge\res\ /Y /E
xcopy custom\* forge\ /Y /E
copy forge-svn\forge.properties forge\ /Y
copy forge-svn\forge.preferences forge\ /Y
move forge.jar forge\
copy build\forge.exe forge\
del forge.zip
cd forge\res\cardsfolder
..\..\..\build\7z.exe a -tzip -r -mx=9 cardsfolder.zip *.txt
cd ..\..\..
del forge\res\cardsfolder\*.txt
build\7z.exe a -tzip -r -mx=9 forge.zip forge/*
this zips your cardsfolder
Snacko
DEVELOPER
 
Posts: 826
Joined: 29 May 2008, 19:35
Has thanked: 4 times
Been thanked: 74 times

PreviousNext

Return to Forge

Who is online

Users browsing this forum: No registered users and 37 guests

Main Menu

User Menu

Our Partners


Who is online

In total there are 37 users online :: 0 registered, 0 hidden and 37 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 37 guests

Login Form