Jump to content

New Clothing Body Style Converter Beta v0.89f (10-26-2014)


gerra6

Recommended Posts

Posted

Tried another set of meshes. Got the following error:

Traceback (most recent call last):
  File "PythonPortable\App\Scripts\kgtools\mesh_rigger.py", line 355, in <module>
    Main()
  File "PythonPortable\App\Scripts\kgtools\mesh_rigger.py", line 346, in Main
    process_nif(base_file, bone_list, morph_nif = morph_nif)
  File "PythonPortable\App\Scripts\kgtools\mesh_rigger.py", line 188, in process_nif
    target_nif = load_nif(test_file, template = template_nif, settings = c_s, skeleton = skeleton, morph_nif = morph_nif, init_nif = True)
  File "C:\apps\Convert Clothing\PythonPortable\App\lib\site-packages\kg\file_util.py", line 568, in __init__
Error in sys.excepthook:
Traceback (most recent call last):
  File "C:\apps\Convert Clothing\PythonPortable\App\lib\linecache.py", line 127, in updatecache
    lines = fp.readlines()
  File "C:\apps\Convert Clothing\PythonPortable\App\lib\codecs.py", line 300, in decode


Original exception was:
Traceback (most recent call last):
  File "PythonPortable\App\Scripts\kgtools\mesh_rigger.py", line 355, in <module>
 

That at least is something, as before updating to .89g, mesh rigger was just bombing on the mesh with no indication as to why. Here's the nifs... My guess would be it's due to the fact that this mesh has a ton of  bits in it.

 

bondage.7z

Posted

That's a very nasty error. Sounds like a corrupted nif.

 

I'll see what I can see, once I finish testing some unrelated code.

Posted

I added TBBP to the _0 bondage body and the body actually changed after it was done. 

 

It never crashed or threw out any error other then the body changing and all that I had selected was the BBP bones the nif went from 4,949 to 6,401.

 

Before post-25667-0-71761000-1414031418_thumb.jpgand after post-25667-0-54756500-1414031517_thumb.jpg

Posted

Oops I never looked at the thread I thought it was the mesh rigger thread. I used the newest version of the mesh rigger  to add the TBBP haven't tried it in the clothing converter I still have the .85 build of that. Portable Package 0.85a (Recommended) is the one I'm using.

Posted

I downloaded that the other day I just didn't let the clothing converter part overwrite anything.

 

I tried the bondage_0 body in the clothing converter and got no errors and I converted it from whatever body size it is to UNP slim. 

 

post-25667-0-21614000-1414035505_thumb.jpg

Posted

I ran it through the .85a build it converted without any problems or errors and no body/armor glitches. Not sure if it is weighting it correctly or not as I'm not sure how to look to see if it is weighted correctly. This is the one that I converted to UNP slim.

 

cuirass_0.nif

 

Posted

I built a lattice with an earlier version, 89e.

 

was running that lat with 89g and got this error:

Saving  G:\Games\Skyrim\Apps\kgtools\Tools RC_89_g_Light\Clothing Converter\outp
ut\heartsong anklace_0.nif
Save Complete
Traceback (most recent call last):
  File "G:\Games\Skyrim\Apps\kgtools\Tools RC_89_g_Light\convert_clothing.py", l
ine 335, in <module>
    input('\nWork done, press enter to close.')
AttributeError: 'Logger' object has no attribute 'errors'
Error in sys.excepthook:
Traceback (most recent call last):
  File "G:\Games\Skyrim\Apps\kgtools\Tools RC_89_g_Light\convert_clothing.py", l
ine 329, in keep_alive
    input('\nAn Error Occurred, press enter to close.')
AttributeError: 'Logger' object has no attribute 'errors'

Original exception was:
Traceback (most recent call last):
  File "G:\Games\Skyrim\Apps\kgtools\Tools RC_89_g_Light\convert_clothing.py", l
ine 335, in <module>
    input('\nWork done, press enter to close.')
AttributeError: 'Logger' object has no attribute 'errors'

you prob didn't need the whole traceback, but i wanted you to see that it occurred right at the beginning of the processing the next mesh of the set which happens to be named *_gnd.nif. Uncommon, but not unique.

 

here's the set and the lats.

 

lats.zipheartsong.7z

Posted

I ran it through the .85a build it converted without any problems or errors and no body/armor glitches. Not sure if it is weighting it correctly or not as I'm not sure how to look to see if it is weighted correctly. This is the one that I converted to UNP slim.

 

attachicon.gifcuirass_0.nif

 

Very odd. I reinstalled .85a, and mesh rigger just crashes out with no errors right after I select the BBB bones.

Posted

Very odd. I reinstalled .85a, and mesh rigger just crashes out with no errors right after I select the BBB bones.

