## Sea Rocks

For Decorations and areal map layout tools.

Moderator: Plugin Moderators

KINGTUT10101
1,000,000 inhabitants
Reactions:
Posts: 1764
Joined: Thu Jul 07, 2016 22:50
Location: 'Merica
Plugins: Show
Version: Beta
Phone model: Moto Z Force Droid

### Sea Rocks

Some rocks for your oceans. These will spawn naturally in the water and can be found in the decoration tab. There are only three different types at the moment, but I might make more in the future of I get requests to do so. These are the improved version of ocean rocks.

NisekoKilla
Inhabitant of a Megacity
Reactions:
Posts: 330
Joined: Wed Nov 16, 2016 15:22
Location: Peterborough, UK
Plugins: Show
Version: Beta
Phone model: Samsung Galaxy J5
Glory to Arstotzka.
it would be good if rocks can only spawn near coasts because it would be really strange that rock is in the middle of the ocean.
Psst!
I have some good animes over there!
Press me if you're brave enouch
Don't worry this is just url to the MyAnimeList :d...
My coub Click me

KINGTUT10101
1,000,000 inhabitants
Reactions:
Posts: 1764
Joined: Thu Jul 07, 2016 22:50
Location: 'Merica
Plugins: Show
Version: Beta
Phone model: Moto Z Force Droid
That's what I tried to do, but it didn't work like I wanted it to. I set the height to -175, but it didn't work.

Lobby
Developer
Reactions:
Posts: 3128
Joined: Sun Oct 26, 2008 12:34
Plugins: Show
Version: Beta
Phone model: S7 edge
Nice 8)

You might add some more contrast and shadows so the rocks look more plastic:

Also you might load all frames from a single image by providing the width w for each frame, height h for each frame and the amount of frames count (they will be loaded from left to right from image bmp):

Code: Select all

[
{
"type":"decoration",
"height":1,
"width":1,
"needs land":false,
"needs water":true,
"author":"Kingtut 101 and Theo &#40;Water Texture&#41;",
"title":"Sea Rocks",
"id":"oceanrocks.kt101",
"price":1000,
"frames":
[
{"bmp":"searocks.png","w":32,"h":15,"count":3,"handle y":3}
],
"spawn":
{
"p":0.1,
"height":-175,
},
"draw ground":true
}
]
Also I recommend to use a positive value for radius as behavior for negative ones is undefined.

Last edited by Lobby on Wed May 31, 2017 15:29, edited 2 times in total.

danekbel
Inhabitant of a Galaxy Cluster
Reactions:
Posts: 2715
Joined: Thu May 05, 2016 9:33
Plugins: Show
Version: Beta
Phone model: Xiaomi Redmi Note 5
@Lobby
I tried to use this code, but...http://www.theotown.com/forum/userpix/412_s70531161412_1.jpg
But json checker said that this code is valid
http://www.theotown.com/forum/userpix/412_s70531161403_1.jpg
some text.

Lobby
Developer
Reactions:
Posts: 3128
Joined: Sun Oct 26, 2008 12:34
Plugins: Show
Version: Beta
Phone model: S7 edge
It's a problem with special characters which are a result of using tabs. I replaced them with spaces, so it should work now.

The problem is the so called non-breaking space character, which seems to be used by code boxes automatically. To solve the issue I'll adjust the plugin loader, I hope that will fix some issues in the future

KINGTUT10101
1,000,000 inhabitants
Reactions:
Posts: 1764
Joined: Thu Jul 07, 2016 22:50
Location: 'Merica
Plugins: Show
Version: Beta
Phone model: Moto Z Force Droid
Thanks for the help with the json.

KINGTUT10101
1,000,000 inhabitants
Reactions:
Posts: 1764
Joined: Thu Jul 07, 2016 22:50
Location: 'Merica
Plugins: Show
Version: Beta
Phone model: Moto Z Force Droid
Two questions to Lobby:

Can I use those textures?

What is radius? Is it how far apart they spawn from each other?

Lobby
Developer
Reactions:
Posts: 3128
Joined: Sun Oct 26, 2008 12:34
Plugins: Show
Version: Beta
Phone model: S7 edge

I tried to make it clear:

Your rockets can only spawn on tiles whose height is in between height - radius and height + radius for radius being a positive number. They will spawn more likely on tiles whose height is near height but at max with probability p.

KINGTUT10101
1,000,000 inhabitants
Reactions:
Posts: 1764
Joined: Thu Jul 07, 2016 22:50
Location: 'Merica
Plugins: Show
Version: Beta
Phone model: Moto Z Force Droid
So will having a high radius make them more or less common?
(Sorry it's still a bit confusing for me)

Lobby
Developer
Reactions:
Posts: 3128
Joined: Sun Oct 26, 2008 12:34
Plugins: Show
Version: Beta
Phone model: S7 edge
More common

KINGTUT10101
1,000,000 inhabitants
Reactions:
Posts: 1764
Joined: Thu Jul 07, 2016 22:50
Location: 'Merica
Plugins: Show
Version: Beta
Phone model: Moto Z Force Droid
Thank you

danekbel
Inhabitant of a Galaxy Cluster
Reactions:
Posts: 2715
Joined: Thu May 05, 2016 9:33
Plugins: Show
Version: Beta
Phone model: Xiaomi Redmi Note 5
I used Lobby's code and I can't find them in decoration tab. Is there any wat to place them by yourself?
some text.

Lobby
Developer
Reactions:
Posts: 3128
Joined: Sun Oct 26, 2008 12:34
Plugins: Show
Version: Beta
Phone model: S7 edge
They should be listed in decorations

### Who is online

Users browsing this forum: No registered users and 2 guests

﻿