tModLoader

tModLoader

ModLiquid Library
46 Comments
Lion8cake  [author] 7 Oct @ 6:59pm 
@Lithobraker This issue is technically resolved on the preview version as the mod has been merged into tmodloader itself. Both me and the owner of liquid slope patcher have attempted to fix compatibility even before the slope patcher's release but due to some weird issues we couldn't get it working properly
Lithobraker 18 Sep @ 2:15am 
I've discovered an incompability between this mod and Liquid Slopes Patch.
Here's the crash log: https://pastebin.com/jfcV57kD
I also shared this on that mod's page. Not sure which side the issue is on, or if it can even be helped.
Lion8cake  [author] 15 Sep @ 9:09am 
Example liquid drawing is planned, but I want to expand more on liquid rendering before I do so.

PreLiquidMerge can be used to do actions rather than creating tiles. Please see ExampleCustomLiquidMerge.cs in the example mod on how to do that.
VENOMFLESH 15 Sep @ 7:37am 
Suggestion: PostLiquidMerge to handle stuff after a successful liquid merge, such as removing the newly created tile in favor of something else like an explosion. And maybe an example for Advanced Liquid Drawing?
Lion8cake  [author] 14 Sep @ 9:47am 
Unable to be used with https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=3567964103 (Liquid Slope Patch) but a future hotfix is planned to address the liquid rendering issues
Lion8cake  [author] 5 Sep @ 1:03am 
@VENOMFLESH the same as spawning a vanilla liquid either by using:
tile.LiquidType = LiquidLoader.LiquidType<MYLIQUIDHERE>();
or
Worldgen.PlaceLiquid(x, y, LiquidLoader.LiquidType<MYLIQUIDHERE>(), amount);
VENOMFLESH 4 Sep @ 9:36am 
How would I go about spawning a custom liquid via worldgen?
The only issue that I encountered is that this mod really tanks my fps while playing (approximately by 20-40 fps) and when I disable this mod fps goes back to normal
<R3d> 2 Sep @ 3:29pm 
It was a problem with the world itself. Even though TModloader said it was with the mod. I don't have the log.
Lion8cake  [author] 1 Sep @ 8:51pm 
What was the issue specifically, if certain worlds are crashing, that’s still an issue I can adress
<R3d> 1 Sep @ 8:49pm 
It turns out the world I was testing with it was the problem.
Lion8cake  [author] 1 Sep @ 8:44pm 
Also in general for mod conflicts, please tell me which mods and I’ll resolve any issues with the mod creator
Lion8cake  [author] 1 Sep @ 8:43pm 
@<R3D> please post your logs, and I’ll have the issue fixed asap
Lion8cake  [author] 1 Sep @ 8:42pm 
@ChiDragon I’ve tested with a bunch of larger mods (Calamity, Thorium,etc) all all were able to load. There might have been a few changes causing things to nolonger work but I doubt it
<R3d> 1 Sep @ 7:48pm 
The mod will not load, even with everything else disabled.
ChiDragon 1 Sep @ 6:15pm 
Hopefully there ends up being a way for mod conflicts with other large content mods to be resolved. Otherwise, it won't be possible to use the Depths with other large content mods.
2024 ***** Winter Sale 1 Sep @ 10:15am 
gg lion
Lion8cake  [author] 29 Aug @ 2:06pm 
Super large update, expect some breakage with other mods
Monosaccharide 15 Aug @ 12:57pm 
No problem, thanks!
Lion8cake  [author] 15 Aug @ 8:38am 
liquids now move again, thank you for your patience
Lion8cake  [author] 11 Aug @ 2:51pm 
Seems to be an issue that was created from last update. I will look into it and have a patch out at most by Friday
Monosaccharide 11 Aug @ 11:06am 
when i was playing, all liquids did not have gravity, is this an intended aspect of the "implementation of liquids in the same way how tmodloader handles modded tiles and walls" or a bug?
Zin 8 Aug @ 3:19pm 
its friday
I sput, therefore I span 6 Aug @ 11:27pm 
Im not a mod maker, but you're doing god's work here with this
Lion8cake  [author] 5 Aug @ 7:17pm 
Big update for developers on Friday!

Smaller hotfix containing fixes but contains a few mod-breaking changes such as properties being renamed, PreDraw in GlobalLiquid containing water style params and more.

Also fixed the mod being unable to graphically handle liquids when more than 11 modded liquids were added.

Example Mod will be updated accordingly alongside
Thank you all for the reports and issues that ive been able to identify and fix!
Lion8cake  [author] 5 Aug @ 7:56am 
To access the preview version of the game for some people who don't know:
1. Open steam and navigate to your Tmodloader page in your library
2. Open the properties menu and select "Betas"
3. Change the "None" dropdown to "preview-v2025.07"
Zin 5 Aug @ 7:37am 
I haven't been able to use this yet because Idk how to switch the tModLoader version.
Zin 5 Aug @ 7:36am 
Can you make liquid deal damage?
Ropro0923 3 Aug @ 7:05pm 
Awesome mod, been waiting for something like this for a while!
slug woman 3 Aug @ 5:04pm 
my bad
Lion8cake  [author] 3 Aug @ 3:35pm 
Politely asking for you guys to not continue this chain
stormytuna 3 Aug @ 6:28am 
this mod cured my terminal diseases and made my parents get back together, thank you Lion8cake
JustImpaxim 2 Aug @ 7:59pm 
FINALLY I've been waiting for something like this. ty very much
Lion8cake  [author] 2 Aug @ 4:14pm 
@Ssneaky
The 4 liquid limit in the game barely exists, only existing when saving the world and in multiplayer (for syncing purposes). These both can be expanded quite easily. The rest of the game however has either a 255 liquid limit or a 2 billion limit (255 for a lot of rendering stuff, 2 billion for how the liquid is stored)
Lion8cake  [author] 2 Aug @ 4:12pm 
@Harly, I’ve been considering reworking ModWaterStyles at some point in which would include a lot of hooks ModLiquid has. Even if I don’t do a major rework of ModWaterStyle, I still think I should add the water style as a param to PreDraw
Наrlу 2 Aug @ 1:09pm 
and with user friendly ui
Наrlу 2 Aug @ 1:09pm 
add function to change water rendering based on biome, so ppl can do custom water to every biome they want right in game.
SSneaky 2 Aug @ 12:54pm 
wait how is this possible, i thought the 4 liquids thing was a engine thing?
DoodleBro 2 Aug @ 11:27am 
so yk beverage of the gods? apparently there's some expanded version, and now it is henceforth possible to turn every single component into an ACTUAL liquid!
4c3nties 2 Aug @ 8:22am 
liquid
Erky 1 Aug @ 6:32pm 
epic!! finally
2024 ***** Winter Sale 1 Aug @ 1:42pm 
ModeGoop
Redemption 1 Aug @ 10:13am 
Ouhhh I'm liquiding... I'm liquiding it so good
TacoConKvass 1 Aug @ 7:11am 
Now to wait for 1.4.5 to make native TML ModLiquid and make this obsolete
KainSett 1 Aug @ 6:55am 
Oauhh I can't BELIEVE the amount of Dradons sacrificed to make this peak,,,
Cooked
Ebonfly 1 Aug @ 6:48am 
Ouhhh I'm liquiding... I'm liquiding it so good