Please use the latest template generator in Miscellaneous files to submit issues on my xEdit Scripts.
Known Issue On xEdit running for non-Steam version of Skyrim, the following error is raised on executing an xEdit Script which depends on other scripts:
Cannot open file "/path/to/dependency/script.pas". The system cannot find the path specified.
The symbolic link workaround BellCubeDev described there might be help: https://github.com/TES5Edit/TES5Edit/issues/1043#issuecomment-1325509971 The command works on Windows Command Prompt: Win+R, type cmd, copy and paste the command in the link, and execute it there. The arguments for xEdit should be also adjusted properly with the workaround.
Note that I have a primitive workaround for this issue, but it would take some efforts and not in high priority for me. Please track the scripts that you wish to use until the day comes. Also, I welcome any simple workarounds for this issue.
It appears that the copy records to clipboard script will only work on the x86 version of xEdit? I was running into the "Exception in unit utdnGui line 91: [EConvertError] Format 'Parent width:%d' invalid or incompatible with argument" error that I see referenced in other comments here, and couldn't figure out why as it had been working on a previous install/modlist. Then I realized that the one environment change was I had switched to using the x64 version due to running into memory limitation errors (I'm rebuilding a modlist and sometimes has a lot of temporary stuff enabled for testing). Switching back to running the x86 version and lo and behold, the script works as expected again:
Running xEdit 4.1.5f, using the same arguments for both:
I cant get it to work but ill just comment on your use of instruction.
"Unpack and put the folder "utdnLib" into the "Edit Scripts" in your xEdit folder."
1.) You say "Unpack" but you dont say what to unpack so the confusion of do you unpack the 7z file or do you unpack the folder into the directory? You can see how that can lead to confusion and also problems
2.) you say "put the folder "utdnLib" into the edit scripts folder" but the folder is named utdnlib2 so the confusion here is if the folder isn't unpacked into the edit scripts folder do you rename the folder utdnlib instead of utdnlib2 so the scripts recognize it?.
3.) you say "Edit Scripts" in your xEdit folder." you dont specify whether edit scripts is a folder.
How you should word it
""Unpack the 7z and put the folder "utdnLib2" into the "Edit Scripts" folder within your xEdit folder.""
anyway i have tried all options but i am pretty sure it might just not work for mod organizer either way.
Hello, I'm encountering an issue while using this. After reading some comments, it seems the problem might be due to my customized Game Root. My game is the Steam version, but the modlist was installed through Wabbajack. Is there a way to resolve this ?
My arguments -D:"D:\ANVIL\Game Root\Data" -IKnowWhatImDoing
Template Generator: Generate Issue Template 1.1.0 Data Path:D:\ANVIL\Game Root\Data\ Scripts Path:D:\ANVIL\Tools\xEdit\Edit Scripts\ xEdit Title:SSEEdit 4.1.5f x64 xEdit Type:SSE xEdit Version:4.1.5f xEdit CmdLine:D:\ANVIL\Tools\xEdit\SSEEdit.exe "-D:D:\ANVIL\Game Root\Data" [00:00] Exception in unit GenerateIssueTemplate line 123: [Exception] Your xEdit seems to be unstable version. Please try with the stable release version of xEdit from Nexus. If you don't download it yet, grab it from the URL: https://www.nexusmods.com/skyrimspecialedition/mods/164 [00:00] Aborted: Applying script "[utdn] _Generate Issue Template" Error Message [00:00] Start: Applying script "[utdn] Copy Records to Clipboard" [00:00] Exception in unit utdnGui line 91: [EConvertError] Format 'Parent width:%d' invalid or incompatible with argument [00:00] Aborted: Applying script "[utdn] Copy Records to Clipboard"
Hmm, I admit the problematic line (not the line 83, actually) is deprecated to be removed in a development stage, but I don’t see why the error is raised now. The line has been already inserted on v1.0.0. And I could not reproduce the error either on xEdit v4.0.4 or v4.1.5. Logically the line could not raise any errors…
Well, please try utdnLib v2.3.1. Make sure to overwrite all the old files. Thank you for the bug report :)
Will do, thanks. I don't know why it's misbehaving now as well. I've been using your lib and scripts ever since you released it. Always keeping up with the updates and all. But I'll admit it's the first time trying to use them in 4.1.5, so maybe it's something on ssedit end.
I just installed you Copy FormID.. to Clipboard script, as well as this required library. I have the latest versions of both, and also get the same error.
[00:00] Exception in unit utdnGui line 83: [EConvertError] Format 'Parent width:%d' invalid or incompatible with argument
The problem seems to stem from using %d instead of %s in the various _debugMessageF() lines in Gui.pas. The various objects, [parent.Width] are being interpreted as strings, not numbers. I changed all of them to %s in my local copy and it is working now.
I cannot reproduce the bug on _debugMessageF(), even on xEdit v4.1.5. I don’t understand why the %d→%s workaround works there either??? That only causes error in my environment, and it's natural behavior on the specification. To narrow down the cause of the problem, could you give me the arguments of xEdit. For example, I set the following arguments: -l:japanese -tes5vr -IKnowWhatImDoing -AllowMasterFilesEdit Note that xEdit without no args cannot reproduce the bug either. I have to reproduce the bug at first.
Sorry, for some reason Nexus didn't notify me of your reply, otherwise, I would have responded earlier. No arguments on xEdit. However, I have been using an experimental release, 4.1.4d. Executable renamed to SEEdit64.exe, launched from MO2. Hope that helps.
I installed a fresh xEdit, version 4.1.5a. Renamed the executable to SSEEdit. Downloaded the latest versions of your scripts and tried the formid copy. Script still generates an error.
[00:00] Start: Applying script "[utdn] Copy EditorID, FormID, or Display Name, to Clipboard" [00:00] Exception in unit utdnUtils line 56: [EConvertError] Format 'Input Box Width:%d' invalid or incompatible with argument [00:00] Aborted: Applying script "[utdn] Copy EditorID, FormID, or Display Name, to Clipboard"
I launched from MO2 with no arguments on a Windows 11 machine
I hope this helps. Still looks like the script can't convert from a decimal format to a string. Unfortunately, I'm just learning xEdit scripting and only know enough to be dangerous.
Well, sorry for this late reply. I have a time today :)
First off, please try the latest version of utdnLib v4.5.0. I’ve uploaded it yesterday. Second, what earlier version of utdnLib does NOT cause the problem? Then, could you try the version again? Third, is the problem reproduced on the current stable xEdit release v4.0.4? If reproduced on the certain version of xEdit, do some other scripts of mine either reproduce the problem? Let me kow what my other xEdit Scripts do reproduce the issue, but what do not.
It requires some efforts on your part to identify the common parts which could cause the problem, and identify the excluded parts which could not.
P.S. I’m willing to help you on the latest xEdit stable release. The latest Nexus version is in the second priority as long as it’s unstable, experimental, alpha, beta, etc. On the other hand, I’m unwilling to support the other versions in order to devote more time to development.
Hey there. I know it has been awhile. Just wanted to let you know this is still an issue. I've used various combinations of versions. Currently, I'm using the latest official release of xEdit 4.1.5d. I'm also using the latest releases of both of your mods. It really isn't an big deal for me. I just edit your script to replace the %d usages to %s to make the script work.
Again, not asking for anything. Since I just updated everything to the latest versions, I figured I'd let you know.
Actually, with the updated version, the scripts have another error even after editing the script to use %s instead of %d. Same error occurs if I disable the logging completely, so I know it isn't my change.
The new error unfortunately does not help much. [00:00] Start: Applying script "[utdn] Copy Records to Clipboard" [00:19] Script terminated itself, Result=1 [00:19] Done: Applying script "[utdn] Copy Records to Clipboard", Elapsed Time: 00:19
Using older versions of your scripts that I had edited still worked. The terminating error only happened when I used the latest versions. So, I'm good. Got what I needed. Thanks again.
Not work with latest xEdit 4.1.5 EXPERIMENTAL? I try to run you scripts and no one (SPID KID etc.) script not see utdnLib2, only SSEEdit 4.0.4 work fine. [00:00] Done: Applying Filter, [Pass 1] Processed Records: 719, [Pass 2] Processed Records: 712, Remaining unfiltered nodes: 709, Elapsed Time: 00:00 [00:00] Start: Applying script "[utdn] Draft your_DISTR.ini for SPID - Spell Perk Item Distributor" The preset "----- default -----" has no valid value at property "SPID Type Index"; return its fallback value The preset "----- default -----" has no valid value at property "String Filter (base)"; return its fallback value The preset "----- default -----" has no valid value at property "Form Filter (base)"; return its fallback value The preset "----- default -----" has no valid value at property "Level Filter"; return its fallback value The preset "----- default -----" has no valid value at property "Trait Filter"; return its fallback value The preset "----- default -----" has no valid value at property "Chance"; return its fallback value The preset "----- default -----" has no valid value at property "Item Count"; return its fallback value The preset "----- default -----" has no valid value at property "PackageIdx"; return its fallback value The preset "----- default -----" has no valid value at property "Equal Chance"; return its fallback value The preset "----- default -----" has no valid value at property "Accurate Chances"; return its fallback value The preset "----- default -----" has no valid value at property "Verbose Message"; return its fallback value The preset "----- default -----" has no valid value at property "Save to Default Preset"; return its fallback value [00:00] Exception in unit utdnGui line 91: [EConvertError] Format 'Component width: %d' invalid or incompatible with argument [00:00] Aborted: Applying script "[utdn] Draft your_DISTR.ini for SPID - Spell Perk Item Distributor"
If i run template - his tell me - not stable version, if i comment this check in script - his tell me - not see utdnLib.
Should work on 4.1.5. The template script does not consider the version unstable as long as you fetch it from Nexus, not from GitHub or any others. I don’t know if they are identical. Please paste the result of the template generator on the problematic xEdit version you mention. Addition to that, the missing utdnLib error is likely to happen on non-Steam version of Skyrim as described above. Do you play a Steam version?
I must be doing something wrong, I installed the dist SPID and this library, extracted both into edit scripts, the library extracted the folder, I think that was proper? THen when I go to use the script it says can not open/file path utils.pas
I'm using the GOG version if that matters, have the SSE Edit exe set to admin, running through MO2, am I missing something?
Do you install utdnLib2 keeping its folder structure? The folder named utdnLib2 is required and its contents, the .pas files, must remain in the folder. The folder must be in the folder Edit Scripts as the other scripts. If the folder structure doesn’t matter, could you give me the entire error message? (You could replace your name with "<username>" if the path included yours.)
Cannot open file "C:\Modding\SSEEdit4.0.4\Edit Scripts\UtdnLib\Utils.pas" The system cannot find the path specified.
Also I did indeed keep the file structure and install the pre reqs, everything else is working fine, but something I can say is I switched from Steam to GOG version a few days ago, never tried to run this particular script before the switch. I did change the argument in MO2 so SSEedit would find my install, been using it properly.
Also thank you for the content you offer the community.
Could you please redownload the latest utdnLib2 and overwrite the old one? It's only 19KB at present. We sometimes fail to download mods without any notifications, which often causes problems. I've experienced such problems on other mods.
Yes, so I re downloaded version 2.3.1 from Nov 27 and overwrote the files and tried again and the issue i am having persists. Has to be something wrong on my end, it seems im the only one having this problem! Ohhh! I really want to utilize this too. So useful!
And all the .pas file names in Edit Scripts/utdnLib2, please? EDIT: You can copy and paste them one by one with a key sequence: Ctrl-C, Ctrl-L, Ctrl-V, Ctrl-A, Ctrl-C, & Ctrl-P.
Could you give me the following script result in Messages tab? unit tmp; function Initialize(): Integer; begin AddMessage('Data Path:'#9 + DataPath); AddMessage('Program Path:'#9 + ProgramPath); AddMessage('Scripts Path:'#9 + ScriptsPath); end; end. You can copy and paste it to "<new script>" which can be found at the top of the dropdown in Apply Script. You don't have to save the script.
Hard. Could you give me the xEdit arguments you use? For example, I set the following arguments: -l:japanese -tes5vr -IKnowWhatImDoing -AllowMasterFilesEdit
https://github.com/TES5Edit/TES5Edit/issues/1043 https://github.com/TES5Edit/TES5Edit/issues/1058 According to the links above in GitHub, xEdit only supports Steam version, that is, GOG ver. is unsupported. Unfortunately, that might be the end.
The symbolic link workaround BellCubeDev described there might be help: https://github.com/TES5Edit/TES5Edit/issues/1043#issuecomment-1325509971 The command works on Windows Command Prompt: Win+R, type cmd, copy and paste the command in the link, and execute it there. The arguments for xEdit should be also adjusted properly with the workaround.
Or, the scripts might work on the latest xEdit v4.1.5 instead, though the release notes do not refer to non-Steam versions. Watch the links: https://github.com/TES5Edit/TES5Edit/releases https://tes5edit.github.io/docs/18-whatsnew.html
I'm unlikely to help you any more. I don't have GOG ver. So sorry :( Please let me know whether you make it or not. I will also continue to consider how to deal with the problem in long term.
Wow thank you so much, you have already went above and beyond and I value your insight because running this script will help me implement the things in my load order, Im a armor and weapon player more than modded quests, love having NPCs with tons of unique gear. So thank you again, I will let you know tomorrow if it works, again thank you for all your help, kudos to you!
Thanks. Please let me know if any workarounds work or not. I hit upon a primitive workaround, but it would take some efforts. It's better if I don't have to.
You're great, very kind and helpful, Im just about to go to sleep and I actually started reading that but Im too tired right now LOL, so I figured I would try tomorrow, thank you very much for all your help, your insight is valued.
Ok so after reading that more, and you already told me as you linked me to it, it because the GOG version, so while I was not able to get the fix to work, I still do own the steam version and I will just re install that again and use it for xEdit scripts and the CK. Thank you for the help and the awesome scripts.
thedude19950, if you are on Steam version, please re-submit your issue with the template generator in Miscellaneous files. If you are not, currently I could not help :(
50 comments
- Please use the latest template generator in Miscellaneous files to submit issues on my xEdit Scripts.
Known IssueOn xEdit running for non-Steam version of Skyrim, the following error is raised on executing an xEdit Script which depends on other scripts:
https://github.com/TES5Edit/TES5Edit/issues/1043
https://github.com/TES5Edit/TES5Edit/issues/1058
The symbolic link workaround BellCubeDev described there might be help:
https://github.com/TES5Edit/TES5Edit/issues/1043#issuecomment-1325509971
The command works on Windows Command Prompt: Win+R, type cmd, copy and paste the command in the link, and execute it there. The arguments for xEdit should be also adjusted properly with the workaround.
Or, the scripts might work on the latest xEdit instead. Watch the links:
https://github.com/TES5Edit/TES5Edit/releases
https://tes5edit.github.io/docs/18-whatsnew.html
Note that I have a primitive workaround for this issue, but it would take some efforts and not in high priority for me. Please track the scripts that you wish to use until the day comes. Also, I welcome any simple workarounds for this issue.
Running xEdit 4.1.5f, using the same arguments for both:
-AllowDirectSaves -IKnowWhatImDoing
"Unpack and put the folder "utdnLib" into the "Edit Scripts" in your xEdit folder."
1.) You say "Unpack" but you dont say what to unpack so the confusion of do you unpack the 7z file or do you unpack the folder into the directory? You can see how that can lead to confusion and also problems
2.) you say "put the folder "utdnLib" into the edit scripts folder" but the folder is named utdnlib2 so the confusion here is if the folder isn't unpacked into the edit scripts folder do you rename the folder utdnlib instead of utdnlib2 so the scripts recognize it?.
3.) you say "Edit Scripts" in your xEdit folder." you dont specify whether edit scripts is a folder.
How you should word it
""Unpack the 7z and put the folder "utdnLib2" into the "Edit Scripts" folder within your xEdit folder.""
anyway i have tried all options but i am pretty sure it might just not work for mod organizer either way.
My arguments
-D:"D:\ANVIL\Game Root\Data" -IKnowWhatImDoing
Issue Template
[00:00] Start: Applying script "[utdn] _Generate Issue Template"
Subject: <subject-of-your-issue>
Template Generator: Generate Issue Template 1.1.0
Data Path:D:\ANVIL\Game Root\Data\
Scripts Path:D:\ANVIL\Tools\xEdit\Edit Scripts\
xEdit Title:SSEEdit 4.1.5f x64
xEdit Type:SSE
xEdit Version:4.1.5f
xEdit CmdLine:D:\ANVIL\Tools\xEdit\SSEEdit.exe "-D:D:\ANVIL\Game Root\Data"
[00:00] Exception in unit GenerateIssueTemplate line 123: [Exception] Your xEdit seems to be unstable version.
Please try with the stable release version of xEdit from Nexus.
If you don't download it yet, grab it from the URL:
https://www.nexusmods.com/skyrimspecialedition/mods/164
[00:00] Aborted: Applying script "[utdn] _Generate Issue Template"
Error Message
[00:00] Start: Applying script "[utdn] Copy Records to Clipboard"
[00:00] Exception in unit utdnGui line 91: [EConvertError] Format 'Parent width:%d' invalid or incompatible with argument
[00:00] Aborted: Applying script "[utdn] Copy Records to Clipboard"
Well, please try utdnLib v2.3.1. Make sure to overwrite all the old files. Thank you for the bug report :)
[00:00] Exception in unit utdnGui line 83: [EConvertError] Format 'Parent width:%d' invalid or incompatible with argument
To narrow down the cause of the problem, could you give me the arguments of xEdit. For example, I set the following arguments:
-l:japanese -tes5vr -IKnowWhatImDoing -AllowMasterFilesEdit
Note that xEdit without no args cannot reproduce the bug either.I have to reproduce the bug at first.
[00:00] Start: Applying script "[utdn] Copy EditorID, FormID, or Display Name, to Clipboard"
[00:00] Exception in unit utdnUtils line 56: [EConvertError] Format 'Input Box Width:%d' invalid or incompatible with argument
[00:00] Aborted: Applying script "[utdn] Copy EditorID, FormID, or Display Name, to Clipboard"
I launched from MO2 with no arguments on a Windows 11 machine
First off, please try the latest version of utdnLib v4.5.0. I’ve uploaded it yesterday.
Second, what earlier version of utdnLib does NOT cause the problem? Then, could you try the version again?
Third, is the problem reproduced on the current stable xEdit release v4.0.4? If reproduced on the certain version of xEdit, do some other scripts of mine either reproduce the problem? Let me kow what my other xEdit Scripts do reproduce the issue, but what do not.
It requires some efforts on your part to identify the common parts which could cause the problem, and identify the excluded parts which could not.
P.S. I’m willing to help you on the latest xEdit stable release. The latest Nexus version is in the second priority as long as it’s unstable, experimental, alpha, beta, etc. On the other hand, I’m unwilling to support the other versions in order to devote more time to development.
Again, not asking for anything. Since I just updated everything to the latest versions, I figured I'd let you know.
The new error unfortunately does not help much.
[00:00] Start: Applying script "[utdn] Copy Records to Clipboard"
[00:19] Script terminated itself, Result=1
[00:19] Done: Applying script "[utdn] Copy Records to Clipboard", Elapsed Time: 00:19
[00:00] Done: Applying Filter, [Pass 1] Processed Records: 719, [Pass 2] Processed Records: 712, Remaining unfiltered nodes: 709, Elapsed Time: 00:00
[00:00] Start: Applying script "[utdn] Draft your_DISTR.ini for SPID - Spell Perk Item Distributor"
The preset "----- default -----" has no valid value at property "SPID Type Index"; return its fallback value
The preset "----- default -----" has no valid value at property "String Filter (base)"; return its fallback value
The preset "----- default -----" has no valid value at property "Form Filter (base)"; return its fallback value
The preset "----- default -----" has no valid value at property "Level Filter"; return its fallback value
The preset "----- default -----" has no valid value at property "Trait Filter"; return its fallback value
The preset "----- default -----" has no valid value at property "Chance"; return its fallback value
The preset "----- default -----" has no valid value at property "Item Count"; return its fallback value
The preset "----- default -----" has no valid value at property "PackageIdx"; return its fallback value
The preset "----- default -----" has no valid value at property "Equal Chance"; return its fallback value
The preset "----- default -----" has no valid value at property "Accurate Chances"; return its fallback value
The preset "----- default -----" has no valid value at property "Verbose Message"; return its fallback value
The preset "----- default -----" has no valid value at property "Save to Default Preset"; return its fallback value
[00:00] Exception in unit utdnGui line 91: [EConvertError] Format 'Component width: %d' invalid or incompatible with argument
[00:00] Aborted: Applying script "[utdn] Draft your_DISTR.ini for SPID - Spell Perk Item Distributor"
If i run template - his tell me - not stable version, if i comment this check in script - his tell me - not see utdnLib.
Arguments:
-tes5vr -IKnowWhatImDoing -AllowMasterFilesEdit
Addition to that, the missing utdnLib error is likely to happen on non-Steam version of Skyrim as described above. Do you play a Steam version?
I'm using the GOG version if that matters, have the SSE Edit exe set to admin, running through MO2, am I missing something?
If the folder structure doesn’t matter, could you give me the entire error message? (You could replace your name with "<username>" if the path included yours.)
Cannot open file "C:\Modding\SSEEdit4.0.4\Edit Scripts\UtdnLib\Utils.pas" The system cannot find the path specified.
Also I did indeed keep the file structure and install the pre reqs, everything else is working fine, but something I can say is I switched from Steam to GOG version a few days ago, never tried to run this particular script before the switch. I did change the argument in MO2 so SSEedit would find my install, been using it properly.
Also thank you for the content you offer the community.
We sometimes fail to download mods without any notifications, which often causes problems. I've experienced such problems on other mods.
C:\Modding\SSEEdit 4.0.4\Edit Scripts\utdnLib2
EDIT:
You can copy and paste them one by one with a key sequence: Ctrl-C, Ctrl-L, Ctrl-V, Ctrl-A, Ctrl-C, & Ctrl-P.unit tmp;
You can copy and paste it to "<new script>" which can be found at the top of the dropdown in Apply Script. You don't have to save the script.function Initialize(): Integer;
begin
AddMessage('Data Path:'#9 + DataPath);
AddMessage('Program Path:'#9 + ProgramPath);
AddMessage('Scripts Path:'#9 + ScriptsPath);
end;
end.
[00:00] Start: Applying script "<new script>"
Data Path: C:\Skyrim Anniversary Edition\Data\
Program Path: C:\Modding\SSEEdit 4.0.4\
Scripts Path: C:\Modding\SSEEdit 4.0.4\Edit Scripts\
[00:00] Done: Applying script "<new script>", Elapsed Time: 00:00
-l:japanese -tes5vr -IKnowWhatImDoing -AllowMasterFilesEdit
When I changed to the GOG version I added this, I don;t know if it is fully correct but it has been working for xEdit editing, WB, etc.
https://github.com/TES5Edit/TES5Edit/issues/1058
According to the links above in GitHub, xEdit only supports Steam version, that is, GOG ver. is unsupported. Unfortunately, that might be the end.
The symbolic link workaround BellCubeDev described there might be help:
https://github.com/TES5Edit/TES5Edit/issues/1043#issuecomment-1325509971
The command works on Windows Command Prompt: Win+R, type cmd, copy and paste the command in the link, and execute it there. The arguments for xEdit should be also adjusted properly with the workaround.
Or, the scripts might work on the latest xEdit v4.1.5 instead, though the release notes do not refer to non-Steam versions. Watch the links:
https://github.com/TES5Edit/TES5Edit/releases
https://tes5edit.github.io/docs/18-whatsnew.html
I'm unlikely to help you any more. I don't have GOG ver. So sorry :(
Please let me know whether you make it or not. I will also continue to consider how to deal with the problem in long term.
thedude19950, if you are on Steam version, please re-submit your issue with the template generator in Miscellaneous files.
If you are not, currently I could not help :(