Justintime9 wrote:Ok... I think I sort of get it now but a few things aren't clear:
The nature of these questions concern me. Transfusion is currently a command-line script that will convert the Age. I've intended for a while to make a GUI version, but the lack of interest hasn't done much to encourage it. I'll try to answer your questions, but I'm hoping this won't be excessively complicated beyond your expectations.
Justintime9 wrote:1. Where should the transfusion.py file be located? I'm assuming in the Python scripts folder?
Anywhere in your path. Basically where ever you'll be opening the command prompt from is fine (usually a working directory for conversions is what I use).
Justintime9 wrote:2. Is pyHSPlasma.pyd the only other file I need in that folder?
I believe pyHSPlasma.pyd also requires HSPlasma.dll, as it's just the Python interface to the main DLL.
Justintime9 wrote:3. How do I know I have libHSPlasma installed? I read somewhere that it's included with PlasmaShop 3.0, and I have that...
It just needs to be able to find it. Python can be a bit picky about DLL locations though. Just put them in the same folder as Transfusion and you shouldn't have any trouble.
Justintime9 wrote:4. What is a python interpreter? I did some research, and it looks like all I need to do is open up the Python command prompt and type in the command line you provided, but that's just giving me Syntax errors.
The Python interpreter is "Python". It's the program that loads and runs a Python script. You'll need to invoke the interpreter to run the script, don't try to run the script inside of the interpreter itself. Recent versions of Python for Windows install an alias to it called simply py, so you should be able to use
py transfusion.py -i tpots -o moul -a agename to run the script.
Justintime9 wrote:5. Where should the tpots and moul (output) folders be located? Should they be in the scripts folder along with transfusion.py and pyHSPlasma.pyd? If not, how will running the script do anything unless it knows exactly where the folders are located?
The folders can be any location accessible by your system, you just need to supply the path to them. In the case of the example you're using, the path is a relative one to the current directory, so yes they will need to be in the same place as where ever you are when you run the script. You can place them anywhere you like, however, so long as you specify the correct path when starting the script. The
-i and
-o switches are for the input and output paths.
As is standard, you can run the script with the argument
--help to get a list of all options:
- Transfusion Options Show Spoiler
- Code: Select all
usage: transfusion.py [-h] [-q] [-i INDIR] [-o OUTDIR] [-a AGENAME]
[-n NEWAGENAME] [-s NEWSEQPREFIX]
[-v {HexIsle,MOUL,EoA,Prime,PoTS,Universal}]
A Utility for converting Plasma Ages.
optional arguments:
-h, --help show this help message and exit
-q, --quiet Don't print status messages
-i INDIR, --indir INDIR
Sets input path for Ages.
-o OUTDIR, --outdir OUTDIR
Sets output path for Ages.
-a AGENAME, --agename AGENAME
Sets input Age name. (Direbo, Neighborhood01, etc.)
-n NEWAGENAME, --newagename NEWAGENAME
Sets output name for converted Age.
-s NEWSEQPREFIX, --seqprefix NEWSEQPREFIX
Sets new SequencePrefix for converted Age.
-v {HexIsle,MOUL,EoA,Prime,PoTS,Universal}, --version {HexIsle,MOUL,EoA,Prime,PoTS,Universal}
Sets new Plasma version for converted Age.