Mod Details

HD Vanilla Trader Pics

HD Vanilla Trader Pics 1.8.0

Created by  redlaser42

6.3K Downloads

SPT 3.11.4 Compatible

Higher resolution vanilla trader pictures.

Latest Version 1.8.0
SPT 3.11.4

Updated May 31, 12:03 AM

Version Notes
  • Fixed server load code for Linux users.
  • Remove unnecessary files.

Big thank you to FriedEngineer for providing the bug report AND the fix!

This download is externally hosted.
Always scan for viruses.

Why?

The trader pictures were distractingly low rez. I did not like the other alternate trader picture mods. I wanted to keep true to the original design, so I took the original pictures and ran them through various upscalers and face generators, then a lot of clean up in Photoshop.

Now you can see everyone up close. The changes are subtle, but they give them a lot more character.

I recommend using this with my other mod Hide Top Glow, otherwise Ragman and Jager will look too bright.

After installing, you must “Clear Temp Files” in the SPT launcher for the new pictures to show up.

(Those original pictures in the corners are a true size comparison. (127x127 -> 526x526 )

Credit to Alternative Trader Pics for the code. You do not need this as a prerequisite though.

Version 1.8.0
Download Mod Version
SPT 3.11.4
Latest Compatible SPT Version

1.2K Downloads

Created May 31, 12:03 AM

Updated May 31, 12:03 AM

Virus Total Results
  • Fixed server load code for Linux users.
  • Remove unnecessary files.

Big thank you to FriedEngineer for providing the bug report AND the fix!

Version 1.7.0
Download Mod Version
SPT 3.11.4
Latest Compatible SPT Version

1.1K Downloads

Created Mar 17, 3:34 PM

Updated Mar 17, 3:34 PM

Virus Total Results

Updated for 3.11

Version 1.6.0
Download Mod Version
SPT 3.10.5
Latest Compatible SPT Version

1.4K Downloads

Created Nov 26, 2024 at 7:06 PM

Updated Nov 26, 2024 at 7:06 PM

Virus Total Results

Updated for 3.10

Version 1.5.0
Download Mod Version
Unknown SPT Version
Latest Compatible SPT Version

1.4K Downloads

Created Jul 11, 2024 at 3:54 AM

Updated Jul 11, 2024 at 3:54 AM

Virus Total Results

Added alternative Peacekeeper picture. Option in config file.

His OG pic is only like 2 bits, I could only do so much

Version 1.4.0
Download Mod Version
SPT 3.9.0
Latest Compatible SPT Version

298 Downloads

Created Jul 8, 2024 at 7:10 PM

Updated Jul 8, 2024 at 7:10 PM

Virus Total Results

• Updated for 3.9.0

• 3rd pass edits (cleanup, improved ragman, color grading)

• Added Joe Rogan

• Brightness has been increased (mostly for ragman and jager) to look good with my “Hide Top Glow” mod.

Version 1.3.0
Download Mod Version
Unknown SPT Version
Latest Compatible SPT Version

248 Downloads

Created Jul 4, 2024 at 6:14 PM

Updated Jul 4, 2024 at 6:14 PM

Virus Total Results

Fixed bad server load code. Ty AcidPhantasm for the help

FriedEngineer

I love the mod but it does not currently work as-is when the server is run on a Linux system. Would you consider changing the line

this.modName = this.path.basename(this.path.dirname(__dirname.split(’/’).pop()!)); in src/altPics.ts to

this.modName = “redlaser42-HD Vanilla Trader Pics”; to make it work cross-platform?

I the current line does not work because the .split method works a bit differently in Linux but whatever is going on, the end result is that the modName gets set to . so when it’s run on Linux it is unable to properly obtain the name of the mod. Then when const filepath = ${PreSptModLoader.getModPath(this.modName)}res/; is run it throws the error message

Error reading directory: ENOENT: no such file or directory, scandir ‘user/mods/./res/’ and is unable to provide the HD pictures to the client upon request.

0 Likes

Thanks for the report. I noticed I included the .js files in the latest release. That’s caused issues with linux users in the past. If you delete the .js files, does the ts file generate a working js file when you run the server?

0 Likes

Thanks for the reply!

This has been an issues for months and I’ve just finally made a comment. I did delete the .js files just to be sure and it did not fix it.

I believe this is a fundamental difference in Linux vs Windows with how the .split method works. I modified the constructor as follows to try to understand the difference:

constructor(container: DependencyContainer) { this.container = container; this.pkg = require(“../package.json“); this.modName = this.path.basename(this.path.dirname(__dirname.split(’/’).pop()!)); this.logger.info(dirname: ${\_\_dirname}); this.logger.info(split: ${\_\_dirname.split('/')}); this.logger.info(pop: ${\_\_dirname.split('/').pop()}); this.logger.info(pop!: ${\_\_dirname.split('/').pop()!}); this.logger.info(path.dirname: ${this.path.dirname(\_\_dirname.split('/').pop()!)}); this.logger.info(modname: ${this.modName}); } which prints out the following on Linux

dirname: /opt/server/user/mods/redlaser42-HD Vanilla Trader Pics/src split: ,opt,server,user,mods,redlaser42-HD Vanilla Trader Pics,src pop: src pop!: src path.dirname: . modname: . and the following on WIndows

dirname: C:\Users\Rob\Documents\Applications\SPTarkov\zDev\SPT-310\user\mods\redlaser42-HD Vanilla Trader Pics\src split: C:\Users\Rob\Documents\Applications\SPTarkov\zDev\SPT-310\user\mods\redlaser42-HD Vanilla Trader Pics\src pop: C:\Users\Rob\Documents\Applications\SPTarkov\zDev\SPT-310\user\mods\redlaser42-HD Vanilla Trader Pics\src pop!: C:\Users\Rob\Documents\Applications\SPTarkov\zDev\SPT-310\user\mods\redlaser42-HD Vanilla Trader Pics\src path.dirname: C:\Users\Rob\Documents\Applications\SPTarkov\zDev\SPT-310\user\mods\redlaser42-HD Vanilla Trader Pics modname: redlaser42-HD Vanilla Trader Pics Clearly what returns from split on Linux can be handled by pop but when it’s fed into the path.dirname function what you actually want is not what comes out. I’m surprised any Linux users have had success without modifying it (that’s what I’ve done for the last 6 months or so and just forgot about it until I upgraded to 3.10 and had to do it again)

Other Options

I also did a bunch of tinkering with some other options so if you don’t want to hard code the mod name in.

Relative Path

const filepath = ${PreSptModLoader.getModPath(this.modName)}res/; to

const filepath = ${this.path.join(\_\_dirname, "..", "res/")}; I think this would also allow you to remove the PreSptModLoader dependency (if you so desire)

Use the pkg dependency to dynamically create the modName

this.modName = this.path.basename(this.path.dirname(__dirname.split(’/’).pop()!)); to

this.modName = ${this.pkg.author}-${this.pkg.name};

0 Likes

Awesome, thanks for looking into this! I’ll be sure to include one of these changes in the next update.

0 Likes

Thanks a bunch!

0 Likes

Any chance you can revisit this? I believe it’s still an issue.

0 Likes
gFresh

AMAZING.

Looks so much more better.

1 Like
SirUnknown

Already cleaned temp files but still not changing the images.

0 Likes

Hmm basic troubleshooting steps

  • What SPT and Mod version? OS?
  • The HD Vanilla Trader Pics folder is in the \user\mods?
  • There are no files in \user\sptappdata\files\trader\avatar before loading in?
0 Likes

Worked now, my \user\sptappdata\files\trader\avatar was not empty. Ty

1 Like
SaintMellec

Lol is “Joe Rogan” actually Ref, or a new trader who sells you super expensive stims that don’t have any provable effects?

1 Like
SaintMellec

Caught an error on the latest upload

https://imgur.com/a/aTvGyF1

ModLoader: Mod (Vanilla Trader Pics Plus 1.0) is incompatible. It must implement at least one of IPostAkiLoadMod, IPostDBLoadMod, IPreAkiLoadMod

and then later

TypeError: Cannot read properties of undefined (reading ‘main’)

TypeError: Cannot read properties of undefined (reading ‘main’)

at PostDBModLoader.executeModsAsync (C:\snapshot\src\loaders\PostDBModLoader.ts:52:70)

at processTicksAndRejections (node:internal/process/task_queues:95:5)

at PostDBModLoader.onLoad (C:\snapshot\src\loaders\PostDBModLoader.ts:30:13)

at App.load (C:\snapshot\src\utils\App.ts:57:13)

TypeError: Cannot read properties of undefined (reading ‘main’)

TypeError: Cannot read properties of undefined (reading ‘main’)

at PostDBModLoader.executeModsAsync (C:\snapshot\src\loaders\PostDBModLoader.ts:52:70)

at processTicksAndRejections (node:internal/process/task_queues:95:5)

at PostDBModLoader.onLoad (C:\snapshot\src\loaders\PostDBModLoader.ts:30:13)

at App.load (C:\snapshot\src\utils\App.ts:57:13)

0 Likes

Thanks, I think I’ve gotten that before. I will look into it tonight. You could download 1.0 and drop in the new pics in the meantime.

0 Likes

That’s just what I did

0 Likes

Should be all good now. Ty for the report

0 Likes
Redmisty

That’s really cool, may you please make HD vanilla skill pics as well? I think they are in low quality for a long period, that will improve visual feeling actually if some HD pics on it.

0 Likes
Fegeer

Amazing mod! Thank you very much! I must have for vanilla traders!!!

1 Like
redlaser42

Appreciate it!

0 Likes
Strahhe

The changes are subtle, but they give them a lot more character.

You were not kidding. GOATED mod. Thank you

1 Like
Hacker228

If the traders pictures have not changed, close the game and delete the avatar folder from AppData\Local\Temp\Battlestate Games\EscapeFromTarkov\files\trader

2 Likes

You can also “Clear Temp Files” in the SPT Launcher settings.

0 Likes
slendermang

TypeError: Cannot read properties of undefined (reading ‘forEach’) TypeError: Cannot read properties of undefined (reading ‘forEach’) at /opt/server/user/mods/Vanilla Trader Pics Plus 1.0/src/altPics.ts:30:19 at FSReqCallback.oncomplete (node:fs:191:23) TypeError: Cannot read properties of undefined (reading ‘forEach’) TypeError: Cannot read properties of undefined (reading ‘forEach’) at /opt/server/user/mods/Vanilla Trader Pics Plus 1.0/src/altPics.ts:30:19 at FSReqCallback.oncomplete (node:fs:191:23)

Running server backend on Debian

0 Likes

Not sure what this could be having not done the coding, but there are other alternate trader pic mods you could try and use these photos with.

0 Likes

This should be fix now btw

0 Likes

Details