Just try to check what's wrong with my code

Do you have any issues? Don't hesitate to tell us about it.
User avatar
Thidagtahu
Settler
Posts: 4
Joined: 25 Mar 2025, 01:34

Just try to check what's wrong with my code

#1

Post by Thidagtahu »

:json

Code: Select all    Reset

[{"id":"$car_taxi00", "type":"car", "override":true, "inherit":true, "frames":[{"bmp":"taxi.png","x":0,"y":0,"w":12,"h":9,"count":1,"handle y":2},{"bmp":"taxi.png","x":12,"y":0,"w":12,"h":9,"count":1},{"bmp":"taxi.png","x":24,"y":0,"w":12,"h":9,"count":1,"handle y":2},{"bmp":"taxi.png","x":36,"y":0,"w":12,"h":9,"count":5}], "frames per variant":8, "v2":true, "chargeable": false }, {"id":"$garbagetruck00", "type":"car", "override":true, "inherit":true, "frames":[{"bmp":"garbage vehicle.png","x":0,"y":0,"w":18,"h":14,"count":8}], "frames per variant":8, "animation": [{"id": "carlight_red","pos": [0, 0, 0, 11, 13, 13, 0, 0],"frames": [1,2]}, {"id": "carlight_red","pos": [0, 0, 4, 13 , 17, 11, 0, 0],"frames": [1,2]}, {"id": "carlight_yellow","pos": [13, 12, 0, 0, 0, 0, 0, 11],"frames": [0,3]}, {"id": "carlight_yellow","pos": [16, 11, 0, 0, 0, 0, 3, 12],"frames": [0,3]}], "v2":true, "speed":0.9, "flag military":true, "flag airport":true, "meta":{"tags":{"garbage":{}}} }, {"id":"$recyclingtruck00", "type":"car", "override":true, "inherit":true, "frames":[{"bmp":"garbage vehicle.png","x":0,"y":13,"w":18,"h":14,"count":8}], "frames per variant":8, "v2":true, "speed":0.9, "flag military":true, "flag airport":true, "meta":{"tags":{"garbage":{}}} }, {"id":"$ap_car00", "type":"car", "override":true, "inherit":true, "frames":[{"bmp":"taxi.png","x":0,"y":9,"w":11,"h":8,"count":1,"handle y":3},{"bmp":"taxi.png","x":11,"y":9,"w":11,"h":8,"count":1},{"bmp":"taxi.png","x":22,"y":9,"w":11,"h":8,"count":1,"handle y":2},{"bmp":"taxi.png","x":33,"y":9,"w":11,"h":8,"count":5}], "frames per variant":8, "v2":true, "flag airport":true, "speed":2.4, "meta":{"tags":{"airport taxi":{}}} }, {"id":"$mltry_truck00", "type":"car", "override":true, "inherit":true, "frames":[{"bmp":"military vehicle.png","x":0,"y":0,"w":19,"h":16,"count":2,"handle y":1},{"bmp":"military vehicle.png","x":38,"y":0,"w":19,"h":16,"count":1},{"bmp":"military vehicle.png","x":57,"y":0,"w":19,"h":16,"count":1,"handle y":1},{"bmp":"military vehicle.png","x":76,"y":0,"w":19,"h":16,"count":4}], "frames per variant":8, "v2":true, "speed":0.9, "flag military":true, "flag pedestrian":true, "flag tram":true, "flag airport":true, "chargeable": false, "meta":{"tags":{"military truck":{}}} }, {"id":"$tank00", "type":"car", "override":true, "inherit":true, "frames":[{"bmp":"military vehicle.png","x":0,"y":16,"w":23,"h":16,"count":1},{"bmp":"military vehicle.png","x":23,"y":16,"w":23,"h":16,"count":1,"handle y":1},{"bmp":"military vehicle.png","x":46,"y":16,"w":23,"h":16,"count":1,"handle y":-1},{"bmp":"military vehicle.png","x":69,"y":16,"w":23,"h":16,"count":5}], "frames per variant":8, "v2":true, "speed":0.5, "flag military":true, "flag pedestrian":true, "flag tram":true, "flag airport":true, "chargeable": false, "meta":{"tags":{"military tank":{}}} }, {"id":"$btr00", "type":"car", "frames":[{"bmp":"military vehicle.png","x":0,"y":32,"w":18,"h":11,"count":1,"handle y":0},{"bmp":"military vehicle.png","x":18,"y":32,"w":18,"h":11,"count":1,"handle y":0},{"bmp":"military vehicle.png","x":36,"y":32,"w":18,"h":11,"count":1,"handle y":0},{"bmp":"military vehicle.png","x":54,"y":32,"w":18,"h":11,"count":5}, {"bmp":"military vehicle.png","x":0,"y":43,"w":18,"h":11,"count":1,"handle y":0},{"bmp":"military vehicle.png","x":18,"y":43,"w":18,"h":11,"count":1,"handle y":0},{"bmp":"military vehicle.png","x":36,"y":43,"w":18,"h":11,"count":1,"handle y":0},{"bmp":"military vehicle.png","x":54,"y":43,"w":18,"h":11,"count":5}, {"bmp":"military vehicle.png","x":0,"y":54,"w":18,"h":11,"count":1,"handle y":0},{"bmp":"military vehicle.png","x":18,"y":54,"w":18,"h":11,"count":1,"handle y":0},{"bmp":"military vehicle.png","x":36,"y":54,"w":18,"h":11,"count":1,"handle y":0},{"bmp":"military vehicle.png","x":54,"y":54,"w":18,"h":11,"count":5}], "frames per variant":8, "v2":true, "speed":1.0, "flag military":true, "flag pedestrian":true, "flag tram":true, "flag airport":true, "chargeable": false, "meta":{"tags":{"military tank":{}}} }, {"id":"$limo00", "type":"car", "frames":[{"bmp":"unused car.png","x":0,"y":0,"w":18,"h":12,"count":8},{"bmp":"unused car.png","x":0,"y":12,"w":18,"h":12,"count":8}], "frames per variant":8, "v2":true, "flag normal":false, "flag pkw":true, "meta":{"tags":{"carres2":{}}} }, {"id":"$unused_car00", "type":"car", "frames":[{"bmp":"unused car.png","x":0,"y":24,"w":18,"h":12,"count":8}], "frames per variant":8, "v2":true, "speed":2.0, "flag normal":false, "flag pkw":true, "meta":{"tags":{"carres1":{}}} }, {"id":"$unused_car01", "type":"car", "frames":[{"bmp":"unused car.png","x":0,"y":36,"w":12,"h":9,"count":1,"handle y":3},{"bmp":"unused car.png","x":12,"y":36,"w":12,"h":9,"count":1},{"bmp":"unused car.png","x":24,"y":36,"w":12,"h":9,"count":1,"handle y":3},{"bmp":"unused car.png","x":36,"y":36,"w":12,"h":9,"count":5}], "frames per variant":8, "v2":true, "speed":1.7, "flag normal":false, "flag pkw":true, "meta":{"tags":{"carres1":{}}} }, {"id":"$car_transporter_truck00", "type":"car", "frames":[{"bmp":"industry truck.png","x":0,"y":0,"w":28,"h":25,"count":1,"handle y":0},{"bmp":"industry truck.png","x":0,"y":0,"w":28,"h":25,"count":1},{"bmp":"industry truck.png","x":0,"y":0,"w":28,"h":25,"count":1,"handle y":0},{"bmp":"industry truck.png","x":0,"y":0,"w":28,"h":25,"count":5}], "frames per variant":8, "v2":true, "speed":0.9, "flag normal":true, "flag pkw":false, "meta":{"tags":{"carind2":{}}} }, {"id":"$just_car_spawner","type":"decoration","title":"Car Spawner","text":"Cat.","category":"$cat_transport00","height":1,"width":1,"frames":[null],"rotation aware":true,"draw ground":true,"car spawner":[{"targets":["$just_car_spawner"],"cars":["$unused_car00"],"count":5,"radius":10000},{"targets":["$just_car_spawner"],"cars":["$unused_car01"],"count":5,"radius":10000},{"targets":["$just_car_spawner"],"cars":["$limo00"],"count":5,"radius":10000}]
JSON checker
Check
If someone see this there's nothing special in it

User avatar
FVI
Inhabitant of a Galaxy
Posts: 2394
Joined: 22 Feb 2022, 18:00
Location: The largest island in Europe
Plugins: Showcase Store
Version: Beta

Platform

Re: Just try to check what's wrong with my code

#2

Post by FVI »

Not completely sure if this is causing the problem, but I counted the curly brackets in the last line and noticed open brackets are more than closed brackets.

Post Reply Previous topicNext topic

Return to “Problems and Errors (bugs)”