Yanfly Quest journal plugin Problem

Marzanna

Villager
Member
Joined
Jul 24, 2018
Messages
6
Reaction score
0
First Language
french
Primarily Uses
RMMV
Hi there, so I'm begginer in RPG Maker and java code, and usually I find the solution of my problem but with this problem I'm lost ~

So, I use Yanfly Quest journal plugin, and when I want click on "Complete" window I have this message from java.


I download the plugin in Yanfly website : http://yanfly.moe/2017/10/13/yep-152-quest-journal-system-rpg-maker-mv/

upload_2018-7-23_18-34-19.png


When I open the console I'm on this message :


and this
upload_2018-7-23_18-36-7.png


The problem stay even if all plugin are OFF,
upload_2018-7-23_18-39-56.png


And I don't understand all java language, if someone can help me, that will be fine,.
Thanks~
 

Attachments

Last edited:

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,713
First Language
English
Primarily Uses
RMVXA
It would help if you edited your post to include a link to the webpage where you got that plugin. That way if people need to check something in order to help you, they don't have to go hunting.
Thanks.
 

Marzanna

Villager
Member
Joined
Jul 24, 2018
Messages
6
Reaction score
0
First Language
french
Primarily Uses
RMMV
Ok, thanks, I updated it .
 

Aloe Guvner

Walrus
Veteran
Joined
Sep 28, 2017
Messages
1,628
Reaction score
1,115
First Language
English
Primarily Uses
RMMV
From the console error message, it looks like it doesn't like the quest description.

Can you share the settings you've made in the plugin and the description for the quest that is crashing?
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,713
First Language
English
Primarily Uses
RMVXA
I didn't spot that this was in 'Plugin Requests'. That section is for when you are looking for a plugin, or wanting an existing plugin to be modified in some way. When you already have the plugin, and need help to get it to work the way you want, then it needs to be in 'Javascript/Plugin Support'.

[mod]Moving to Javascript/Plugin Support[/mod]
 

Marzanna

Villager
Member
Joined
Jul 24, 2018
Messages
6
Reaction score
0
First Language
french
Primarily Uses
RMMV
Yes sur,
upload_2018-7-23_23-7-7.png
for the quest in the plugin I changed nothing for try.
upload_2018-7-23_23-7-41.png
upload_2018-7-23_23-7-53.png
upload_2018-7-23_23-8-5.png
upload_2018-7-23_23-8-15.png
upload_2018-7-23_23-8-49.png
upload_2018-7-23_23-8-59.png

upload_2018-7-23_23-9-9.png



so this is the script of my quest.
 
Last edited:

Aloe Guvner

Walrus
Veteran
Joined
Sep 28, 2017
Messages
1,628
Reaction score
1,115
First Language
English
Primarily Uses
RMMV
and the description for the quest that is crashing?
By this, I mean the "Description" field in the plugin parameters. If there are multiple Descriptions, only the one that causes the issue is relevant.

I don't use this plugin myself but from reading the error message:
Unexpected token u in JSON at position 0
This error is occurring when the window is trying to display the quest Description. So, most likely, somewhere in the Description is the issue.
 

Aloe Guvner

Walrus
Veteran
Joined
Sep 28, 2017
Messages
1,628
Reaction score
1,115
First Language
English
Primarily Uses
RMMV
No, we need to see the "Quest Description" that is causing the crash. This is what the error message is showing.

Sorry for my bad drawing, I'm on my mobile. Only the Description that causes the crash is relevant.
 

Attachments

Marzanna

Villager
Member
Joined
Jul 24, 2018
Messages
6
Reaction score
0
First Language
french
Primarily Uses
RMMV
oh I see, sorry~
upload_2018-7-23_23-50-4.png
upload_2018-7-23_23-50-19.png

This is the description by default, but even If I change by "real sentence" I have this error.
 
Last edited:

Aloe Guvner

Walrus
Veteran
Joined
Sep 28, 2017
Messages
1,628
Reaction score
1,115
First Language
English
Primarily Uses
RMMV
I'm sorry, I cannot help anymore, I don't see what's wrong. Hopefully someone else with experience in the plugin can see it.

What we know so far is that the issue is with the Quest Description with an error message of:
Unexpected token u in JSON at position 0
When the plugin tries to execute JSON.parse() on the description contents.
 

caethyril

^_^
Veteran
Joined
Feb 21, 2018
Messages
2,093
Reaction score
1,509
First Language
EN
Primarily Uses
RMMZ
For future reference, it would be good if you could use spoiler tags for all those images. It's a lot of scrolling to do otherwise. :kaoswt:

In my experience, the 'unexpected token u in JSON' error can occur when JSON.parse is given an unparseable input. Like Aloe said, though, the description looks OK.

