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