Categories

Learn here how to create and use plugins.

Moderator: Plugin Moderators

User avatar
wcs
Small-town resident
Reactions:
Posts: 39
Joined: Sun Jun 16, 2019 8:21
Plugins: Show
Contact:

Re: Categories

#41

Post by wcs » Thu Jul 11, 2019 1:38

Renamed it to 0cat_neuterland_zone, still getting the category not found error.

Did i wrote my code correctly, above? Also, my category is a separate .json and not a part of the zones .json, that will work right?
Follow me! @wackyserious on Twitter | Youtube for the latest updates on my projects!

User avatar
Kulche
Inhabitant of a Country
Reactions:
Posts: 970
Joined: Wed Jun 07, 2017 20:28
Location: 2hot2tell
Plugins: Show
Version: Beta

Platform

Plugin Creator

Re: Categories

#42

Post by Kulche » Thu Jul 11, 2019 10:21

wcs wrote:
Thu Jul 11, 2019 1:38
My category is a separate .json and not a part of the zones .json.
If the category json is after the zone json then it won't work. Put some zs in zone json or as in cat json.
I'm not lazy, I'm motivated to do nothing!
...blame lobby for that

User avatar
wcs
Small-town resident
Reactions:
Posts: 39
Joined: Sun Jun 16, 2019 8:21
Plugins: Show
Contact:

Re: Categories

#43

Post by wcs » Fri Jul 12, 2019 0:43

Kulche wrote:
Thu Jul 11, 2019 10:21
wcs wrote:
Thu Jul 11, 2019 1:38
My category is a separate .json and not a part of the zones .json.
If the category json is after the zone json then it won't work. Put some zs in zone json or as in cat json.
Thanks, I will try this one, where do I put this? On the each of the .json ID?

@yusuf8a684 Could you send the sample .json that you offered, I would like to take a look at it and see if I can implement it in my .json, thanks! :space
Follow me! @wackyserious on Twitter | Youtube for the latest updates on my projects!

User avatar
CommanderABab
AB
Reactions:
Posts: 7885
Joined: Tue Jun 07, 2016 21:12
Plugins: Show
Version: Beta

Platform

Plugin Creator

Re: Categories

#44

Post by CommanderABab » Fri Jul 12, 2019 1:08

No, you just name the category defining json with a name that TheoTown will read before any json that uses the category.

This can be folders or json file names.

Folder named 000c
File named Category.json
Folder named UsesCategory
File named UsesCategory.json

Or if files are in same folder, then:
000definescat.json
Usescat.json
770!770Currently using alpha 770. 770 What's new? :)
Need plugins dialog!!
:)

Telegram - t.me/
🆎️🆎️🆎️🆎️Commander🆎️🆎️

User avatar
yusuf8a684
Inhabitant of a Continent
Reactions:
Posts: 1112
Joined: Sun Dec 10, 2017 22:09
Location: Turkiye
Plugins: Show
Phone model: Discovery One

Plugin Creator

Platform

Re: Categories

#45

Post by yusuf8a684 » Fri Jul 12, 2019 1:54

IMG_20190712_025135.jpg
Oh, that's right.
Category folders should be upper from it's items. Like, red circled folder is category of the categories that shown with red arrow and yellow circled folder is category of the rails

These all folders that has 00 in the name is a category folder
TheoTown Multiplayer Region
25x3Z7Z
We are playing on a region which other players in it as well. Our goal is making real world region...

User avatar
wcs
Small-town resident
Reactions:
Posts: 39
Joined: Sun Jun 16, 2019 8:21
Plugins: Show
Contact:

Re: Categories

#46

Post by wcs » Sat Jul 13, 2019 1:18

Thank you so much guys, I am quite busy right now, I will try your suggestions when I am free. :)
Follow me! @wackyserious on Twitter | Youtube for the latest updates on my projects!

Post Reply Previous topicNext topic

Return to “Tutorials and Documentation”