Categories

Learn here how to create and use plugins.

Moderator: Plugin Moderators

User avatar
sairam
Inhabitant of a Conurbation
Reactions:
Posts: 537
Joined: Sun Dec 31, 2017 13:35
Location: India Pudukkottai
Plugins: Show
Version: Beta
Phone model: 7904216639

Platform

Re: Categories

#21

Post by sairam » Sun Aug 12, 2018 6:01

No after the ind buildings
Proud to be the player of theotown since 1.0.45 alpha.
Proud to be the first Tamil theotowner. Done 2 plugins.
:D ( ͡° ͜ʖ ͡°)

User avatar
Bearbear65
Inhabitant of a Universe
Reactions:
Posts: 4594
Joined: Fri Feb 10, 2017 14:53
Plugins: Show
Version: Beta
Phone model: Xperia™ XZ1 SO-01K

Platform

Re: Categories

#22

Post by Bearbear65 » Sun Aug 12, 2018 6:53

Then I believe it would be :

Code: Select all

"ordinal":3,
ImageJust my opinion
Theotown forum authoritarian! pszo48ly

User avatar
sairam
Inhabitant of a Conurbation
Reactions:
Posts: 537
Joined: Sun Dec 31, 2017 13:35
Location: India Pudukkottai
Plugins: Show
Version: Beta
Phone model: 7904216639

Platform

Re: Categories

#23

Post by sairam » Mon Aug 13, 2018 14:39

I want my category next to $cat_industrial.
Proud to be the player of theotown since 1.0.45 alpha.
Proud to be the first Tamil theotowner. Done 2 plugins.
:D ( ͡° ͜ʖ ͡°)

User avatar
sairam
Inhabitant of a Conurbation
Reactions:
Posts: 537
Joined: Sun Dec 31, 2017 13:35
Location: India Pudukkottai
Plugins: Show
Version: Beta
Phone model: 7904216639

Platform

Re: Categories

#24

Post by sairam » Sun Sep 09, 2018 17:01

You can see this picture for details.
113443.png
Proud to be the player of theotown since 1.0.45 alpha.
Proud to be the first Tamil theotowner. Done 2 plugins.
:D ( ͡° ͜ʖ ͡°)

ElephantEthan
Inhabitant of a Megacity
Reactions:
Posts: 294
Joined: Sun Aug 26, 2018 14:07
Plugins: Show

Platform

Re: Categories

#25

Post by ElephantEthan » Sun Sep 09, 2018 17:12

[mention]sairam[/mention]
Try

Code: Select all

"ordinal":12,

User avatar
sairam
Inhabitant of a Conurbation
Reactions:
Posts: 537
Joined: Sun Dec 31, 2017 13:35
Location: India Pudukkottai
Plugins: Show
Version: Beta
Phone model: 7904216639

Platform

Re: Categories

#26

Post by sairam » Sun Sep 09, 2018 17:35

Proud to be the player of theotown since 1.0.45 alpha.
Proud to be the first Tamil theotowner. Done 2 plugins.
:D ( ͡° ͜ʖ ͡°)

User avatar
Bearbear65
Inhabitant of a Universe
Reactions:
Posts: 4594
Joined: Fri Feb 10, 2017 14:53
Plugins: Show
Version: Beta
Phone model: Xperia™ XZ1 SO-01K

Platform

Re: Categories

#27

Post by Bearbear65 » Mon Sep 10, 2018 0:19

Show us the json
ImageJust my opinion
Theotown forum authoritarian! pszo48ly

User avatar
sairam
Inhabitant of a Conurbation
Reactions:
Posts: 537
Joined: Sun Dec 31, 2017 13:35
Location: India Pudukkottai
Plugins: Show
Version: Beta
Phone model: 7904216639

Platform

Re: Categories

#28

Post by sairam » Mon Sep 10, 2018 13:42

The JSON code is here!

Code: Select all

[{"category":"$cat_zone00","frames":[{"bmp":"icon.png"}],"id":"$cat_newcat_zone",
    "ordinal":12,"title":" buildings","type":"category"}]
Proud to be the player of theotown since 1.0.45 alpha.
Proud to be the first Tamil theotowner. Done 2 plugins.
:D ( ͡° ͜ʖ ͡°)

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

Platform

Plugin Creator

Re: Categories

#29

Post by CommanderABab » Mon Sep 10, 2018 17:12

sairam wrote:
Mon Sep 10, 2018 13:42
The JSON code is here!

Code: Select all

[{
 "category":"$cat_zone00",
 "frames":[{"bmp":"icon.png"}],
 "id":"$cat_newcat_zone",
 "ordinal":12,
 "title":" buildings",
 "type":"category"
}]
746!746Currently using beta 746. 746 What's new? :)
lit trfc lights!!
:)

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

User avatar
sairam
Inhabitant of a Conurbation
Reactions:
Posts: 537
Joined: Sun Dec 31, 2017 13:35
Location: India Pudukkottai
Plugins: Show
Version: Beta
Phone model: 7904216639

Platform

Re: Categories

#30

Post by sairam » Mon Sep 10, 2018 18:06

Here is the pic! To know it detail see picture.
113443.png
Proud to be the player of theotown since 1.0.45 alpha.
Proud to be the first Tamil theotowner. Done 2 plugins.
:D ( ͡° ͜ʖ ͡°)

User avatar
sairam
Inhabitant of a Conurbation
Reactions:
Posts: 537
Joined: Sun Dec 31, 2017 13:35
Location: India Pudukkottai
Plugins: Show
Version: Beta
Phone model: 7904216639

Platform

Re: Categories

#31

Post by sairam » Tue Oct 30, 2018 17:41

