[Deprecated] Override ocean

Find tutorials, documentation, and resources for creating and using TheoTown plugins.
Previous topicNext topic
User avatar
Lobby
Inhabitant of a Supercluster
Reactions:
Posts: 3759
Joined: 26 Oct 2008, 10:34
Plugins: Showcase Store

[Deprecated] Override ocean

Post by Lobby »

 ! Message from: Lobby
This description is deprecated as the game uses a new way to draw water since version 1.9.78. See here: viewtopic.php?f=38&t=13240
Doesn't this looks beautiful? (it doesn't)
lava.png
I don't think so, either. But I'm sure you can come up with a use for replacing the default ocean so here I present a way to do so. However, as you my notice coastlines are a problem. To solve it (depending on the color of your water) you might have to override the ground, too. Another thing is that water will always be blue in the minimap.

So let's start with the needed graphics:
water_orig.png
sparkle_orig.png
Both are divided into 8 frames which are then used for the animation. The latter image is use for the water sparkle effect (which can be turned off). If the latter image is just white for you that's normal as it just uses white and transparency.

So let's replace these graphics by applying some color shift:
water.png
sparkle.png
Now the important part :json

Code: Select all

[
  {
    "override":true,
    "id":"$anim_ocean00",
    "type":"animation",
    "frames":[{"bmp":"water.png","w":128,"h":128,"count":8,"target height":64}]
  },
  {
    "override":true,
    "id":"$anim_ocean01",
    "type":"animation",
    "frames":[{"bmp":"sparkle.png","w":128,"h":128,"count":8,"target height":64}]
  }
]
Ready to download (includes original graphics for modification) :plugin
own_ocean.zip
You do not have the required permissions to view the files attached to this post.
User avatar
Wekabu city
Inhabitant of a Megalopolis
Reactions:
Posts: 586
Joined: 29 Aug 2017, 19:07
Location: Germany, Hessia
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Override ocean

Post by Wekabu city »

former member wrote: 06 Dec 2017, 06:54 Lava oceans in TheoTown. So cool. We're now able to make hell O_o
WELCOME TO HELL!
Galimulator, Minecraft and Theotown modder.
User avatar
Hadestia
Inhabitant of a Megalopolis
Reactions:
Posts: 722
Joined: 17 Jul 2017, 14:16
Location: Philippines
Plugins: Showcase Store

Plugin Creator

Platform

Re: Override ocean

Post by Hadestia »

what is the purpose of that white texture
 ! Message from: Hadestia
Visit my YouTube channel:
https://youtube.com/channel/UC5qG-r8y21036JZbGRClbdQ
User avatar
JustAnyone
Honorary Contributor
Reactions:
Posts: 3666
Joined: 23 Jul 2017, 10:45
Location: Easter Island
Plugins: Showcase Store

Platform

Re: Override ocean

Post by JustAnyone »

rjroldan1 wrote: 08 Jan 2018, 09:30 what is the purpose of that white texture
Water sparkle.
:pickle:
User avatar
CommanderABab
AB
Reactions:
Posts: 11269
Joined: 07 Jun 2016, 19:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Override ocean

Post by CommanderABab »

my avatar:
User avatar
Mrqwerty
Inhabitant of a Megalopolis
Reactions:
Posts: 579
Joined: 06 Oct 2018, 19:48
Location: Vermont, United States
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Override ocean

Post by Mrqwerty »

Now I can finish my "end of the world" map.
WHAT IS THE DEAL WITH AIRPLANE FOOD :calc :bb :bq
Previous topicNext topic