nikodem2 / scrapmechanic-character-editor Goto Github PK
View Code? Open in Web Editor NEWA javascript Scrap Mechanic Character Editor
A javascript Scrap Mechanic Character Editor
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!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.