Base plugin for offset (off-tile) buildings

Other plugins, for example ranks

Moderators: Bearbear65, Showcase Moderators

Post Reply
User avatar
Matison55557
Inhabitant of a Universe
Reactions:
Posts: 4873
Joined: Mon Jul 04, 2016 18:49
Plugins: Show
Version: Beta

Base plugin for offset (off-tile) buildings

Post by Matison55557 » Sun Jun 17, 2018 15:57

This is a base plugin, which means I made the basic json code, so you can change it how you like to create new plugins.
This JSON code allows to easily create plugins with offset buildings. That means buildings which are not perfectly on tiles.

This plugin does not add a possibility to place any buildings off tiles however you like! That is impossible to add. You need to modify the JSON code of this plugin and choose which building you want to have offset, and how.

The plugin uses a trick with animation to render a building that is not there.
It might be a bit confusing at first, but the effects can look for example like this:
Teodenu_18-06-17_15.30.05.png
Here is the code. JSON knowledge is recommended. Follow the comments in the file.
offset.json
(1.78 KiB) Downloaded 91 times
Additional notes:
:arrow: No plugin texture space is used. Create as many offset buildings as you want.

:arrow: As far as I know, this will work for every building as long as you configure everything properly.

:arrow: Don't make buildings that are offset in front of the tile. They will not render correctly. Move the animation to the back of the tile instead.
Please don't (SERIOUSLY) help improve the TheoTown wiki: http://theotowngame.wikia.com

User avatar
Matison55557
Inhabitant of a Universe
Reactions:
Posts: 4873
Joined: Mon Jul 04, 2016 18:49
Plugins: Show
Version: Beta

Re: Base plugin for offset (off-tile) buildings

Post by Matison55557 » Tue Jun 19, 2018 9:57

To be honest I expected people to be a little bit more interested in this plugin. :lol:
Please don't (SERIOUSLY) help improve the TheoTown wiki: http://theotowngame.wikia.com

User avatar
Pounkiller
Inhabitant of a Conurbation
Reactions:
Posts: 440
Joined: Mon Jan 15, 2018 15:53
Location: Turkey
Plugins: Show
Phone: Huawei Mate 10 Lite

Re: Base plugin for offset (off-tile) buildings

Post by Pounkiller » Tue Jun 19, 2018 11:22

Matison55557 wrote:
Tue Jun 19, 2018 9:57
To be honest I expected people to be a little bit more interested in this plugin. :lol:
Maybe, it was too complicated for them... (?)
Hello people,I'm Turkish and I like foreign languages especially English and I love video games too.
I love City Builders,that's why I am playing this game.
''Now, I'm become Death, the destroyer of worlds''.

User avatar
Matison55557
Inhabitant of a Universe
Reactions:
Posts: 4873
Joined: Mon Jul 04, 2016 18:49
Plugins: Show
Version: Beta

Re: Base plugin for offset (off-tile) buildings

Post by Matison55557 » Tue Jun 19, 2018 14:24

Probably. After all, it requires some JSON and not all people know it.
Please don't (SERIOUSLY) help improve the TheoTown wiki: http://theotowngame.wikia.com

User avatar
cesareborgia94
Inhabitant of a Megalopolis
Reactions:
Posts: 690
Joined: Sun Nov 12, 2017 9:23
Location: The Kingdom of Babilandia
Plugins: Show
Version: Beta
Phone: Samsung Galaxy 360H

Re: Base plugin for offset (off-tile) buildings

Post by cesareborgia94 » Wed Jun 27, 2018 1:18

I know a bit about json but even I could not understand it...
A bit tad complicated. One question tho what is the difference between original buildings and off-tile buildings? Since I could barely see any difference (-_*)
I make small 1x1 or 2x2 plugins only.
Making plugins for fun.
❤I'm the fairy❤
Disclaimer Please no request, I'm busy with real life stuff, I hope you understand ;)
You can find me here and in discord

User avatar
Matison55557
Inhabitant of a Universe
Reactions:
Posts: 4873
Joined: Mon Jul 04, 2016 18:49
Plugins: Show
Version: Beta

Re: Base plugin for offset (off-tile) buildings

Post by Matison55557 » Wed Jun 27, 2018 13:41

As the name implies.
They are off their tile. They're partially overlapping other tiles.
Please don't (SERIOUSLY) help improve the TheoTown wiki: http://theotowngame.wikia.com

User avatar
Bearbear65
Inhabitant of a Universe
Reactions:
Posts: 4282
Joined: Fri Feb 10, 2017 14:53
Plugins: Show
Version: Beta
Phone: ASUS ZenPad 10 z300c

Re: Base plugin for offset (off-tile) buildings

Post by Bearbear65 » Wed Jun 27, 2018 14:20

So is this how it works?
You first get a base texture (in this case the concrete)
And then add an animation of a full building and sift it's x and y

Code: Select all

"offset x or y":value,
ImageJust my opinion

User avatar
Matison55557
Inhabitant of a Universe
Reactions:
Posts: 4873
Joined: Mon Jul 04, 2016 18:49
Plugins: Show
Version: Beta

Re: Base plugin for offset (off-tile) buildings

Post by Matison55557 » Wed Jun 27, 2018 17:10

Actually, they don't have any texture for ground. I used

Code: Select all

"frames":[null],
"draw ground":true
so the ground can be chosen with any decal.
Then, I used animation to display a building that is not there.
It all may look complicated but it's actually simple. I just suck at explaining things.
Please don't (SERIOUSLY) help improve the TheoTown wiki: http://theotowngame.wikia.com

User avatar
Bearbear65
Inhabitant of a Universe
Reactions:
Posts: 4282
Joined: Fri Feb 10, 2017 14:53
Plugins: Show
Version: Beta
Phone: ASUS ZenPad 10 z300c

Re: Base plugin for offset (off-tile) buildings

Post by Bearbear65 » Thu Jun 28, 2018 6:59

I understand :)
Just didn't realize that the concrete was a decal
ImageJust my opinion

Post Reply

Return to “Other”

Who is online

Users browsing this forum: No registered users and 1 guest