Sea Rocks

For Decorations and areal map layout tools.

Moderator: Plugin Moderators

User avatar
KINGTUT10101
1,000,000 inhabitants
Reactions:
Posts: 2220
Joined: 07 Jul 2016, 22:50
Location: 'Merica
Plugins: Showcase Store
Version: Beta
Contact:

Plugin Creator

Platform

Sea Rocks

#1

Post 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
Image

User avatar
NisekoKilla
Inhabitant of a Megacity
Reactions:
Posts: 345
Joined: 16 Nov 2016, 15:22
Location: UK
Plugins: Showcase Store
Version: Beta

Platform

#2

Post 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.
Just a guy from the Mars... :/
My coub Click me

User avatar
KINGTUT10101
1,000,000 inhabitants
Reactions:
Posts: 2220
Joined: 07 Jul 2016, 22:50
Location: 'Merica
Plugins: Showcase Store
Version: Beta
Contact:

Plugin Creator

Platform

#3

Post 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.

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

Platform

#4

Post by Lobby »

Nice 8)

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

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.

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

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

Platform

#5

Post 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 :)

User avatar
KINGTUT10101
1,000,000 inhabitants
Reactions:
Posts: 2220
Joined: 07 Jul 2016, 22:50
Location: 'Merica
Plugins: Showcase Store
Version: Beta
Contact:

Plugin Creator

Platform

#6

Post by KINGTUT10101 »

Thanks for the help with the json.

User avatar
KINGTUT10101
1,000,000 inhabitants
Reactions:
Posts: 2220
Joined: 07 Jul 2016, 22:50
Location: 'Merica
Plugins: Showcase Store
Version: Beta
Contact:

Plugin Creator

Platform

#7

Post by KINGTUT10101 »

Two questions to Lobby:

Can I use those textures?

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

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

Platform

#8

Post by Lobby »

This is your texture :P

I tried to make it clear:
Image

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.

User avatar
KINGTUT10101
1,000,000 inhabitants
Reactions:
Posts: 2220
Joined: 07 Jul 2016, 22:50
Location: 'Merica
Plugins: Showcase Store
Version: Beta
Contact:

Plugin Creator

Platform

#9

Post by KINGTUT10101 »

So will having a high radius make them more or less common?
(Sorry it's still a bit confusing for me)

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

Platform

#10

Post by Lobby »

More common :)

User avatar
KINGTUT10101
1,000,000 inhabitants
Reactions:
Posts: 2220
Joined: 07 Jul 2016, 22:50
Location: 'Merica
Plugins: Showcase Store
Version: Beta
Contact:

Plugin Creator

Platform

#11

Post by KINGTUT10101 »

Thank you

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

Platform

#12

Post by Lobby »

They should be listed in decorations :?

Post Reply Previous topicNext topic

Return to “Decorations and Tools”