joket

Veteran
Veteran
Joined
Apr 24, 2021
Messages
225
Reaction score
58
First Language
English
Primarily Uses
RMMV
Hello! I'm trying to load a third party library within rpg maker mv, but I'm getting this error message in the console log:

1638463224723.png


This is my index.html:

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="viewport" content="user-scalable=no">
<link rel="icon" href="icon/icon.png" type="image/png">
<link rel="apple-touch-icon" href="icon/icon.png">
<link rel="stylesheet" type="text/css" href="fonts/gamefont.css">
<title>Project1</title>
</head>
<body style="background-color: black">
<script type="text/javascript" src="js/libs/third_party_library.js"></script>
<script type="text/javascript" src="js/libs/pixi.js"></script>
<script type="text/javascript" src="js/libs/pixi-tilemap.js"></script>
<script type="text/javascript" src="js/libs/pixi-picture.js"></script>
<script type="text/javascript" src="js/libs/fpsmeter.js"></script>
<script type="text/javascript" src="js/libs/lz-string.js"></script>
<script type="text/javascript" src="js/libs/iphone-inline-video.browser.js"></script>
<script type="text/javascript" src="js/rpg_core.js"></script>
<script type="text/javascript" src="js/rpg_managers.js"></script>
<script type="text/javascript" src="js/rpg_objects.js"></script>
<script type="text/javascript" src="js/rpg_scenes.js"></script>
<script type="text/javascript" src="js/rpg_sprites.js"></script>
<script type="text/javascript" src="js/rpg_windows.js"></script>
<script type="text/javascript" src="js/plugins.js"></script>
<script type="text/javascript" src="js/main.js"></script>
</body>
</html>


any suggestion?
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
34,763
Reaction score
8,970
First Language
German
Primarily Uses
RMMV
"syntax error" is the computer's way to tell you that you wrote nonsense.
the most common cause for this is a typo or a mix-up of different letters or something like this.

and we can't even help you here because it looks as if you censored the name of the library, the part that you wrote wrong in the original file.
 

joket

Veteran
Veteran
Joined
Apr 24, 2021
Messages
225
Reaction score
58
First Language
English
Primarily Uses
RMMV
you're right, but it's basically the same name of the file so it should be a code error in the index.html, is there a typo in there?
 

gimmer_

Veteran
Veteran
Joined
Jan 13, 2021
Messages
69
Reaction score
46
First Language
English
Primarily Uses
RMMV
Line 1 of third_party_library.js is doing an import statement in a way that the NW.js version you are using cannot support. I've only seen import used in node applications myself, so I'm not that familiar with it.
 

joket

Veteran
Veteran
Joined
Apr 24, 2021
Messages
225
Reaction score
58
First Language
English
Primarily Uses
RMMV
thank you, how can I import outer libraries in a standard RPG maker mv project then?

Without js processor, importing with require should be the way to go?
Can you help me?
 
Last edited:

gimmer_

Veteran
Veteran
Joined
Jan 13, 2021
Messages
69
Reaction score
46
First Language
English
Primarily Uses
RMMV
They have to be compatible with ES5 for out the box RPGMaker MV. Typically you don't import third party libraries, but instead load plugins via the plugin system.
What is your third party library doing?
 

joket

Veteran
Veteran
Joined
Apr 24, 2021
Messages
225
Reaction score
58
First Language
English
Primarily Uses
RMMV
that library works with ES6, it should be compatible I guess
 

gimmer_

Veteran
Veteran
Joined
Jan 13, 2021
Messages
69
Reaction score
46
First Language
English
Primarily Uses
RMMV
ES5 is what works, ES6 won't run. You'd have to upgrade to a newer NWjs for it to work
 

joket

Veteran
Veteran
Joined
Apr 24, 2021
Messages
225
Reaction score
58
First Language
English
Primarily Uses
RMMV
Thank you! Could you tell me how can I upgrade it ?
 

Latest Threads

Latest Posts

Latest Profile Posts

People laughed at me when I said that Activision Blizzard would get bought up by another company if they didn't fire their execs. Now their value has dipped so much Microsoft is willing to buy the company, likely followed by some heavy terminations if they want to purify the current toxic image of Activision Blizzard.
Pro tip: don't be this person.1642536788532.png
ok hear me out here: if the only way my brain can describe things is like with colors is this normal? Like I've described a smell as "dark green and fuzzy" and a taste as "dark blue" like is this a normal thing that happens to people or am I just going insane?? o.0
I'm sitting here, programming, when suddenly, in the distance, I hear a deep booming shout, "Dovahkiin". In an instant, my mind and body is pulling me away, my fingers twitch and notepad++, almost by itself, turns off. The Steam starts to rise and a big green play button appers and I am teleported to Skyrim, because, I am, the Dragonborn! 200 hours played last three weeks, omg o_O

Forum statistics

Threads
118,487
Messages
1,116,317
Members
155,473
Latest member
bomjamboree
Top