subengari

Villager
Member
Joined
Dec 12, 2020
Messages
9
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,599
Reaction score
3,828
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 Posts

Latest Profile Posts

I am adamant about not having missable quests, which means having to write entirely new scenes at each plot progression that takes into account that time and events have passed since the quest could first be accepted while still having there be a quest to solve in the first place. It's worth every second.
Surprisingly useful and thought provoking
Working on animation. Trying to see if I can apply it meaningfully to my games!
ddwk.png

working on the sprite for Devali <3
My Game Development Livestream

Forum statistics

Threads
110,378
Messages
1,052,798
Members
143,420
Latest member
jaguaru
Top