Page 1 of 1

Factorio Anti-Grief/Admin Scenario (NO MODS!)

Posted: Sat Jan 13, 2018 2:58 am
by Sovereign9000
Adds many useful commands and automatic detection to counter multiplayer griefing.

You can install this as a normal mod, or a scenario (softmod). Installing as a softmod will work with vanilla multiplayer clients.

Download on the mod portal: https://mods.factorio.com/mod/AntiGrief

The commands are as follows:

/ungrief - Removes all deconstruct markers.
/gtoggle - Toggle DeconstructGuard.
/garea <area> - Set the maxmimum area to trigger DeconstructGuard. (Default 1000)
/gwhitelist <player> - Whitelist a player to deconstruct large areas.
/gblacklist <player> - Blacklist a player from deconstructing large areas.
/glist - Show players who are whitelisted to deconstruct.
/gmode <mode> - Set mode of DeconstructGuard. warning or block. Default is block.
/search <itemName> - Search all player inventories for an item.
/god <player> - Toggles god mode for a player.
/give <itemName> <count> <player> - Give a player items.
/setspamtime <time> - Limit the rate (in seconds) of related warnings about a player.
/gauto <time_in_minutes> - Set a time (in minutes) where players will be automatically whitelisted. (The default, -1, disables auto-whitelist.)

The script will watch game events and emit the following warnings (seen by admins only):

When an atomic bomb is equipped.
When an artillery remote is equipped.
When grenades are used.
When an artillery remote is used.
When friendly entities are destroyed.
When blueprints are removed.
When offshore pumps, nuclear reactors, or rocket silos are removed or destroyed.

(When in block mode) - Ensure that non-whitelisted players can't deconstruct more than the max area.
(When in warning mode) - Print a warning when non-whitelisted players deconstruct an area more than the max area.

CREDITS:
Many thanks to /u/Mylon (Brickcaster) for his many additions. Check out his work:
https://github.com/Brickcaster/factorio ... igrief.lua
https://github.com/Brickcaster/factorio ... tekick.lua

Thanks to @RedstyIt for their help with multiplayer testing. Check out their server RedMew.

Re: Factorio Anti-Grief/Admin Scenario (NO MODS!)

Posted: Sat Jan 13, 2018 3:10 pm
by steinio
Pro tip: set a password for your public server

Re: Factorio Anti-Grief/Admin Scenario (NO MODS!)

Posted: Mon Jan 22, 2018 10:03 am
by Redstylt
Great job ! you should take a look at this https://github.com/Valansch/RedMew/blob ... ontrol.lua
I like the fact that you can allow or not people to use deconstruct planner.

So you should set your modes to your deconstructguard like "warnings" -"limited" -"blocked"
warning : Just prevent an admin when someone deconstruct a big area (set with /garea <area>)
limited : block the player if he wants to deconstruct a big area (set with /garea <area>)
blocked : need to be on the withelist to use a deconstruct planner

Also the nuke control is awesome ! Could you explain more how your is working ? (your V2.0 ?)

Thx and continue ! (i'll probably add this to my public server)

PS: join my discord if you want server & people to test your script :D https://discord.gg/mR3MVFA

Re: Factorio Anti-Grief/Admin Scenario (NO MODS!)

Posted: Tue Jan 23, 2018 6:19 pm
by Redstylt
I got desync :'(
Desync report joined

Re: Factorio Anti-Grief/Admin Scenario (NO MODS!)

Posted: Tue Feb 06, 2018 12:18 am
by Sovereign9000
Redstylt wrote:I got desync :'(
Desync report joined
Thanks for the report. It should be fixed now. The whitelist table was local whoops.

Re: Factorio Anti-Grief/Admin Scenario (NO MODS!)

Posted: Tue Feb 06, 2018 9:09 am
by Redstylt
Thanks for the report. It should be fixed now. The whitelist table was local whoops.[/quote]

Great :) and what about my suggestions ?