Solved Looking for a super easy API that Deletes wild bee hives/Drake &Wyvern Eggs/Beaver Damns on server startup.

Fireboyjinx

New member
Messages
1
Points
1
Simple request I'm hoping someone could help me with. I can run admin commands for these, but it would be nice to have an API that just does a purge on each server start up. This would be serious Unofficial quality of life. No more mega beehive stacks, ransacked beaver damns, and spoiled eggs in nests.
 
Advertisement

Official Game Server Partner

Revy

Member
Donators
Messages
42
Points
8
Hm, Could do that as a Mod if you dont find any plugin author for it.
 

a white guy

Member
Messages
57
Points
8
this has been a need for quite some time

as a workaround and filler until a mod of plugin is made ive modified code from ownprox's rcontool which he has here:
https://github.com/ownprox/Tools/tree/master/RconTool

if you wanted to try out the version i modified the code i use is located here:
https://pastebin.com/raw/k8p4SYqA

i have it so it can remove bee hives, and all rock drake/wyvern/deinoychus/magmasaur eggs as separate options but you can combine them all into the same command. this however is a manual process that you will need to run at least once per week.

its better then running it on each map you run since it can automate that part for you but its not as good as full automation like a plugin or mod would give.

and to solve your beaver damn issue you can modify the loot table of them to remove the wood from the smaller dams. something like this:
https://pastebin.com/raw/dvFRdhcE
modify as needed
 

Lethal

Active member
Plugin Developer
Messages
198
Points
28
I have a plugin done for this purpose just finishing up testing. If you would like to help with that let me know.
 

lewimaron

New member
Messages
20
Points
3
Website
jamonparadigm.com
Unfortunately RCON scheduler doesn't solve this problem, if you schedule a "destroyall beehive_c" it will also destroy player owned hives as the destroy all command also destroys sub classes of the one chosen.
 

Lethal

Active member
Plugin Developer
Messages
198
Points
28
Unfortunately RCON scheduler doesn't solve this problem, if you schedule a "destroyall beehive_c" it will also destroy player owned hives as the destroy all command also destroys sub classes of the one chosen.
The original poster mentioned running admin commands to fix the issues. While I agree the destroy all command will remove vanilla player owned beehives it was only included as example commands. I'm curious what commands @Fireboyjinx was using to accomplish this though.

If there is not a way to do some or all of these through RCON specifically. I can look at doing a custom solution for the ones that are not possible and add them as startup options in Rcon Scheduler.
 
Last edited:

lewimaron

New member
Messages
20
Points
3
Website
jamonparadigm.com
The original poster mentioned running admin commands to fix the issues. While I agree the destroy all command will remove vanilla player owned beehives it was only included as example commands. I'm curious what commands @Fireboyjinx was using to accomplish this though.

If there is not a way to do some or all of these through RCON specifically. I can look at doing a custom solution for the ones that are not possible and add them as startup options in Rcon Scheduler.
There's no way to do specifically wild ones at the moment, it'd need a new command similar to destroyall that doesn't do subclasses.
 

a white guy

Member
Messages
57
Points
8
itll fulfill all his other requests and if you use s+ on your server chances are you wont be using vanilla beehives. so just need to post a disclaimer on your server if you run the plugin and use it to kill beehives
 

a white guy

Member
Messages
57
Points
8
if you use s+ and you are fine with using only s+ beehives you can try using the structures limit plugin as a helper tool. If you ONLY use it for this purpose you can edit the reachlimit notification to word it so they know why its blocked. an example of the config is below:

{
"General":{
"CheckInterval":10,
"NotificationDisplayTime":5.0,
"NotificationScale":1.5
},
"Structures":{
"Blueprint'/Game/PrimalEarth/Structures/BeeHive/BeeHive_PlayerOwned.BeeHive_PlayerOwned'":{
"Name":"\n\nVanilla BeeHives are disabled. Use the S+ version.\nVanilla Beehive",
"Count":0
}
},
"Messages":{
"Sender":"StructuresLimit",
"ShowLimitsCmd":"/limits",
"ReachLimit":"Vanilla Beehives are blocked to to the usage of a plugin to clear wild beehives.",
"ShowLimitMsg":"{}: Current Total {} / Max Allowed {}\n",
"TotalLimitMsg":"\nYour tribe currently has a total of {} structures.\nYour tribe is allowed a total of {} structures."
}
}


if you happen to already use the plugin you can add some extra text at the end of your config in the structures section. it could look something like this:

"Blueprint'/Game/PrimalEarth/Structures/BeeHive/BeeHive_PlayerOwned.BeeHive_PlayerOwned'":{
"Name":"\n\nVanilla BeeHives are disabled. Use the S+ version.\nVanilla Beehive",
"Count":0
}
 
Top