View Full Version : Grim's CAS Part cloner(Experimental/For Testing)
grimreefer24601
6th Oct 2011, 05:37 AM
I add this thread for testing this program, but also to help people figure out how to mesh, and texture, and eventually add new objects for Medieval.
This is a Windows program that allows copying of CASP files. This will track down files listed in CASP and linked files, export them, and change the file references to the new files. All file names are created to import without issue into S3PE.
http://thumbs2.modthesims2.com/img/3/3/9/5/9/0/2/MTS_grimreefer24601-1244461-casp.jpg
For objects that you wish to make a new clone just rename the CAS Part, otherwise, if you wish to overwrite the original file keep the same name and click clone.
The cloner should create a new directory with the name of the cloned object. Inside the directory are a CASP file which controls which files TSM loads. It also creates different directories for extracted files. To truely clone a CAS Parts all of these files seem to be needed.
http://thumbs2.modthesims2.com/img/3/3/9/5/9/0/2/MTS_grimreefer24601-1238131-main2.jpg
The most important files lie within the Geometry, Images, and Thumbnails directories. Meshes are within geometry, Textures are within Images, and, well, you probably get this one.
Note: The options.cfg file must be renamed to reflect your actual Sims Medieval install directory.
I've been working with geometry, and these files should load fine in MilkShape. Textures can be edited in any image editor, but currently I'm using Photoshop 7 (old but works).
This program is very experimental. I know there are bugs within this program. I could list the one's I've found, but I really need to have people work with this tool and let me know their results.
Any questions or feedback are welcome.
Also adding a simple new CASP object. It is for male monarchs, and edits one of the existing Cape and Sword clothing objects to have a longer cape. This simple edit is meant only for demonstration.
This edit creates a new file based off of this,
http://thumbs2.modthesims2.com/img/3/3/9/5/9/0/2/MTS_grimreefer24601-1238876-before.jpg
that creates this,
http://thumbs2.modthesims2.com/img/3/3/9/5/9/0/2/MTS_grimreefer24601-1238875-after.jpg
The difference is sleight, but the cape is longer. Also updated to change the Stencil A and Overlay textures. The stencil changes the lion to a yinyang symbol, and the overlay makes the medallion green.
This demo changes Thumbnails, textures (including updating CASP Presets), and Geometry (including creating BGEO files).
Updates
10-23-11
Added thumbnails to the cloner to make it easier to find the objects you wish to clone.
Major rewrite to how the program loads packages. New version will now also work with Pirates and Nobles CAS Parts.
10-23-11
Fixed crashing on some CAS Parts.
Cloner now correctly referencing the delta build package before defaulting to the full build package.
DarthKitsune
6th Oct 2011, 10:07 AM
You are awesome! this is certainly going to help someone!
TotallyNewHere
6th Oct 2011, 12:31 PM
what :(
ladyskye
7th Oct 2011, 02:02 PM
Compared to 40 years ago, I learn much more slowly now. But I downloaded this and will see what I can do with it. I have milkshape and may end up buying a license for it, but I also have GIMP and will see how well it works with that.
To be honest, I have no clue what I am doing, but will happily peck around in the dark anyhow. :blink:
grimreefer24601
7th Oct 2011, 02:09 PM
The GEOM files can only be loaded into a registered 1.85 MilkShape. Other programs will depend entirely on if plugins are available. I will mention that it does not seem like Blender will allow as advanced edits as MilkShape will.
I am happy to answer any questions I can, but I would suggest looking into some of the TS3 tutorials.
ladyskye
7th Oct 2011, 02:43 PM
The GEOM files can only be loaded into a registered 1.85 MilkShape. Other programs will depend entirely on if plugins are available. I will mention that it does not seem like Blender will allow as advanced edits as MilkShape will.
I am happy to answer any questions I can, but I would suggest looking into some of the TS3 tutorials.
Then I will have to put some money on my card and pay for the license. If I have questions, I will try to state them clearly and remain drama free with them. Thank you. I will do as you suggest with TS3 tutorials.
This may take quite a while, but other than bowling and work, I do relatively little that is productive with my time except sleep.
Thank you again. :cool:
grimreefer24601
8th Oct 2011, 01:06 AM
Added a new simple edit for male monarchs as a demo.
Edit: Updated the demo to change a couple of textures.
grimreefer24601
9th Oct 2011, 02:35 AM
I've been working all day on a tutorial for this. What I've come up with contains a lot of information about CAS Parts for TSM, but it is a long tutorial. I have decided to release it in sections. Some sections can be ignored for those who don't want to make those edits.
Following the complete tutorial will give you my demo clothing package. The full tutorial is written, and only needs some clean up before I upload it. I intend at least a partial upload this weekend.
ripple
9th Oct 2011, 03:31 AM
Looking forward to it. Thanks for all you've done :)
grimreefer24601
23rd Oct 2011, 05:06 PM
Added a minor update that fixes a crash on certain CASPs. Also it now uses both the full and delta build packages.
grimreefer24601
29th Oct 2011, 08:11 PM
New update rewrites the package loader to include Pirates and Nobles if installed. Also added as CAS thumbnail image to the UI to make it easier to find different CAS Parts.
ripple
30th Oct 2011, 02:58 PM
Thumbnail previews! Thanks for the update Grim!
grimreefer24601
31st Oct 2011, 01:56 AM
Added a change which include new things I've been working on. This program should behave as the original program as far as cloning is concerned, but will allow extra viewing of CAS Presets. This is in an effort to make CAS Presets editable with this tool. The regular version is the most stable, but any input on the new additions will be helpfull.
For those who wish to help with the most recent verrsion please try the preview download.
ChickieTeeta
17th Nov 2011, 04:14 PM
Added a change which include new things I've been working on. This program should behave as the original program as far as cloning is concerned, but will allow extra viewing of CAS Presets. This is in an effort to make CAS Presets editable with this tool. The regular version is the most stable, but any input on the new additions will be helpfull.
For those who wish to help with the most recent verrsion please try the preview download.
Hi Grim
Thought you might like to know that the newest version crashes consistently when trying to clone 'ambodyTredonyJacketSword' which is one of the outfits that came with P&N.
Love that you now get a preview of the item selected :up:
grimreefer24601
17th Nov 2011, 10:40 PM
Thanks for the info. Some items have slieght differences in their files, so some things I coded to work for most items. Knowing an item that causes a crash helps me figure out what stuff is really important in the files. I probably could have avoided some of this using the Sims 3 C# libraries, but I'm much better with C++, and I kind of like figuring out stuff anyway.
At the moment I'm still installing stuff on my new computer build (best PC I've ever used). When I get my Visual Studios loaded again I'll look into it.
ChickieTeeta
18th Nov 2011, 07:39 PM
Thanks for the info. Some items have slieght differences in their files, so some things I coded to work for most items. Knowing an item that causes a crash helps me figure out what stuff is really important in the files. I probably could have avoided some of this using the Sims 3 C# libraries, but I'm much better with C++, and I kind of like figuring out stuff anyway.
At the moment I'm still installing stuff on my new computer build (best PC I've ever used). When I get my Visual Studios loaded again I'll look into it.
Probably better to use what you're most comfortable with, and if it helps you to figure out other things along the way then it's probably the better one to use anyway. The program is great.
My computer is about 4 years old now (built myself) and is still ahead of the majority of pre-builts available in stores, the only thing I've upgraded in it is the graphics card. I am wanting to build another one soon though. Hope you enjoy your new computer...a little jealous :P LOL
Oh I'm glad you found somewhere to host your female file btw....and the male file. Don't think my ISP would have been too happy with me hosting that one LOL. I was in the process of building a new website for your female file, but like I said on another thread I've been incredibly ill for the last month. I'm so glad it all worked out, I felt bad for not getting the site finished.
ChickieTeeta
19th Nov 2011, 05:09 PM
Getting this error in the caspart file for afbodycorsetsexytattoo.
I've tried cloning it a few times and the error for this file is always the same.
It works fine with the older version of the cloner.
*Update*
This error in the caspart file is the same for quite alot of the clothing, but are all fine using the older version.
Error reading resource 034AEECB:00000000:20D7CBBEEE1C84D3
Front-end Distribution: 11-0402-0951
Library Distribution: 11-0402-0951
Source: mscorlib
Assembly: mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Exception has been thrown by the target of an invocation.
----
Stack trace:
at System.RuntimeMethodHandle._InvokeConstructor(Object[] args, SignatureStruct& signature, IntPtr declaringType)
at System.RuntimeMethodHandle.InvokeConstructor(Object[] args, SignatureStruct signature, RuntimeTypeHandle declaringType)
at System.Reflection.RuntimeConstructorInfo.Invoke(BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at s3pi.WrapperDealer.WrapperDealer.WrapperForType(String type, Int32 APIversion, Stream s)
at s3pi.WrapperDealer.WrapperDealer.GetResource(Int32 APIversion, IPackage pkg, IResourceIndexEntry rie, Boolean AlwaysDefault)
at S3PIDemoFE.MainForm.browserWidget1_SelectedResourceChanged(Object sender, ResourceChangedEventArgs e)
----
Source: s3pi.CASPartResource
Assembly: s3pi.CASPartResource, Version=1104.10.22.39188, Culture=neutral, PublicKeyToken=null
Position of TGIBlock read: 0x000082FB, actual: 0x000082F7
----
Stack trace:
at CASPartResource.CASPartResource.Parse(Stream s)
at CASPartResource.CASPartResource..ctor(Int32 APIversion, Stream s)
Rockerduck
29th Nov 2011, 03:49 PM
This is brilliant! Thank you ever so much for your dedication and work! *sends prized German chocolate*!
TotallyNewHere
29th Nov 2011, 06:49 PM
has anybody made assassin outfit yet?
DarthKitsune
6th Dec 2011, 07:21 AM
I love the super long cape grim did on the monarch's outfit. any chance I could get one with the original symbol on it? the yin and yang doesn't fit with any of my themes. . .
grimreefer24601
6th Dec 2011, 05:07 PM
The yin yang symbol is in the stencil texture. If you edit that texture you can put any image you want on it. You don't even need to change any IDs, references, or anything.
DarthKitsune
6th Dec 2011, 07:23 PM
coolness, I guess I'll go figure out how to do that :D
vBulletin v3.0.14, Copyright ©2000-2013, Jelsoft Enterprises Ltd.