The forum has been set to read-only mode. For community discussion and questions, head over to our Discord: https://discord.taleoftwowastelands.com

**RELEASED V2** FNVedit script to Change AR to DT

General mod discussion and requests.
Blisst
Posts: 28
Joined: Sun Jan 26, 2014 3:18 pm

sweet.. i'll play with it

Post by Blisst » Mon Jan 27, 2014 6:33 pm

sweet.. i'll play with it tonight and let you know how it does



Blisst
Posts: 28
Joined: Sun Jan 26, 2014 3:18 pm

Delta, didn't work... 2

Post by Blisst » Tue Jan 28, 2014 2:32 am

Edit - New version released here: http://taleoftwowastelands.com/comment/18266#comment-18266



Delta, didn't work... 2 issues:


1) the path format was not what was expected.


2) once the path format is corrected: for some reason it's multiplying output values by 100


 


 


I can't express how much help that script was. I was beating my head against the wall for hours trying to find documentation on the scripting for xEdit, but having a simple script with a known expected result allowed me to start comprehending the language. Basically you made me a rosetta stone.


YOU ROCK!


 


So here's the finished version of the script I wrote as I was figuring out what wasn't working with yours. It basically started it's life as an attempt to et some debug output from yours, and grew from there.


 


THANK YOU!


 



--edit-- it occurs to me having the documentation next to the file would be handy... so here it is



This was all possible thanks to delta534 on TTW!


Description:


By default this script will convert Fo3 ARMO and ARMA record AR values to a more FNV balance appropriate DT value for use in TTW.


Installation:


Drop file in your FNVedit "Edit Scripts" directory.


Usage for TTW:


Complete the normal conversion process outlined on the TTW site.


Open your mod in GECK, view an armor or armor addon record in GECK and save. (GECK will enable editing of the new record value on save.)


Open your plugin in FNVedit.


Right click on your plugin and apply script.


Select this script from the dropdown and click OK.


Watch output messages in the message panel.


When you see "[Apply Script done]" in the message panel, review your changes and save if you're happy with them.


Advanced:


CONrat (Default 0.5266) is the ratio to apply to the AR-DT conversion process, and may be edited by the user if they're not happy with the default conversion ratio.


ARMOtogg (Default 1) is a toggle to process (1) or skip (0) processing of ARMO (Armor) records.


ARMAtogg (Default 1) is a toggle to process (1) or skip (0) processing of ARMA (Armor Addon) records.


Legal:


Use at your own Risk! User is responsible for any damages as a result of this script!


This file may be distributed freely by TTW staff in any TTW distribution, or used as partial source for any TW project.


This file may be distributed freely as a packaged script within FNVedit (or other TESedit derivatives).


If you would like permission to host this elsewhere contact please contact Blisst via the TTW site, or nexusmods.


delta534
Posts: 71
Joined: Mon Feb 25, 2013 8:33 am

Glad I could help you get

Post by delta534 » Tue Jan 28, 2014 2:52 am

Glad I could help you get started. I figured I screwed something up. I just threw the script together in a few minutes, I did not test it at all, and I always seem to screw up paths. 


Most of my scripting knowledge comes from learning PASCAL in high school, this page http://www.creationkit.com/TES5Edit_Scripting_Functions, the sample scripts, and experimentation. 



Greslin
Posts: 72
Joined: Thu Jan 02, 2014 3:13 am

Nice script.  I was just

Post by Greslin » Tue Jan 28, 2014 3:10 am

Nice script.  I was just starting to try debugging the first version of the script when y'all beat me to it. :)


One comment.  You might want to put if-then conditioning that skips the process if the AR is already at 0, else you could easily end up with armor at AR 0 and DT 0.  This can happen if you rerun the script on data already crunched, or if you happen to be running it on a ESP combo of FO3/FNV armors (as I did).  It's an easy couple of lines and it makes the script damned near perfect.


Nice job and thanks!


"Is there panic when it starts turning dark

And when evening shadows creep, do I lose any sleep over you?"

- Ink Spots, "Do I Worry"



Blisst
Posts: 28
Joined: Sun Jan 26, 2014 3:18 pm

omg i knew there had to be

Post by Blisst » Tue Jan 28, 2014 3:13 am

