Jump to content

Looking for automated XML editor.


Recommended Posts

Posted

So, after getting the build i want i decided to go for smaller problems that pestered it. First on the list is the infamous HDT stretch/invisibility bug.  After a little time with google, i found a solution posted by dgrx, wich involves setting maxLinearVelocity and maxAngularVelocity to 255. While fix worked wonders for me, the sheer amount of HDT enabled stuff that require such edits makes an idea of manually editing all of them daunting. Since dgrx's post is back from 2016, maybe there is a more automated way to solve the problem? Logic behind such script doesnt seem to complicated. Unfortunately for me, even the simpliest scripting is outside of my capabilities.

 Ill attach an archive with edited XMLs for Dint999 HDT hair pack (KS-SG 03072019) in case someone wants them.

PS - i have little understanding of how HDT actually works, solution worked for me, but there are no guarantees, use at your own risk, and keep backup xmls.

Dint999 Hair pack tweaked xml.rar

Posted

Use Notpad++ https://notepad-plus-plus.org

Search >> Find in Files

Find what : (?<=name="maxLinearVelocity")(.*?)(<hkparam name="value">)(.*?)(</hkparam>)
Replace with : \1\2255\4

and

Find what : (?<=name="maxAngularVelocity")(.*?)(<hkparam name="value">)(.*?)(</hkparam>)
Replace with : \1\2255\4

 

or

 

Find what : (?<=name="maxLinearVelocity")(.*?)(<hkparam name="value">)(.*?)(</hkparam>)(.*?)(<hkparam name="value">)(.*?)(</hkparam>)

Replace with : \1\2255\4\5\6255\8

 

Dont forget to backup ?

 

*updated

  • 1 month later...
Posted
On 2/16/2020 at 3:08 AM, Swe-DivX said:

Use Notpad++ https://notepad-plus-plus.org

Search >> Find in Files

Find what : (?<=name="maxLinearVelocity")(.*?)(<hkparam name="value">)(.*?)(</hkparam>)
Replace with : \1\2255\4

and

Find what : (?<=name="maxAngularVelocity")(.*?)(<hkparam name="value">)(.*?)(</hkparam>)
Replace with : \1\2255\4

 

or

 

Find what : (?<=name="maxLinearVelocity")(.*?)(<hkparam name="value">)(.*?)(</hkparam>)(.*?)(<hkparam name="value">)(.*?)(</hkparam>)

Replace with : \1\2255\4\5\6255\8

 

Dont forget to backup ?

 

*updated

 

Did either of these work for anyone else?
 

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...