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,594
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 just started uploading some of my selfmade Pixel Art on DA,
visit me there if you are interrested^^
Im sorry but..I Want to play a game.
Anyone here is familiar with the US Law ? I'm working on a game idea at the moment and I have several questions on my mind :p
I just lost an hour plus of time to trying to modify the _battlefield sprite... when in reality MZ calls it _battleField ;_;

Even when debugging for the "undefined value", it looked exactly the same to my 20/60 eyesight.

I really prefer this_naming_convention rather than thisNamingConvention !!

Forum statistics

Threads
109,108
Messages
1,042,147
Members
141,602
Latest member
justbobted25
Top