Milestone Approaching
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Agetian, friarsol, Blacksmith, KrazyTheFox, CCGHQ Admins
Re: Milestone Approaching
by Hellfish » 06 Nov 2010, 22:40
One better: Here is a zip with data for all sets for the latest beta.
http://www.mediafire.com/?gdytmy2gr7fl3t1
If you can run python scripts you can download Arch's mtg-data files from here:http://www.slightlymagic.net/forum/viewtopic.php?f=27&t=1347&start=105#p43078
If you then put the mtg-data.txt from that archive into your res folder you can run PerSetTracking.py to generate this data for any version of Forge that you have handy.
http://www.mediafire.com/?gdytmy2gr7fl3t1
If you can run python scripts you can download Arch's mtg-data files from here:http://www.slightlymagic.net/forum/viewtopic.php?f=27&t=1347&start=105#p43078
If you then put the mtg-data.txt from that archive into your res folder you can run PerSetTracking.py to generate this data for any version of Forge that you have handy.
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
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
-

Hellfish - Programmer
- Posts: 1297
- Joined: 07 Jun 2009, 10:41
- Location: South of the Pumphouse
- Has thanked: 110 times
- Been thanked: 169 times
Re: Milestone Approaching
by slapshot5 » 15 Jan 2011, 01:05
Is there a reason not to check mtg-data.txt into our SVN?
-slapshot5
-slapshot5
- slapshot5
- Programmer
- Posts: 1391
- Joined: 03 Jan 2010, 17:47
- Location: Mac OS X
- Has thanked: 25 times
- Been thanked: 68 times
Re: Milestone Approaching
by Chris H. » 15 Jan 2011, 01:08
`slapshot5 wrote:Is there a reason not to check mtg-data.txt into our SVN?
-slapshot5
Sounds good to me.
-

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: Milestone Approaching
by slapshot5 » 15 Jan 2011, 01:47
Can someone tell me if this patch works for PerSetTracking.py on Windows/Linux.
I tested on Mac OS X.
I tested on Mac OS X.
- Code: Select all
Index: res/PerSetTracking.py
===================================================================
--- res/PerSetTracking.py (revision 5044)
+++ res/PerSetTracking.py (working copy)
@@ -9,10 +9,10 @@
raw_input("")
sys.exit()
-if not os.path.isdir(sys.path[0] + "\\PerSetTracking Results") :
- os.mkdir(sys.path[0] + "\\PerSetTracking Results")
+if not os.path.isdir(sys.path[0] + os.sep + 'PerSetTracking Results') :
+ os.mkdir(sys.path[0] + os.sep + 'PerSetTracking Results')
-forgeFolderContents = os.listdir(sys.path[0] + "\\cardsfolder")
+forgeFolderContents = os.listdir(sys.path[0] + os.sep + "cardsfolder")
forgeFolderFiles = []
forgeCards = []
mtgDataCards = {}
@@ -39,9 +39,10 @@
if hasFetchedSets :
if not hasFetchedCardName :
tmpName = line
+ tmpName = tmpName.replace('\n','')
hasFetchedCardName = True
if line == "\n" :
- mtgDataCards[tmpName] = prevline
+ mtgDataCards[tmpName] = prevline.replace('\n', '')
hasFetchedCardName = False
prevline = line
@@ -49,13 +50,15 @@
#Parse Forge
print("Parsing Forge")
for i in forgeFolderContents :
- if os.path.isfile(sys.path[0] + "\\cardsfolder\\" + i) == True :
+ if os.path.isfile(sys.path[0] + os.sep + "cardsfolder" + os.sep + i) == True :
forgeFolderFiles.append(i)
for file in forgeFolderFiles :
- with open(sys.path[0] + "\\cardsfolder\\" + file) as currentForgeCard :
+ with open(sys.path[0] + os.sep + "cardsfolder" + os.sep + file) as currentForgeCard :
tmpname = currentForgeCard.readline()
- tmpname = tmpname[5:len(tmpname)].replace("AE","Ae")
+ tmpname = tmpname[5:].replace("AE","Ae")
+ tmpname = tmpname.replace('\r\n', '')
forgeCards.append(tmpname)
+
#Compare datasets and output results
print("Comparing datasets and outputting results.")
@@ -79,14 +82,14 @@
currentMissing.sort()
currentImplemented.sort()
- with open(sys.path[0] + "\PerSetTracking Results\set_" + currentSet + ".txt","w") as output :
+ with open(sys.path[0] + os.sep + "PerSetTracking Results" + os.sep + "set_" + currentSet + ".txt", "w") as output :
output.write("Implemented (" + str(len(currentImplemented)) + "):\n")
for everyImplemented in currentImplemented :
- output.write(everyImplemented)
+ output.write(everyImplemented + '\n')
output.write("\n")
output.write("Missing (" + str(len(currentMissing)) + "):\n")
for everyMissing in currentMissing :
- output.write(everyMissing)
+ output.write(everyMissing + '\n')
output.write("\n")
output.write("Total: " + str(total) + "\n")
output.write("Percentage implemented: " + str(percentage) + "%\n")
@@ -102,7 +105,7 @@
totalMissing = 0
totalImplemented = 0
fullTotal = 0
-with open(sys.path[0] + "\PerSetTracking Results\CompleteStats.txt","w") as statsfile:
+with open(sys.path[0] + os.sep + "PerSetTracking Results" + os.sep + "CompleteStats.txt", "w") as statsfile:
statsfile.write("Set: Implemented (Missing) / Total = Percentage Implemented\n")
for dataKey in sorted(totalData.keys()) :
totalImplemented += totalData[dataKey][0]
- slapshot5
- Programmer
- Posts: 1391
- Joined: 03 Jan 2010, 17:47
- Location: Mac OS X
- Has thanked: 25 times
- Been thanked: 68 times
Re: Milestone Approaching
by sentient6 » 15 Jan 2011, 03:59
Why not just uses os.path.join for the paths?
- sentient6
- Posts: 13
- Joined: 03 Jan 2011, 00:48
- Has thanked: 0 time
- Been thanked: 0 time
Re: Milestone Approaching
by slapshot5 » 22 Jan 2011, 05:48
Looks like with r5498, each core set and each major expansion set is at least 40% implemented. When cards made possible by the trigger scripting are added, it's not unlikely that each core set and each expansion will be at least 50% implemented.
-slapshot5
-slapshot5
- slapshot5
- Programmer
- Posts: 1391
- Joined: 03 Jan 2010, 17:47
- Location: Mac OS X
- Has thanked: 25 times
- Been thanked: 68 times
Re: Milestone Approaching
by slapshot5 » 20 Feb 2011, 21:33
I think Chris just put us over 7000 cards with Zirbert's grave cost stuff.
-slapshot5
-slapshot5
- slapshot5
- Programmer
- Posts: 1391
- Joined: 03 Jan 2010, 17:47
- Location: Mac OS X
- Has thanked: 25 times
- Been thanked: 68 times
Re: Milestone Approaching
by Chris H. » 20 Feb 2011, 21:50
`slapshot5 wrote:I think Chris just put us over 7000 cards with Zirbert's grave cost stuff.
Yep, I just thanked Zirbert for his submission. Good job.
-

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: Milestone Approaching
by slapshot5 » 03 Mar 2011, 17:56
I'm not sure if this counter as a milestone or not, but GameActionUtil.java is under 9000 lines of code, down from it's biggest somewhere around 24,000 lines of code.
That's about 15,000 lines of code removed by converting to triggers, stPump*, and stSetPT.
Pretty cool I'd say.
-slapshot5
That's about 15,000 lines of code removed by converting to triggers, stPump*, and stSetPT.
Pretty cool I'd say.
-slapshot5
- slapshot5
- Programmer
- Posts: 1391
- Joined: 03 Jan 2010, 17:47
- Location: Mac OS X
- Has thanked: 25 times
- Been thanked: 68 times
Re: Milestone Approaching
by friarsol » 03 Mar 2011, 19:17
That's a pretty good milestone. I haven't looked at in a few days but I think we were about 5-10 Betrayers cards short of having 50% minimum on all sets.
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: Milestone Approaching
by slapshot5 » 03 Mar 2011, 19:23
Yep. Six at the moment.friarsol wrote:That's a pretty good milestone. I haven't looked at in a few days but I think we were about 5-10 Betrayers cards short of having 50% minimum on all sets.
- slapshot5
- Programmer
- Posts: 1391
- Joined: 03 Jan 2010, 17:47
- Location: Mac OS X
- Has thanked: 25 times
- Been thanked: 68 times
Re: Milestone Approaching
by ZzzzSleep » 03 Mar 2011, 21:46
I'll have a go at the remaining ninjas today.
Re: Milestone Approaching
by jeffwadsworth » 04 Mar 2011, 00:34
If you do any from this list, please remove them accordingly. Thanks.ZzzzSleep wrote:I'll have a go at the remaining ninjas today.
http://www.slightlymagic.net/wiki/Forge ... f_Kamigawa
- jeffwadsworth
- Super Tester Elite
- Posts: 1172
- Joined: 20 Oct 2010, 04:47
- Location: USA
- Has thanked: 287 times
- Been thanked: 70 times
Re: Milestone Approaching
by slapshot5 » 06 Mar 2011, 16:06
We have attained this threshold. Each core set and each expansion set has at least 50% of the cards implemented.friarsol wrote:That's a pretty good milestone. I haven't looked at in a few days but I think we were about 5-10 Betrayers cards short of having 50% minimum on all sets.
-slapshot5
- slapshot5
- Programmer
- Posts: 1391
- Joined: 03 Jan 2010, 17:47
- Location: Mac OS X
- Has thanked: 25 times
- Been thanked: 68 times
Re: Milestone Approaching
by Chris H. » 06 Mar 2011, 16:27
`slapshot5 wrote:I'm not sure if this counter as a milestone or not, but GameActionUtil.java is under 9000 lines of code, down from it's biggest somewhere around 24,000 lines of code.
That's about 15,000 lines of code removed by converting to triggers, stPump*, and stSetPT.
Pretty cool I'd say.
The run-forge.jar file from 10-19-2010 is about 8.1 MB and the run-forge.jar from 03-04-2011 is about 7.4 MB in size.
-

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
Who is online
Users browsing this forum: No registered users and 35 guests