BeamMP Flood Mod

I have finally taken the time to make the flood mod for BeamMP.
The flood is controlled via the server and you can use commands to modify it.

You can download from Github
Anyone can use the commands, it’s up to you to sort out the moderation side of things since I don’t know which resource you use for it.

Installation

  1. Download the latest release from the releases page
  2. Copy floodBeamMP.zip into your BeamMP-Server/Resources/Client folder
  3. Copy Flood into your BeamMP-Server/Resources/Server folder

Commands

  • /flood_start - Starts the flood
  • /flood_stop - Stops the flood
  • /flood_reset - Resets the height and disables the flood
  • /flood_setLevel <level> - Sets the flood level/height
  • /flood_setSpeed <speed> - Sets the flood speed (0.001 is default)
  • /flood_setDecrease <decrease> - Makes the water level decrease instead of increase
  • /flood_setLimit <limit> - Sets the flood height limit
  • /flood_setLimitEnabled <enabled> - Enables or disables the flood height limit
  • /flood_printSettings - Prints the current flood settings
5 Likes

New Pre-Release 1.1.0

Get Here

Changes

  • The water now updates on the client with deltatime and exponential decay to make sure it’s not jittery and stays in sync. The server still updates it as well. If it goes too far out of sync, it will update instantly.

  • The server now sends the water level every second instead of every 25ms. I recommend leaving it at 1 second.

  • Remove rain and rain sound functionality.

  • Updated the modScript to use the new setExtensionUnloadMode function.

  • Fixed some issues with decreasing the water level.

  • Fixed duplicate timers when calling reset.

1 Like

The code in the source file for the flood.lua script differs from the download zip on the releases page. Calling the printSettings command disconnects the player calling it from the server and gives a reason “nabled: false”.
Replacing the function with the code from the source file fixes this, but I noticed that there are many other differences in that file as well.

The code should be the same in the source and in the zip file. Maybe you’re looking at 1.1.0, that version hasn’t been packaged yet. However, I recommend using that version.

And you might want to upgrade the server if that’s causing issues. It was fixed a while back, and I even tested that function to make sure you no longer get kicked.

I could be wrong, but I have reason to believe the flood map doesn’t work after the recent server .exe update to v3.4.1? I could only get certain commands to function, even on another server hosting the same flood mod.

PS: you should make a “lava” texture instead of water, for options :stuck_out_tongue:

I meant to say Flood Mod* doesn’t appear to work anymore, not Flood Map. The map works fine. Sorry for the mix-up.

Hello, the flood mod is currently fully functional, I was just using it in a server about 30 minutes ago. There is also a lava mod available that changes the water to lava.

Well I must be mistaken. My apologies. It is in fact working now on a fresh server. Perhaps I had some mod conflicts or something.

That’s possible, I only keep the mods I am actively using installed, so I only have like 3 right now.

Just letting you know that this issue is ongoing. /flood_printSettings is still crashing clients.

I have followed the instructions for installation, but I recieve am error when joining the server to check my config. What should my config look like for “map”? I cant join my sever to play it

I need help!

You need to put the file name for the map inside the space in the configuration file. You can find the list of names here List of map directories to put into config.toml.

The flood mod files are saved in:

  1. BeamMP-Server/Resources/Client/floodBeamMP.zip folder
  2. BeamMP-Server/Resources/Server/Flood folder

the map name is FloodEscapeCrater

I add the name of the map into the config like this
Map = “/levels/FloodEscapeCrater/info.json”
and I receive the error in the pic attached

I have also tried it in lowercase:
Map = “/levels/floodescapecrater/info.json”

The map is saved like this:
server/resources/client/FloodEscapeCrater

What am I doing wrong?

I was able to load the map correctly by not pulling out the map from the levels folder in the zip file. I just added the zip folder into the client folder, but I still am unable to start the flood. When i enter “/flood_start” in the console it says the flood has started but there is no water rising up.

Update:
I change the level to 100 on that map and Speed to .2 and it works! The default settings were set too low for this map and that explains why I didn’t see the flood

Thanks

PS what is this error and how to I resolve it?
Screenshot 2024-08-26 145656

Lua errors are considered normal, as long as BeamMP is working you can ignore any of these red banners that pop up.

Hello, after successfully running this Mod several times on “Flood Crater” and “West Coast” I am now getting “This map doesn’t have an ocean” error. I thought maybe it is from another plugin I installed so I disabled all other plugins, and I still get the same error.

Any thoughts?

hey my friend and i started a server through his pc and port forward and he downloaded everything the exact way the directions said to and every time we type any command in the console it says error unknown symbol next to '/ ’ any idea on how to fix this issue?

Hi
I’m trying to load up Flood Escape Crater 1.1 with this mod but it’s saying there is no ocean. Flooding and the map are working in the normal launcher, and I can set the flood speed in BeamMP server, I just cant start the flood - no ocean.

Any help would be appreciated.

First make sure that you have at least 1 player connected to the server since the ocean check is done on connection of each player. You cannot start a flood without a player connected first.

Once that is done the issue with not finding the ocean is due to the AddEventHandler in this file inside the zip: lua\ge\extensions\floodBeamMP.lua because it is searching for Ocean instead of ocean (case difference).

The fix: unzip the mod zip file to a folder and edit the above file to make either of the changes below:

Option 1: Find and change the AddEventHandler to make ocean lowercase:
AddEventHandler(“E_OnPlayerLoaded”, function()
ocean = findObject(“ocean”, “WaterPlane”)

Option 2: Find and change the AddEventHandler for either case:
AddEventHandler(“E_OnPlayerLoaded”, function()
ocean = findObject(“Ocean”, “WaterPlane”)
if not ocean then ocean = findObject(“ocean”, “WaterPlane”) end

Zip up the 2 folders: lua & scripts, and name the zip floodBeamMP.zip. Note it is important not to have these 2 folders buried under another folder. Verify this by opening the zip and making sure that there are just the 2 folders: lua & scripts, listed in the top level of the zip file.

hello, i dont know why, but the commands for starting, stopping and resetting the flood work fine, but the commands for setting the speed and the level dont work. am i entering them correctly? im entering them like this. /flood_setSpeed 1.2
it says server: Unknown command: setSpeed

1 Like