omg i knew there had to be reference somewhere... but for the life of me i couldn't find it..


that helps immensely


perhaps with that i'll be able to figure out how to skip the open it in geck to enable the new data structures step because it's kind of a PITA doing that with SO MANY masters loaded.


 



Greslin
Posts: 72
Joined: Thu Jan 02, 2014 3:13 am

Ack.. I spoke too soon.  I'm

Post by Greslin » Tue Jan 28, 2014 3:20 am

Ack.. I spoke too soon.  I'm getting a lot of "DT is uneditable" errors, particularly with clothing/armor with AR's in the 20+ range.  I don't know enough about FNVEdit scripting to know why that error would be generating, or how to fix it.


Any thoughts, guys?


 


"Is there panic when it starts turning dark

And when evening shadows creep, do I lose any sleep over you?"

- Ink Spots, "Do I Worry"



Blisst
Posts: 28
Joined: Sun Jan 26, 2014 3:18 pm

did you load your mod in geck

Post by Blisst » Tue Jan 28, 2014 3:31 am

did you load your mod in geck before trying the script?


fo3 mods have a different data structure that doesn't include slot for DT.


Open your mod in geck... take a look at ANY ARMOR entry and save the plugin


This forces geck to rebuild the mod to include the new structures.


 


then the script should work in fnvedit


I don't know of any other way to do this.... yet.. but i'm researching



Greslin
Posts: 72
Joined: Thu Jan 02, 2014 3:13 am

Yeah, I just figured that one

Post by Greslin » Tue Jan 28, 2014 3:32 am

Yeah, I just figured that one out. :)  Please pardon the brain fart.


Working like a charm here.  Thanks again.


"Is there panic when it starts turning dark

And when evening shadows creep, do I lose any sleep over you?"

- Ink Spots, "Do I Worry"



Blisst
Posts: 28
Joined: Sun Jan 26, 2014 3:18 pm

No problemo.. but once again.

Post by Blisst » Tue Jan 28, 2014 3:47 am

No problemo.. but once again... Delta made this all possible.. send thanks his way 8)


 



Blisst
Posts: 28
Joined: Sun Jan 26, 2014 3:18 pm

Version 2.

Post by Blisst » Tue Feb 04, 2014 10:34 am

Version 2.


Re-write to incorporate toggle to skip records that already contain DT values for mods where authors have don manual "touches" to specific armors. New toggle constant is: SkipRecordsWithDT (Default 1)


{

 This was all possible thanks to delta534 on TTW!

 

 Description:

 By default this script will convert Fo3 ARMO and ARMA record AR values to a more FNV balance appropriate DT value for use in TTW.

 

 Installation:

 Drop file in your FNVedit "Edit Scripts" directory.

 

 Usage for TTW:

 Complete the normal conversion process outlined on the TTW site.

 Open your mod in GECK, view an armor or armor addon record in GECK and save. (GECK will enable editing of the new record value on save.)

 Open your plugin in FNVedit.

 Right click on your plugin and apply script.

 Select this script from the dropdown and click OK.

 Watch output messages in the message panel.

 When you see "[Apply Script done]" in the message panel, review your changes and save if you're happy with them.

 

 Advanced:

 CONrat (Default 0.5266) is the ratio to apply to the AR-DT conversion process, and may be edited by the user if they're not happy with the default conversion ratio.

 ProcessARMOrecords (Default 1) is a toggle to process (1) or skip (0) processing of ARMO (Armor) records.

 ProcessARMArecords (Default 1) is a toggle to process (1) or skip (0) processing of ARMA (Armor Addon) records.

 SkipRecordsWithDT (Default 1) is to skip processing of records with NONzero DT values.


 

 Legal:

 Use at your own Risk! User is responsible for any damages as a result of this script!

 This file may be distributed freely by TTW staff in any TTW distribution, or used as partial source for any TW project.

 This file may be distributed freely as a packaged script within FNVedit (or other TESedit derivatives).

 If you would like permission to host this elsewhere contact please contact Blisst via the TTW site, or nexusmods.

}


 


Permssion granted for Gribbleshnibit8 to redistribute with his FNVEdit script package on nexus. (original and V2)



Post Reply