[1.12.26] Support for non-square buildings

Find tutorials, documentation, and resources for creating and using TheoTown plugins.
Previous topicNext topic
User avatar
Lobby
Inhabitant of a Supercluster
Reactions:
Posts: 3756
Joined: 26 Oct 2008, 10:34
Plugins: Showcase Store

[1.12.26] Support for non-square buildings

Post by Lobby » 12 Sep 2025, 09:28

Recently support for buildings with non-square base plate was added.
image.png

For example buildings that use the following templates work now without the need to use composition buildings:
image.png
(sizes from left to right: 1x2, 2x1, 2x3, 2x4)
Usable templates can be found on the templates page.

Requirements and Caveats
Non-square buildings must provide at least two frames as they are rotation aware.

Since version 1.12.49, TheoTown supports non-square buildings of arbitrary sizes. Please note that using non-square buildings may have a performance impact.
The game has to render non-square buildings multiple times. For now, this is limited to drawing it two times at max. As a result, the ratio between width and height must be 2 at max.

While non-square buildings do support RCI auto spawning, they may not actually spawn in some constraint space conditions.

Example
Here's an example non-square building with a size of 2x1 (the size refers to the size of the first frame).

Code: Select all    Reset

[ { "id": "$res_nonsquare00", "type": "residential", "level": 1, "width": 2, "height": 1, "frames": [ { "bmp": "res.png", "w":48, "count": 2 } ] } ]
JSON checker
Check
res.png
You do not have the required permissions to view the files attached to this post.
User avatar
Doctorbuilder
Inhabitant of a Megacity
Reactions:
Posts: 243
Joined: 02 Nov 2024, 08:52
Plugins: Showcase Store
Version: Beta

Platform

Re: [1.12.26] Support for non square buildings

Post by Doctorbuilder » 16 Sep 2025, 08:51

Crazy upd
User avatar
TheLeaf2805
Townsman
Reactions:
Posts: 67
Joined: 12 Jul 2021, 06:09
Location: Vietnam
Plugins: Showcase Store

Plugin Creator

Platform

Re: [1.12.26] Support for non square buildings

Post by TheLeaf2805 » 16 Sep 2025, 09:45

this changes everything
User avatar
yekaterinborough
Small-town resident
Reactions:
Posts: 28
Joined: 22 Apr 2024, 21:29

Plugin Creator

Platform

Re: [1.12.26] Support for non square buildings

Post by yekaterinborough » 16 Sep 2025, 10:30

awesome
User avatar
Playerc445GDReal
Inhabitant of a Megalopolis
Reactions:
Posts: 657
Joined: 09 Feb 2025, 11:41
Location: 🌌the edge of the milky way galaxy🌠
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: [1.12.26] Support for non square buildings

Post by Playerc445GDReal » 16 Sep 2025, 10:39

the world coming alltogether
User avatar
robyns1
Settler
Reactions:
Posts: 3
Joined: 16 Feb 2024, 18:03

Plugin Creator

Platform

Re: [1.12.26] Support for non square buildings

Post by robyns1 » 16 Sep 2025, 11:35

coming next: support for bridges going over buildings (official) and easier night animation creation :000
greypblox
Settler
Reactions:
Posts: 1
Joined: 03 Aug 2021, 00:34

Re: [1.12.26] Support for non square buildings

Post by greypblox » 16 Sep 2025, 22:27

if they add support for bigger sizes this update will be so peak
User avatar
Hearnius
Villager
Reactions:
Posts: 8
Joined: 01 Nov 2024, 16:10
Location: Somewhere in Eurasia
Plugins: Showcase Store

Platform

Re: [1.12.26] Support for non square buildings

Post by Hearnius » 19 Sep 2025, 00:43

Some plugins will be good finally
User avatar
Ross The Mayor
Small-town resident
Reactions:
Posts: 33
Joined: 20 Dec 2023, 21:30
Location: Jamaica
Plugins: Showcase Store
Version: Beta

Plugin Creator

Re: [1.12.26] Support for non square buildings

Post by Ross The Mayor » 30 Dec 2025, 21:18

How would we do the night animation without it being at different heights when rotating the buildings? I am having this problem.
User avatar
Kulche
Inhabitant of a Continent
Reactions:
Posts: 1194
Joined: 07 Jun 2017, 18:28
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: [1.12.26] Support for non square buildings

Post by Kulche » 31 Dec 2025, 07:31

use handles "handle x" "handle y"
Previous topicNext topic