Page 1 of 1

[462] Plugin crash (pedestrianzonecustom.json:1662)

Posted: 16 Apr 2018, 01:06
by Johnb
Hi, I got the following error with a plugin (pedestrianzonecustom.json:1662):

Code: Select all

In /data/user/0/info.flowersoft.theotown.theotown/files/plugins/pedestrianzonecustom.zip/pedestrianzonecustom.json:

org.json.JSONException: Car id ped.dusko.1 could not be found!
Device: LEX720 (LeEco)
Android: 23 (6.0.1)

Thank you in advance.

Re: [462] Plugin crash (pedestrianzonecustom.json:1662)

Posted: 16 Apr 2018, 13:51
by Bearbear76
The pack doesn't come with "ped.dusko.1". probably need the original pack.
not good at roads so I'm not sure though...

(for people better at JSON)

Code: Select all

[
   {  
     "id":"ped.zone.dusko.custom", 
     "type":"road", 
     "author":"former member",
     "flag pedestrian":true,
     "flag normal":false,
     "level":0,
     "width":1,
     "height":1,
     "frames":[
       {"bmp":"zonecustom.png"},
       {"bmp":"zonecustom.png"},
       {"bmp":"zonecustom.png"},
       {"bmp":"zonecustom.png"},
       {"bmp":"zonecustom.png"},
       {"bmp":"zonecustom.png"},
       {"bmp":"zonecustom.png"},
       {"bmp":"zonecustom.png"},
       {"bmp":"zonecustom.png"},
       {"bmp":"zonecustom.png"},
       {"bmp":"zonecustom.png"},
       {"bmp":"zonecustom.png"},
       {"bmp":"zonecustom.png"},
       {"bmp":"zonecustom.png"},
       {"bmp":"zonecustom.png"},
       {"bmp":"zonecustom.png"},
       {"bmp":"zonecustom.png"}],
     "title":"Ped. zone", 
     "text":"Pedestrian zone for your pedestrians to walk on.", 
     "x flags":{ "flag normal":true, "flag pedestrian":true },
     "overrunnable":true,
     "one way":false,
     "draw ground":true,
     "speed":0.5,
     "speed winter":0.4,
     "price":10,
     "monthly price":1,
     "auto join":false,
     "allow crossing":true,
     "allow transfer":true,
     "allow bus":false,
     "connectable":false
   },
  {
    "id":"ped.bench.dusko.custom",
    "type":"park",
    "width":1, 
    "height":1,
    "frames":[{"bmp":"benchcustom.png"}],
    "title":"Benches (Custom)",
    "text":"Attracts people to your parks.",
    "draw ground":true,
    "car spawner":[
  {
    "cars":["ped.dusko.1"],
    "count":4,
    "radius":25
  }
],
    "power":0,
    "water":0,
    "build time":0,
    "price":120,
    "monthly price":20,
    "influence park":10
   }
]