Will this work?

Plug-in related stuff can be discussed here.

Moderator: Plugin Moderators

User avatar
CommanderABab
AB
Reactions:
Posts: 11102
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Will this work?

#1

Post by CommanderABab »

Code: Select all

[
   {
      "id": "$waterres1x1plwgin.uniqwe.id.res01",
      "type": "residential",
      "needs road": true,
      "needs water": true,
      "author": "CommanderABab",
      "width": 1,
      "height": 1,
      "frames": [
         {
            "bmp": "Waterres.png"
         }
      ],
      "smoke": [
         {
            "id": "$smoke07",
            "x": 13,
            "y": -255
         }
      ],
      "level": 3
   }
]


Is there a needs water property? ☺

User avatar
CommanderABab
AB
Reactions:
Posts: 11102
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

#2

Post by CommanderABab »

Apparently not.

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

Platform

#3

Post by Lobby »

What should happen? The flag actually exists.

User avatar
CommanderABab
AB
Reactions:
Posts: 11102
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

#4

Post by CommanderABab »

Lobby wrote:What should happen? The flag actually exists.
I will send the bug report. Its stopping with the folder in plugins.

User avatar
CommanderABab
AB
Reactions:
Posts: 11102
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

#5

Post by CommanderABab »

[quote="CommanderABab"][quote="Lobby"]What should happen? The flag actually exists.[/quote]

I will send the bug report. Its stopping with the folder in plugins.[/quote]

Without the waterres folder:

Image

I think that I have enough ships to send them on a mission to Sedile.

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

Platform

#6

Post by Lobby »

Looks as if there's a problem with the leading spaces. Maybe you used tabs? They are not officially supported by JSON-readers. You have to use pure spaces instead. When I remove all leading spaces and readd them, it works for me.

To have tags that aren't supported won't crash TheoTown. They will just be ignored.

@former member
We will write a list of further supported tags, but that will take some time.

The next version will write an error.log file into the plugins dir if there was an issue loading a plugin. That should be helpful for debugging.

User avatar
CommanderABab
AB
Reactions:
Posts: 11102
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

#7

Post by CommanderABab »

Lobby wrote:Looks as if there's a problem with the leading spaces. Maybe you used tabs? They are not officially supported by JSON-readers. You have to use pure spaces instead. When I remove all leading spaces and readd them, it works for me.

To have tags that aren't supported won't crash TheoTown. They will just be ignored.

@former member
We will write a list of further supported tags, but that will take some time.

The next version will write an error.log file into the plugins dir if there was an issue loading a plugin. That should be helpful for debugging.
Thanks! I'll check it out.

User avatar
CommanderABab
AB
Reactions:
Posts: 11102
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

#8

Post by CommanderABab »

It was a missing r in the png file name.

Post Reply Previous topicNext topic

Return to “Plug-In Discussion”