Building on water?
Moderator: Plugin Moderators
- mdk_813
- Inhabitant of a Country
- Reactions:
- Posts: 857
- Joined: 16 Dec 2016, 02:38
- Location: Germany
- Plugins: Showcase Store
-
Platform
Building on water?
Hi guys,
I would like to do some buildings, that can be placed on water, in a similar way to the small red buoys already in the game.
Is there a way to do that and what setting would I have to put into the json to make that work?
Thanks.
I would like to do some buildings, that can be placed on water, in a similar way to the small red buoys already in the game.
Is there a way to do that and what setting would I have to put into the json to make that work?
Thanks.
My Plugins: Link
Update Sep 12, 2020:
As I am not really active here anymore, I am not able to answer any PMs in time.
So, as long as you mention me in the plugin and the description, feel free to use or modify my plugins for your own creations.
Update Sep 12, 2020:
As I am not really active here anymore, I am not able to answer any PMs in time.
So, as long as you mention me in the plugin and the description, feel free to use or modify my plugins for your own creations.
- Brody Craft
- Inhabitant of a Infinity
- Reactions:
- Posts: 8034
- Joined: 24 Jan 2017, 11:15
- Location: SE Asia
- Plugins: Showcase Store
- Version: Beta
-
Platform
Re: Building on water?
Code: Select all
"needs water":"true",
When you get to be called a Board Index because you are too good.>:3
- mdk_813
- Inhabitant of a Country
- Reactions:
- Posts: 857
- Joined: 16 Dec 2016, 02:38
- Location: Germany
- Plugins: Showcase Store
-
Platform
Re: Building on water?
Yes, I made a small 1x1 test-bouy and it didn't seem to work. In building mode it did not turn green and was not placable.
However, I wrote it like that:
Code: Select all
"needs water":true,
My Plugins: Link
Update Sep 12, 2020:
As I am not really active here anymore, I am not able to answer any PMs in time.
So, as long as you mention me in the plugin and the description, feel free to use or modify my plugins for your own creations.
Update Sep 12, 2020:
As I am not really active here anymore, I am not able to answer any PMs in time.
So, as long as you mention me in the plugin and the description, feel free to use or modify my plugins for your own creations.
- mdk_813
- Inhabitant of a Country
- Reactions:
- Posts: 857
- Joined: 16 Dec 2016, 02:38
- Location: Germany
- Plugins: Showcase Store
-
Platform
Re: Building on water?
Ah ok, thanks, I didn't use "needs ground":false, in there. Maybe that was the problem?former member wrote: ↑09 Jul 2017, 13:36True and false are boolean, they don't need ".
TryI made a floating park before.Code: Select all
"needs water":true, "needs ground":false
I will try it out.
My Plugins: Link
Update Sep 12, 2020:
As I am not really active here anymore, I am not able to answer any PMs in time.
So, as long as you mention me in the plugin and the description, feel free to use or modify my plugins for your own creations.
Update Sep 12, 2020:
As I am not really active here anymore, I am not able to answer any PMs in time.
So, as long as you mention me in the plugin and the description, feel free to use or modify my plugins for your own creations.
- mdk_813
- Inhabitant of a Country
- Reactions:
- Posts: 857
- Joined: 16 Dec 2016, 02:38
- Location: Germany
- Plugins: Showcase Store
-
Platform
Re: Building on water?
Hm, I can't get it to work.
I thought the transparency could be a problem, so I removed "draw ground" and put the original water texture from Lobby into the png. Didn't work either.
Currently, it looks like this:
Any ideas?
I thought the transparency could be a problem, so I removed "draw ground" and put the original water texture from Lobby into the png. Didn't work either.
Currently, it looks like this:
Code: Select all
[
{
"id":"Testboje.mdk_813",
"type":"park",
"author":"mdk_813",
"width":1,
"height":1,
"frames":[{"bmp":"Testboje_1x1.png"}],
"price":1,
"monthly price":1,
"water":"0",
"power":"0",
"build time":0,
"needs road":false,
"needs water":true,
"needs ground":false,
"title":"Testboje",
"text":"Will it float?"
}
]
- Attachments
-
- Testboje_1x1.png (3.23 KiB) Viewed 4844 times
My Plugins: Link
Update Sep 12, 2020:
As I am not really active here anymore, I am not able to answer any PMs in time.
So, as long as you mention me in the plugin and the description, feel free to use or modify my plugins for your own creations.
Update Sep 12, 2020:
As I am not really active here anymore, I am not able to answer any PMs in time.
So, as long as you mention me in the plugin and the description, feel free to use or modify my plugins for your own creations.
- CommanderABab
- AB
- Reactions:
- Posts: 11109
- Joined: 07 Jun 2016, 21:12
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: Building on water?
Try the one from the quote box.mdk_813 wrote: ↑09 Jul 2017, 15:40Hm, I can't get it to work.
I thought the transparency could be a problem, so I removed "draw ground" and put the original water texture from Lobby into the png. Didn't work either.
Currently, it looks like this:Any ideas?Code: Select all
[ { "id":"Testboje.mdk_813", "type":"park", "author":"mdk_813", "width":1, "height":1, "frames":[{"bmp":"Testboje_1x1.png"}], "price":1, "monthly price":1, "water":"0", "power":"0", "build time":0, "needs road":false, "needs water":true, "needs land":false, "title":"Testboje", "text":"Will it float?" } ]
my avatar:
- mdk_813
- Inhabitant of a Country
- Reactions:
- Posts: 857
- Joined: 16 Dec 2016, 02:38
- Location: Germany
- Plugins: Showcase Store
-
Platform
Re: Building on water?
Cool, thanks, now it builds on water, but the ground texture causes another problem: The game now builds these brownish foundations.
So, I guess I need to get rid of the ground texture in the png and put something like "draw ground" (or "draw water"?) into the json.
So, I guess I need to get rid of the ground texture in the png and put something like "draw ground" (or "draw water"?) into the json.
My Plugins: Link
Update Sep 12, 2020:
As I am not really active here anymore, I am not able to answer any PMs in time.
So, as long as you mention me in the plugin and the description, feel free to use or modify my plugins for your own creations.
Update Sep 12, 2020:
As I am not really active here anymore, I am not able to answer any PMs in time.
So, as long as you mention me in the plugin and the description, feel free to use or modify my plugins for your own creations.
- CommanderABab
- AB
- Reactions:
- Posts: 11109
- Joined: 07 Jun 2016, 21:12
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: Building on water?
Add your image's pixel height plus 4. (result = pixel height + 4). Replace the 4 after handle with the result.CommanderABab wrote: ↑09 Jul 2017, 15:44Try the one from the quote box.mdk_813 wrote: ↑09 Jul 2017, 15:40Hm, I can't get it to work.
I thought the transparency could be a problem, so I removed "draw ground" and put the original water texture from Lobby into the png. Didn't work either.
Currently, it looks like this:Any ideas?Code: Select all
[ { "id":"Testboje.mdk_813", "type":"park", "author":"mdk_813", "width":1, "height":1, "frames":[ { "bmp":"Testboje_1x1.png", "handle y":4 } ], "price":1, "monthly price":1, "water":"0", "power":"0", "build time":0, "needs road":false, "needs water":true, "needs land":false, "title":"Testboje", "text":"Will it float?" } ]
my avatar:
- mdk_813
- Inhabitant of a Country
- Reactions:
- Posts: 857
- Joined: 16 Dec 2016, 02:38
- Location: Germany
- Plugins: Showcase Store
-
Platform
Re: Building on water?
Nice!
"needs land":false, and "draw ground":true, did the trick!
Thank you guys!
"needs land":false, and "draw ground":true, did the trick!
Thank you guys!
- Attachments
-
- Testboje_examples.png (248.73 KiB) Viewed 4834 times
My Plugins: Link
Update Sep 12, 2020:
As I am not really active here anymore, I am not able to answer any PMs in time.
So, as long as you mention me in the plugin and the description, feel free to use or modify my plugins for your own creations.
Update Sep 12, 2020:
As I am not really active here anymore, I am not able to answer any PMs in time.
So, as long as you mention me in the plugin and the description, feel free to use or modify my plugins for your own creations.
- wcs
- Small-town resident
- Reactions:
- Posts: 38
- Joined: 16 Jun 2019, 08:21
- Plugins: Showcase Store
- Contact:
Re: Building on water?
I am having the same problem. Is it possible to create a zone plugin that could be built in water?
Follow me! @wackyserious on Twitter | Youtube for the latest updates on my projects!
- CommanderABab
- AB
- Reactions:
- Posts: 11109
- Joined: 07 Jun 2016, 21:12
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
- CommanderABab
- AB
- Reactions:
- Posts: 11109
- Joined: 07 Jun 2016, 21:12
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: Building on water?
https://theotown.com/forum/viewtopic.php?p=84430#p84430
Yes, it is possible to build such a building. Will it build by itself? No.
Yes, it is possible to build such a building. Will it build by itself? No.
my avatar:
- CommanderABab
- AB
- Reactions:
- Posts: 11109
- Joined: 07 Jun 2016, 21:12
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
- CommanderABab
- AB
- Reactions:
- Posts: 11109
- Joined: 07 Jun 2016, 21:12
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: Building on water?
You can see from the video that I was once able to zone small sections of water, but it depended on a bug which was removed.
my avatar:
- wcs
- Small-town resident
- Reactions:
- Posts: 38
- Joined: 16 Jun 2019, 08:21
- Plugins: Showcase Store
- Contact:
Re: Building on water?
I see, I was planning on adding floating slums in my plugin. I guess I would just have to add a water decal beneath it and just build land on water.
Follow me! @wackyserious on Twitter | Youtube for the latest updates on my projects!