Giter VIP home page Giter VIP logo

scrapmechanic-character-editor's People

Stargazers

 avatar  avatar

Watchers

 avatar

scrapmechanic-character-editor's Issues

Invalid Steam ID when running

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.