[517] Plugin crash (coal.json:1531)

Plugin specific problems will be solved here.

Moderator: Plugin Moderators

User avatar
sairam
Inhabitant of a Conurbation
Reactions:
Posts: 537
Joined: 31 Dec 2017, 13:35
Location: India Pudukkottai
Plugins: Showcase Store
Version: Beta

Platform

[517] Plugin crash (coal.json:1531)

#1

Post by sairam »

Hi, I got the following error with a plugin (coal.json:1531):

Code: Select all

In /storage/emulated/0/TheoTown/plugins/coal_industry_sairam/coal.json:

java.lang.IllegalStateException: When loading "$blank_coalmine00": May not load action from [{"type":"remove"},{"type":"rect","h":4,"w":4,"inner":[{"type":"build","id":"$zoneindustrial_lvl2"}]},{"type":"build","id":"$coalmine00"}]
Device: moto e5 plus (motorola)
Android: 26 (8.0.0)

Thank you in advance.
What happens? Please help! I don't know what the problem is.

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

Plugin Creator

Platform

Re: [517] Plugin crash (coal.json:1531)

#2

Post by CommanderABab »


User avatar
sairam
Inhabitant of a Conurbation
Reactions:
Posts: 537
Joined: 31 Dec 2017, 13:35
Location: India Pudukkottai
Plugins: Showcase Store
Version: Beta

Platform

Re: [517] Plugin crash (coal.json:1531)

#3

Post by sairam »

Can you please say it with a example because I did it correctly.

User avatar
sairam
Inhabitant of a Conurbation
Reactions:
Posts: 537
Joined: 31 Dec 2017, 13:35
Location: India Pudukkottai
Plugins: Showcase Store
Version: Beta

Platform

Re: [517] Plugin crash (coal.json:1531)

#4

Post by sairam »

I'll post my code here!

Code: Select all

[
  {
		"id":"$coalore_anim00",
		"type":"animation",
		"frames":[{"bmp":"coal1.png"},{"bmp":"coal2.png"},{"bmp":"coal3.png"},{"bmp":"coal4.png"},{"bmp":"coal5.png"}],
		"speed":0.005
	},
	{
		"id":"$coal_truck00",
		"type":"car",
		"frames":[{"bmp":"coaltruck.png","h":17,"w":13,"count":4}],
		"v2":true
	},
	{
		"id":"$coalmine00",
		"type":"industrial",
		"width":4,
		"height":4,
		"frames":[{"steal":"$coalmine00"}],
		"level":2,
		"car spawner": [ 
		{
			"cars":["$coal_truck00"],
			"count":10,
			"radius":290,
			"targets":["$coalplant00"]
		}
	              ],
		"override":true

	},
  { 
      "id":"$coalore00",
      "type":"decoration",
      "author":"sairam",
	  "animation":[{"id":"$coalore_anim00","x":0,"y":-6}],
      "frames":[null],
	  "upgrades":[ {
			"frames":[null],
			"id":"$coalmine_upgrade00",
			"title":"Coal Mine",
			"text":"If you are willing to upgrade to a coal mine? \n This cannot be undone."
				}],
       "height":1,
       "width":1,
       "text":"An unmined coal ore.",
       "title":"Coal Ore"
   },
  { 
      "id":"$blank_coalmine00",
      "type":"decoration",
      "author":"sairam",
      "frames":[{"bmp":"blank.png"}],
      "height":4,
      "width":4,
	  "fun":[{ 
		"action":[	{"type":"remove"},
					{"type":"rect","h":4,"w":4,
						"inner":[{"type":"build","id":"$zoneindustrial_lvl2"}]},
					{"type":"build","id":"$coalmine00"}]}]


   }
]

Post Reply Previous topicNext topic

Return to “Problems”