CREATE and FUCK your own AI GIRLFRIEND TRY FOR FREE
x

VAM VaM Chinese Vars Fixing Tool [V3] [Boss963]

Boss963

Snake
Uploader
Oct 7, 2022
2,829
15,734
HowTo.gif

This is the third version of Chinese Vars Fixing Tool, which I initially created to fix Chinese vars not working for western VaM users. It uses library to extract Chinese vars using encoding "GB2312", then it packs the vars again using UTF-8 encoding.

Third version comes with many additional options:
- You can now drop entire folders or creator's folder, it will loop through each var and fix it.
- You can now overwrite vars (original vars will be deleted and fixed ones will replace them).
- You can now remove clothes / hair / RG Morphs / hands grasp / Ashly morphs or even use custom deletion.
- If a var is corrupted or having header issues, it will continue extraction and create a new one with no issues.
How to:
You don't have permission to view the spoiler content. Log in or register now.

Symptoms you have a Chinese var causing issues:
You don't have permission to view the spoiler content. Log in or register now.

Notes:
You don't have permission to view the spoiler content. Log in or register now.

Download
V3 Exe: - -
V3 Source Code: - -
 
Last edited:

Boss963

Snake
Uploader
Oct 7, 2022
2,829
15,734
For VaM users, download the exe file from download links.
 
Last edited:

HeyS7atoRu

Newbie
Oct 31, 2020
23
2
Thank You So Much Sir. Respect for you.

But is there a way to reduce the size. Like you did on some of your posts before.
Thanks again.
 
Dec 31, 2017
151
183
chad bossman, mind if i suggest an option to auto delete old vars? Imma run this thru all 30k vars, its up to 1.4 tb now....
 
Last edited:
  • Like
Reactions: Boss963

fectah12

Member
Dec 20, 2022
233
1,298
Works like a charm, amazing job, Boss!

If you don't mind feature requests, I would love to see it go a step further with an option to sanitize special characters inside the var. I've had some success doing this with a python script replacing the non alphanumeric characters with hex but there's probably a more elegant solution to be found.

For example, even with the fixed encoding, text like "!!!!!!!!美瞳+睫毛+化妆+阴毛+舌头" in the paths breaks VAM loading content on first try and shows up as � � � (though its fine if you manually set it)
 

Boss963

Snake
Uploader
Oct 7, 2022
2,829
15,734
Works like a charm, amazing job, Boss!

If you don't mind feature requests, I would love to see it go a step further with an option to sanitize special characters inside the var. I've had some success doing this with a python script replacing the non alphanumeric characters with hex but there's probably a more elegant solution to be found.

For example, even with the fixed encoding, text like "!!!!!!!!美瞳+睫毛+化妆+阴毛+舌头" in the paths breaks VAM loading content on first try and shows up as � � � (though its fine if you manually set it)
I can include such a function but this will break dependencies along the way, for example the text you mentioned ""!!!!!!!!美瞳+睫毛+化妆+阴毛+舌头"" is used only in Dnaddr vars and it doesn't cause issues or break vam, if you change the name, any var that reference skin textures from this Dnaddr var, will break and you will have to edit its scene.json and change the path to the new one. Let me know what you think, also if there is a var that does not work with this tool, make sure you type its name.
 

fectah12

Member
Dec 20, 2022
233
1,298
I can include such a function but this will break dependencies along the way, for example the text you mentioned ""!!!!!!!!美瞳+睫毛+化妆+阴毛+舌头"" is used only in Dnaddr vars and it doesn't cause issues or break vam, if you change the name, any var that reference skin textures from this Dnaddr var, will break and you will have to edit its scene.json and change the path to the new one. Let me know what you think, also if there is a var that does not work with this tool, make sure you type its name.
Yeah it does break references to other vars if they have chinese characters too but work fine otherwise. What I have goes into any of the text files inside the var and replaces the characters there as well. Maybe the easier long-term solution is to implement better character support in VAM via a plugin. Thanks for giving it a thought!
 

Boss963

