This bundle allows to create DLTX version of the mod by simple right click on the folder of the mod and choosing "DLTXify mod" in context menu. Not a game mod
This bundle allows to create DLTX version of the mod by simple right click on the folder of the mod and choosing "DLTXify mod" in context menu.
It comes with LTXDiff.exe tool which performs dltxification and 3 powershell scripts:
- dltxify.ps1 is a script which is called for creating dltx mod
- dltxify add to right click menu.ps1 adds "DLTXify mod" to right click menu
- dltxify remove from right click menu.ps1 removes that entry
USAGE: unpack the archive into Anomaly folder and run "dltxify add to right click menu.ps1". Confirm changing execution policy if it will ask
It takes several assumptions to make it work:
- The mod must be a folder with "gamedata" folder inside it, like how MO2 stores mods.
- You need to have fully unpacked game archives and put into "<anomaly folder>\unpacked\gamedata". If you want to change the location, you can open dltxify.ps1 file and change $gamedata_path variable
- The dltxified mod will be created in separate directory with name "<name of original mod>_DLTX"
TROUBLESHOOTING:
- The Anomaly game folder must not be in Program Files folder and its subfolders, scripts aren't allowed to be executed from there
- The whole path to the mod shouldnt contain characters like [], otherwise you might get "Cannot find path" errors. Try to not use them and similar characters that trigger that error in your mod name
- If you cant execute "dltxify add to right click menu.ps1" (the script just closes instantly), you need to open powershell with administrator rights and enter the command: Set-ExecutionPolicy RemoteSigned. After that, you need to enter the value "A" which allows everyone to execute scripts.
- If you still cant add DLTXify entry to right click, you can add it manually, here is how:
1. Open windows registry editor (regedit.exe)
2. Navigate to key HKEY_CLASSES_ROOT\Directory\shell
3. Create new key in that location called "DLTXify Mod"
4. Then in newly created location create another key called "command"
5. In default value of this key type "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -ep Bypass -File "<your_path_to_anomaly>\dltxify.ps1" "%1"
If you like my work and wanna support further creations, i will be very glad and appreciate your donation ;)
Streamlabs
CHANGELOG:
- UPDATE 1: Recompiled LTXDiff tool, fixed bug where it couldn't properly copy new values if they were condition list strings and contained characters like %, =, +, -, etc.
CREDITS:
- MerelyMezz - creator of DLTX mod and LTXDiff tool
You're making it too easy lol ! What an incredible tool, and now it's ergonomic :O 11/10
now this is real poggers man, great job
Game changer right here.
How do you run "dltxify add to right click menu.ps1"? My PC and cmd open it with the text editor, and, if I try with powershell, it just opens, closes, and doesn't seem to do anything.
Right click and choose "run with powershell"
If I do that, powershell opens, I get an "allow this program to edit PC?" Windows prompt, and, if I click "YES", powershell immediately closes.
What is your windows, 10?
yes, windows 10.
alright, i dont know what exact issue you have, i cant't reproduce it. so you have to manually add right click menu
to do this, follow these steps:
1. Open windows registry editor (regedit.exe)
2. Navigate to key HKEY_CLASSES_ROOT\Directory\shell
3. Create new key in that location called "DLTXify Mod"
4. Then in newly created location create another key called "command"
5. In default value of this key type "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -ep Bypass -File "<your_path_to_anomaly>\dltxify.ps1" "%1"
Here is an example for my system: Puu.sh
Thanks for the answer! I have done as you said. Now it works! Wonderful work!
This comment is currently awaiting admin approval, join now to view.
i did what you said but it did not work
idk what wring with it
I'm trying to use the DLTXify in right click menu but every time i try it just tells me the directory of the mod i'm trying to change and says "Can't find application". I did every thing as you said and even manually added the option to right click menu as you said above, because it also didn't work for me. Even after doing so it still doesn't work. And if that's important, I have Anomaly on another disk and use Windows 10
That happened to me too at first, because of how copy paste works. Make sure to have copy pasted all the ", especially those at the beginning and the end, and substitute <your_path_to_anomaly> with, well, your path to Anomaly.
im confused. not working for me. got to the part where all i have to do is just right click and dltxify. says file not found need to be in unpacked/gamedata. so i assumed and change the name of the folder that contain "gamedata" folder to "unpacked". all it did was adding "unpacked" into all of the files name in gamedata folder. and all the .ltx files contain nothing. and this happens if i don't rename the folder to "unpacked"
Rename-Item : Cannot rename because item at
'C:\Users\Admin\Downloads\Compressed\Anomaly-1.5.1.2\npcloadout_DLTX\gamedata_DLTX' does not exist.
At C:\Users\Admin\Downloads\Compressed\Anomaly-1.5.1.2\dltxify.ps1:20 char:1
+ Rename-Item -Path "$path_DLTX\gamedata_DLTX" -NewName "gamedata" -Fo ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Rename-Item], PSInvalidOperationException
+ FullyQualifiedErrorId : InvalidOperation,Microsoft.PowerShell.Commands.RenameItemCommand
Could someone perhaps make a short tutorial video on how to use this? I extracted the archive in my Anomaly folder, ran the .ps1 script to enable the right click stuff, yet when I actually try to DLTXify a mod in MO2/mods folder I get:
C:\Program Files (x86)\MO2\mods\EFT Reposition
eft_reposition
C:\Program Files (x86)\MO2\mods\EFT Reposition_DLTX
Creating DLTX mod folder
md : Access to the path 'EFT Reposition_DLTX' is denied.
At C:\Program Files (x86)\S.T.A.L.K.E.R. Anomaly\dltxify.ps1:14 char:1
+ md -Force -Path "$path_DLTX\gamedata"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : PermissionDenied: (C:\Program File...Reposition_DLTX:String) [New-Item], UnauthorizedAcc
essException
+ FullyQualifiedErrorId : CreateDirectoryUnauthorizedAccessError,Microsoft.PowerShell.Commands.NewItemCommand
md : Access to the path 'gamedata' is denied.
At C:\Program Files (x86)\S.T.A.L.K.E.R. Anomaly\dltxify.ps1:14 char:1
+ md -Force -Path "$path_DLTX\gamedata"
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : PermissionDenied: (C:\Program File...n_DLTX\gamedata:String) [New-Item], UnauthorizedAcc
essException
+ FullyQualifiedErrorId : CreateDirectoryUnauthorizedAccessError,Microsoft.PowerShell.Commands.NewItemCommand
DLTXifying
Directory C:\Program Files (x86)\S.T.A.L.K.E.R. Anomaly\unpacked\gamedata doesn't exist.
Cleaning up
Copy-Item : Access to the path 'EFT Reposition_DLTX' is denied.
At C:\Program Files (x86)\S.T.A.L.K.E.R. Anomaly\dltxify.ps1:18 char:1
+ Copy-Item -Path "$path\*" -Destination "$path_DLTX" -Recurse -Force
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : PermissionDenied: (C:\Program File...Reposition_DLTX:String) [Copy-Item], UnauthorizedAc
cessException
+ FullyQualifiedErrorId : CreateDirectoryUnauthorizedAccessError,Microsoft.PowerShell.Commands.CopyItemCommand
And so on :( Sorry if I'm being retarded but :D this tool sounds great and I'd love to use it :)
Hey, i am not sure if it's too late of an answer to you but :
You have to move stalker anomaly directory from program files. For example into C:\Games\Anomaly. Its not allowed for scripts to write stuff in program files folder and its children folders
Sweet, thanks!
This probably gets to be a PIA for you but I followed the video and did the regedit. Any help you can give is appreciated and thanks.
Here's what I am getting;
Set-Location : Cannot find path 'D:\Games(2)\[KK] Anomaly Minimum DLTX\tools' because it does not exist.
At D:\Games(2)\[KK] Anomaly Minimum DLTX\tools\dltxify.ps1:1 char:1
+ Set-Location $PSScriptRoot
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (D:\Games(2)\[KK...imum DLTX\tools:String) [Set-Location], ItemNotFoundE
xception
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.SetLocationCommand
D:\Modding\MO2\mods\EFT Inventory Sound
eft_inventory_sound
D:\Modding\MO2\mods\EFT Inventory Sound_DLTX
Creating DLTX mod folder
Directory: D:\Modding\MO2\mods\EFT Inventory Sound_DLTX
Mode LastWriteTime Length Name
---- ------------- ------ ----
d----- 5/12/2022 8:21 PM gamedata
DLTXifying
.\LTXDiff.exe : The term '.\LTXDiff.exe' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At D:\Games(2)\[KK] Anomaly Minimum DLTX\tools\dltxify.ps1:16 char:1
+ .\LTXDiff.exe dltxify "$gamedata_path" "$path\gamedata" "$d" -c -f
+ ~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (.\LTXDiff.exe:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Cleaning up
Rename-Item : Cannot rename because item at 'D:\Modding\MO2\mods\EFT Inventory Sound_DLTX\gamedata_DLTX' does not
exist.
At D:\Games(2)\[KK] Anomaly Minimum DLTX\tools\dltxify.ps1:20 char:1
+ Rename-Item -Path "$path_DLTX\gamedata_DLTX" -NewName "gamedata" -Fo ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Rename-Item], PSInvalidOperationException
+ FullyQualifiedErrorId : InvalidOperation,Microsoft.PowerShell.Commands.RenameItemCommand
Remove-Item : Cannot find path 'D:\Modding\MO2\mods\EFT Inventory Sound\gamedata_DLTX' because it does not exist.
At D:\Games(2)\[KK] Anomaly Minimum DLTX\tools\dltxify.ps1:21 char:1
+ Remove-Item -Path "$path\gamedata_DLTX" -Force -Recurse
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (D:\Modding\MO2\...d\gamedata_DLTX:String) [Remove-Item], ItemNotFoundEx
ception
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.RemoveItemCommand
DLTXify Done
Press Enter to continue...:
I think thats because of [] symbols in your folder path, try to get rid of them
I did as you said and started over from scratch watching the video. Now everything works as it should. I am 'DLTXifying' all over the place! Thank you again for a great MOD.
For a long time I figured out why the script "dltxify add to right click menu.ps1" does not work. The problem was that when powershell was started, it immediately closed. In my case, the execution of scripts was prohibited, to solve this problem, you need to open powershell with administrator rights and enter the command: Set-ExecutionPolicy RemoteSigned
After that, you need to enter the value "A" which allows everyone to execute scripts.
Maybe someone will also face this problem and this will be the solution for him.
Thanks, i added Troubleshooting section to the description
I tried setting the value to A, but no matter how I typed it in, the selected value (highlighted in yellow) would NOT change. i've tried every method given here, and the one method I found on youtube and nothing has worked.
Is there a resource outlining syntax and containing usage tutorials?
Инструкция на русском:
1. Запустить db_unpacker в /Папка_Аномали/tools/ что-бы распаковать скрипты (.script) и конфиги (.ltx). Можно использовать и db_unpacker_all для распаковки ВСЕХ файлов игры, что занимает много места и времени, но для DLTXify это не нужно.
2. В /Папка_Аномали/tools/ должна появиться папка "_unpacked" в ней будут паки "configs" и "scripts". В папке аномали создать папку "unpacked", в ней создать "gamedata" и перенести в "gamedata" папки "configs" и "scripts".
Путь к конфигам должен выглядеть так: /Папка_Аномали/unpacked/gamedata/configs/; путь к скриптам:/Папка_Аномали/unpacked/gamedata/scripts/
Это нужно программе, что-бы сравнивать ванильные и модифицировыные конфиги, и вычитать между ними разницу.
3. распаковать файлы DLTXify в папку Аномали, правой енопкой мыши нажать на "dltxify add to right click menu.ps1" выбрать "выполнить с помощью PowerShell". после этого в контекстном меню должна появиться кнопка "DLTXify mod". Windows может блокировать данный скрипт, решение этой проблемы требует доп. шага.
4 (если прога всё ещё не работает). Если скрипт открывается, и сразу закрываются обратно, то нужно: Запустить Windows PowerShell с правами администратора (например, через меню "Пуск"), вставить команду "Set-ExecutionPolicy RemoteSigned", нажать Enter, после чего вписать "A" и снова нажать Enter. Это должно разрешить работу скрипта.
Под "Папка_Аномали" имеется в виду папка содержащая папки "appdata", "bin", "db" и т.д. Она может носить любое название, но не должна находится в папке Program Files или в её подпапках.
У меня сработало, надеюсь и у вас пойдёт.
Для использования DLTX модов лучше использовать Anomaly modded exes engine mod ( Moddb.com ).
На 1.5.1 DLTX моды, заменяющие одинаковые строки, могут вызывать краши. На 1.5.2 такой проблемы нет.
Hi, Im trying to converting the icon mod to dltx version, but for some reason always failed when loading to game. Here the error and dltx-fied file
Pastebin.com [LOG]
Drive.google.com [DLTX-fied file]
Cdn.discordapp.com [Original File, ̶A̶n̶o̶m̶e̶m̶e̶ ̶ Anomaly Discord]
I did everything in this comment section. The window still insta-closes after clicking it from the right click menu.