diff --git a/mods/Merks Trader Image Swicher/meta.ini b/mods/Merks Trader Image Swicher/meta.ini new file mode 100644 index 0000000..80e52b0 --- /dev/null +++ b/mods/Merks Trader Image Swicher/meta.ini @@ -0,0 +1,28 @@ +[General] +gameName=spt +modid=0 +version=d2025.5.16.0 +newestVersion= +category="-1," +nexusFileStatus=1 +installationFile=MerksTraderImageSwicher_v3.11.zip +repository=Nexus +ignoredVersion= +comments= +notes= +nexusDescription= +url= +hasCustomURL=false +lastNexusQuery= +lastNexusUpdate= +nexusLastModified=2025-05-17T01:10:55Z +nexusCategory=0 +converted=false +validated=false +color=@Variant(\0\0\0\x43\0\xff\xff\0\0\0\0\0\0\0\0) +tracked=0 + +[installedFiles] +1\modid=0 +1\fileid=0 +size=1 diff --git a/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/README.md b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/README.md new file mode 100644 index 0000000..169bdd4 --- /dev/null +++ b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/README.md @@ -0,0 +1,40 @@ +# Merks Trader Image Switcher Mod + +The Merks Trader Image Switcher Mod 2.0 makes it easier than ever to customize your trader images in SPT-AKI. Change any trader image just by naming your new custom image the same name as the trader's image you want to change. +(Note: If the shortcut does not work open the config folder and click the MerksImageSwitcher.exe) + +(Note: The MerksImageSwitcher requires .NET 4.8 to run. You can download it from [here](https://dotnet.microsoft.com/download/dotnet-framework/net48).) + +## How to Use the Merks Trader Image Switcher Mod + +To use the Merks Trader Image Switcher Mod, simply click on the MerksImageSwitcher shortcut, + +![MerksImageSwitcher Program](https://i.ibb.co/HtbGg6h/Screenshot-2024-06-19-023013.png) + +in the MerksTraderImageSwitcher folder. + +![MerksImageSwitcher Folder](https://i.ibb.co/rsr0Y0G/Screenshot-2024-06-19-023245.png) + +### Steps: + +1. **Turn the Switcher ON/OFF**: + + - Turn the switcher ON to change trader images and OFF to not change them. + +2. **Select a Folder**: + + - Choose the folder you want to switch the images to. + - **Note**: You can only have one folder selected at a time, but the MerksImageSwitcher takes care of that for you. + +3. **Using Custom Images**: + + - If you selected Custom and are loading your own images, **MAKE SURE** the file name is exactly the same as the trader's image you want to switch. + - **MAKE SURE** the image size is 640px x 640px. + +4. **Select Image Format**: + + - Select either JPG or PNG depending on your image's file type. + - **Note**: These are the two best file types for trader images. Either one works, you just can't load JPG and PNG at the same time. + +5. **Set Trader Images**: + - Click the Set Trader Images button to clear the trader avatar images folder in the temp files. This makes it super easy to change the trader images before launching the game. It also helps keep load times short by only clearing the temp files needed to make the Merks Trader Image Switcher Mod work. diff --git a/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/START_HERE.txt b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/START_HERE.txt new file mode 100644 index 0000000..4aee646 --- /dev/null +++ b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/START_HERE.txt @@ -0,0 +1,31 @@ +Merks Trader Image Switcher Mod 2.0 +The Merks Trader Image Switcher Mod makes it easier than ever to customize your trader images in SPT-AKI. Change any trader image just by naming your new custom image the same name as the trader's image you want to change. + +(Note: The MerksImageSwitcher requires .NET 4.8 to run. You can download it from here. "https://dotnet.microsoft.com/en-us/download/dotnet-framework/thank-you/net48-web-installer" ) + +How to Use the Merks Trader Image Switcher Mod +To use the Merks Trader Image Switcher Mod, simply click on the MerksImageSwitcher shortcut, +(Note: If the shortcut does not work open the config folder and click the MerksImageSwitcher.exe. +If you want a new shortcut just right click on the MerksImageSwitcher.exe and click crate shortcut. +Then put the shortcut where ever you like.) + +How to use the MerksImageSwitcher. +Steps: +1.Turn the Switcher ON/OFF: + +Turn the switcher ON to change trader images and OFF to not change them. +Select a Folder: + +2.Choose the folder you want to switch the images to. +Note: You can only have one folder selected at a time, but the MerksImageSwitcher takes care of that for you. +Using Custom Images: + +3.If you selected Custom and are loading your own images, MAKE SURE the file name is exactly the same as the trader's image you want to switch. +MAKE SURE the image size is 640px x 640px. +Select Image Format: + +4.Select either JPG or PNG depending on your image's file type. +Note: These are the two best file types for trader images. Either one works, you just can't load JPG and PNG at the same time. +Set Trader Images: + +5.Click the Set Trader Images button to clear the trader avatar images folder in the temp files. This makes it super easy to change the trader images before launching the game. It also helps keep load times short by only clearing the temp files needed to make the Merks Trader Image Switcher Mod work. \ No newline at end of file diff --git a/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/config/MerksImageSwitcher.exe b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/config/MerksImageSwitcher.exe new file mode 100644 index 0000000..b9cefb5 --- /dev/null +++ b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/config/MerksImageSwitcher.exe @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:41b37d9606f31aa7b8df3818e224b9cc1240815d99d796748b499234a31698c0 +size 154523963 diff --git a/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/config/config.json b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/config/config.json new file mode 100644 index 0000000..0a1d849 --- /dev/null +++ b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/config/config.json @@ -0,0 +1,8 @@ +{ + "updateAllTraders": true, + "main": false, + "custom": true, + "anime": false, + "realistic": false, + "extension": "jpg" +} \ No newline at end of file diff --git a/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/package.json b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/package.json new file mode 100644 index 0000000..affdbc4 --- /dev/null +++ b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/package.json @@ -0,0 +1,30 @@ +{ + "name": "MerksTraderImageSwitcher", + "version": "2.0.0", + "main": "src/TraderPics.js", + "license": "MIT", + "author": "TeejayMerks", + "sptVersion": "~3.11", + "loadBefore": [], + "loadAfter": [], + "incompatibilities": [], + "contributors": [], + "scripts": { + "setup": "npm i", + "build": "node ./build.mjs", + "buildinfo": "node ./build.mjs --verbose" + }, + "devDependencies": { + "@types/node": "20.11", + "@typescript-eslint/eslint-plugin": "7.2", + "@typescript-eslint/parser": "7.2", + "archiver": "^6.0", + "eslint": "8.57", + "fs-extra": "11.2", + "ignore": "^5.2", + "os": "^0.1", + "tsyringe": "4.8.0", + "typescript": "5.4", + "winston": "3.12" + } +} \ No newline at end of file diff --git a/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/anime/579dc571d53a0658a154fbec.jpg b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/anime/579dc571d53a0658a154fbec.jpg new file mode 100644 index 0000000..21d6650 Binary files /dev/null and b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/anime/579dc571d53a0658a154fbec.jpg differ diff --git a/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/anime/59b91ca086f77469a81232e4.jpg b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/anime/59b91ca086f77469a81232e4.jpg new file mode 100644 index 0000000..a1c6195 Binary files /dev/null and b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/anime/59b91ca086f77469a81232e4.jpg differ diff --git a/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/anime/59b91cab86f77469aa5343ca.jpg b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/anime/59b91cab86f77469aa5343ca.jpg new file mode 100644 index 0000000..865385e Binary files /dev/null and b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/anime/59b91cab86f77469aa5343ca.jpg differ diff --git a/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/anime/59b91cb486f77469a81232e5.jpg b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/anime/59b91cb486f77469a81232e5.jpg new file mode 100644 index 0000000..3439af1 Binary files /dev/null and b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/anime/59b91cb486f77469a81232e5.jpg differ diff --git a/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/anime/59b91cbd86f77469aa5343cb.jpg b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/anime/59b91cbd86f77469aa5343cb.jpg new file mode 100644 index 0000000..5efcc3f Binary files /dev/null and b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/anime/59b91cbd86f77469aa5343cb.jpg differ diff --git a/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/anime/5a7c2ebb86f7746e324a06ab.jpg b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/anime/5a7c2ebb86f7746e324a06ab.jpg new file mode 100644 index 0000000..50377e2 Binary files /dev/null and b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/anime/5a7c2ebb86f7746e324a06ab.jpg differ diff --git a/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/anime/5ac3b86a86f77461491d1ad8.jpg b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/anime/5ac3b86a86f77461491d1ad8.jpg new file mode 100644 index 0000000..7d8871e Binary files /dev/null and b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/anime/5ac3b86a86f77461491d1ad8.jpg differ diff --git a/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/anime/5c06531a86f7746319710e1b.jpg b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/anime/5c06531a86f7746319710e1b.jpg new file mode 100644 index 0000000..26f92ff Binary files /dev/null and b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/anime/5c06531a86f7746319710e1b.jpg differ diff --git a/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/anime/638f541a29ffd1183d187f57.jpg b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/anime/638f541a29ffd1183d187f57.jpg new file mode 100644 index 0000000..978602b Binary files /dev/null and b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/anime/638f541a29ffd1183d187f57.jpg differ diff --git a/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/custom/579dc571d53a0658a154fbec.jpg b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/custom/579dc571d53a0658a154fbec.jpg new file mode 100644 index 0000000..9c1240d Binary files /dev/null and b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/custom/579dc571d53a0658a154fbec.jpg differ diff --git a/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/custom/59b91ca086f77469a81232e4.jpg b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/custom/59b91ca086f77469a81232e4.jpg new file mode 100644 index 0000000..627338a Binary files /dev/null and b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/custom/59b91ca086f77469a81232e4.jpg differ diff --git a/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/custom/59b91cab86f77469aa5343ca.jpg b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/custom/59b91cab86f77469aa5343ca.jpg new file mode 100644 index 0000000..978cdb5 Binary files /dev/null and b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/custom/59b91cab86f77469aa5343ca.jpg differ diff --git a/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/custom/59b91cb486f77469a81232e5.jpg b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/custom/59b91cb486f77469a81232e5.jpg new file mode 100644 index 0000000..5d2713f Binary files /dev/null and b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/custom/59b91cb486f77469a81232e5.jpg differ diff --git a/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/custom/59b91cbd86f77469aa5343cb.jpg b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/custom/59b91cbd86f77469aa5343cb.jpg new file mode 100644 index 0000000..c039d5d Binary files /dev/null and b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/custom/59b91cbd86f77469aa5343cb.jpg differ diff --git a/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/custom/5a7c2ebb86f7746e324a06ab.jpg b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/custom/5a7c2ebb86f7746e324a06ab.jpg new file mode 100644 index 0000000..33987a7 Binary files /dev/null and b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/custom/5a7c2ebb86f7746e324a06ab.jpg differ diff --git a/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/custom/5ac3b86a86f77461491d1ad8.jpg b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/custom/5ac3b86a86f77461491d1ad8.jpg new file mode 100644 index 0000000..1c72559 Binary files /dev/null and b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/custom/5ac3b86a86f77461491d1ad8.jpg differ diff --git a/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/custom/5c06531a86f7746319710e1b.jpg b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/custom/5c06531a86f7746319710e1b.jpg new file mode 100644 index 0000000..0aae348 Binary files /dev/null and b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/custom/5c06531a86f7746319710e1b.jpg differ diff --git a/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/custom/638f541a29ffd1183d187f57.jpg b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/custom/638f541a29ffd1183d187f57.jpg new file mode 100644 index 0000000..d21f3e6 Binary files /dev/null and b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/custom/638f541a29ffd1183d187f57.jpg differ diff --git a/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/custom/Artem.jpg b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/custom/Artem.jpg new file mode 100644 index 0000000..f076212 Binary files /dev/null and b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/custom/Artem.jpg differ diff --git a/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/custom/Lotus.jpg b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/custom/Lotus.jpg new file mode 100644 index 0000000..518f73e Binary files /dev/null and b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/custom/Lotus.jpg differ diff --git a/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/custom/gunsmith.jpg b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/custom/gunsmith.jpg new file mode 100644 index 0000000..42b8385 Binary files /dev/null and b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/custom/gunsmith.jpg differ diff --git a/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/custom/readme.txt b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/custom/readme.txt new file mode 100644 index 0000000..ef7f5eb --- /dev/null +++ b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/custom/readme.txt @@ -0,0 +1,6 @@ +Merks Trader Image Switcher Mod 2.0 +-------------------------------- +Use this folde to mix and match your trader images or add your own! + +NOTE: Make sure your custom trader images have the same name as the original traders image. + Also make sure the images is 640px x 640px. \ No newline at end of file diff --git a/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/custom/thegambler.jpg b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/custom/thegambler.jpg new file mode 100644 index 0000000..8bb74c5 Binary files /dev/null and b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/custom/thegambler.jpg differ diff --git a/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/custom/themachine.jpg b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/custom/themachine.jpg new file mode 100644 index 0000000..0edab7a Binary files /dev/null and b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/custom/themachine.jpg differ diff --git a/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/desktop.ini b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/desktop.ini new file mode 100644 index 0000000..70ef162 --- /dev/null +++ b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/desktop.ini @@ -0,0 +1,6 @@ +[.ShellClassInfo] +IconResource=C:\Windows\System32\SHELL32.dll,318 +[ViewState] +Mode= +Vid= +FolderType=Generic diff --git a/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/main/579dc571d53a0658a154fbec.jpg b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/main/579dc571d53a0658a154fbec.jpg new file mode 100644 index 0000000..9c1240d Binary files /dev/null and b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/main/579dc571d53a0658a154fbec.jpg differ diff --git a/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/main/59b91ca086f77469a81232e4.jpg b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/main/59b91ca086f77469a81232e4.jpg new file mode 100644 index 0000000..627338a Binary files /dev/null and b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/main/59b91ca086f77469a81232e4.jpg differ diff --git a/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/main/59b91cab86f77469aa5343ca.jpg b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/main/59b91cab86f77469aa5343ca.jpg new file mode 100644 index 0000000..978cdb5 Binary files /dev/null and b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/main/59b91cab86f77469aa5343ca.jpg differ diff --git a/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/main/59b91cb486f77469a81232e5.jpg b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/main/59b91cb486f77469a81232e5.jpg new file mode 100644 index 0000000..5d2713f Binary files /dev/null and b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/main/59b91cb486f77469a81232e5.jpg differ diff --git a/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/main/59b91cbd86f77469aa5343cb.jpg b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/main/59b91cbd86f77469aa5343cb.jpg new file mode 100644 index 0000000..c039d5d Binary files /dev/null and b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/main/59b91cbd86f77469aa5343cb.jpg differ diff --git a/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/main/5a7c2ebb86f7746e324a06ab.jpg b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/main/5a7c2ebb86f7746e324a06ab.jpg new file mode 100644 index 0000000..33987a7 Binary files /dev/null and b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/main/5a7c2ebb86f7746e324a06ab.jpg differ diff --git a/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/main/5ac3b86a86f77461491d1ad8.jpg b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/main/5ac3b86a86f77461491d1ad8.jpg new file mode 100644 index 0000000..1c72559 Binary files /dev/null and b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/main/5ac3b86a86f77461491d1ad8.jpg differ diff --git a/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/main/5c06531a86f7746319710e1b.jpg b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/main/5c06531a86f7746319710e1b.jpg new file mode 100644 index 0000000..0aae348 Binary files /dev/null and b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/main/5c06531a86f7746319710e1b.jpg differ diff --git a/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/main/638f541a29ffd1183d187f57.jpg b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/main/638f541a29ffd1183d187f57.jpg new file mode 100644 index 0000000..d21f3e6 Binary files /dev/null and b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/main/638f541a29ffd1183d187f57.jpg differ diff --git a/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/main/Artem.jpg b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/main/Artem.jpg new file mode 100644 index 0000000..f076212 Binary files /dev/null and b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/main/Artem.jpg differ diff --git a/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/main/coyote.jpg b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/main/coyote.jpg new file mode 100644 index 0000000..518f73e Binary files /dev/null and b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/main/coyote.jpg differ diff --git a/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/main/gunsmith.jpg b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/main/gunsmith.jpg new file mode 100644 index 0000000..42b8385 Binary files /dev/null and b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/main/gunsmith.jpg differ diff --git a/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/main/thegambler.jpg b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/main/thegambler.jpg new file mode 100644 index 0000000..8bb74c5 Binary files /dev/null and b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/main/thegambler.jpg differ diff --git a/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/main/themachine.jpg b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/main/themachine.jpg new file mode 100644 index 0000000..0edab7a Binary files /dev/null and b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/main/themachine.jpg differ diff --git a/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/realistic/579dc571d53a0658a154fbec.jpg b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/realistic/579dc571d53a0658a154fbec.jpg new file mode 100644 index 0000000..7207c8c Binary files /dev/null and b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/realistic/579dc571d53a0658a154fbec.jpg differ diff --git a/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/realistic/59b91ca086f77469a81232e4.jpg b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/realistic/59b91ca086f77469a81232e4.jpg new file mode 100644 index 0000000..f84bf6c Binary files /dev/null and b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/realistic/59b91ca086f77469a81232e4.jpg differ diff --git a/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/realistic/59b91cab86f77469aa5343ca.jpg b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/realistic/59b91cab86f77469aa5343ca.jpg new file mode 100644 index 0000000..05536c6 Binary files /dev/null and b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/realistic/59b91cab86f77469aa5343ca.jpg differ diff --git a/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/realistic/59b91cb486f77469a81232e5.jpg b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/realistic/59b91cb486f77469a81232e5.jpg new file mode 100644 index 0000000..f022108 Binary files /dev/null and b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/realistic/59b91cb486f77469a81232e5.jpg differ diff --git a/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/realistic/59b91cbd86f77469aa5343cb.jpg b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/realistic/59b91cbd86f77469aa5343cb.jpg new file mode 100644 index 0000000..39d8a4b Binary files /dev/null and b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/realistic/59b91cbd86f77469aa5343cb.jpg differ diff --git a/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/realistic/5a7c2ebb86f7746e324a06ab.jpg b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/realistic/5a7c2ebb86f7746e324a06ab.jpg new file mode 100644 index 0000000..c95766c Binary files /dev/null and b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/realistic/5a7c2ebb86f7746e324a06ab.jpg differ diff --git a/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/realistic/5ac3b86a86f77461491d1ad8.jpg b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/realistic/5ac3b86a86f77461491d1ad8.jpg new file mode 100644 index 0000000..923b2e8 Binary files /dev/null and b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/realistic/5ac3b86a86f77461491d1ad8.jpg differ diff --git a/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/realistic/5c06531a86f7746319710e1b.jpg b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/realistic/5c06531a86f7746319710e1b.jpg new file mode 100644 index 0000000..0ba93dd Binary files /dev/null and b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/realistic/5c06531a86f7746319710e1b.jpg differ diff --git a/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/realistic/6617beeaa9cfa777ca915b7c.jpg b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/realistic/6617beeaa9cfa777ca915b7c.jpg new file mode 100644 index 0000000..68c5e81 Binary files /dev/null and b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/realistic/6617beeaa9cfa777ca915b7c.jpg differ diff --git a/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/unused/desktop.ini b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/unused/desktop.ini new file mode 100644 index 0000000..a072d45 --- /dev/null +++ b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/unused/desktop.ini @@ -0,0 +1,6 @@ +[.ShellClassInfo] +IconResource=C:\Windows\System32\SHELL32.dll,234 +[ViewState] +Mode= +Vid= +FolderType=Generic diff --git a/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/unused/readme.txt b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/unused/readme.txt new file mode 100644 index 0000000..7542964 --- /dev/null +++ b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/res/unused/readme.txt @@ -0,0 +1,3 @@ +Merks Trader Image Switcher Mod 2.0 +-------------------------------- +Use this folder to store the unused/extra trader images you have. \ No newline at end of file diff --git a/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/src/TraderPics.js b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/src/TraderPics.js new file mode 100644 index 0000000..ba732d6 --- /dev/null +++ b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/src/TraderPics.js @@ -0,0 +1,96 @@ +"use strict"; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.mod = void 0; +const tsyringe_1 = require("C:/snapshot/project/node_modules/tsyringe"); +const LogTextColor_1 = require("C:/snapshot/project/obj/models/spt/logging/LogTextColor"); +const path_1 = __importDefault(require("path")); +const fs_1 = __importDefault(require("fs")); +const logger = tsyringe_1.container.resolve("WinstonLogger"); +const imageRouter = tsyringe_1.container.resolve("ImageRouter"); +const preSptModLoader = tsyringe_1.container.resolve("PreSptModLoader"); +class TraderPics { + modName = path_1.default.basename(path_1.default.dirname(__dirname.split("/").pop() || "")); + async preSptLoad(container) { + // Initialize anything if needed before SPT loads + } + async postDBLoad(container) { + let settings; + let pkg; + try { + pkg = require("../package.json"); + settings = require("../config/config.json"); + logger.info("Settings loaded successfully."); + logger.info(`Settings: ${JSON.stringify(settings)}`); + } + catch (err) { + logger.error("Failed to load config.json or package.json", err); + return; + } + const modPath = preSptModLoader.getModPath(this.modName); + logger.info(`Mod path: ${modPath}`); + const folderPaths = { + anime: path_1.default.join(modPath, "res", "anime"), + custom: path_1.default.join(modPath, "res", "custom"), + main: path_1.default.join(modPath, "res", "main"), + realistic: path_1.default.join(modPath, "res", "realistic"), + }; + try { + if (!settings.anime && + !settings.custom && + !settings.main && + !settings.realistic) { + logger.info("All folder usage settings are false. No images will be changed."); + return; + } + let filepath = ""; + if (settings.anime) { + filepath = folderPaths.anime; + } + else if (settings.custom) { + filepath = folderPaths.custom; + } + else if (settings.main) { + filepath = folderPaths.main; + } + else if (settings.realistic) { + filepath = folderPaths.realistic; + } + this.loadImages(filepath, settings); + logger.log(`${pkg.name} [LOADED]: Traders Looking Fire Now!`, LogTextColor_1.LogTextColor.BLUE); + } + catch (err) { + logger.error("An error occurred during postDBLoad execution", err); + logger.error(err.stack); + } + } + loadImages(filepath, settings) { + logger.info(`Loading images from: ${filepath}`); + fs_1.default.readdir(filepath, (err, files) => { + if (err) { + logger.error(`Error reading directory: ${filepath}`, err); + return; + } + files.forEach((file) => { + const traderName = path_1.default.basename(file, path_1.default.extname(file)); + try { + if (settings.updateAllTraders) { + this.changeTraderImage(traderName, settings, filepath); + } + } + catch (error) { + logger.error(`Error processing image for trader ${traderName}: ${error.message}`); + } + }); + }); + } + changeTraderImage(traderName, settings, filepath) { + const imageFileName = `${traderName}.${settings.extension}`; + logger.info(`Changing image for ${traderName} to ${imageFileName}`); + imageRouter.addRoute(`/files/trader/avatar/${traderName}`, `${filepath}${path_1.default.sep}${imageFileName}`); + } +} +exports.mod = new TraderPics(); +//# sourceMappingURL=TraderPics.js.map \ No newline at end of file diff --git a/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/src/TraderPics.js.map b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/src/TraderPics.js.map new file mode 100644 index 0000000..680401c --- /dev/null +++ b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/src/TraderPics.js.map @@ -0,0 +1 @@ +{"version":3,"file":"TraderPics.js","sourceRoot":"","sources":["TraderPics.ts"],"names":[],"mappings":"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"} \ No newline at end of file diff --git a/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/src/TraderPics.ts b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/src/TraderPics.ts new file mode 100644 index 0000000..2d26fc8 --- /dev/null +++ b/mods/Merks Trader Image Swicher/user/mods/MerksTraderImageSwitcher/src/TraderPics.ts @@ -0,0 +1,130 @@ +import { container, DependencyContainer } from "tsyringe"; + +import { ImageRouter } from "@spt/routers/ImageRouter"; // Adjusted the import path +import { PreSptModLoader } from "@spt/loaders/PreSptModLoader"; // Adjusted the import path +import { ILogger } from "@spt/models/spt/utils/ILogger"; // Adjusted the import path +import { LogTextColor } from "@spt/models/spt/logging/LogTextColor"; + +import path from "path"; +import fs from "fs"; + +const logger: ILogger = container.resolve("WinstonLogger"); +const imageRouter: ImageRouter = container.resolve("ImageRouter"); +const preSptModLoader: PreSptModLoader = container.resolve("PreSptModLoader"); + +interface Settings { + updateAllTraders: boolean; + extension: string; + anime: boolean; + custom: boolean; + main: boolean; + realistic: boolean; +} + +class TraderPics implements IPreSptLoadMod, IPostDBLoadMod { + private modName: string = path.basename( + path.dirname(__dirname.split("/").pop() || "") + ); + + public async preSptLoad(container: DependencyContainer): Promise { + // Initialize anything if needed before SPT loads + } + + public async postDBLoad(container: DependencyContainer): Promise { + let settings: Settings; + let pkg: any; + + try { + pkg = require("../package.json"); + settings = require("../config/config.json"); + logger.info("Settings loaded successfully."); + logger.info(`Settings: ${JSON.stringify(settings)}`); + } catch (err) { + logger.error("Failed to load config.json or package.json", err); + return; + } + + const modPath = preSptModLoader.getModPath(this.modName); + logger.info(`Mod path: ${modPath}`); + + const folderPaths = { + anime: path.join(modPath, "res", "anime"), + custom: path.join(modPath, "res", "custom"), + main: path.join(modPath, "res", "main"), + realistic: path.join(modPath, "res", "realistic"), + }; + + try { + if ( + !settings.anime && + !settings.custom && + !settings.main && + !settings.realistic + ) { + logger.info( + "All folder usage settings are false. No images will be changed." + ); + return; + } + + let filepath = ""; + if (settings.anime) { + filepath = folderPaths.anime; + } else if (settings.custom) { + filepath = folderPaths.custom; + } else if (settings.main) { + filepath = folderPaths.main; + } else if (settings.realistic) { + filepath = folderPaths.realistic; + } + + this.loadImages(filepath, settings); + logger.log( + `${pkg.name} [LOADED]: Traders Looking Fire Now!`, + LogTextColor.BLUE + ); + } catch (err) { + logger.error("An error occurred during postDBLoad execution", err); + logger.error(err.stack); + } + } + + private loadImages(filepath: string, settings: Settings): void { + logger.info(`Loading images from: ${filepath}`); + + fs.readdir(filepath, (err, files) => { + if (err) { + logger.error(`Error reading directory: ${filepath}`, err); + return; + } + + files.forEach((file) => { + const traderName = path.basename(file, path.extname(file)); + try { + if (settings.updateAllTraders) { + this.changeTraderImage(traderName, settings, filepath); + } + } catch (error) { + logger.error( + `Error processing image for trader ${traderName}: ${error.message}` + ); + } + }); + }); + } + + private changeTraderImage( + traderName: string, + settings: Settings, + filepath: string + ): void { + const imageFileName = `${traderName}.${settings.extension}`; + logger.info(`Changing image for ${traderName} to ${imageFileName}`); + imageRouter.addRoute( + `/files/trader/avatar/${traderName}`, + `${filepath}${path.sep}${imageFileName}` + ); + } +} + +export const mod = new TraderPics(); diff --git a/profiles/Multiplayer/modlist.txt b/profiles/Multiplayer/modlist.txt index f081f4f..86e523b 100644 --- a/profiles/Multiplayer/modlist.txt +++ b/profiles/Multiplayer/modlist.txt @@ -4,6 +4,7 @@ +Backburner_separator +Config Files +Modlist Addons_separator ++Merks Trader Image Swicher +Tools & Debugging_separator +Headshot Darkness +Smoke Rework diff --git a/profiles/Server/modlist.txt b/profiles/Server/modlist.txt index 78eb2ed..994e52e 100644 --- a/profiles/Server/modlist.txt +++ b/profiles/Server/modlist.txt @@ -3,6 +3,7 @@ +Backburner_separator +Config Files +Modlist Addons_separator +-Merks Trader Image Swicher +Tools & Debugging_separator -Headshot Darkness -Smoke Rework @@ -35,7 +36,7 @@ +Hideout Changes_separator +Plant Time Modifier +Quest Tweaks_separator --Lotus ++Lotus +Ref SPT Friendly Quests +New Traders & Tweaks_separator +Smart Action