Page 1 of 1

Maximum building height for plugins?

Posted: 07 Aug 2017, 02:17
by mdk_813
Yes, I have another question.
I was wondering, whether there is a way to circumvent the maximum building height for plugins of 256px.
I'd like to do something like @Lobby and Theo did with the multicolored TT-apartment buildings. These can grow significantly higher than the 256px.
You know, I'm asking this, because with my Power Comp HQ and my TV Tower I, of course, already maxed out that limit to the very last pixel, but especially with the TV Tower, I would have liked it to be maybe a quarter or even a third higher than the current height.

I guess, the method you guys used to make buildings of variable height works like this:
You provide three separate images, a bottom section, a mid section and a top section. The mid section is then used to determine the actual height.

Is there a way to do that in a plugin, or could you please implement it, if there is not?

Thank you.

Re: Maximum building height for plugins?

Posted: 07 Aug 2017, 02:26
by CommanderABab

Re: Maximum building height for plugins?

Posted: 07 Aug 2017, 03:11
by mdk_813
CommanderABab wrote:
07 Aug 2017, 02:26
SeeYou do it via animations.

http://www.theotown.com/forum/viewtopic ... 777#p45777
Ah alright, thanks!
I'll take a look there.

Re: Maximum building height for plugins?

Posted: 07 Aug 2017, 10:52
by Lobby
Yes, the multi-colored buildings are split up and loaded as different animations (each of which with a single frame, so no animation in those animations) which are then composed into different buildings. You can do this as well, but actually, it's not needed.

The only limiting factor is build height which may not be greater than 32. So you can easily fix this issue by using

Code: Select all

"build height":32
(if not provided it's inferred by the size of the given frame).

build height is used for construction time and construction height, so it's not a big deal to set it to a smaller value than appropriate. However, there's a reason why build height is limited: really height buildings on the bottom edge of the screen will disappear too early when scrolled out. May be an issue, but maybe it's not :space

Re: Maximum building height for plugins?

Posted: 07 Aug 2017, 16:58
by mdk_813
Thanks,
that is really much less complicated than making animations. :thumbsup:
I've just tried it and it works nicely.
The pop-up/pop-out error does occur but it doesn't really bother me that much personally.

Re: Maximum building height for plugins?

Posted: 29 Apr 2024, 00:20
by MarineBoy
What is the size of one floor in TheoTown

Because I always see my tall buildings have a door that can't fit a person's head

Re: Maximum building height for plugins?

Posted: 29 Apr 2024, 14:04
by Khajnagari KH 09
3-5 pixels.