Re: Railroad with transparent base plugin
Posted: 26 Feb 2018, 04:10
A feature rich city builder game for Android, iOS and PC
https://www.forum.theotown.com/
Read it using a computer.KINGTUT10101 wrote: ↑26 Feb 2018, 04:09I couldn't read your json. I tried loading it into json Genie and it was invalid
Code: Select all
[{
"allowbus": false,
"allowtransfer": true,
"author": "mdk_813;22Alpha;Kingtut101;wetguy",
"autojoin": false,
}],
"category": "traincategory.kt101",
"connectable": true,
"drawground": true,
"flagnormal": false,
"flagtram": true,
"frames": [{
"bmp": "raildecal.png",
"count": 16,
"h": 17,
"w": 32
}],
"id": "S_Bahn_railway_decal.mdk",
"level": 5,
"monthlyprice": 1,
"ordinal": 500,
"price": 50,
"requirement": {
"requirements": [{
"data": {
"lvl": 5
},
"type": "RANK"
}]
},
"speed": 1.5,
"text": "Used to guide your trains.",
"title": "Railway with transperant base",
"type": "road",
"xflags": {
"flagnormal": false,
"flagtram": true
}
}]
[{
"allowbus": false,
"allowtransfer": true,
"author": "mdk_813;22Alpha;Kingtut101;wetguy",
"autojoin": false,
}],
"category": "traincategory.kt101",
"connectable": true,
"drawground": true,
"flagnormal": false,
"flagtram": true,
"frames": [{
"bmp": "raildecal.png",
"count": 16,
"h": 17,
"w": 32
}],
"id": "railway_road.mdk",
"level": 5,
"monthlyprice": 1,
"ordinal": 500,
"price": 50,
"requirement": {
"requirements": [{
"data": {
"lvl": 5
},
"type": "RANK"
}]
},
"speed": 1.5,
"text": "Used to guide your trains on top of roads.",
"title": "Roadtop Tramway",
"type": "road",
"xflags": {
"flagnormal": true,
"flagtram": true
}
}]
[{
"allowbus": false,
"allowtransfer": true,
"author": "mdk_813;22Alpha;Kingtut101;wetguy",
"autojoin": false,
}],
"category": "traincategory.kt101",
"connectable": true,
"drawground": true,
"flagnormal": false,
"flagtram": true,
"frames": [{
"bmp": "railcrossing1.png",
"count": 16,
"h": 17,
"w": 32
}],
"id": "railway_crossing1.mdk",
"level": 5,
"monthlyprice": 1,
"ordinal": 500,
"price": 50,
"requirement": {
"requirements": [{
"data": {
"lvl": 5
},
"type": "RANK"
}]
},
"speed": 1.5,
"text": "Used for railway crossings.",
"title": "Railroad crossing NS",
"type": "road",
"xflags": {
"flagnormal": true,
"flagtram": true
}
}]
[{
"allowbus": false,
"allowtransfer": true,
"author": "mdk_813;22Alpha;Kingtut101;wetguy",
"autojoin": false,
}],
"category": "traincategory.kt101",
"connectable": true,
"drawground": true,
"flagnormal": false,
"flagtram": true,
"frames": [{
"bmp": "railcrossing1.png",
"count": 16,
"h": 17,
"w": 32
}],
"id": "railway_crossing2.mdk",
"level": 5,
"monthlyprice": 1,
"ordinal": 500,
"price": 50,
"requirement": {
"requirements": [{
"data": {
"lvl": 5
},
"type": "RANK"
}]
},
"speed": 1.5,
"text": "Used for railway crossings.",
"title": "Railroad crossing WE",
"type": "road",
"xflags": {
"flagnormal": true,
"flagtram": true
}
}]
I checked it, and it is invalid.KINGTUT10101 wrote: ↑26 Feb 2018, 17:06I think it looks good. If that code doesn't work then you should check it in Json Lint (it's a website)
Code: Select all
[{
"allowbus": false,
"allowtransfer": true,
"author": "mdk_813;22Alpha;Kingtut101;wetguy",
"autojoin": false,
"category": "traincategory.kt101",
"connectable": true,
"drawground": true,
"flagnormal": false,
"flagtram": true,
"frames": [{
"bmp": "raildecal.png",
"count": 16,
"h": 17,
"w": 32
}],
"id": "S_Bahn_railway_decal.mdk",
"level": 5,
"monthlyprice": 1,
"ordinal": 500,
"price": 50,
"requirement": {
"requirements": [{
"data": {
"lvl": 5
},
"type": "RANK"
}]
},
"speed": 1.5,
"text": "Used to guide your trains.",
"title": "Railway with transperant base",
"type": "road",
"xflags": {
"flagnormal": false,
"flagtram": true
}
},
{
"allowbus": false,
"allowtransfer": true,
"author": "mdk_813;22Alpha;Kingtut101;wetguy",
"autojoin": false,
"category": "traincategory.kt101",
"connectable": true,
"drawground": true,
"flagnormal": false,
"flagtram": true,
"frames": [{
"bmp": "raildecal.png",
"count": 16,
"h": 17,
"w": 32
}],
"id": "railway_road.mdk",
"level": 5,
"monthlyprice": 1,
"ordinal": 500,
"price": 50,
"requirement": {
"requirements": [{
"data": {
"lvl": 5
},
"type": "RANK"
}]
},
"speed": 1.5,
"text": "Used to guide your trains on top of roads.",
"title": "Roadtop Tramway",
"type": "road",
"xflags": {
"flagnormal": true,
"flagtram": true
}
},
{
"allowbus": false,
"allowtransfer": true,
"author": "mdk_813;22Alpha;Kingtut101;wetguy",
"autojoin": false,
"category": "traincategory.kt101",
"connectable": true,
"drawground": true,
"flagnormal": false,
"flagtram": true,
"frames": [{
"bmp": "railcrossing1.png",
"count": 16,
"h": 17,
"w": 32
}],
"id": "railway_crossing1.mdk",
"level": 5,
"monthlyprice": 1,
"ordinal": 500,
"price": 50,
"requirement": {
"requirements": [{
"data": {
"lvl": 5
},
"type": "RANK"
}]
},
"speed": 1.5,
"text": "Used for railway crossings.",
"title": "Railroad crossing NS",
"type": "road",
"xflags": {
"flagnormal": true,
"flagtram": true
}
},
{
"allowbus": false,
"allowtransfer": true,
"author": "mdk_813;22Alpha;Kingtut101;wetguy",
"autojoin": false,
"category": "traincategory.kt101",
"connectable": true,
"drawground": true,
"flagnormal": false,
"flagtram": true,
"frames": [{
"bmp": "railcrossing1.png",
"count": 16,
"h": 17,
"w": 32
}],
"id": "railway_crossing2.mdk",
"level": 5,
"monthlyprice": 1,
"ordinal": 500,
"price": 50,
"requirement": {
"requirements": [{
"data": {
"lvl": 5
},
"type": "RANK"
}]
},
"speed": 1.5,
"text": "Used for railway crossings.",
"title": "Railroad crossing WE",
"type": "road",
"xflags": {
"flagnormal": true,
"flagtram": true
}
}
]
Code: Select all
"draw ground": true
"draw ground" is already true.
Code: Select all
"draw ground":true
This would get through jsonlint but still not work. "draw ground":true has a space!KINGTUT10101 wrote: ↑26 Feb 2018, 17:06I think it looks good. If that code doesn't work then you should check it in Json Lint (it's a website)
You had
Code: Select all
"draw[tab character]ground":true