Im trying to change the character but when i run it
This error pops up.
file:///C:/Users/NokoDev/Downloads/ScrapMechanic-Character-Editor-master/new.js:131
if (err) throw err;
^
[Error: ENOENT: no such file or directory, open 'C:\Users\NokoDev\AppData\Roaming\Axolot Games\Scrap Mechanic\User\User_76561198427283599\character'] {
errno: -4058,
code: 'ENOENT',
syscall: 'open',
path: 'C:\\Users\\NokoDev\\AppData\\Roaming\\Axolot Games\\Scrap Mechanic\\User\\User_76561198427283599\\character'
}
Node.js v18.12.1
If you have the same issue as me, Don't worry, ive provided a temporally solution for people who don't want to wait and want's to fix it now
The problem is that the steamID that nodejs thinks is incorrect.
This is my steam id: 76561199169252920
This is nodejs says: 76561198427283599
Solution 1: You can request the user for steam id. if the folder doesnt exist. print out "Invalid Steamid" and request the user for steam id again.
Solution 2: Get each folders in %appdata%\\Axolot Games\\Scrap Mechanic\\User. If 1, automaticly select that. if more than 1, request the user to select one.
I say that solution 2 is better.
For people who don't want to wait to be updated and has this issue:
Here is a tutorial of how to fix it yourself
Step 1: Open new.js (notepad or your code editor).
Step 2: Go to line 14. This sould look like this const path = process.env.APPDATA + "/Axolot Games/Scrap Mechanic/User/User_" + config.steamId64 + "/character";
Step 3: Replace the line with this const path = process.env.APPDATA + "/Axolot Games/Scrap Mechanic/User/User_[STEAMID]/character";
Step 4: Replace [STEAMID] (On the same line as previous step) with your steam id, if you dont know what it is, you can open this directory: %appdata%\Axolot Games\Scrap Mechanic\User
and you will have your steam id there and copy the numbers and paste it.
You sould have someting like this:
const path = process.env.APPDATA + "/Axolot Games/Scrap Mechanic/User/User_76561199169252920/character";
If you have someting like that then you can go and save the file and you fixed the issue!