How to edit Custom Data when releasing a mod (1 Viewer)

SyntaxTerror

Content Creator
Joined
Jul 24, 2014
Hello

This is a little tutorial explaining artists and modders how to choose the parameters to add to hair mods so the users will ba able to get the character basic characteristics (i.e. Eyebrow colour, Breast size, clothes, etc.) without changing His clothes, the positions or the background for example.

To get this Custom Data, go in the Modding tab and click on the Generate button of the Custom Data section (middle top).
The code will be displayed in the input box above. Select it all (Ctrl+A) and copy it (Ctrl+C). Now you can paste it (Ctrl+V) next to your hair mod.

The unnecessary parts to remove are indicated in orange on this example Custom Data. The part in yellow can be removed if clothes do not need to be modified:
charName:Example;mood:Normal;bodyScale:1;arms:onlegs,onlegs;throatResist:50;hair:sdchan,1,1;iris:normal,56,100,137,1;breasts:70;skin:light;nose:normal;ear:normal;lipstick:0,0,0,0,0;eyeshadow:55,26,99,1;sclera:255,255,255,1;blush:196,80,77,0.35;freckles:60,24,24,0.8,0;mascara:0,0,0,1,20;nailpolish:0,0,0,0;eyebrow:normal,89,67,51,1,0,0,0,1;hairhsl:0,1,1,1;skinhsl:0,1,1,1;hisskinhsl:0,1,1,1;bg:3;hisBody:male;hisPenis:1,0.7,0.7;balls:1,0.604;hisSkin:0;hisTop:shirt,82,0,6,1;hisBottoms:slacks,0,0,0,1;hisFootwear:loafers,0,0,0,1;collar:none,0,0,0,1,232,240,255,1;cuffs:none,0,0,0,1,255,255,255,1;gag:none,0,0,0,1;panties:none,255,255,255,1;top:none,255,255,255,1;armwear:none,0,0,0,1;legwear:none,0,0,0,1,0,26,114,1;footwear:none,0,0,0,1,255,255,255,1;eyewear:none,0,0,0,1;headwear:none,179,124,55,1,62,142,193,1;tonguePiercing:none,183,187,195,1;herTan:none,0.49;customBG:Mods/Background/Example.png

To edit easily Custom Datas, I made a script that removes everything not needed, with the option to keep clothes and accessories: Custom Data Cleaner (may be recognised by your antivirus as a securtiy threat/malware)
Just copy the Custom Data from SDT, run Custom Data Cleaner.exe, and paste the edited result.

custom-data-cleaner-example-jpg.63796

This script have been made using AutoHotkey and a RegEx.
The source codes are:
If RegExMatch(clipboard,"i).*?(bodyScale:[0-9\.]*;).*?(iris:.*?)hisskinhsl.*?(collar.*?herTan:[a-z,\.0-9]*).*")
{ MsgBox, 4,, Do you want to keep Her clothes and accessories?
IfMsgBox, Yes
{
clipboard := RegExReplace(clipboard,"i).*?(bodyScale:[0-9\.]*;).*?(iris:.*?)hisskinhsl.*?(collar.*?herTan:[a-z,\.0-9]*).*","$1$2$3")
MsgBox, Edited Custom Data (with clothes and accessories):`n`n%clipboard%`n`nThis code is already copied in your clipboard.
}
else
{
clipboard := RegExReplace(clipboard,"i).*?(bodyScale:[0-9\.]*;).*?(iris:.*?)hisskinhsl.*?(herTan:[a-z,\.0-9]*).*","$1$2$3")
MsgBox, Edited Custom Data (without clothes and accessories):`n`n%clipboard%`n`nThis code is already copied in your clipboard.
}
}
else
MsgBox, Clipboard does not contains full Custom Data.`n`nCopy it from the `"Modding`" tab:`nHit the `"Generate`" button in the `"Custom Data`" section.
Return
Keep clothes and accessories:
Find:
.*?(bodyScale:[0-9\.]*;).*?(iris:.*?)hisskinhsl.*?(collar.*?herTan:[a-z,\.0-9]*).*
Replace:
$1$2$3
Do not keep clothes and accessories:
Find:
.*?(bodyScale:[0-9\.]*;).*?(iris:.*?)hisskinhsl.*?(herTan:[a-z,\.0-9]*).*
Replace:
$1$2$3

See also:
  • This Loader version that features positions which allow to take neat screenshots of your mods.
  • This tread that has more info about SDT screenshots.
  • This software that may also be helpful for screenshots.
Good luck.
 
Last edited:

SyntaxTerror

Content Creator
Joined
Jul 24, 2014
I upgraded the script:
  • An option to keep clothes and accessories or not has been added.
  • The script recognises if the clipboard contains a full Custom Data or not.
  • The result is displayed in a message box.
  • The EXE file has been improved with mPress.
 

Users who are viewing this thread

Top


Are you 18 or older?

This website requires you to be 18 years of age or older. Please verify your age to view the content, or click Exit to leave.