subengari

Villager
Member
Joined
Dec 12, 2020
Messages
7
Reaction score
1
First Language
king's english
Primarily Uses
RMMV
I know how to go about adding a library if I am provided a single JS file- for example, with loglevel.js I just move that file into my project's js/lib folder and edit main.js:

folder_JS-Libs.PNG
scriptLibs.PNG
And, voilà, I can use log.warn(), etc.:
loglevel_example.PNG

But what if a library doesn't provide the JS file and asks you to install it using a command line?
npmInstall.PNG

Thanks :)
 

Hudell

Dog Lord
Veteran
Joined
Oct 2, 2014
Messages
3,593
Reaction score
3,813
First Language
Java's Crypt
Primarily Uses
RMMZ
I know how to go about adding a library if I am provided a single JS file- for example, with loglevel.js I just move that file into my project's js/lib folder and edit main.js:
Huh... why do all that when you can just add the js file to your plugins folder and enable it on the plugin manager?

But what if a library doesn't provide the JS file and asks you to install it using a command line?
View attachment 176641

Thanks :)
Sometimes you can find the js file on the github repository, but gm is **a lot** more than just some Javascript code. It's not impossible to make it work on nw.js, but it's not a matter of just copying files to the right place either. Before you dive into that, it's important for you to know exactly what you're working with.
 

Latest Threads

Latest Profile Posts

I once thought about a boss gauntled game. I actually did it.
Stream will be live shortly with some Gex 3! Feel free to drop by!
Snippet from a game I'm working on. Not much happening here. Mostly look at atmosphere. May upload a longer version. Still need to make up some enemy arts.
Been slightly struggling with developing the latest chapter, I think I will downscale my ambitions and make it more linear.

Forum statistics

Threads
109,058
Messages
1,041,697
Members
141,544
Latest member
spacewaxamerica
Top