How do I patch "codeNw.js"?

Ok, this might sound stupid but I don’t know how to patch “codeNw.js”, so I want to make a mod which adds consoles and more things to the game, but in GitHub it says that I must patch the file, but I don’t know how to patch it.

I would appreciate if someone tells me how to do it, thanks!

Could you show me a screenshot of GitHub?

Ignore that, and it clearly says “It might be tempting to start changing the game code in codeNw.js directly but this is not a good practice

1 Like

Thanks.

If you’re only wanting to add stuff to the game, you don’t need to touch codeNw.js at all. Just implement new stuff via the api.