Value 1000" ... convert to ink problem

Plugin specific problems will be solved here.

Moderator: Plugin Moderators

User avatar
KentuckyFriedChicken
Townsman
Reactions:
Posts: 98
Joined: Wed Jan 31, 2018 17:55
Location: Austria, Vienna
Plugins: Show

Platform

Plugin Creator

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
I amKentucky
Hello World.


...I really like Scythal

User avatar
Lobby
Developer
Reactions:
Posts: 3629
Joined: Sun Oct 26, 2008 12:34
Plugins: Show
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
Rip-off engineer
Reactions:
Posts: 3027
Joined: Sun Jul 23, 2017 12:45
Location: Easter Island
Plugins: Show

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”