Simple things

Plug-in related stuff can be discussed here.

Moderator: Plugin Moderators

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

Plugin Creator

Platform

Simple things

#1

Post by CommanderABab »

Screenshot from VK.  You will have to click to see it clearly.
Screenshot from VK. You will have to click to see it clearly.
This did not work because

Code: Select all

"author":""
was mispelled. Not! I forget the game doesn't care about tags it doesn't know and ignores them.
Show
Correct explanation here
Lobby wrote:
26 Aug 2018, 17:17
I would say the error arose from "bpm" instead of "bmp".

Explanation: Normally the game expects frames to be defined in the format {"x":...,"y":...,"w":...,"h":...}. Only if a frame definition contains "bmp" the plugin loader will infer these values (based on the provided images that will be put into the world texture).
Last edited by CommanderABab on 26 Aug 2018, 19:52, edited 1 time in total.
Reason: Corrections

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

Platform

Re: Simple things

#2

Post by Lobby »

I would say the error arose from "bpm" instead of "bmp".

Explanation: Normally the game expects frames to be defined in the format {"x":...,"y":...,"w":...,"h":...}. Only if a frame definition contains "bmp" the plugin loader will infer these values (based on the provided images that will be put into the world texture).

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

Plugin Creator

Platform

Re: Simple things

#3

Post by CommanderABab »

Code: Select all

//json created by theotown plugin creator application for android
[
 {
  "id":"",
  "type":"decoration",
  "width":1,
  "height":1,
  "frames":[{"bmp":"name of Flag.png"}],
<..>
  "draw ground":true,
  "rotation aware":false
 }
]
The above code prevented me from loading any map when beta 511 first arrived. Not my plugin, so I removed any identifiable elements.

Code: Select all

"id":"",
is the line that caused the problem. I think Lobby probably got awakened with all the error reports I was sending. :/

Post Reply Previous topicNext topic

Return to “Plug-In Discussion”