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

This is the place to share custom user maps, scenarios, and campaigns.
Post Reply
User avatar
Sovereign9000
Manual Inserter
Manual Inserter
Posts: 3
Joined: Sat Jan 13, 2018 2:53 am
Contact:

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

Post 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.
Last edited by Sovereign9000 on Sun Feb 18, 2018 4:40 am, edited 12 times in total.

User avatar
steinio
Smart Inserter
Smart Inserter
Posts: 2632
Joined: Sat Mar 12, 2016 4:19 pm
Contact:

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

Post by steinio »

Pro tip: set a password for your public server
Image

Transport Belt Repair Man

View unread Posts

User avatar
Redstylt
Fast Inserter
Fast Inserter
Posts: 154
Joined: Sun Mar 27, 2016 3:19 pm
Contact:

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

Post 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
Just a big fan of Factorio and all its mods

User avatar
Redstylt
Fast Inserter
Fast Inserter
Posts: 154
Joined: Sun Mar 27, 2016 3:19 pm
Contact:

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

Post by Redstylt »

I got desync :'(
Desync report joined
Attachments
desync-report-2018-01-23_17-37-37.zip
Desync on ghost
(47.68 MiB) Downloaded 200 times
Just a big fan of Factorio and all its mods

User avatar
Sovereign9000
Manual Inserter
Manual Inserter
Posts: 3
Joined: Sat Jan 13, 2018 2:53 am
Contact:

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

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

User avatar
Redstylt
Fast Inserter
Fast Inserter
Posts: 154
Joined: Sun Mar 27, 2016 3:19 pm
Contact:

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

Post by Redstylt »

Thanks for the report. It should be fixed now. The whitelist table was local whoops.[/quote]

Great :) and what about my suggestions ?
Just a big fan of Factorio and all its mods

Post Reply

Return to “Maps and Scenarios”