[Asked][1.10.95a] Plugin crash (ijjjx.json:811)

Plugin specific problems will be solved here.

Moderators: Scenario Moderators, Plugin Moderators

User avatar
KRGames
Settler
Posts: 3
Joined: 05 Dec 2022, 20:03

[Asked][1.10.95a] Plugin crash (ijjjx.json:811)

#1

Post by KRGames »

Hi, I got the following error with a plugin (ijjjx.json:811):

Code: Select all

In ijjjx.zip:

io.blueflower.stapel2d.util.json.JSONException: Names must be strings, but {"id":"$testLA","title":"test","people":55,"build time":3,"price":1000,"removable":true,"draw ground":true,"type":"residential","frames":["house.png"],"animation":[{"id":"$testNA"}],"width":1,"height":1} is of type io.blueflower.stapel2d.util.json.JSONObject at line 21, char 2. Excerpt: 
		"height": 1
 --ERROR->>>}

Full source: [
 {  
	 "id":"$testNA",
  "type":"animation",
	 "light":true,
  "light switching":true,
	 "frames": [{"bmp":"house2.png","handle y":8}],
  {
	 "id":"$testLA",
  "title": "test",
  "people": 55,
		"build time": 3,
		"price": 1000,
		"removable": true,
		"draw ground": true,
		"type": "residential",
		"frames":[house.png],
		"animation":[{"id":"$testNA"}],
		"width": 1,
		"height": 1
 }
]
Device: Lenovo TB-X606F (LENOVO)
OS version: 29

Thank you in advance.

User avatar
NotPFA
Townsman
Posts: 70
Joined: 28 Jan 2023, 17:34
Plugins: Showcase Store

Plugin Creator

Platform

Re: [Asked][1.10.95a] Plugin crash (ijjjx.json:811)

#2

Post by NotPFA »

line 7 unnecessary ,
line 8 missing },
line 17 "frames":[{"bmp":"house.png"}],

User avatar
CommanderABab
AB
Posts: 11245
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: [Asked][1.10.95a] Plugin crash (ijjjx.json:811)

#3

Post by CommanderABab »

Code: Select all

[
 {  
	 "id":"$testNA",
  "type":"animation",
	 "light":true,
  "light switching":true,
	 "frames": [{"bmp":"house2.png","handle y":8}]
  },///// the fix :)
  {
	 "id":"$testLA",
  "title": "test",
  "people": 55,
		"build time": 3,
		"price": 1000,
		"removable": true,
		"draw ground": true,
		"type": "residential",
		"frames":[house.png],
		"animation":[{"id":"$testNA"}],
		"width": 1,
		"height": 1
 }
]
Will probably work as you intended. :)

User avatar
CommanderABab
AB
Posts: 11245
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: [Asked][1.10.95a] Plugin crash (ijjjx.json:811)

#4

Post by CommanderABab »

NotPFA wrote:
15 Feb 2023, 22:07
line 7 unnecessary ,
line 8 missing },
line 17 "frames":[{"bmp":"house.png"}],
Line 7 was intended. It is the animation frames!

Post Reply Previous topicNext topic

Return to “Problems”