Snake
Uploader
Oct 7, 2022
2,829
15,734
[Update: V3]
Third version comes with many additional options:
- You can now drop entire folders or creator's folder, it will loop through each var and fix it.
- You can now overwrite vars (original vars will be deleted and fixed ones will replace them).
- You can now remove clothes / hair / RG Morphs / hands grasp / Ashly morphs or even use custom deletion.
- If a var is corrupted or having header issues, it will continue extraction and create a new one with no issues.

For more details and usage examples, read the "How to" section in the OP

 

Anand Neemish

Newbie
Apr 19, 2022
55
61
Boss, you are THE MAN. Thanks for this and everything you've done. I just used your V3 tool to clean up a bunch of stuff. It works great.

I just want to report a couple of issues I ran into:

1. There is a look called qiaqia.脏妆姐.1.var. I ran it through your CVFT and it shows up in VAM's native browser. However, it does not show nor load properly through JayJayWon's Browser Assist nor through sfishere's VAR Browser. I went and manually changed the filename and also updated the meta.json to this name: "ZangZhuangJie" which is just the pinyin for the CH characters. This worked for all the browsers - meaning the VAR shows up properly and successfully loads.

2. Secondly I ran into this case with qiaqia.Qingyan.1.var. The filename as downloaded is already in pinyin. However, the enclosed meta.json refers to "qiaqia.清妍.1.var". I ran this through your tool, but it seems it did not rationalize the disconnect (the file name being different from the meta.json). So obviously this file was not fixed. I manually changed the filename to the CH characters, and it appears and can be loaded.

These may be boundary cases, but just wanted to flag them to your attention.
 
  • Like
Reactions: Boss963
Dec 31, 2017
151
183
Boss, you are THE MAN. Thanks for this and everything you've done. I just used your V3 tool to clean up a bunch of stuff. It works great.

I just want to report a couple of issues I ran into:

1. There is a look called qiaqia.脏妆姐.1.var. I ran it through your CVFT and it shows up in VAM's native browser. However, it does not show nor load properly through JayJayWon's Browser Assist nor through sfishere's VAR Browser. I went and manually changed the filename and also updated the meta.json to this name: "ZangZhuangJie" which is just the pinyin for the CH characters. This worked for all the browsers - meaning the VAR shows up properly and successfully loads.

2. Secondly I ran into this case with qiaqia.Qingyan.1.var. The filename as downloaded is already in pinyin. However, the enclosed meta.json refers to "qiaqia.清妍.1.var". I ran this through your tool, but it seems it did not rationalize the disconnect (the file name being different from the meta.json). So obviously this file was not fixed. I manually changed the filename to the CH characters, and it appears and can be loaded.

These may be boundary cases, but just wanted to flag them to your attention.
nah, qiaqia's vars are fked natively, some bro uploaded the entire collection on the request thread and only half of them are actually loadable
 

Boss963

Snake
Uploader
Oct 7, 2022
2,829
15,734
Boss, you are THE MAN. Thanks for this and everything you've done. I just used your V3 tool to clean up a bunch of stuff. It works great.

I just want to report a couple of issues I ran into:

1. There is a look called qiaqia.脏妆姐.1.var. I ran it through your CVFT and it shows up in VAM's native browser. However, it does not show nor load properly through JayJayWon's Browser Assist nor through sfishere's VAR Browser. I went and manually changed the filename and also updated the meta.json to this name: "ZangZhuangJie" which is just the pinyin for the CH characters. This worked for all the browsers - meaning the VAR shows up properly and successfully loads.

2. Secondly I ran into this case with qiaqia.Qingyan.1.var. The filename as downloaded is already in pinyin. However, the enclosed meta.json refers to "qiaqia.清妍.1.var". I ran this through your tool, but it seems it did not rationalize the disconnect (the file name being different from the meta.json). So obviously this file was not fixed. I manually changed the filename to the CH characters, and it appears and can be loaded.

These may be boundary cases, but just wanted to flag them to your attention.
I didn't include the capability to detect incorrect var names and fix them, this option is available in SharpVamSearchingTools, though it's a small 20-30 lines of code, I may add it later.

I don't use JayJayWon's Browser Assist, or sfishere's. Both need to adjust their source code to handle Chinese vars properly. For me to fix this issue, it would be fixing Browser Assist & sfishere's and make alternative versions that work with Chinese vars, don't think I would do that, I am kinda running short on time.