summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjesusalva <cpntb1@ymail.com>2018-02-09 22:55:27 -0200
committerjesusalva <cpntb1@ymail.com>2018-02-09 22:55:27 -0200
commitdacce66d259fd9a68167ace1cdb497b00494558a (patch)
tree08feb4279ddd7903070de890b4846c1845faa126
parent5bacd1f63d141d9d4f9943d79f08161e707ab74f (diff)
downloadtools-dacce66d259fd9a68167ace1cdb497b00494558a.tar.gz
tools-dacce66d259fd9a68167ace1cdb497b00494558a.tar.bz2
tools-dacce66d259fd9a68167ace1cdb497b00494558a.tar.xz
tools-dacce66d259fd9a68167ace1cdb497b00494558a.zip
Dyecmd tools
-rw-r--r--README.md7
-rw-r--r--dyecmd/fal.py12
-rw-r--r--dyecmd/unfall.py13
3 files changed, 32 insertions, 0 deletions
diff --git a/README.md b/README.md
index 687421e..30d5cc0 100644
--- a/README.md
+++ b/README.md
@@ -17,6 +17,13 @@ scripts will aid when we have to deploy them at remote server.
When running a localhost, you'll need to follow the instructions at [localserver/README](localserver/README)
or it won't work at all.
+## CI Related
+
+```contrib``` contains CI files in need of maintenance. Some scripts to make
+pallete-removal easier are available at `dyecmd/` folder, by Jesusalva. Do not use
+them. (They also won't work unless you copy files to the right place, and have dyecmd
+installed.)
+
## Legacy Server Importer
Thanks to the efforts from the Great Sage Of Keyboards, Andrei Akaras, we can
diff --git a/dyecmd/fal.py b/dyecmd/fal.py
new file mode 100644
index 0000000..a064646
--- /dev/null
+++ b/dyecmd/fal.py
@@ -0,0 +1,12 @@
+# dyecmd ../../../client-data/graphics/items/generic/*.png
+import os
+a=open('script.sh', 'w')
+
+for file in os.listdir('.'):
+ try:
+ if '.png' in file:
+ a.write('./dyecmd '+file+' 1'+file)
+ a.write('\n')
+ except:
+ continue
+a.close()
diff --git a/dyecmd/unfall.py b/dyecmd/unfall.py
new file mode 100644
index 0000000..91e5db5
--- /dev/null
+++ b/dyecmd/unfall.py
@@ -0,0 +1,13 @@
+# dyecmd ../../../client-data/graphics/items/equipment/*/*.png
+import os
+a=open('revert.sh', 'w')
+
+for f in os.listdir('.'):
+ try:
+ #for sub in os.listdir(folder):
+ if ('1' in f) and ('.png' in f):
+ a.write('mv '+f+' '+f[1:])
+ a.write('\n')
+ except:
+ continue
+a.close()