Page 1 of 1
Sea Rocks
Posted: 31 May 2017, 04:39
by KINGTUT10101
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.
Download:
https://sites.google.com/site/theotownm ... ins/ground
Posted: 31 May 2017, 13:20
by NisekoKilla
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.
Posted: 31 May 2017, 14:18
by KINGTUT10101
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.
Posted: 31 May 2017, 14:24
by Lobby
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 (Water Texture)",
"title":"Sea Rocks",
"text":"Some rocks for your oceans.",
"id":"oceanrocks.kt101",
"price":1000,
"frames":
[
{"bmp":"searocks.png","w":32,"h":15,"count":3,"handle y":3}
],
"spawn":
{
"p":0.1,
"height":-175,
"radius":100
},
"draw ground":true
}
]
Also I recommend to use a positive value for
radius as behavior for negative ones is undefined.
Posted: 31 May 2017, 15:22
by Lobby
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
Posted: 31 May 2017, 20:15
by KINGTUT10101
Thanks for the help with the json.
Posted: 31 May 2017, 23:31
by KINGTUT10101
Two questions to Lobby:
Can I use those textures?
What is radius? Is it how far apart they spawn from each other?
Posted: 31 May 2017, 23:47
by Lobby
This is your texture
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.
Posted: 31 May 2017, 23:56
by KINGTUT10101
So will having a high radius make them more or less common?
(Sorry it's still a bit confusing for me)
Posted: 01 Jun 2017, 00:01
by Lobby
More common
Posted: 01 Jun 2017, 00:08
by KINGTUT10101
Thank you
Posted: 03 Jun 2017, 20:51
by Lobby
They should be listed in decorations