No picture recognition

Plugin specific problems will be solved here.

Moderator: Plugin Moderators

User avatar
Josh
Graphic designer
Reactions:
Posts: 2214
Joined: 11 Mar 2017, 19:20
Location: The Netherlands
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: No picture recognition

#21

Post by Josh »

Lobby wrote:
29 Sep 2017, 23:36
@Josh I assume you have a second file brick_decals.json which lies directly in your plugins folder.
No, I checked it 10 times or so. And my files even don't call it "b1" anymore. I changed the filename and the code to "brick1" but it still says it can't find b1. I think theotoen is just stuck on it

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

Platform

Re: No picture recognition

#22

Post by Lobby »

Memory in Android can be a nasty thing, but this is really strange. You might try to reboot the device.

Another thing is you might rename the plugins directory so the game shouldn't find any plugins anymore. After that you can hopefully get it running again.

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

Plugin Creator

Platform

Re: No picture recognition

#23

Post by CommanderABab »

Have you taken Theotown out of your active tasks between iterations of the plugin?

User avatar
Josh
Graphic designer
Reactions:
Posts: 2214
Joined: 11 Mar 2017, 19:20
Location: The Netherlands
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: No picture recognition

#24

Post by Josh »

Lobby wrote:
30 Sep 2017, 11:33
Memory in Android can be a nasty thing, but this is really strange. You might try to reboot the device.

Another thing is you might rename the plugins directory so the game shouldn't find any plugins anymore. After that you can hopefully get it running again.
Renaming the folder helped, but then somehow automitically another plugins folder was created, so I placed all my plugins there. A result if it is that all my placed plugins such as highway barriers disaepered. I am lucky they were only not a lot and replaceble

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

Platform

Re: No picture recognition

#25

Post by Lobby »

Yes, the plugin dir (with the sample plugin) is created automatically if missing.

User avatar
Josh
Graphic designer
Reactions:
Posts: 2214
Joined: 11 Mar 2017, 19:20
Location: The Netherlands
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: No picture recognition

#26

Post by Josh »

How does that work? I am interested :)

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

Platform

Re: No picture recognition

#27

Post by Lobby »

What exactly do you want to know?

User avatar
Josh
Graphic designer
Reactions:
Posts: 2214
Joined: 11 Mar 2017, 19:20
Location: The Netherlands
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: No picture recognition

#28

Post by Josh »

Lobby wrote:
07 Oct 2017, 18:01
What exactly do you want to know?
How you code a automatic folder to be placed

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

Platform

Re: No picture recognition

#29

Post by Lobby »

Something like that:

Code: Select all

File dir = new File(Environment.getExternalStorageDirectory(), "TheoTown/plugins");
dir.mkdirs();
To be able to access external storage you also have to ensure that your app has the needed rights to do so.

Post Reply Previous topicNext topic

Return to “Problems”