Tabletop Simulator

Tabletop Simulator

32 ratings
Dynamic Ocean Map
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
16.214 KB
Jun 4, 2021 @ 9:35am
Jan 2, 2023 @ 5:00am
4 Change Notes ( view )

Subscribe to download
Dynamic Ocean Map

Description
This is a map which you can use in whatever mod or map you are using.

It features a dynamic ocean with waves and transparency with a clean sky. All water movememnt is on the GPU side and doesn't affect the plain collider. The ocean parameters are also dynamic and on the scripting tab there's a example to change the speed, wave size, and color of the ocean, so if you want a red blood sea you can.

This is part of my Black Seas TTS mod, but since this could be useful for other people I'm releasing it as standalone.

It comes with a small rock and default cube for scale, but you should substitute them for whatever you want.
23 Comments
DNXyken Apr 19, 2024 @ 10:23am 
Thanks for the reply @Leberecht Reinhold!
If you're open to a little consultancy, I'd appreciate it, and I'll message you through Discord later today when I get a chance so you can school me on this.
I've download BlackSeas and I'll poke around and play with it to try to understand what you did in there too!
And it's true what what others have said, this is the best water shader on the workshop for the sea because of dynamic looking nature, ability to change the variables, and the way it interacts with other objects. So good job!
Leberecht Reinhold  [author] Apr 19, 2024 @ 2:12am 
@DNXyken Glad you like it!
Yes, you can import it, but it's a bit hard due to some TTS limitations. You will not be able to do through a saved obj, due to tbeing set to interactable=false. You also need to reset parameters on onload to what you want, because they are literally parameters given in the GPU, as far as CPU/TTS knows, its otherwise a flat plane.

IMHO the best way is to copy this, but instead of doing it on onload, rename it to "initialize_sea". Then call it through a button or whenever you want the sea to appear. Feel free to add me on discord if you need help with this!

And yeah, color and settings can be changed by setting. Get my black seas mod, there are several sea settings there!
DNXyken Apr 18, 2024 @ 1:27pm 
First off, this is absolutely amazing! Awesome job.
Second, I wanted to ask if there was a way to import the water_outer_obj into my groups home table while maintaining script functionality?
If I don't copy the entire script from your map into my table's general script, whenever I try to adjust the wave variables, it errors and says "attempt to call a nil value."
I wouldn't mind incorporating this mod's script into my table's, but the onLoad commands include a spawn command for both water assets, which would be annoying to delete every time we boot it up and don't need it.
Is there a way to make the script self contained in the object?
Also, while playing with it, a thought occurred to me:
Could the variables like wave height, speed, the color presets like SEA_COLOR, all be adjusted by creating buttons on a separate panel?
I'm deep diving into TTS, and starting to get my feet wet in understanding LUA, but the way this mod functions eludes me.
Leberecht Reinhold  [author] Mar 16, 2023 @ 11:35am 
@Cacko_AzSa135 You can change them in the code
numero_77 Mar 16, 2023 @ 11:07am 
Hi, congrats for your mod! But I have a question, how do I change the wave speed and size?
SnickerToodles Jan 7, 2023 @ 9:22pm 
I really like this, especially how it looks like waves are crashing on the shore.
Old School Oni Jan 2, 2023 @ 7:51am 
Nice, and thank you!
Leberecht Reinhold  [author] Jan 2, 2023 @ 5:01am 
@Old School Oni Mod update with that issue fixed.
I would also like to mention that you can write in the chat /execute set_ocean_color({R=60, G=0, B=10}) to change the ocean color.
Old School Oni Jan 1, 2023 @ 8:23am 
Thanks Leberecht! I didn't catch the update and wondered why it was "suddenly" throwing errors. Thought I had messed it up (I ihad ncorporated it in a Pirate figure combat themed mod). Then I realized the original was throwing the same error. Thanks for demystifying it for me.
Leberecht Reinhold  [author] Jan 1, 2023 @ 1:55am 
@Old School Oni That's normal, this mod was before TTS allowed access to the materials "normally", and used a trick to modify the shader values. Now with the last update they added a official way to do it (getting the renderer component then materials), the old way doesnt work anymore. Gotta update the mod, I will try to do it next week.

@GMT_Gina Yes of course, you can place coastlines or islands. See my Black Seas mod to get some terrain that uses "trick" textures that blender together regardless of scale and position.