Testing in the Gehn Shard

Announcements and discussion regarding the Gehn CWE Shard.

Moderator: Gehn Shard

Re: Testing in the Gehn Shard

Postby Christopher » Wed Aug 07, 2013 6:18 am

Justintime9 wrote:But how do I make the age MOUL compatible? Do I need 3DS Max

Deledrius made a script called "Transfusion" to convert ages from tPots to MOULa. But I don't know how to use it, I think Deledrius can say more about it. But you don't need 3ds Max.

Justintime9 wrote:And do I have to convert it every time I want to test the next version of the age?

Every time you export your age from blender you have to convert it to the MOULa format, before you can put it in your dat folder.

Christopher
User avatar
Christopher
 
Posts: 276
Joined: Mon Jul 19, 2010 3:25 am

Re: Testing in the Gehn Shard

Postby Justintime9 » Wed Aug 07, 2013 6:25 am

Ah, ok. I'll have to look around for that then. And I tried the Destiny shard, I'm registered and everything, but when I try launching the game, it crashes immediately with the error "Secure File Preloader Failed." :P
User avatar
Justintime9
 
Posts: 1188
Joined: Sat Sep 29, 2007 5:37 am

Re: Testing in the Gehn Shard

Postby Deledrius » Wed Aug 07, 2013 6:26 am

Christopher wrote:
Justintime9 wrote:But how do I make the age MOUL compatible? Do I need 3DS Max

Deledrius made a script called "Transfusion" to convert ages from tPots to MOULa.

Transfusion is a Python script which will convert Ages between Plasma versions (it uses libHSPlasma to do this). Generally CC->MOUL works without incident. In Windows, I have a little batch file set up that runs the following command:
Code: Select all
python.exe ./transfusion.py -i indat -o outdat -a $1

I just call that with the name of the Age and it does the rest, reading it in from an indat folder and putting it out into the outdat folder. You could set those to whatever you like, of course.

Christopher wrote:
Justintime9 wrote:And do I have to convert it every time I want to test the next version of the age?

Every time you export your age from blender you have to convert it to the MOULa format, before you can put it in your dat folder.

What I do: A quick export from Blender to an interim folder, then run the one-line command to convert it which drops the output into my testing dat folder.

Remember, however, that MOULa does not have all the same custom Python/UserKI etc. that you have on something like Deep Island, so any custom scripting you've done or rely on will need to be converted manually. For most fan ages this is not complicated.
User avatar
Deledrius
Gehn Shard Admin
 
Posts: 1377
Joined: Mon Oct 01, 2007 1:21 pm

Re: Testing in the Gehn Shard

Postby Christopher » Wed Aug 07, 2013 6:30 am

Justintime9 wrote:Ah, ok. I'll have to look around for that then. And I tried the Destiny shard, I'm registered and everything, but when I try launching the game, it crashes immediately with the error "Secure File Preloader Failed."


Have you added the "-LocalData" ? If you don't know how to do that you can take a look here

Christopher
User avatar
Christopher
 
Posts: 276
Joined: Mon Jul 19, 2010 3:25 am

Re: Testing in the Gehn Shard

Postby Annabelle » Wed Aug 07, 2013 3:32 pm

I logged in Destiny Shard.

I guess I can do my mixology tests on that shard, isn't it?

I imported all my python scripts there including those of my bot. I can also test any age fan builder wish me to test. Mostly my main interest is the physical aspects of the age (for e.g. left holes in the design, reachable collisions when the design didn't intend it, etc.) :D I can also do "normal" testing. If you want to know if your puzzles are hard though...I'll shortcut the tests here: "They are hard! lol" With puzzles, I'm ... well... let's pick another subject ;)

Just contact me by PM on the forums and we will be able to work from that point together.

My avatar is Annabelle (how surprising??? ;) :lol: ) Her KI is 12224. She will be left in Destiny(1) Neighborhood.

I'll create a test avatar to have my own ages to make my mixology testings.
Annabelle ;)
User avatar
Annabelle
 
Posts: 791
Joined: Sun Aug 29, 2010 1:47 pm

Re: Testing in the Gehn Shard

Postby Justintime9 » Thu Aug 08, 2013 9:07 am

Ok, so I got the Destiny Shard working. Now the task is to convert my age. I'm not quite clear on how to do that. @Deledrius, you mentioned that transfusion uses libHSPlasma. I'm not entirely familiar with that. But from what I've gathered, it's a part of PlasmaShop 3.0? If so I've downloaded that version and have it linked to my singleplayer URUCC directory. I also have the Transfusion.py file you made, and an interim folder of my TsoidahlPrad dat files. What I'm not clear on is how all of this comes together. Do I use PlasmaShop to "run" Transfusion.py? And then how do I tell it to convert that age specifically? (I apologize for sounding so ignorant, it's been awhile since I've worked with Python files, and even then I've never quite understood them. :P)

@Annabelle, in terms of testing, TsoidahlPrad is currently not in a state that requires testing. I've pretty much finished the office, but the main staircase and rec room are my current projects. Once I think the age is in a fairly presentable state I'll send it out for testing.
User avatar
Justintime9
 
Posts: 1188
Joined: Sat Sep 29, 2007 5:37 am

Re: Testing in the Gehn Shard

Postby Mystler » Thu Aug 08, 2013 12:25 pm

What you need for the Transfusion script is the PyHSPlasma.pyd file. It is the Python interface for libHSPlasma that the script uses to access the conversion functions. Of course, you also need to have installed a Python interpreter to execute python files.

If you have downloaded Transfusion.py and you have it in the same directory as libHSPlasma's PyHSPlasma.pyd, you should be able to convert your age. E.g. you can create a subfolder "tpots" and another "moul" and put your age PRPs in the tpots folder. Then, you can run the script via the command line.
On Windows you could do:
Code: Select all
transfusion.py -i tpots -o moul -a agename
User avatar
Mystler
 
Posts: 116
Joined: Sun Mar 22, 2009 4:55 am
Location: Germany

Re: Testing in the Gehn Shard

Postby Justintime9 » Fri Aug 09, 2013 1:32 pm

Ok... I think I sort of get it now but a few things aren't clear:


1. Where should the transfusion.py file be located? I'm assuming in the Python scripts folder?

2. Is pyHSPlasma.pyd the only other file I need in that folder?

3. How do I know I have libHSPlasma installed? I read somewhere that it's included with PlasmaShop 3.0, and I have that...

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.

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?


Thanks for all your help. Maybe once I finally figure this out I should make a tutorial on it. It looks like once I understand it it'll be a piece of cake. :)
User avatar
Justintime9
 
Posts: 1188
Joined: Sat Sep 29, 2007 5:37 am

Re: Testing in the Gehn Shard

Postby Deledrius » Fri Aug 09, 2013 4:10 pm

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
User avatar
Deledrius
Gehn Shard Admin
 
Posts: 1377
Joined: Mon Oct 01, 2007 1:21 pm

Re: Testing in the Gehn Shard

Postby Mystler » Sat Aug 10, 2013 2:53 am

I'm not sure whether the PYD is shipped with PlasmaShop, but it should be in the libHSPlasma package that you can get here:
https://code.google.com/p/libhsplasma/downloads/list
User avatar
Mystler
 
Posts: 116
Joined: Sun Mar 22, 2009 4:55 am
Location: Germany

PreviousNext

Return to Gehn Shard

Who is online

Users browsing this forum: No registered users and 1 guest