I followed the documentation and made a lib folder in my project however, when I deployed my game, the additional libs were missing from the lib folder. The lib folder I had created was missing in the deployed version. What is going on, where did my apis go?
External libraries are missing
Visual Novel Maker SupportHi, the libs from the lib folder will be integrated into the data/lib folder if you export/deploy the game. So your libraries should be there.
Hi,
only JavaScript libraries are supported by default. Since your libraries are native Windows DLLs, they are not copied over. However, VN Maker's build pipeline is extensible. If you go Tools > Preferences > Application > Build tab you can open "Windows (NW.js)" then you can see all the build steps which are just command line calls. In case of PC/Mac export, it will just call a script. By default, that script is in <install-dir>/scripts/package_nwjs.js and packages a PC/Mac game. You can make your own package script based on that one and just copy over the .lib/.dll files from the project.
Alternatively, you can also copy them over by hand. I will see what we can do here to improve this in the future, it might make sense to copy over native libraries too by default.
only JavaScript libraries are supported by default. Since your libraries are native Windows DLLs, they are not copied over. However, VN Maker's build pipeline is extensible. If you go Tools > Preferences > Application > Build tab you can open "Windows (NW.js)" then you can see all the build steps which are just command line calls. In case of PC/Mac export, it will just call a script. By default, that script is in <install-dir>/scripts/package_nwjs.js and packages a PC/Mac game. You can make your own package script based on that one and just copy over the .lib/.dll files from the project.
Alternatively, you can also copy them over by hand. I will see what we can do here to improve this in the future, it might make sense to copy over native libraries too by default.
Original thread: https://forums.rpgmakerweb.com/threads/external-libraries-are-missing.91358/