- Site Map >
- Community >
- Sims Discussion >
- Sims Medieval >
- Modding - Medieval CASPart Wrapper for S3PE (Updated 8/7/2011 for patch 2.0)
- Site Map >
- Community >
- Sims Discussion >
- Sims Medieval >
- Modding - Medieval CASPart Wrapper for S3PE (Updated 8/7/2011 for patch 2.0)
#1
26th Apr 2011 at 8:56 PM
Last edited by velocitygrass : 22nd Jun 2013 at 7:34 AM.
Reason: updated with link to grimreefer24601 wrapper post
Posts: 902
Thanks: 32116 in 20 Posts
Medieval CASPart Wrapper for S3PE (Updated 8/7/2011 for patch 2.0)
grimreefer24601 has taken over maintenance of the wrapper and you'll find an updated version that runs in current versions of S3PE here.This is a wrapper for Medieval CASPart files in S3PE. This wrapper comes in two flavors. One that will read TS3 CASP files (useful for conversions) and one that doesn't.
Added a CASP Wrapper that writes patch 2.0 CASP files (and reads all versions). To convert from TSM 1.x to 2.0 CASP files simply open the Grid change a flag to something else and back and commit. The CASP should then be 2.0.
General usage info
How to use:
- Make a backup of the s3pi.CASPartResource.dll file in your S3PE installation folder (you can also rename it, but make sure to change the extension so that it is not loaded!)
- Copy the fitting .dll (32bit or 64bit) into your S3PE installation folder
- Start S3PE and browse the files.
Changes/additions to the Sims 3 CASPart info:
- Some clothing type flags have changed (e.g. EveryDay is NPC, Firefighting is Profession)
- Blend info index elder
- Blend info index teen
- Medieval Profession flag
- shoe material (Unknown4)
- outfit material
- unknown byte[4] that seems to be always four zero bytes
If you want to go back to reading The Sims 3 CASPart files remove the .dll and put back your backup of the old s3pi.CASPartResource.dll (or if you've renamed it, rename it back).
Wrapper for converting S3 CC to Medieval
You can find the tutorial by hotroxy777 here.
Steps to turn S3 CC into Medieval CC:
- Install the wrapper as explained in the readme
- Make a copy of the package you want to turn
- Open the copy in S3PE
- Find the CASP resource, where in the value pane you'll see "WARNING: This is not a Medieval CASP!"
- Go into Grid and set the Clothing Flag for Profession (not to be confused with the separate Professions Flag)
- You can also set which professions should have the CC available by setting the Profession Flag. By default all will be set.
- Save the package and put into your Medieval mods folder
This will only fix problems with the CASP format. In my test with the New Years hat there were clipping issues, which the wrapper obviously can't fix. Some information on other problems that might occur and how to address them has been posted in the above linked tutorial by people who know more about this than I do.
Note: The Wrapper will set the elder and teen blend info index to the one for fit. I hope that it won't matter because there are no teens and elders in Medieval. I also set the outfit material to "cloth". And the version info will be changed to that of Medieval.
This will break your CC for The Sims 3, so work on copies!
This wrapper will work on both Medieval and TS3 CASP files. The only harm in using this wrapper as opposed to the Medieval only wrapper is that you might accidentally break old TS3 files.
Wrapper for Medieval only
This was the original wrapper that allows reading and changing Medieval CASP files.
Modding Tests for Medieval CASParts:
I have done some tests and unfortunately simply adding flags for certain professions is not enough to make that outfit appear in CAS for a hero of that profession. I suspect there is a hard-coded list of allowed outfits somewhere (maybe because of the way outfits can be enabled via codes or achievements).
However assigning a different Instance will work. With the latest S3PE version this is very easy: Simply select details in the context menu type in a new name and click "FNV64". This way I managed to enable the Reaper outfit for my Wizard in CAS.
Troubleshooting
This is the behavior in S3PE that I would expect:
For original S3 CASP files:
- original S3PE wrapper => displays okay
- Medieval only CASP Wrapper => displays error
- S3 CC to Medieval Wrapper (original and 2.0) => displays okay with message "WARNING: This is not a medieval CASP!" before CASP info (This is what you'll want when converting TS3 CC.)
For Medieval 1.x CASP files (original or already converted/flags changed):
- original S3PE wrapper => displays error
- Medieval only CASP Wrapper => displays okay
- S3 CC to Medieval Wrapper => displays okay
- S3 CC to Medieval 2.0 Wrapper => displays with message "This is a Medieval 1.x CASP:"
For Medieval 2.0 CASP files (original or already converted/flags changed):
- original S3PE wrapper => displays error
- Medieval only CASP Wrapper => displays error
- S3 CC to Medieval Wrapper => displays error
- S3 CC to Medieval 2.0 Wrapper => displays with message "This is a Medieval 2.0 CASP:"
This should help you figure out what went wrong.
If you extracted one of the Medieval wrappers and put it in the S3PE folder but get the behavior for the original S3PE wrapper, make sure that the original wrapper .dll isn't loaded by changing its extension to something else (e.g. dll_).
License: GPL
Credit: The source code is mainly by Peter L Jones. I only made minor modifications for Medieval in CASPartResource.cs and CASPartFlags.cs.
Attached files:
S3 CC to Medieval CASPart Wrapper.zip (65.2 KB, 4280 downloads) - View custom content | ||
0 04-10-11 22:55 S3 CC to Medieval CASPart Wrapper/32bit/ 41472 04-10-11 22:46 S3 CC to Medieval CASPart Wrapper/32bit/s3pi.CASPartResource.dll 0 04-10-11 22:55 S3 CC to Medieval CASPart Wrapper/64bit/ 41472 04-10-11 22:46 S3 CC to Medieval CASPart Wrapper/64bit/s3pi.CASPartResource.dll 1474 04-10-11 23:02 S3 CC to Medieval CASPart Wrapper/readme_medieval_caspart_wrapper.txt 0 04-10-11 22:55 S3 CC to Medieval CASPart Wrapper/source/ 0 04-10-11 22:57 S3 CC to Medieval CASPart Wrapper/source/CASPartResource/ 7059 04-10-11 11:48 S3 CC to Medieval CASPart Wrapper/source/CASPartResource/CASPartFlags.cs 34225 04-10-11 22:57 S3 CC to Medieval CASPart Wrapper/source/CASPartResource/CASPartResource.cs 5639 04-09-11 11:53 S3 CC to Medieval CASPart Wrapper/source/CASPartResource/CASPartResource.csproj 17602 01-16-11 13:30 S3 CC to Medieval CASPart Wrapper/source/CASPartResource/FaceClothingResource.cs 0 04-10-11 22:55 S3 CC to Medieval CASPart Wrapper/source/CASPartResource/Properties/ 1488 04-09-11 11:55 S3 CC to Medieval CASPart Wrapper/source/CASPartResource/Properties/AssemblyInfo.cs 162 04-10-11 22:46 S3 CC to Medieval CASPart Wrapper/source/CASPartResource/Properties/AssemblyVersion.cs 31577 01-16-11 13:30 S3 CC to Medieval CASPart Wrapper/source/CASPartResource/SimOutfitResource.cs 35147 06-19-09 13:57 S3 CC to Medieval CASPart Wrapper/source/gpl-3.0.txt -------- ------- 217317 16 files |
||
Description: Use this one if you want to convert TS3 CC to Medieval | ||
Medieval CASPart Wrapperv1.0.1.zip (64.3 KB, 1502 downloads) - View custom content | ||
0 04-09-11 12:02 Medieval CASPart Wrapper/32bit/ 41472 04-10-11 11:50 Medieval CASPart Wrapper/32bit/s3pi.CASPartResource.dll 0 04-09-11 12:01 Medieval CASPart Wrapper/64bit/ 41472 04-10-11 11:50 Medieval CASPart Wrapper/64bit/s3pi.CASPartResource.dll 982 04-10-11 11:59 Medieval CASPart Wrapper/readme_medieval_caspart_wrapper.txt 0 04-09-11 12:04 Medieval CASPart Wrapper/source/ 0 04-09-11 12:11 Medieval CASPart Wrapper/source/CASPartResource/ 7059 04-10-11 11:48 Medieval CASPart Wrapper/source/CASPartResource/CASPartFlags.cs 33064 04-10-11 10:28 Medieval CASPart Wrapper/source/CASPartResource/CASPartResource.cs 5639 04-09-11 11:53 Medieval CASPart Wrapper/source/CASPartResource/CASPartResource.csproj 17602 01-16-11 13:30 Medieval CASPart Wrapper/source/CASPartResource/FaceClothingResource.cs 0 04-09-11 12:03 Medieval CASPart Wrapper/source/CASPartResource/Properties/ 1488 04-09-11 11:55 Medieval CASPart Wrapper/source/CASPartResource/Properties/AssemblyInfo.cs 162 04-10-11 11:50 Medieval CASPart Wrapper/source/CASPartResource/Properties/AssemblyVersion.cs 31577 01-16-11 13:30 Medieval CASPart Wrapper/source/CASPartResource/SimOutfitResource.cs 35147 06-19-09 13:57 Medieval CASPart Wrapper/source/gpl-3.0.txt -------- ------- 215664 16 files |
||
Description: Use this one if you only want to edit Medieval CASP files | ||
S3 CC to Medieval 2.0 CASPart Wrapper.zip (65.8 KB, 2390 downloads) - View custom content | ||
0 04-10-11 22:55 S3 CC to Medieval 2.0 CASPart Wrapper/32bit/ 41984 08-07-11 19:22 S3 CC to Medieval 2.0 CASPart Wrapper/32bit/s3pi.CASPartResource.dll 0 04-10-11 22:55 S3 CC to Medieval 2.0 CASPart Wrapper/64bit/ 41984 08-07-11 19:25 S3 CC to Medieval 2.0 CASPart Wrapper/64bit/s3pi.CASPartResource.dll 1701 08-07-11 19:40 S3 CC to Medieval 2.0 CASPart Wrapper/readme_medieval_caspart_wrapper.txt 0 04-10-11 22:55 S3 CC to Medieval 2.0 CASPart Wrapper/source/ 0 08-07-11 19:33 S3 CC to Medieval 2.0 CASPart Wrapper/source/CASPartResource/ 7639 08-07-11 19:00 S3 CC to Medieval 2.0 CASPart Wrapper/source/CASPartResource/CASPartFlags.cs 34621 08-07-11 19:22 S3 CC to Medieval 2.0 CASPart Wrapper/source/CASPartResource/CASPartResource.cs 5639 04-09-11 11:53 S3 CC to Medieval 2.0 CASPart Wrapper/source/CASPartResource/CASPartResource.csproj 17602 01-16-11 13:30 S3 CC to Medieval 2.0 CASPart Wrapper/source/CASPartResource/FaceClothingResource.cs 0 04-10-11 22:55 S3 CC to Medieval 2.0 CASPart Wrapper/source/CASPartResource/Properties/ 1488 04-09-11 11:55 S3 CC to Medieval 2.0 CASPart Wrapper/source/CASPartResource/Properties/AssemblyInfo.cs 162 08-07-11 19:25 S3 CC to Medieval 2.0 CASPart Wrapper/source/CASPartResource/Properties/AssemblyVersion.cs 31577 01-16-11 13:30 S3 CC to Medieval 2.0 CASPart Wrapper/source/CASPartResource/SimOutfitResource.cs 35147 06-19-09 13:57 S3 CC to Medieval 2.0 CASPart Wrapper/source/gpl-3.0.txt -------- ------- 219544 16 files |
||
Description: Use this one if you want to write Medieval 2.0 CASP files |
Advertisement
#2
21st Jun 2011 at 9:39 AM
Posts: 35
Oh look, a medieval caspart wrap...FANGIRL SQUEAL!!! OMG I LOVE YOUR ICON!!! IT'S SO KAWAII!!!
This is actually pretty cool though and I can't wait to have my dad install it.
This is actually pretty cool though and I can't wait to have my dad install it.
#4
4th Aug 2011 at 8:16 AM
Posts: 148
I am haveing a problem I downloaded the wapper so i can convert hairs. But its not working. I installed it as the readme said to but it is still reading the CASP as a normal sims 3 package and not a medieval package.I am not getting any kind of warning saying that it is not a medieval CASP.
I tried renameing the .dll and copying and pasteing and nothing.....I am wondering if it is because it needs the files in the sorce folder. i am not sure where to put that folder. any help would be nice
I tried renameing the .dll and copying and pasteing and nothing.....I am wondering if it is because it needs the files in the sorce folder. i am not sure where to put that folder. any help would be nice
#5
4th Aug 2011 at 11:30 PM
Posts: 902
Thanks: 32116 in 20 Posts
Which version of S3PE are you using? What did you rename the existing s3pi.CASPartResource.dll in your S3PE folder to? When you click on a CASP resource in S3PE, do you get info about the part in the preview panel or is it empty?
The source folder is not needed at all. It is only for developers who want to look at the code.
The source folder is not needed at all. It is only for developers who want to look at the code.
#6
6th Aug 2011 at 9:05 PM
Posts: 3,552
Thanks: 55573 in 750 Posts
The CASPart wrappers, both versions, will not read any of the CASPs in the Deltabuild2, which are either new stuff or remade stuff with the 2.0. Whereas CASP mods I have previously made and the CASPs in the SASFullbuild2 can be read fine. The Deltabuild gives the same error info in the rightside pane as previous to your wrappers' existence.
MedievalMods and Sims3mods: Dive Cave Reset Fix, Resort Revamp, Industrial Oven Revamp, Will O' Wisp fix, UI Sounds Disabled, No Cars, Gnome Family Planner, Townies Out on the Town, No Martial Arts Clothes, Fast Skilling, etc. http://simsasylum.com/tfm/
MedievalMods and Sims3mods: Dive Cave Reset Fix, Resort Revamp, Industrial Oven Revamp, Will O' Wisp fix, UI Sounds Disabled, No Cars, Gnome Family Planner, Townies Out on the Town, No Martial Arts Clothes, Fast Skilling, etc. http://simsasylum.com/tfm/
#7
6th Aug 2011 at 9:54 PM
Last edited by velocitygrass : 7th Aug 2011 at 6:51 PM.
Posts: 902
Thanks: 32116 in 20 Posts
@Shimrod101: Thanks for the heads-up. I haven't had time to patch Medieval yet. I will look into this, hopefully tomorrow.
ETA: I've added a Wrapper for 2.0 in the first post.
ETA: I've added a Wrapper for 2.0 in the first post.
#8
14th Aug 2011 at 7:39 PM
Posts: 3,552
Thanks: 55573 in 750 Posts
Thanks, the 2.0 Wrapper works fine on the DeltaBuild CASPs.
MedievalMods and Sims3mods: Dive Cave Reset Fix, Resort Revamp, Industrial Oven Revamp, Will O' Wisp fix, UI Sounds Disabled, No Cars, Gnome Family Planner, Townies Out on the Town, No Martial Arts Clothes, Fast Skilling, etc. http://simsasylum.com/tfm/
MedievalMods and Sims3mods: Dive Cave Reset Fix, Resort Revamp, Industrial Oven Revamp, Will O' Wisp fix, UI Sounds Disabled, No Cars, Gnome Family Planner, Townies Out on the Town, No Martial Arts Clothes, Fast Skilling, etc. http://simsasylum.com/tfm/
#9
15th Aug 2011 at 6:05 PM
Posts: 902
Thanks: 32116 in 20 Posts
Great. Thanks for letting me know!
#10
22nd Aug 2011 at 4:18 PM
Posts: 13
Can someone explain to me where to put the source files? It may just be too early in the morning for me to try this, but I am completely confused. Thanks!
#11
22nd Aug 2011 at 6:24 PM
Posts: 902
Thanks: 32116 in 20 Posts
The source folder is not needed for editing CASP files in S3PE. It is only for developers who want to look at the code.
You only need to:
- Make a backup of s3pi.CASPartResource.dll in your S3PE installation folder (you can also rename it, but make sure to change the extension so that it is not loaded)
- Copy the fitting .dll (32bit or 64bit) into your S3PE installation folder
You only need to:
- Make a backup of s3pi.CASPartResource.dll in your S3PE installation folder (you can also rename it, but make sure to change the extension so that it is not loaded)
- Copy the fitting .dll (32bit or 64bit) into your S3PE installation folder
Test Subject
#12
17th Jan 2012 at 8:18 PM
Posts: 1
Thank you~~
#13
11th Mar 2012 at 8:57 AM
Posts: 575
Thanks: 4728 in 63 Posts
Works great for all other files, but does not for P&N's fullbuild package.
#14
11th Mar 2012 at 12:38 PM
Posts: 902
Thanks: 32116 in 20 Posts
Hmm, I just installed P&N and I can see the info and grid button on the casp resources. What specifically doesn't work for you? And which resource if it's a specific one that fails?
Test Subject
#15
5th Apr 2012 at 4:09 PM
Posts: 2
umm.. i have done everything as instructed, i downloaded the latest version of s3pe, and the S3 CC to Medieval CASPart Wrapper, but somehow it doesnt work , i searched the forums but i didnt find a solution .
here is a screen of the problem:
here is a screen of the problem:
Test Subject
#16
6th Apr 2012 at 1:30 AM
Posts: 7
I had the same problem with the newest version of the s3pe, but the wrapper worked for an older version of s3pe.
#17
6th Apr 2012 at 3:21 PM
Posts: 902
Thanks: 32116 in 20 Posts
Dinka13, I got the same result when I used the 32bit .dll in on my 64bit Windows 7 system. But it works with the 64bit .dll. I tested with S3PE 12-0114-2320.
Test Subject
#18
6th Apr 2012 at 4:31 PM
Posts: 2
i tried it but it still didnt work , so i decided to check the box in the S3PE and in the wrapper that it will always run the programms as administrator , now it works
thank you for your help C: and for the wrapper :D
thank you for your help C: and for the wrapper :D
#19
10th Mar 2013 at 1:29 AM
Posts: 24
This is the error I'm getting:
Error reading resource 0x034AEECB-0x01000000-0x89BDFEADE6120B47
Front-end Distribution: 13-0226-1754
Library Distribution: 13-0226-1754
Source: mscorlib
Assembly: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Could not load type 's3pi.Interfaces.DataGridExpandableAttribute' from assembly 's3pi.Interfaces, Version=1302.26.1753.32192, Culture=neutral, PublicKeyToken=null'.
----
Stack trace:
at System.ModuleHandle.ResolveType(RuntimeModule module, Int32 typeToken, IntPtr* typeInstArgs, Int32 typeInstCount, IntPtr* methodInstArgs, Int32 methodInstCount, ObjectHandleOnStack type)
at System.ModuleHandle.ResolveTypeHandleInternal(RuntimeModule module, Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext)
at System.ModuleHandle.ResolveTypeHandle(Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext)
at System.Reflection.RuntimeModule.ResolveType(Int32 metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)
at System.Reflection.CustomAttribute.FilterCustomAttributeRecord(CustomAttributeRecord caRecord, MetadataImport scope, Assembly& lastAptcaOkAssembly, RuntimeModule decoratedModule, MetadataToken decoratedToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, Object[] attributes, IList derivedAttributes, RuntimeType& attributeType, IRuntimeMethodInfo& ctor, Boolean& ctorHasParameters, Boolean& isVarArg)
at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes, Boolean isDecoratedTargetSecurityTransparent)
at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimePropertyInfo property, RuntimeType caType)
at s3pi.Interfaces.AApiVersionedFields.Version(Type attribute, Type type, String field)
at s3pi.Interfaces.AApiVersionedFields.checkVersion(Type type, String field, Int32 requestedApiVersion)
at s3pi.Interfaces.AApiVersionedFields.GetContentFields(Int32 APIversion, Type t)
at S3PIDemoFE.MainForm.hasValueContentField()
at S3PIDemoFE.MainForm.getValueControl()
----
Error reading resource 0x034AEECB-0x01000000-0x89BDFEADE6120B47
Front-end Distribution: 13-0226-1754
Library Distribution: 13-0226-1754
Source: mscorlib
Assembly: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
Could not load type 's3pi.Interfaces.DataGridExpandableAttribute' from assembly 's3pi.Interfaces, Version=1302.26.1753.32192, Culture=neutral, PublicKeyToken=null'.
----
Stack trace:
at System.ModuleHandle.ResolveType(RuntimeModule module, Int32 typeToken, IntPtr* typeInstArgs, Int32 typeInstCount, IntPtr* methodInstArgs, Int32 methodInstCount, ObjectHandleOnStack type)
at System.ModuleHandle.ResolveTypeHandleInternal(RuntimeModule module, Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext)
at System.ModuleHandle.ResolveTypeHandle(Int32 typeToken, RuntimeTypeHandle[] typeInstantiationContext, RuntimeTypeHandle[] methodInstantiationContext)
at System.Reflection.RuntimeModule.ResolveType(Int32 metadataToken, Type[] genericTypeArguments, Type[] genericMethodArguments)
at System.Reflection.CustomAttribute.FilterCustomAttributeRecord(CustomAttributeRecord caRecord, MetadataImport scope, Assembly& lastAptcaOkAssembly, RuntimeModule decoratedModule, MetadataToken decoratedToken, RuntimeType attributeFilterType, Boolean mustBeInheritable, Object[] attributes, IList derivedAttributes, RuntimeType& attributeType, IRuntimeMethodInfo& ctor, Boolean& ctorHasParameters, Boolean& isVarArg)
at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimeModule decoratedModule, Int32 decoratedMetadataToken, Int32 pcaCount, RuntimeType attributeFilterType, Boolean mustBeInheritable, IList derivedAttributes, Boolean isDecoratedTargetSecurityTransparent)
at System.Reflection.CustomAttribute.GetCustomAttributes(RuntimePropertyInfo property, RuntimeType caType)
at s3pi.Interfaces.AApiVersionedFields.Version(Type attribute, Type type, String field)
at s3pi.Interfaces.AApiVersionedFields.checkVersion(Type type, String field, Int32 requestedApiVersion)
at s3pi.Interfaces.AApiVersionedFields.GetContentFields(Int32 APIversion, Type t)
at S3PIDemoFE.MainForm.hasValueContentField()
at S3PIDemoFE.MainForm.getValueControl()
----
#20
10th Mar 2013 at 6:12 AM
Posts: 580
Thanks: 1568 in 13 Posts
I've had issues witht he newest S3PE and the CASP wrapper. I'm running 11-1001-1447 . I've heard of others running slightly newer versions, but this is the one I use.
#21
10th Mar 2013 at 11:26 PM
Posts: 339
I was not able to use the wrapper with the newest version, what worked for me was to use an older version of S3PE and the wrapper. I hope this helps you.
#22
11th Mar 2013 at 5:05 AM
Posts: 24
I'm getting really confused.
#23
11th Mar 2013 at 5:10 AM
Posts: 24
I went back to try to download an older version of S3PE like you said but I couldn't figure out how to just download an old version.
#24
11th Mar 2013 at 9:00 AM
Last edited by ChickieTeeta : 11th Mar 2013 at 9:15 AM.
Posts: 1,350
Thanks: 43 in 1 Posts
Quote: Originally posted by amoredidanza
I went back to try to download an older version of S3PE like you said but I couldn't figure out how to just download an old version. |
Try the link below. This is the one I still use. I've never tried updating it since this version, but I've used this version on a 32 bit system and now on a 64 bit system, with no problems.
sourceforge.net/projects/sims3tools/files/s3pe/OldReleases/s3pe/12-0222-2102
#25
11th Mar 2013 at 7:45 PM
Posts: 24
I got the version working, now I just can't get the hair showing in game. Thanks guys!
Who Posted
|