Your Yanfly plugins are disordered, though: move YEP_MessageCore so it is between YEP_X_CoreUpdatesOpt and YEP_QuestJournal in the Plugin Manager. Recommended order, for reference: http://yanfly.moe/yep/

The problem stay even if all plugin are OFF,

View attachment 94951
Do you mean the problem still occurs when all plugins are off, or (like shown in the screenshot) when most plugins are off? You should turn off the -MENU and ----------------- plugins since they're just to help visually divide up the entries in the Plugin Manager. =)

If you created this project more than a month ago, your project files might be outdated and causing problems. See this announcement for instructions on how to update your project files: https://forums.rpgmakerweb.com/index.php?threads/rpg-maker-mv-v1-6-1-stable-release.96715/
 

Marzanna

Villager
Member
Joined
Jul 24, 2018
Messages
6
Reaction score
0
First Language
french
Primarily Uses
RMMV
Thank you for you answer!

Ok, So I clean the post with spoiler balise~

I updated my project, and use only yanfly plugin: Yanfly Engine Plugins, YEP_MessageCore, YEP_X_CoreUpdatesOpt, YEP_QuestJournal
but this error stay =/
 

Tacticss

Warper
Member
Joined
Jul 25, 2018
Messages
3
Reaction score
0
First Language
English
Primarily Uses
RMMV
Did you ever figure it out? I think I know what your problem may be, try moving your quest plug-in below the core engine, as far as I know the core engine should be right at the top.

I just installed this plug-in myself and I am not having the exact same problem as you, I can't even get the Quest Journal to show up in my Menu. I followed all the instructions 100%. I even tried leaving the whole quest on default and still the quest journal continues to not show up.

So this issue may be out of your hands, could be a problem with the coding right now.
 

caethyril

^_^
Veteran
Joined
Feb 21, 2018
Messages
2,093
Reaction score
1,509
First Language
EN
Primarily Uses
RMMZ
I can get the quest journal to show up OK and it seems to work with a default quest, including Plugin Commands to set stages and completion. I literally changed nothing in the plugin parameters except to add a new quest with default values.

I'm unsure what could be causing your problems if you have tried all the steps I suggested (including putting your Yanfly plugins in order).

From the screenshots your plugins seem to be up-to-date but I guess you could also try re-downloading them just in case that helps?

Edit: ditto for @Tacticss.
 

Tacticss

Warper
Member
Joined
Jul 25, 2018
Messages
3
Reaction score
0
First Language
English
Primarily Uses
RMMV
I can get the quest journal to show up OK and it seems to work with a default quest, including Plugin Commands to set stages and completion. I literally changed nothing in the plugin parameters except to add a new quest with default values.

I'm unsure what could be causing your problems if you have tried all the steps I suggested (including putting your Yanfly plugins in order).

From the screenshots your plugins seem to be up-to-date but I guess you could also try re-downloading them just in case that helps?

Edit: ditto for @Tacticss.
I actually deleted the plug-in yesterday and downloaded it again and it worked. So I must have accidentally did something. It is all working great now, so that is probably the best bet for @Marzanna as well.
 

Zetech

Villager
Member
Joined
Sep 24, 2017
Messages
18
Reaction score
0
First Language
French
Primarily Uses
RMMV
First, sorry to rebump this 2 year old thread but I found the solution to fix that ! Maybe other people using Yanfly's quest plugin will enjoy this help if they encounter this same error.

I've got the same error, but the "u" was "O".

1588721906953.png
My problem was on my objectif text zone (I just find a string which begin in "O" to seek the element which create the error)

Initialy, I wrote this on Text Mode :

JavaScript:
["Objectif 1","\"Objectif 1\""]
The first string of the array is wrongly read by the engine and it return the error "Unexpected token". The reason is pretty weird : you have to put quote symbole at the beginning and the end of each string of the array ! This is the correct code :

JavaScript:
["\"Objectif 1\"","\"Objectif 1\""]
To obtain the quoma symbole, you have to put anti slash character : \" (AltGr+8 on your keyboard)

When I do that for the only string in all my parameters of the plugin which doesn't have this symbole, it works well !

Hope I can help you !
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

"You can thank my later", "But you haven't done anything", "Well, that's why ..."
Are we allowed to post about non-RPG Maker games?
I should realize that error was produced by a outdated version of MZ so that's why it pop up like that
Ami
i can't wait to drink some ice after struggling with my illness in 9 days. 9 days is really bad for me,i can't focus with my shop and even can't do something with my project
How many hours have you got in mz so far?

Forum statistics

Threads
105,884
Messages
1,017,242
Members
137,609
Latest member
shododdydoddy
Top