Can anyone help me with this?
Proud to be the player of theotown since 1.0.45 alpha.
Proud to be the first Tamil theotowner. Done 2 plugins.
:D ( ͡° ͜ʖ ͡°)

Shama
Settler
Reactions:
Posts: 7
Joined: Tue May 08, 2018 11:00
Plugins: Show

Re: Categories

#32

Post by Shama » Wed Jan 16, 2019 4:38

Can you put categories within categories?
Shaman - Beneficent Monarch of the city-state of Kektaka
Less corrupt than DC, stronger than London, better churches than the Vatican, and more gold than Dubai!!

Shama
Settler
Reactions:
Posts: 7
Joined: Tue May 08, 2018 11:00
Plugins: Show

Re: Categories

#33

Post by Shama » Wed Jan 16, 2019 4:42

I guess i should add: I want to make a self created category- would I be able to put another category within that? Making a roads plugin, with various styles and options so this would be helpful, especially if road decos become too tedious or wont do what i want in some cases.
Shaman - Beneficent Monarch of the city-state of Kektaka
Less corrupt than DC, stronger than London, better churches than the Vatican, and more gold than Dubai!!

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

Platform

Plugin Creator

Re: Categories

#34

Post by CommanderABab » Wed Jan 16, 2019 5:08

Shama wrote:
Wed Jan 16, 2019 4:38
Can you put categories within categories?
Yes, you can do that.
746!746Currently using beta 746. 746 What's new? :)
lit trfc lights!!
:)

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

Shama
Settler
Reactions:
Posts: 7
Joined: Tue May 08, 2018 11:00
Plugins: Show

Re: Categories

#35

Post by Shama » Wed Jan 16, 2019 6:12

Yay, I got it to work. Seems, at least for me, easier to use separate jsons- as loaded in one json, even with category ids in alphabetical order, i could not get it it work. But with separate jsons for each category in the zip and the main category with file name "acat...." and the categories within "bcat...." and within those (kinda crazy just testing, all 3 within transport category :D) "cat...".
Shaman - Beneficent Monarch of the city-state of Kektaka
Less corrupt than DC, stronger than London, better churches than the Vatican, and more gold than Dubai!!

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

Re: Categories

#36

Post by wcs » Tue Jul 09, 2019 8:39

I could not make my category work

Code: Select all

[
  {
    "id":"cat_neuterland",
    "ordinal":0
    "type":"category", 
    "category":"$cat_zone00",
    "frames":[{"bmp":"neuterlandicon.png"}],
    "title":"Neuterland",
  }
]
After that, I tag all of my .json with

Code: Select all

    "category":"$cat_neuterland00",
I have 1 .json for the category, and 6 other for my RCI zones.

It gives me error, stating that no such category could be found
Follow me! @wackyserious on Twitter | Youtube for the latest updates on my projects!

User avatar
JustAnyone
Junior Developer
Reactions:
Posts: 2595
Joined: Sun Jul 23, 2017 12:45
Location: No idea either
Plugins: Show

Plugin Creator

Platform

Re: Categories

#37

Post by JustAnyone » Tue Jul 09, 2019 17:01

Make sure category draft is loaded first.

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

Plugin Creator

Platform

Re: Categories

#38

Post by yusuf8a684 » Tue Jul 09, 2019 17:02

If you want I can give you a json
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

#39

Post by wcs » Wed Jul 10, 2019 13:49

Still not able to make it functional.

Recent code,

Sample category .json

Code: Select all

[
  {
    "type":"category",
    "ordinal":0,
    "id":"cat_neuterland",
    "frames":[{"bmp":"cat_neuterland.png"}],
    "title":"Neuterland"
  }
]
Sample zone .json

Code: Select all

[
  {
    "category":"cat_neuterland",
    "ordinal":0,
    "author":"wcs",
	"id":"neuterland_mall_zone.wcs",
	"title":"Neuterland Mall",
	"text":"Malls brought to you by Neuterland Inc.",
	"base":"$zonecommercial",
	"type":"zone",
	"frames":[{"x":352,"y":0,"w":32,"h":16}],
	"map color":{"r":91,"g":95,"b":255},
	"preview frames":[{"bmp":"zoneiconneuterlandmall.png"}],
	"draw ground":true,
	"height":1,
	"width":1,
        "needs road":false,
	"placeable":true,
	"price":25,
	"rci":true
  },
  {
	"id":"neuterland_mall_decor_1x1",
	"title":"Neuterland Mall Decor",
	"text":"Simple Mall Decor.",
	"type":"decoration",
	"frames":[{"bmp":"neuterland_mall_decor_1x1.png"}],
	"meta":{"tags":{"decorator":{"zones":["neuterland_mall_zone.wcs"]}}},
	"draw ground":true,
	"needs road":false,
	"height":1,
	"width":1
  },
  {
	"id":"neuterland_mall_2x2_f1",
	"title":"Neuterland Mall 1F",
	"text":"Single floor mall.",
	"type":"commercial",
	"frames":[{"bmp":"neuterland_mall_2x2_f1.png","count":8,"frames":8,"w":64}],
	"draw ground":true,
	"height":2,
	"width":2,
	"workers":15,
	"zone":"neuterland_mall_zone.wcs",
	"level":"1"
  },
]
Follow me! @wackyserious on Twitter | Youtube for the latest updates on my projects!

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

Plugin Creator

Platform

Re: Categories

#40

Post by yusuf8a684 » Wed Jul 10, 2019 18:22

Try to add 0 to category json/file name's first
TheoTown Multiplayer Region
25x3Z7Z
We are playing on a region which other players in it as well. Our goal is making real world region...

Post Reply Previous topicNext topic

Return to “Tutorials and Documentation”

Who is online

Users browsing this forum: No registered users and 1 guest