Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

I've come across yet another error. When I set the region specific enemies in the settings, there's an error saying "Unexpedtec toxen u in JSON position 0." I'm trying to set an enemy to spawn in Region 4, but it doesn't work. Here's the map setup.



A JSON error? That's weird.

Can you post the console report?

Also... why do you have a "0" in the State IDs?

(1 edit)

Well, I don't want the zombies to spawn with any states applied. It's not the cause since it happens with and without. It also haopens without VisuStella, so it's not that either.


ah that's why it was weird. That's remnant code that wasn't deleted. Thanks for bringing it up. You can resolve this by setting up default enemies on the map or by using the default as the first set of enemies to spawn

How do I set up the default enemies?

I looked at your screenshots and I see you do have an enemies array setup for the map. 

Highlighted is the default enemies which I see you have configured. On my end I have also setup region enemies without modifying the code:

Enemies do spawn normally in which I get two slimes.

The code error comes from using the spawn enemy function which has a different line up on my end.

Are you using the latest version of the plugin? I did a series of rapid updates recently.

I just got the new version, but the same thing still happens.

Are you using MV or MZ?

MZ/

Is the map you're trying to start the TBS battle on the only TBS configured map?

Also, please screenshot the console of the bug again with the latest version