Value 1000" ... convert to ink problem

Plugin specific problems will be solved here.

Moderator: Plugin Moderators

User avatar
KentuckyFriedChicken
Townsman
Reactions:
Posts: 99
Joined: 31 Jan 2018, 17:55
Location: Austria, Vienna
Plugins: Showcase Store

Plugin Creator

Platform

Value 1000" ... convert to ink problem

#1

Post by KentuckyFriedChicken »

Screenshot_20180701-175305.png

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

User avatar
Lobby
Developer
Reactions:
Posts: 3705
Joined: 26 Oct 2008, 12:34
Plugins: Showcase Store
Version: Beta

Platform

Re: Value 1000" ... convert to ink problem

#2

Post 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). ",

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

Platform

Re: Value 1000" ... convert to ink problem

#3

Post by JustAnyone »

Mistake at my end. Gonna fix it in next update. :bf

Post Reply Previous topicNext topic

Return to “Problems”