Lumicakery

Villager
Member
Joined
Jul 11, 2014
Messages
7
Reaction score
3
Primarily Uses
Hey there.

This is a really good plugin but I'm having a problem. I get a Syntax Error - Unexpected token u in JSON at position 0 when I try to access a shop. What's strange is that if I start a new game with the shop right next to me (to test), it works fine. But when I continue from a save slot or play a new game normally, the bug happens. I thought it was Yanfly's Item Core but I still get the bug with or without.

Any ideas or help?
 

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
4,013
Reaction score
1,523
First Language
Dutch
Primarily Uses
RMMV
@Lumicakery how did you set up the parameters?
what shops do you use more or plugins?

to see what conflicts it gives, turn off all plugins and turn them on 1 by 1.
and see which conflicts it.

if you found the one that create this bug, move this plugin above it (when below)
otherwise when below, place it above.

if it continue to happen, report back with the parameter, plugin list and event
setup, so mjshi or me can help you out.

because it works correctly on my end with alot of plugins.
 

dragoonwys

Freelance Illustrator
Veteran
Joined
Jul 26, 2016
Messages
365
Reaction score
968
First Language
english
Primarily Uses
RMMV
@Lumicakery Also its a note to take that when adding a new plugin or just doing anything with plugins in general, that you shouldn't start from a save file to reduce the possibility of errors happening. Always start a new game.
 

Lumicakery

Villager
Member
Joined
Jul 11, 2014
Messages
7
Reaction score
3
Primarily Uses
@Lumicakery how did you set up the parameters?
what shops do you use more or plugins?

to see what conflicts it gives, turn off all plugins and turn them on 1 by 1.
and see which conflicts it.

if you found the one that create this bug, move this plugin above it (when below)
otherwise when below, place it above.

if it continue to happen, report back with the parameter, plugin list and event
setup, so mjshi or me can help you out.

because it works correctly on my end with alot of plugins.
Thanks for the quick replies.

I'm using default parameters and just a standard shop event with no additional stuff. Also, I've removed all other plugins but no dice. Starting a new game doesn't help either. Like I said, if I start a new game just to test the shop, it works. But when I start a new game and play for real, it doesn't. It's really weird (and pretty hard to find the cause). I might just end up just using a different plugin I think.
 
Last edited:

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
4,013
Reaction score
1,523
First Language
Dutch
Primarily Uses
RMMV
does it crash? if so, make a screenshot of the console log, which tell
us the cause of the problem and where to look.
 

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
4,013
Reaction score
1,523
First Language
Dutch
Primarily Uses
RMMV
thats the one, if it's the only plugin active, mjshi might know the cause,
but I look into it what it cause and what the function does, because it
would be strange if it happend on your end.

(PS: if I dont respond, I hope @mjshi can help you out, as she is the creator of it).
she might need additional info in order to fix it :). I respond in a couple of hours
unless she helped you.

EDIT:
Did you assign a variable?
the default is variable 1, if you have 1 in use, change this variable to an unused variable.
and it should work afterwards, because it's checking a gamevariable.
 
Last edited:

SaburoX

Veteran
Veteran
Joined
Jan 27, 2013
Messages
96
Reaction score
8
Primarily Uses
Hey there.

This is a really good plugin but I'm having a problem. I get a Syntax Error - Unexpected token u in JSON at position 0 when I try to access a shop. What's strange is that if I start a new game with the shop right next to me (to test), it works fine. But when I continue from a save slot or play a new game normally, the bug happens. I thought it was Yanfly's Item Core but I still get the bug with or without.

Any ideas or help?
I tried this plugin out for the first time today and had this problem. What caused it for me was the variable was looking for a shop I had not defined. It's a little counter intuitive but to call the first shop as defined by the plugin, the variable has to be set to 0 (rather than 1 as I had it).
Double check your variables with this knowledge, you might be one off somewhere.
 

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
4,013
Reaction score
1,523
First Language
Dutch
Primarily Uses
RMMV
@SaburoX the variable assigned the ID, not the value, you can store
any number of value for different shop or to say different things when
a common event is called.
 

SaburoX

Veteran
Veteran
Joined
Jan 27, 2013
Messages
96
Reaction score
8
Primarily Uses
@SaburoX the variable assigned the ID, not the value, you can store
any number of value for different shop or to say different things when
a common event is called.
I worded my post poorly. What I mean is that when the variable equals 0 it looks for id 1, rather than 1 = 1. variable to id.png
mjshi does point this out but it's something I overlooked so it's possible someone else might have this problem.
 

ShadowDragon

Realist
Veteran
Joined
Oct 8, 2018
Messages
4,013
Reaction score
1,523
First Language
Dutch
Primarily Uses
RMMV
what is your conditional branch dialogue common event is 0?
because it looks like this isn't triggered.

Also your commen event ID = 3, you use variable 10 instead!
 

mjshi

Jack of Most Trades
Veteran
Joined
Feb 16, 2013
Messages
995
Reaction score
841
First Language
English
Primarily Uses
N/A
Sorry for the long absence, @ShadowDragon thanks for helping out!

@Lumicakery, were you able to resolve your problem with what @SaburoX suggested? I probably should add more descriptive error messages in that case. If not, please PM me a test project so I can take a look!
 

Latest Threads

Latest Posts

Latest Profile Posts

I just did some math and... apparently what seemed to be a little fun gimmick turned out to be an 80+ actors project :kaoswt2:
Yay! the original character contest 3 pack is here!
Both MV and MZ looks very good, congratulation for both RMW and Tkool participant!
I definitely can add these characters to use for my game project.

Steam link
The worst part of game development has to be marketing. Ugh...
May be starting a new job in a month or so. The thought is both exciting and terrifying.
Not like a rollercoaster though. Rollercoasters are just terrifying.
"Merchants don't sell you a product. They sell you something RIGHT NOW. That's all they're selling, the product of having what you want RIGHT NOW and not having to wait for it."

Forum statistics

Threads
112,476
Messages
1,068,551
Members
146,143
Latest member
marquez19marissa
Top