An error of road decoration

Plugin specific problems will be solved here.

Moderators: Scenario Moderators, Plugin Moderators

User avatar
The_star
Settler
Posts: 3
Joined: 12 Mar 2020, 05:22
Plugins: Showcase Store

An error of road decoration

#1

Post by The_star »

Sorry,but…when I loading the road decoration plugin,the game outputed:
"In plugins/thestar's traffic deco extension/tdex.json:
java.lang.IllegalStateException: When loading "$tdex_lightpole00_00" Value at 4 is null."
Code:

Code: Select all    Reset

[ {"id":"$tdex_lightpole00_00","type":"animation","frames":[{"bmp":"ThemedRoadLight-A.png","x":0,"w":32,"handle y":15}]}, {"id":"$tdex_lightpole00_01","type":"animation","frames":[{"bmp":"ThemedRoadLight-A.png","x":32,"w":32,"handle y":15}]}, {"id":"$tdex_lightpole00_02","type":"animation","frames":[{"bmp":"ThemedRoadLight-A.png","x":64,"w":32,"handle y":15}]}, {"id":"$tdex_lightpole00_03","type":"animation","frames":[{"bmp":"ThemedRoadLight-A.png","x":96,"w":32,"handle y":15}]}, {"id":"$tdex_lightpole_night00_00","type":"animation","light":true,"light switching":true,"frames":[{"bmp":"ThemedRoadLight-A-NightLight.png","x":0,"w":32,"handle y":15}]}, {"id":"$tdex_lightpole_night00_01","type":"animation","light":true,"light switching":true,"frames":[{"bmp":"ThemedRoadLight-A-NightLight.png","x":32,"w":32,"handle y":15}]}, {"id":"$tdex_lightpole_night00_02","type":"animation","light":true,"light switching":true,"frames":[{"bmp":"ThemedRoadLight-A-NightLight.png","x":64,"w":32,"handle y":15}]}, {"id":"$tdex_lightpole_night00_03","type":"animation","light":true,"light switching":true,"frames":[{"bmp":"ThemedRoadLight-A-NightLight.png","x":96,"w":32,"handle y":15}]}, { "id":"$tdex_lightpole00", "type":"road decoration", "title":"Street light[zh]路灯", "text":"Light up the road,make forward brighter.[zh]点亮前路,光照前程。", "price":"100", "author":"The_star", "required flag train":false, "line tool":true, "light":true, "light switching":true, "animation":[ {"id":"$tdex_lightpole00_00"}, {"id":"$tdex_lightpole_night00_00"}, {"id":"$tdex_lightpole00_02"}, {"id":"$tdex_lightpole_night00_02"}, ], "animation fg":[ {"id":"$tdex_lightpole00_01"}, {"id":"$tdex_lightpole_night00_01"}, {"id":"$tdex_lightpole00_03"}, {"id":"$tdex_lightpole_night00_03"} ], "frame animation indices":[ [0,1],[0,1],[1],[1], [0],[0],[],[], [0,1],[0,1],[1],[1], [0],[0],[],[] ], "frame animation fg indices":[ [0,1],[0],[0,1],[0], [0,1],[0],[0,1],[0], [1],[],[1],[], [1],[],[1],[] ] } ]
JSON checker
Check
This is my first time to write a road decoration,if there is the help,it will approve a lot!
Thanks! :bd

User avatar
JustAnyone
Developer
Posts: 3580
Joined: 23 Jul 2017, 12:45
Location: Easter Island
Plugins: Showcase Store

Platform

Re: An error of road decoration

#2

Post by JustAnyone »

image.png
image.png (59.33 KiB) Viewed 2106 times
There's an extra comma which is not needed at line 25

Post Reply Previous topicNext topic

Return to “Problems”