[Question] How to inherit default zone tile

Plug-in related stuff can be discussed here.

Moderator: Plugin Moderators

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

[Question] How to inherit default zone tile

#1

Post by wcs » Sun Jul 07, 2019 4:24

Is it possible to inherit the default zone tile colors for each zone, i.e. res (green, blue green) com (blue, purple) ind (yellow, orange)
Follow me! @wackyserious on Twitter | Youtube for the latest updates on my projects!

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

Platform

Plugin Creator

Re: [Question] How to inherit default zone tile

#2

Post by Kulche » Sun Jul 07, 2019 7:25

What have you exactly mean by that? If you want to change the colors you would have to override the whole zone, but I think it wouldn't really work. You may also place your own texture in the game using some coords (if I'm right).
I'm not lazy, I'm motivated to do nothing!
...blame lobby for that

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

Platform

Plugin Creator

Re: [Question] How to inherit default zone tile

#3

Post by CommanderABab » Sun Jul 07, 2019 8:41

See the content_zone.json in resources and use the frames statements for each appropriate zone is a possibility.
759!759Currently using beta 759. 759 What's new? :)
way to make fence!!
:)

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

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

Re: [Question] How to inherit default zone tile

#4

Post by wcs » Sun Jul 07, 2019 11:51

This is what I want to inhertit by default, so that I will not have to create and recolor a lot of files for my custom zones.
Image

I would want to avoid having to declare this a lot in the .json and lessen the amount of .png
"frames":[{"bmp":"zone1x1.png"}],
Is it doable?
Follow me! @wackyserious on Twitter | Youtube for the latest updates on my projects!

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

Platform

Plugin Creator

Re: [Question] How to inherit default zone tile

#5

Post by Kulche » Sun Jul 07, 2019 12:17

Next try, what have you meant by inheriting?
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: [Question] How to inherit default zone tile

#6

Post by wcs » Mon Jul 08, 2019 1:09

By inherit, what I mean is that I will not have to create my own .png for Image (and just use the one available in the game files and just declare/type it in my .json
Follow me! @wackyserious on Twitter | Youtube for the latest updates on my projects!

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

Platform

Plugin Creator

Re: [Question] How to inherit default zone tile

#7

Post by CommanderABab » Mon Jul 08, 2019 2:06

Code: Select all

"frames":[{"bmp":"zone1x1.png"}],
//you could do this to make it look like the game zone.|v|,
//"frames":[{"x":320,"y":0,"w":32,"h":16}],"map color":{"r":82,"g":180,"b":40},
See content_zone.json here:https://theotown.com/forum/viewtopic.php?p=78067#p78067

I would also suggest that you put all your zones in a category within the zone category. :)
759!759Currently using beta 759. 759 What's new? :)
way to make fence!!
:)

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

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

Re: [Question] How to inherit default zone tile

#8

Post by wcs » Mon Jul 08, 2019 3:50

I will try this later, thanks!
Follow me! @wackyserious on Twitter | Youtube for the latest updates on my projects!

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

Plugin Creator

Platform

Re: [Question] How to inherit default zone tile

#9

Post by JustAnyone » Mon Jul 08, 2019 15:53

or you can steal frames
"frames":[{"steal":"$zoneidIdontremember66"}],

Post Reply Previous topicNext topic

Return to “Plug-In Discussion”

Who is online

Users browsing this forum: No registered users and 2 guests