Medieval Engineers

Medieval Engineers

Not enough ratings
[PVP] Grid Protection System
   
Award
Favorite
Favorited
Unfavorite
Type: Mod
Mod category: script
Version: 0.7
File Size
Posted
Updated
224.774 KB
28 Aug, 2017 @ 11:47am
13 Apr, 2020 @ 6:47am
11 Change Notes ( view )

Subscribe to download
[PVP] Grid Protection System

Description
Return of the Grid Protection System!

This time, it responds purely on diplomatic state and ownership rules.
- If an area is unclaimed, its buildings are vulnerable.
- If an area is claimed, and the owner is not in a faction, the buildings are vulnerable.
- If an area is claimed, and the owner's faction is at war with any non-NPC faction, the buildings are vulnerable.

Otherwise, the buildings will be protected from any damage.

Updated ME DLL required!
Because of a bug in Medieval Engineers grid indestructability does not function properly. I have applied a fix for it to the official binary of the game, and you will have to replace it to make this mod function correctly.
http://deepflame.nl/medieval/MedievalEngineers.Game.dll
21 Comments
Deepflame  [author] 13 Apr, 2020 @ 6:47am 
Just pushed a fix, it should work with 0.7 now! :)
CassioMJR 12 Aug, 2019 @ 10:50am 
Is it working for 0.7?
TAURION 10 Apr, 2018 @ 1:31pm 
this will be great if you can add ability same as SE mod "beacon security" (when owner is online and war is declared -protection falls. protection sets up only if owner goes offline after some certain time which can be configured by owner of server, to prevent PVP-logoff and give attackers some time)
Mykell 10 Apr, 2018 @ 7:52am 
Deepflame: I activated the PVE mod and played last night for several hours without incident. I again played this morning with one crash upon placing a block through creative mode (last night was in creative as well) but I do not think it is related to your mod. I've had this happen before, randomly, upon block placement. When it was crashing before and I suspected the mod I was placing blocks on one parcel while standing on another, both unclaimed. Not sure if that information is helpful or applicable. Just thought I'd update you on this. Thanks so much for your had work. Modders make the game even better!
Mykell 9 Apr, 2018 @ 2:27pm 
1) That really helps explain it! Thank you.

2) I don't have any more information on the crashes but I'm going to install again and if it crashes I'll save the log and msg you back here.

Thanks very much. I'm looking forward to having this running on the server.
Deepflame  [author] 9 Apr, 2018 @ 1:48pm 
1. There is no point to running both at the same time. They run the exact same code, the only difference is the way how diplomacy plays out. In both modes protection is only removed during war. In PVE mode you can only enter into a war if both sides agree, but either party can end the war whenever they want. In PVP mode either party can force the war upon the other, but ending the war has to be mutually agreed upon.

2. Do you have some more information regarding the crash? A log maybe?
Mykell 9 Apr, 2018 @ 9:17am 
Iv'e got two questions. 1) Is there a way to run PVP and PVE Protection mods at the same time? When I tried it seemed to interfere with the game saving process. 2) When I had PVP mod running on a rented dedicated server (mine so I'm the administrator) The game would crash when trying to build a palisade wall that cut across boundaries. The lands were unclaimed at the time. I'm not sure it had anything to do with stretching across 2 boundaries but I was wondering if land needs to be claimed before building? Also, I was in creative mode at the time. I finally had to disable the mod in order to continue.

Thanks so much in advance for any input you can give.
Deepflame  [author] 3 Jan, 2018 @ 10:57am 
Are there any other mods on your server by any chance? From the looks of it, there's only one thing that can be null, and that can only happen if another mod incorrectly edits the session components list.
Deepflame  [author] 29 Dec, 2017 @ 8:26am 
It can't remove grids, it only functions on claimblocks. :P
peaceman 29 Dec, 2017 @ 7:16am 
It also removed all grids from the game when it crashed during startup :D luckily we have those autosave backups