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

Place to share custom user maps, scenarios and campaigns.

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

Postby Sovereign9000 » Sat Jan 13, 2018 2:58 am

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
Sovereign9000
Manual Inserter
Manual Inserter
 
Posts: 3
Joined: Sat Jan 13, 2018 2:53 am

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

Postby steinio » Sat Jan 13, 2018 3:10 pm

Pro tip: set a password for your public server
ImageImage
Transport Belt Repair Man
My little mods: Link | My favourite mods: Bob's Mods | Angel's Mods | Yuoki Railway Core | EvoGUI | Logistic Train Network
Factorio Cheat Sheet by Denis Zholob

View unread Posts
User avatar
steinio
Smart Inserter
Smart Inserter
 
Posts: 1911
Joined: Sat Mar 12, 2016 4:19 pm
Location: Germany

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

Postby Redstylt » Mon Jan 22, 2018 10:03 am

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
Looking for a dedicated server ? -> [Europe ENG-FR] [Public] ForFacto 24/7
User avatar
Redstylt
Fast Inserter
Fast Inserter
 
Posts: 135
Joined: Sun Mar 27, 2016 3:19 pm
Location: Belgium

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

Postby Redstylt » Tue Jan 23, 2018 6:19 pm

I got desync :'(
Desync report joined
Attachments
desync-report-2018-01-23_17-37-37.zip
Desync on ghost
(47.68 MiB) Downloaded 14 times
Looking for a dedicated server ? -> [Europe ENG-FR] [Public] ForFacto 24/7
User avatar
Redstylt
Fast Inserter
Fast Inserter
 
Posts: 135
Joined: Sun Mar 27, 2016 3:19 pm
Location: Belgium

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

Postby Sovereign9000 » Tue Feb 06, 2018 12:18 am

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
Sovereign9000
Manual Inserter
Manual Inserter
 
Posts: 3
Joined: Sat Jan 13, 2018 2:53 am

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

Postby Redstylt » Tue Feb 06, 2018 9:09 am

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

Great :) and what about my suggestions ?
Looking for a dedicated server ? -> [Europe ENG-FR] [Public] ForFacto 24/7
User avatar
Redstylt
Fast Inserter
Fast Inserter
 
Posts: 135
Joined: Sun Mar 27, 2016 3:19 pm
Location: Belgium


Return to Maps and Scenarios

Who is online

Users browsing this forum: No registered users and 2 guests