Page 1 of 1
Value 1000" ... convert to ink problem
Posted: 01 Jul 2018, 17:55
by KentuckyFriedChicken
Code: Select all
//json created by theotown plugin creator application for android
[
{
"id":"00KFCsTBU",
"type":"award",
"width":4,
"height":4,
"frames":[{"bmp":"oh.png"}],
"title":"TBU",
"text":"Theolandia Broadcasting Union (=TBU)
TBU allows you to enable Television function and Radio function. All your inhabitants would love the Television function!
We present you our VIP-Channel:
Pickle TV, TheoTown NEWS (=TTN).
Our VIP Series:
Lobby's Tips for TheoTown, JustAnyone's Discord Adventures,
TheoTown Forums NEWS (=TTFN). ",
"influence management": 20,
"influence education low": 30,
"influence education high": 35,
"influence culture": 50,
"influence sport": 35,
"influence religion": 30,
"price":36458,
"monthly price":369,
"power":"-92",
"water":"-80",
"author":"Kentucky",
"draw ground":true,
"rotation aware":false,
"requirements":[{"type":"HABITANT_COUNT","count":1000","factor0":0,
"factor1":0}]
}
]
Need Help
Re: Value 1000" ... convert to ink problem
Posted: 01 Jul 2018, 23:40
by Lobby
Closer look:
Code: Select all
"rotation aware":false,
"requirements":[{"type":"HABITANT_COUNT","count":1000","factor0":0,
"factor1":0}]
}
There's a " after 1000. Remove it and that part should be fine. Another thing is that json doesn't support multi line strings as you use it in text:
Code: Select all
"text":"Theolandia Broadcasting Union (=TBU)
TBU allows you to enable Television function and Radio function. All your inhabitants would love the Television function!
We present you our VIP-Channel:
Pickle TV, TheoTown NEWS (=TTN).
Our VIP Series:
Lobby's Tips for TheoTown, JustAnyone's Discord Adventures,
TheoTown Forums NEWS (=TTFN). ",
Instead you have to write that in one line as use \n to indicate line breaks. That would look like:
Code: Select all
"text":"Theolandia Broadcasting Union (=TBU)\nTBU allows you to enable Television function and Radio function. All your inhabitants would love the Television function!\nWe present you our VIP-Channel:\nPickle TV, TheoTown NEWS (=TTN).\n\nOur VIP Series:\nLobby's Tips for TheoTown, JustAnyone's Discord Adventures,\nTheoTown Forums NEWS (=TTFN). ",
Re: Value 1000" ... convert to ink problem
Posted: 03 Jul 2018, 10:56
by JustAnyone
Mistake at my end. Gonna fix it in next update.