Error

Plug-in related stuff can be discussed here.

Moderator: Plugin Moderators

User avatar
Löbby
enjenir
Reactions:
Posts: 2984
Joined: Sun Jul 23, 2017 12:45
Location: Easter Island
Plugins: Show

Error

#1

Post by Löbby »

What could this mean?


In /storage/emulated/0/TheoTown/plugins/Quest/meteor.json:

java.lang.ClassCastException: info.flowersoft.theotown.theotown.draft.UpgradeDraft cannot be cast to info.flowersoft.theotown.theotown.draft.BuildingDraft
Perfect way to comment stuff out :)
🦀Now available as administrator🦀
Image

:pickle:

User avatar
Löbby
enjenir
Reactions:
Posts: 2984
Joined: Sun Jul 23, 2017 12:45
Location: Easter Island
Plugins: Show

Re: Error

#2

Post by Löbby »

former member wrote:
Sun Jul 23, 2017 18:35
Can you show the code?

Code: Select all

[{"id":"dsahq","height":4,"width":4,"type":"decoration","influence pollution":15,"frames":[{"bmp":"meteor.png"}],"upgrades":[{"id":"dsahq","price":50000,"monthly price":10,"frames":[{"bmp":"meteor.png"}],"title":"DSA Headquarters","text":"Upgrade the hardware to spy fellow theotown players.","influence pollution":-30,"influence park":13,"height":4,"width":4,"requirement":{"requirements":[{"type":"RANK","data":{"id":"$rnk_city_big"},"author":"former member"}]}}],"price":10000,"spawn":{"p":0.008,"height":800,"radius":100},"max count":1,"author":"JustAnyone","title":"DSA Headquarters","text":"DSA headquarters are already here! Use it to fight villians and evil people. You can upgrade it to get an abillity to gather intelligence.","requirement":{"requirements":[{"type":"RANK","data":{"id":"$rnk_city_small"},"author":"JustAnyone"}]}}]
<🆎️>
Perfect way to comment stuff out :)
🦀Now available as administrator🦀
Image

:pickle:

User avatar
Löbby
enjenir
Reactions:
Posts: 2984
Joined: Sun Jul 23, 2017 12:45
Location: Easter Island
Plugins: Show

Re: Error

#3

Post by Löbby »

former member wrote:
Sun Jul 23, 2017 18:40
JustAnyone wrote:
Sun Jul 23, 2017 18:37
former member wrote:
Sun Jul 23, 2017 18:35
Can you show the code?
[{"id":"dsahq","height":4,"width":4,"type":"decoration","influence pollution":15,"frames":[{"bmp":"meteor.png"}],"upgrades":[{"id":"dsahq","price":50000,"monthly price":10,"frames":[{"bmp":"meteor.png"}],"title":"DSA Headquarters","text":"Upgrade the hardware to spy fellow theotown players.","influence pollution":-30,"influence park":13,"height":4,"width":4,"requirement":{"requirements":[{"type":"RANK","data":{"id":"$rnk_city_big"},"author":"former member"}]}}],"price":10000,"spawn":{"p":0.008,"height":800,"radius":100},"max count":1,"author":"JustAnyone","title":"DSA Headquarters","text":"DSA headquarters are already here! Use it to fight villians and evil people. You can upgrade it to get an abillity to gather intelligence.","requirement":{"requirements":[{"type":"RANK","data":{"id":"$rnk_city_small"},"author":"JustAnyone"}]}}]
You used the same id twice (building and upgrade)
Change one of them, it may work
Thank you! Works like a charm!
Perfect way to comment stuff out :)
🦀Now available as administrator🦀
Image

:pickle:

Post Reply Previous topicNext topic

Return to “Plug-In Discussion”