Sea Rocks

For Decorations and areal map layout tools.

Moderators: KoalaGuy, Showcase Moderators

Post Reply
User avatar
KINGTUT10101
1,000,000 inhabitants
Reactions:
Posts: 1226
Joined: Thu Jul 07, 2016 22:50
Location: 'Merica
Contact:

Sea Rocks

Post by KINGTUT10101 » Wed May 31, 2017 4:39

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
Former LukasMelbourne
Reactions:
Posts: 299
Joined: Wed Nov 16, 2016 15:22
Location: Peterborough

Post by NisekoKilla » Wed May 31, 2017 13:20

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

User avatar
KINGTUT10101
1,000,000 inhabitants
Reactions:
Posts: 1226
Joined: Thu Jul 07, 2016 22:50
Location: 'Merica
Contact:

Post by KINGTUT10101 » Wed May 31, 2017 14:18

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: 2316
Joined: Sun Oct 26, 2008 12:34

Post by Lobby » Wed May 31, 2017 14:24

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 Wed May 31, 2017 15:29, edited 2 times in total.

User avatar
danekbel
Former danek_danevich
Reactions:
Posts: 2238
Joined: Thu May 05, 2016 9:33
Location: Ukraine
Contact:

Post by danekbel » Wed May 31, 2017 15:16

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

User avatar
Lobby
Developer
Reactions:
Posts: 2316
Joined: Sun Oct 26, 2008 12:34

Post by Lobby » Wed May 31, 2017 15:22

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: 1226
Joined: Thu Jul 07, 2016 22:50
Location: 'Merica
Contact:

Post by KINGTUT10101 » Wed May 31, 2017 20:15

Thanks for the help with the json.

User avatar
KINGTUT10101
1,000,000 inhabitants
Reactions:
Posts: 1226
Joined: Thu Jul 07, 2016 22:50
Location: 'Merica
Contact:

Post by KINGTUT10101 » Wed May 31, 2017 23:31

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: 2316
Joined: Sun Oct 26, 2008 12:34

Post by Lobby » Wed May 31, 2017 23:47

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: 1226
Joined: Thu Jul 07, 2016 22:50
Location: 'Merica
Contact:

Post by KINGTUT10101 » Wed May 31, 2017 23:56

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: 2316
Joined: Sun Oct 26, 2008 12:34

Post by Lobby » Thu Jun 01, 2017 0:01

More common :)

User avatar
KINGTUT10101
1,000,000 inhabitants
Reactions:
Posts: 1226
Joined: Thu Jul 07, 2016 22:50
Location: 'Merica
Contact:

Post by KINGTUT10101 » Thu Jun 01, 2017 0:08

Thank you

User avatar
danekbel
Former danek_danevich
Reactions:
Posts: 2238
Joined: Thu May 05, 2016 9:33
Location: Ukraine
Contact:

Post by danekbel » Thu Jun 01, 2017 9:35

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.

User avatar
Lobby
Developer
Reactions:
Posts: 2316
Joined: Sun Oct 26, 2008 12:34

Post by Lobby » Sat Jun 03, 2017 20:51

They should be listed in decorations :?

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests