mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 02:38:02 +00:00
Fix executable permissions. reprintSetInfo now takes a parameter for the set instead of it being hardcoded
This commit is contained in:
6
.gitattributes
vendored
6
.gitattributes
vendored
@@ -20,7 +20,7 @@ build/support/template.applescript -text
|
|||||||
/forge.properties svneol=native#text/plain
|
/forge.properties svneol=native#text/plain
|
||||||
/pom.xml svneol=native#text/xml
|
/pom.xml svneol=native#text/xml
|
||||||
res/AllTokens.txt -text svneol=native#text/plain
|
res/AllTokens.txt -text svneol=native#text/plain
|
||||||
res/PerSetTracking.py -text svneol=native#text/x-python
|
res/PerSetTracking.py svneol=native#text/x-python
|
||||||
res/blockdata/blocks.txt svneol=native#text/plain
|
res/blockdata/blocks.txt svneol=native#text/plain
|
||||||
res/blockdata/setdata.txt svneol=native#text/plain
|
res/blockdata/setdata.txt svneol=native#text/plain
|
||||||
res/booster-decks -text svneol=unset#unset
|
res/booster-decks -text svneol=unset#unset
|
||||||
@@ -8919,8 +8919,8 @@ res/quest/themes/White.thm -text
|
|||||||
res/quest/themes/Wolves[!!-~]WG.thm -text
|
res/quest/themes/Wolves[!!-~]WG.thm -text
|
||||||
res/quest/themes/Zombies[!!-~]B.thm -text
|
res/quest/themes/Zombies[!!-~]B.thm -text
|
||||||
res/quest/veryhard.txt -text svneol=native#text/plain
|
res/quest/veryhard.txt -text svneol=native#text/plain
|
||||||
res/reprintSetInfo.py -text svneol=native#text/x-python
|
res/reprintSetInfo.py svneol=native#text/x-python
|
||||||
res/setInfoScript.py -text svneol=native#text/x-python
|
res/setInfoScript.py svneol=native#text/x-python
|
||||||
res/sound/tap.mp3 -text svneol=unset#audio/mpeg
|
res/sound/tap.mp3 -text svneol=unset#audio/mpeg
|
||||||
src/arcane/ui/CardArea.java svneol=native#text/plain
|
src/arcane/ui/CardArea.java svneol=native#text/plain
|
||||||
src/arcane/ui/CardPanel.java svneol=native#text/plain
|
src/arcane/ui/CardPanel.java svneol=native#text/plain
|
||||||
|
|||||||
4
res/PerSetTracking.py
Normal file → Executable file
4
res/PerSetTracking.py
Normal file → Executable file
@@ -1,3 +1,5 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
|
|
||||||
pathToMtgData = "mtg-data.txt"
|
pathToMtgData = "mtg-data.txt"
|
||||||
|
|
||||||
############IMPLEMENTATION FOLLOWS############
|
############IMPLEMENTATION FOLLOWS############
|
||||||
@@ -60,7 +62,6 @@ for file in forgeFolderFiles :
|
|||||||
tmpname = tmpname.rstrip()
|
tmpname = tmpname.rstrip()
|
||||||
forgeCards.append(tmpname)
|
forgeCards.append(tmpname)
|
||||||
|
|
||||||
|
|
||||||
#Compare datasets and output results
|
#Compare datasets and output results
|
||||||
print("Comparing datasets and outputting results.")
|
print("Comparing datasets and outputting results.")
|
||||||
totalData = {}
|
totalData = {}
|
||||||
@@ -89,7 +90,6 @@ for currentSet in setCodes :
|
|||||||
percentage = 0
|
percentage = 0
|
||||||
if total > 0 :
|
if total > 0 :
|
||||||
percentage = (float(len(currentImplemented))/float(total))*100
|
percentage = (float(len(currentImplemented))/float(total))*100
|
||||||
|
|
||||||
currentMissing.sort()
|
currentMissing.sort()
|
||||||
currentImplemented.sort()
|
currentImplemented.sort()
|
||||||
|
|
||||||
|
|||||||
0
res/mtg-data.txt
Executable file → Normal file
0
res/mtg-data.txt
Executable file → Normal file
7
res/reprintSetInfo.py
Normal file → Executable file
7
res/reprintSetInfo.py
Normal file → Executable file
@@ -1,3 +1,5 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
|
|
||||||
# This script grabs the list of all cards in a set and clears out the setInfo
|
# This script grabs the list of all cards in a set and clears out the setInfo
|
||||||
# After running this script, re-run setInfoScript to fill in the slots
|
# After running this script, re-run setInfoScript to fill in the slots
|
||||||
# MAKE SURE THE setAbbr VARIABLE IS UPDATED TO THE SET YOU WANT TO CLEAR OUT
|
# MAKE SURE THE setAbbr VARIABLE IS UPDATED TO THE SET YOU WANT TO CLEAR OUT
|
||||||
@@ -5,6 +7,7 @@
|
|||||||
from httplib import HTTP
|
from httplib import HTTP
|
||||||
from urlparse import urlparse
|
from urlparse import urlparse
|
||||||
from urllib import urlopen
|
from urllib import urlopen
|
||||||
|
import sys
|
||||||
import os
|
import os
|
||||||
|
|
||||||
class SetInfo:
|
class SetInfo:
|
||||||
@@ -52,7 +55,8 @@ err = open('reprintSetInfo.log','w')
|
|||||||
|
|
||||||
# THIS NEEDS TO BE UPDATED TO THE SET YOU WANT TO UPDATE
|
# THIS NEEDS TO BE UPDATED TO THE SET YOU WANT TO UPDATE
|
||||||
# SOME ARE THREE LETTER ABBR. BUT SOME ARE JUST TWO. CHECK BEFORE YOU RUN!
|
# SOME ARE THREE LETTER ABBR. BUT SOME ARE JUST TWO. CHECK BEFORE YOU RUN!
|
||||||
setAbbr = 'mbs'
|
print "Using Set: " + sys.argv[1]
|
||||||
|
setAbbr = sys.argv[1]
|
||||||
|
|
||||||
cardDict = {}
|
cardDict = {}
|
||||||
setStr = 'SetInfo:'
|
setStr = 'SetInfo:'
|
||||||
@@ -62,7 +66,6 @@ getCardsInSet()
|
|||||||
for fileName in nameList:
|
for fileName in nameList:
|
||||||
# if file doesn't exist continue
|
# if file doesn't exist continue
|
||||||
filePath = os.path.join(folder, fileName)
|
filePath = os.path.join(folder, fileName)
|
||||||
|
|
||||||
print filePath
|
print filePath
|
||||||
|
|
||||||
if os.path.isfile(filePath) == False:
|
if os.path.isfile(filePath) == False:
|
||||||
|
|||||||
2
res/setInfoScript.py
Normal file → Executable file
2
res/setInfoScript.py
Normal file → Executable file
@@ -1,3 +1,5 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
|
|
||||||
# This python script is designed to handle the following: individual cards located in /res/cardsfolder
|
# This python script is designed to handle the following: individual cards located in /res/cardsfolder
|
||||||
# Insert of SetInfo data into data files from magiccards.info
|
# Insert of SetInfo data into data files from magiccards.info
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user