✅Road plugin crash

Do you have any issues? Don't hesitate to tell us about it.
User avatar
_JS_
Townsman
Reactions:
Posts: 84
Joined: 02 Apr 2018, 12:29
Plugins: Showcase Store
Version: Beta

Platform

✅Road plugin crash

#1

Post by _JS_ »

When i try to open the road menu it literally crashes. I'm trying to test my first plugin (a road plugin) but the game crashes. Why? :(

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

Platform

Re: Why?

#2

Post by Lobby »

Without any code we can only do guessing on why it happens. You have to invest time to give more details about your plugin if you want anyone to help you.

Other than that, I think this stacktrace could be yours:
Screenshot_20180417-173517.png
It says that you don't provide enough frames.

User avatar
_JS_
Townsman
Reactions:
Posts: 84
Joined: 02 Apr 2018, 12:29
Plugins: Showcase Store
Version: Beta

Platform

Re: Why?

#3

Post by _JS_ »

Lobby wrote:
17 Apr 2018, 17:36
Without any code we can only do guessing on why it happens. You have to invest time to give more details about your plugin if you want anyone to help you.

Other than that, I think this stacktrace could be yours:
Screenshot_20180417-173517.png
It says that you don't provide enough frames.
I don't have any code, it just says:
TheoTown stopped working
Btw thx for your help :)

User avatar
_JS_
Townsman
Reactions:
Posts: 84
Joined: 02 Apr 2018, 12:29
Plugins: Showcase Store
Version: Beta

Platform

Re: Road plugin crash

#4

Post by _JS_ »

I'm new on JSON and plugins. I work with JSON genie and idk too much about this. I have this on frames:
Attachments
Screenshot_20180417-202247.jpg
Screenshot_20180417-202242.jpg
Screenshot_20180417-202232.jpg

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

Platform

Re: Road plugin crash

#5

Post by Lobby »

Json code, that's what I've meant. It would be easier to read if you provide it as raw text.

You have to provide 16 frames, but right now you provide only one. How your json code should look like depends on how the image file looks like. Have you followed the tutorial about roads?

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

Plugin Creator

Platform

Re: Road plugin crash

#6

Post by CommanderABab »

Json genie has an option to show the json code.

User avatar
_JS_
Townsman
Reactions:
Posts: 84
Joined: 02 Apr 2018, 12:29
Plugins: Showcase Store
Version: Beta

Platform

Re: Road plugin crash

#7

Post by _JS_ »

Lobby wrote:
17 Apr 2018, 22:03
Json code, that's what I've meant. It would be easier to read if you provide it as raw text.

You have to provide 16 frames, but right now you provide only one. How your json code should look like depends on how the image file looks like. Have you followed the tutorial about roads?
I didn't knew there was a tutorial about roads.
I will read it, thanks :)

User avatar
_JS_
Townsman
Reactions:
Posts: 84
Joined: 02 Apr 2018, 12:29
Plugins: Showcase Store
Version: Beta

Platform

Re: Road plugin crash

#8

Post by _JS_ »

CommanderABab wrote:
17 Apr 2018, 22:12
Json genie has an option to show the json code.
Oh i didn't knew that, Thanks :)

User avatar
_JS_
Townsman
Reactions:
Posts: 84
Joined: 02 Apr 2018, 12:29
Plugins: Showcase Store
Version: Beta

Platform

Re: Road plugin crash

#9

Post by _JS_ »

There you go :)
Attachments
Screenshot_20180417-221813.jpg

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

Plugin Creator

Platform

Re: Road plugin crash

#10

Post by CommanderABab »

Now show us country_road.png and dirt_road.png.

The frames statements should look like this if they are 16 tiles.

Code: Select all

"frames":[{"bmp":"dirt_road.png", "w":32,"count":16}]

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

Plugin Creator

Platform

Re: Road plugin crash

#11

Post by CommanderABab »

Also needs

Code: Select all

"speed":#,
if you want to faster than a normal road. # would be 1.1 to 2 for the dirt road because the default one has a speed of 1.

User avatar
_JS_
Townsman
Reactions:
Posts: 84
Joined: 02 Apr 2018, 12:29
Plugins: Showcase Store
Version: Beta

Platform

Re: Road plugin crash

#12

Post by _JS_ »

CommanderABab wrote:
17 Apr 2018, 22:26
Now show us country_road.png and dirt_road.png.

The frames statements should look like this if they are 16 tiles.

Code: Select all

"frames":[{"bmp":"dirt_road.png", "w":32,"count":16}]
Attachments
dirt_road.png
dirt_road.png (7.86 KiB) Viewed 2315 times
country_road.png
country_road.png (2.45 KiB) Viewed 2315 times

Post Reply Previous topicNext topic

Return to “Problems and Errors (bugs)”