[1.12.26] Support for non-square buildings

Learn here how to create and use plugins.

Moderator: Plugin Moderators

User avatar
Lobby
Developer
Reactions:
Posts: 3749
Joined: 26 Oct 2008, 12:34
Plugins: Showcase Store
Version: Beta

Platform

[1.12.26] Support for non-square buildings

#1

Post by Lobby »

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
image.png (3.01 KiB) Viewed 3112 times
(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
res.png (6.9 KiB) Viewed 3094 times

User avatar
Doctorbuilder
Inhabitant of a Megacity
Reactions:
Posts: 165
Joined: 02 Nov 2024, 10:52
Plugins: Showcase Store
Version: Beta

Platform

Re: [1.12.26] Support for non square buildings

#2

Post by Doctorbuilder »

Crazy upd

User avatar
TheLeaf2805
Townsman
Reactions:
Posts: 71
Joined: 12 Jul 2021, 08:09
Location: Vietnam
Plugins: Showcase Store

Plugin Creator

Platform

Re: [1.12.26] Support for non square buildings

#3

Post by TheLeaf2805 »

this changes everything

User avatar
yekaterinborough
Villager
Reactions:
Posts: 22
Joined: 22 Apr 2024, 23:29

Plugin Creator

Platform

Re: [1.12.26] Support for non square buildings

#4

Post by yekaterinborough »

awesome

User avatar
Playerc445GDReal
Inhabitant of a Megalopolis
Reactions:
Posts: 666
Joined: 09 Feb 2025, 13: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

#5

Post by Playerc445GDReal »

the world coming alltogether

User avatar
robyns1
Settler
Reactions:
Posts: 4
Joined: 16 Feb 2024, 20:03

Plugin Creator

Platform

Re: [1.12.26] Support for non square buildings

#6

Post by robyns1 »

coming next: support for bridges going over buildings (official) and easier night animation creation :000

User avatar
greypblox
Settler
Reactions:
Posts: 1
Joined: 03 Aug 2021, 02:34

Re: [1.12.26] Support for non square buildings

#7

Post by greypblox »

if they add support for bigger sizes this update will be so peak

User avatar
Hearnius
Villager
Reactions:
Posts: 9
Joined: 01 Nov 2024, 18:10
Location: Somewhere in Eurasia
Plugins: Showcase Store

Platform

Re: [1.12.26] Support for non square buildings

#8

Post by Hearnius »

Some plugins will be good finally

User avatar
Ross The Mayor
Small-town resident
Reactions:
Posts: 28
Joined: 20 Dec 2023, 23:30
Location: Clarendon, Jamaica
Plugins: Showcase Store
Version: Beta

Plugin Creator

Re: [1.12.26] Support for non square buildings

#9

Post by Ross The Mayor »

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
Pluche
Reactions:
Posts: 1230
Joined: 07 Jun 2017, 20:28
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: [1.12.26] Support for non square buildings

#10

Post by Kulche »

use handles "handle x" "handle y"

Post Reply Previous topicNext topic

Return to “Tutorials and Documentation”