Dumb Question about Importing from SR3

Using a mix of Minimaul's tools, the vpkg xml tools, and one or two other unpacker/repacker utilities, I successfully brought over the old style "Candy Girl Tank Top", but when I tried to bring over the "Goth Lyfe Pants", the mesh seems to be messed up (body shape becomes distorted).
The same pants are part of the Goth suit, and the texture files are identical. Early on, I grabbed that texture and brought it over.
Is there any way to grab that part of the mesh? Or am I going to have to wait for more of the SDK to open up?

distorted-00-jpg.6991


distorted-01-jpg.6993


The suit, which looks fine:
not_distorted-00-jpg.6992
 

Attachments

  • distorted-00.jpg
    distorted-00.jpg
    63.6 KB · Views: 1,215
  • not_distorted-00.jpg
    not_distorted-00.jpg
    47.3 KB · Views: 925
  • distorted-01.jpg
    distorted-01.jpg
    27.8 KB · Views: 1,071
After finding these pants were missing as a lower body option myself, after being totally miffed, I've been toying with the idea of trying this myself.
I've been looking through the various forum sections and piecing together what would be required for something like this.

If you remember, could you go into detail about what you did, and how you were attempting to integrate it? Add it in as a separate item, or as a replacement for another item?
My thought was to try and find a lower body item and do a replacement of the mesh/texture/whatever else files it takes that I need to figure out.

I got really attached to this pair of pants since my last play of SR3 where I actually noticed them, and as such was really dissapointed when I found out how they were in SR4. (after literally running to every clothing store trying to find them before doing an internet search to try and figure out why I couldn't find them)
 
I will have to go over some of the particulars later today, but I just did the very basics.
1) I extracted the pants from SR3. I think I used Minimaul's "RecursiveExtractor.exe"
The extracted directory - custmesh_-127487547f.str2_pc.
2) Converted the customize_item.asm_pc to xml, added the pants to that file, then converted it back. This is done with the Volition vpkg_wd.exe tool. There are separate ones for SR3 and SR4. Convert the one from SR3 to get the syntax. It required a little tweaking, like compression settings. (added as skirtpants.txt. Copy and paste that into your xml file.)
3) Imported them into my SR4 directory tree using Minimaul's "buildpackfilegui.exe"
4) Added the pants to the customization_items.xtbl (added as customization_items.txt) and customization_stores.xtbl.
The customization stores part was just:
(under Nobody_Loves_Me)
<Store_Item>
<Item>cf_nmc_lbdy_m_skirtpants</Item>
<Variants></Variants>
</Store_Item>

I think that was it. That got them in game, but messed up.
I extracted the textures, and viewed them in a 3d editor, but they just looked like what normal 3d pants look like.
 

Attachments

  • skirtpants.txt
    1.5 KB · Views: 397
  • customization_items.txt
    2.9 KB · Views: 399
Last edited:
Last edited:
Sorry about that alert thing. I got all berserk with re-importing it and trying to get it to work. Heh.

The cf_nlmc_lbdy_m_skirtpants_pc.cmorth_pc file is part of the extracted pack, and is put in when you rebuild the pack file.
I did not make any changes to that file as part of testing. I'd be willing to try and grab a morph file from another set of pants from SR4, but I don't know which would be compatible.
I thought there might be some interaction with other clothing items, so I removed everything else and tried just the pants. No luck.

One other thing I did was to try some of the compatible files from the goth suit, but that made no difference.

One thing left to try, comes from http://www.saintsrowmods.com/forum/threads/broken-items-missing-textures-etc.4501/page-2#post-39777:

"I always ignored those (the cmorph_pc files) while they need to be added into the SR4 root folder as well."
-- Superdemus

I will try that tonight, and see if that makes a difference.
 
Last edited:
I see, I haven't had any experience with modding for Saints Row yet, so didn't know it was part of that extracted pack.


after some time messing with tools that didn't want to work for me, I've managed to get stuff to unpack... XD

Having the names available is really helpful and time saving. I don't have to figure out which files I need. XD


Edit: after looking at the files, is what you have in the skirtpants text exactly what you input into the file?

Because comparing it with winmerge to what I extracted you don't have the compression line, and there's some of the tags left unclosed... I think that could cause some issues.

Also, you only have the stuff in skirtpants for the female version in the file, and not the male version.
 

Attachments

  • Skirtpants difference.png
    Skirtpants difference.png
    121.1 KB · Views: 446
Last edited:
When I look at my files, they seem complete, with compression and all the other settings. Maybe the attachments are messed up.
I tried copy the file over the cmorph file, but it did not make a difference.
Lastly, I only have the female stuff in, but that is what I got from the extract.
 
I see what it is, winmerge was separating those parts and displaying it much lower...

Shame the cmorph thing didn't work.

Edit 1: Aha! I found the sr4 tools on the github... they never actually got linked directly in the threads I saw, had to open up the root folder to see zin's toolset XD

Edit 2: Now that's I've got the sr4 files available, I'm going to be trying to figure out how to put all these files together correctly to make it a mod XD

Edit 3: Ahh, after a short stint with the volition files not wanting to unpack the srtt misc tables correctly, I find the gibbed tools and can now look through those files...


Edit 4: @zythaxx I just unpacked the customization_items.xtbl from the misc_tables.vpp_pc from my sr4 cache directory...
It already appears to have the lines you said you added to it.

It is a bit different, using self closing tags instead of an opening and closing tag...


Bah, I'm getting a bit tired.

I suppose I'm making some progress? I'm actually sometimes messing up stuff in game, so I know something's changing... >.<;

most progress made so far? PC turns invisible, game thinks there's no clothes, and there's no clothing menus in the store... And clicking on one of the outfit/suit/etc crashes the game... -_-;


Still gotta figure out how this stuff works XD


Early morning I can't sleep edit: I've made a breakthrough! I've managed to get where you got to with the messy mesh! ... Not that's much of an actual breakthrough...

haha, got it to crash if I mouse over the pants in the store. XD



I'm beginning to think the mesh files aren't quite compatible, taking into account the files in the str2_pc are ccmesh_pc files, and the table editor won't accept those for the path to the mesh files. (and changing it to those in the xtbl with a text editor just causes crashes)

It's wanting, cmeshx, cmesh_pc, cmesh_xbox2, peg_pc, or peg_xbox2.

What was the mesh file for the one you did get working?


Need to get some sleep before work, maybe I'll try replacing an item later instead of trying to add it...
Edit: after some time to reflect, I don't see why replacing an item would have any other effect than what adding it in does...

I think we may need professional help. :(


At least this has been a learning experience for me.
 
Last edited:
I am inclined to agree that we need professional help. Or at least someone who can recognize what part of this issue is the problem.
There is nothing about the shape, or style that would cause this, since the same exact pants are part of a functioning suit.
I compared the raw texture files between the pants and the pants from the suit, and they seemed identical, so that leaves the mesh and morph files.
I will keep experimenting, but right now it looks fairly bleak.
 
I decided to take my attempts out, put back in the mods I was playing with, and just play some more...

I do believe I noticed a 'candy girl tank top' in one of the stores...?


I think the only mods I have that affect clothing availability are ones that reactivate pieces of clothing that were already in the files but weren't active.

For example - http://www.saintsrowmods.com/forum/threads/extended-wardrobe.5660/
But it doesn't mention the tank top.


Maybe they'll get more of the SDK released and we'll be able to actually do this properly... Eventually™
 
Last edited:
Back
Top