Posts by zhua.w

    I do not run linux and do not know what is required to run SPT with linux. If you are having issues I would expect you to fix it, as I have no idea what make mods compatible. If you were in the server and we could work something out to make it compatible with both windows and linux, given that windows is the primary install-base, I can only claim it is compatible with that. But let me know if you wish to work with me to help me understand cross compatibility so that everyone can enjoy the weapon parts. Thank you.

    Thank you for your good work!
    Well it's just a path problem. Windows use '\' as a separation‌ while Linux use '/'.

    For example in src/QuestAPI.ts line 50, "const questFiles = fs.readdirSync(this.instanceManager.dbPath.concat(`\\Quests\\${trader}\\`));", this will trigger "Error: ENOENT: no such file or directory". Linux can't recognize "\mods\EpicRangeTime-Weapons\" etc.

    I had to change '\\' to '\/' like "\/Quests\/${trader}\/" or "\/user\/mods\/EpicRangeTime-Weapons\/" so Linux can read the path /user/mods/EpicRangeTime-Weapons/xxx.

    But I think a change this can result same problem in Windows platform...

    I don't know how to program, I can only point out the problem. Hope this will help you and the linux users.

    English isn't my first language, so please excuse any mistakes. I hope I made it clear.

    Solved: replace \\ by \/ in [WTTInstanceManager.js QuestAPI.ts TraderAPI.ts]

    Linux Server

    [EpicRangeTime-Weapons] WTTRouter: Initialized and registered routes.

    [EpicRangeTime-Weapons] ----------------------------------------------------------------------------

    [EpicRangeTime-Weapons] Developers: EpicRangeTime Code Framework: GroovypenguinX

    [EpicRangeTime-Weapons] "People have an annoying habit of remembering things they shouldn't." - Brom

    [EpicRangeTime-Weapons] ---------------------------------------------------------------------------

    The application had a critical error and failed to run

    Exception produced: Error


    Stacktrace:

    Error: ENOENT: no such file or directory, open '/root/spt/\user\mods\EpicRangeTime-Weapons\db/\Traders/\bd3a8b28356d9c6509966546\bd3a8b28356d9c6509966546_Base.json'

    at Object.readFileSync (node:fs:453:20)

    at Object.readFileSync (pkg/prelude/bootstrap.js:1079:36)

    at TraderAPI.loadTraderBaseJson (/root/spt/user/mods/EpicRangeTime-Weapons/src/TraderAPI.ts:47:25)

    at TraderBadger.preSptLoad (/root/spt/user/mods/EpicRangeTime-Weapons/src/Traders/TraderBadger.ts:24:62)

    at EpicRangeTimeWeapons.preSptLoad (/root/spt/user/mods/EpicRangeTime-Weapons/src/mod.ts:50:27)

    at PreSptModLoader.executeModsAsync (/snapshot/src/loaders/PreSptModLoader.ts:369:53)

    at PreSptModLoader.load (/snapshot/src/loaders/PreSptModLoader.ts:55:24)

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

    at process.runNextTicks [as _tickCallback] (node:internal/process/task_queues:64:3)

    at Function.runMain (pkg/prelude/bootstrap.js:1984:13)


    Epic's All in One 2.1.1


    The path '/root/spt/\user\mods\EpicRangeTime-Weapons\db/\Traders/\bd3a8b28356d9c6509966546\bd3a8b28356d9c6509966546_Base.json' looks weird...