Well, I just went ahead and ran it through the latest dev build of Mesh Rigger (pretty much the same as the version on http://kgtools.org/)

 

No errors. However, that mesh had a truly amazing number of vertices, so the surface search was *incredibly* slow.

 

Anyways, here's what I did.

 

1. Strip off all of the extra meshes from the cuirass_0.nif and rename it template_0.nif.

2. Run Mesh Rigger. Copy the BBB weights from your unpb_awesome_0.nif nif to template_0.nif. UV Search is enabled.

 

That gives this: template_0.7z

 

3. Run Mesh Rigger. Template: template_0.nif. Targets: cuirass_0.nif and cuirass_1.nif

4. Wait. Forever. And then keep waiting. Damn, that nif has a lot of verts. Keep waiting. Go watch a movie. Come back.

5. Check the output folder.

 

output.7z

 

They look pretty solid in Nifskope. No signs of deformations or other issues that I can see.

 

Try them out in game and see how they do.

Posted

Ah, one more thing... I think this is related to you adding the option to tell the windows not to close until the user presses enter... This was after deleting everything, then extracting .85a, then overwriting with .89f.

 

Saving  C:\apps\Convert Clothing\Clothing Converter\output\nightshade\blk-bare-cuirass_0.nif
Save Complete
Traceback (most recent call last):
  File "PythonPortable\App\Scripts\kgtools\convert_clothing.py", line 335, in <module>
    input('\nWork done, press enter to close.')
AttributeError: 'Logger' object has no attribute 'errors'
Error in sys.excepthook:
AttributeError: 'Logger' object has no attribute 'errors'
 
Original exception was:
Traceback (most recent call last):
  File "PythonPortable\App\Scripts\kgtools\convert_clothing.py", line 335, in <module>
    input('\nWork done, press enter to close.')
AttributeError: 'Logger' object has no attribute 'errors'
 
Posted

Could you post the log file from that. I'd like to get an idea of what the settings were, and exactly what the tool was trying to do.

Posted

The error is a bit different. I'm starting to think python knows about my growing affair with C++ and hates me for it.

 

On a completely separate note, I'm running Win8 x64. Not sure if that makes a difference or not, but I'm wondering why I get different results than others when I run these tools.

 

I also went ahead and tried a full python 3.3 install with the light scripts to see if that made any difference. It didn't... same error I originally reported.

 

 

Posted

Well, my primary testing environment is Python 3.4 64 bit on a win 8 machine.

 

I'm doing some final testing on the next update to clothing converter, the one with the automatic cleavage crash option.

 

Assuming it passes the trial, I'll post it for testing and see about tracking down your bug.

Posted

Drag and drop.

 

Basically I copied the pyffi files into the appropriate folders in the Python installation folder. That's also how I managed to get Pyffi working with the portable installation

 

Basically copy the pyffi-looking files from the Scripts and the lib\site-packages\pyffi folder to their equivalents in 3.4

Posted

OK, Clothing Converter 89.g is now live at http://kgtools.org/

 

This includes an option to automatically generate and use a complex 2-step lattice.

 

The net effect should be identical to the method outlined here: http://www.loverslab.com/topic/27557-new-clothing-body-style-converter-release-candidate-v085a-10-04-2014/?p=960799

 

Instead of needing to run all of those extra steps to manage 'cleavage crash', just enable 'Two Step Lattice' with x-axis constraint when running Make Lattice.

 

To control how the two step lattice is applied when running Clothing Converter, select the appropriate material type from the 'Use Alternate Constraints' options, or enable 'customize meshes' and enable alternate constraints on individual meshes.

Posted

Making a lattice with the latest version, with 2-step enabled, I got this error

 

 

 

 

Main Search
search_targets 1
Template Vertices: 4560
search_resolution 1
Building Vertex Dictionary
Target Mesh Vertices 3934
Building Vertex Dictionary
searching for Targets
196 of 3934 verts searched
393 of 3934 verts searched
589 of 3934 verts searched
785 of 3934 verts searched
981 of 3934 verts searched
1177 of 3934 verts searched
1377 of 3934 verts searched
1574 of 3934 verts searched
1770 of 3934 verts searched
1966 of 3934 verts searched
2163 of 3934 verts searched
2359 of 3934 verts searched
2555 of 3934 verts searched
2751 of 3934 verts searched
2947 of 3934 verts searched
3143 of 3934 verts searched
3341 of 3934 verts searched
3537 of 3934 verts searched
3737 of 3934 verts searched
3934 of 3934 verts searched
Lattice Morph None
Saving Lattice to F:\Pose Convertor Non Blebder\Tools RC_85_a\Tools RC_89_h_Light\Clothing Converter\lattice\test.lat
Traceback (most recent call last):
  File "F:\Pose Convertor Non Blebder\Tools RC_85_a\Tools RC_89_h_Light\make_lattice.py", line 299, in <module>
    input('\nWork done, press enter to close.')
AttributeError: 'Logger' object has no attribute 'errors'
Error in sys.excepthook:
Traceback (most recent call last):
  File "F:\Pose Convertor Non Blebder\Tools RC_85_a\Tools RC_89_h_Light\make_lattice.py", line 293, in keep_alive
    input('\nAn Error Occurred, press enter to close.')
AttributeError: 'Logger' object has no attribute 'errors'

Original exception was:
Traceback (most recent call last):
  File "F:\Pose Convertor Non Blebder\Tools RC_85_a\Tools RC_89_h_Light\make_lattice.py", line 299, in <module>
    input('\nWork done, press enter to close.')
AttributeError: 'Logger' object has no attribute 'errors'

 

Also, when applying the generated lattice to clothing, I don't notice any improvement in the cleavage crash using the 2-step lattice.

 

Clevage Crash.zip

 

PS - After more testing, I also get this error when I tried to enable mesh customisation during the clothing conversion process

 

**********Meshes Initialized**********
******nif_gender******
FEMALE
Traceback (most recent call last):
  File "F:\Pose Convertor Non Blebder\Tools RC_85_a\Tools RC_89_h_Light\convert_clothing.py", line 342, in <module>
    Main()
  File "F:\Pose Convertor Non Blebder\Tools RC_85_a\Tools RC_89_h_Light\convert_clothing.py", line 333, in Main
    process_nif(this_file, lattice, lattice_dict)
  File "F:\Pose Convertor Non Blebder\Tools RC_85_a\Tools RC_89_h_Light\convert_clothing.py", line 159, in process_nif
    axis_menu = NodeMovementMenu(target_nif.meshes, c_s)
  File "F:\Pose Convertor Non Blebder\Tools RC_85_a\Tools RC_89_h_Light\kg\ui_tools.py", line 231, in __init__
    self.node2[m.lbl] = uiToggle(temp_frame, 'Alternate Constraints', 'PACK', arrange = 'GRID', col = 0, colspan = 3, row = 11)
TypeError: __init__() got multiple values for argument 'arrange'
Error in sys.excepthook:
Traceback (most recent call last):
  File "F:\Pose Convertor Non Blebder\Tools RC_85_a\Tools RC_89_h_Light\convert_clothing.py", line 337, in keep_alive
    input('\nAn Error Occurred, press enter to close.')
AttributeError: 'Logger' object has no attribute 'errors'

Original exception was:
Traceback (most recent call last):
  File "F:\Pose Convertor Non Blebder\Tools RC_85_a\Tools RC_89_h_Light\convert_clothing.py", line 342, in <module>
    Main()
  File "F:\Pose Convertor Non Blebder\Tools RC_85_a\Tools RC_89_h_Light\convert_clothing.py", line 333, in Main
    process_nif(this_file, lattice, lattice_dict)
  File "F:\Pose Convertor Non Blebder\Tools RC_85_a\Tools RC_89_h_Light\convert_clothing.py", line 159, in process_nif
    axis_menu = NodeMovementMenu(target_nif.meshes, c_s)
  File "F:\Pose Convertor Non Blebder\Tools RC_85_a\Tools RC_89_h_Light\kg\ui_tools.py", line 231, in __init__
    self.node2[m.lbl] = uiToggle(temp_frame, 'Alternate Constraints', 'PACK', arrange = 'GRID', col = 0, colspan = 3, row = 11)
TypeError: __init__() got multiple values for argument 'arrange'

 

 

 

 

Also, did you manage to make any progress on fixing underboob clipping?

 

Cheers

Posted

Hey again gerra6, it took me a while to get myself some free time to test the newest version with the meshes I was trying to convert.

I downloaded version 0.89h and retried the process but the result was still wrong -

 

NWi2CH0.jpg

 

 

 

I have no idea if I'm doing something wrong, or maybe missing a stage in the process...

For your convenience, here are the meshes I tried to convert, and the body types I made the lattices from -

 

FullPink.nif

(from) body.nif

(to) body.nif

Posted

I think you mean .89h :) I'll give this a go. Found an armor giving me even greater fits running through the converter. I can get it looking sort of right if I constrain both x and z axes, but then the body doesn't convert well. I'll give this a go after I get home from work and see if the 2 step does a better job. I was trying it manually last night and still not getting good results. The _1 converts pretty well, but the _0 is... not good. Not good at all. 

 

On a related note, I think that bondage mesh that was crashing rigger was a memory issue with the 32 bit portable version. I saw python get up a bit over 4 gig while weighting the mesh now that I'm running the 64 bit version. Didn't take that long on my machine, either. About 10-15 minutes total for both _0 and _1.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...