Darwin submitted a new resource:
VisionDMG - Control damage to players and entities
Read more about this resource...
VisionDMG [Unmaintained]
Discussion in 'Plugin Support' started by Darwin, Jan 30, 2016.
-
error!!
-
I am confused by the config file, and Iam not sure how to setup it. I use also other godmodes mod for the players.
I haev a build & creative server, I dont want that players are damaged by anything.
The only thing I want is that players can damage there own buildings.
ATM I have this as setup:
Code:{ "Settings": { "ConfigVersion": "1.2", "CurrentEntMode": "Protected PVE", "CurrentPVPMode": "Protected PVP", "pveSwitch": { "enabled": false, "pveModeTurnsController": "on", "useVisionPVP": false }, "Restrictions": { "StorageContainer": 0.0, "BuildingBlock": 0.0, "BasePlayer": 0.0 }, "BuildingBlock": { "damage_filter": [ "BasePlayer" ] }, "StorageContainer": { "damage_filter": [ "BasePlayer" ] }, "BasePlayer": { "damage_filter": [ "BasePlayer" ] }, "Descriptions": { "contested": "Area of the map where no building privileges are defined", "private": "Area of the map where the attacker does not have building privileges but the victim does", "trespassing": "Area of the map where the attacker and the victim explicitly to not have building privileges", "friendly": "Area of the map where the victim and attacker both have building privileges" }, "PVPModes": { "Vanilla PVP": { "contested": false, "private": false, "trespassing": false, "friendly": false, "description": "Full PVP regardless of who or where. Same as Vanilla Rust" }, "Protected PVP": { "contested": false, "private": false, "trespassing": false, "friendly": false, "description": "Attackers cannot hurt victims when victims have building privileges. If the attacker gains access to the tool cupboard then the victim will not longer be protected." }, "Friendly PVP": { "contested": false, "private": false, "trespassing": false, "friendly": false, "description": "Attackers cannot hurt victims when on someone elses property. For this reason, victims will also protected when on their own property by having the private flag set to false." }, "Builder": { "contested": false, "private": false, "trespassing": false, "friendly": false, "description": "You cant do damage anywhere people are building. This makes it hard to stop intruders though." } }, "EntityModes": { "Vanilla PVP": { "damage_on": true, "players_can_damage_own_buildings": true, "players_can_damage_all_buildings": true, "players_can_damage_loot_containers": true, "players_can_damage_locked_items": true }, "Builder": { "damage_on": false, "players_can_damage_own_buildings": true, "players_can_damage_all_buildings": false, "players_can_damage_loot_containers": true, "players_can_damage_locked_items": false }, "Protected PVE": { "damage_on": true, "players_can_damage_own_buildings": true, "players_can_damage_all_buildings": false, "players_can_damage_loot_containers": false, "players_can_damage_locked_items": false }, "Vanilla PVE": { "damage_on": true, "players_can_damage_own_buildings": true, "players_can_damage_all_buildings": false, "players_can_damage_loot_containers": false, "players_can_damage_locked_items": false } } } }
[DOUBLEPOST=1454419235][/DOUBLEPOST]I have tried it again with a new config file.
Code:{ "Settings": { "ConfigVersion": "1.2", "CurrentEntMode": "Builder", "CurrentPVPMode": "Builder", "pveSwitch": { "enabled": false, "pveModeTurnsController": "on", "useVisionPVP": false }, "Restrictions": { "StorageContainer": 0.0, "BuildingBlock": 0.0, "BasePlayer": 0.0 }, "BuildingBlock": { "damage_filter": [ "BasePlayer" ] }, "StorageContainer": { "damage_filter": [ "BasePlayer" ] }, "BasePlayer": { "damage_filter": [ "BasePlayer" ] }, "Descriptions": { "contested": "Area of the map where no building privileges are defined", "private": "Area of the map where the attacker does not have building privileges but the victim does", "trespassing": "Area of the map where the attacker and the victim explicitly to not have building privileges", "friendly": "Area of the map where the victim and attacker both have building privileges" }, "PVPModes": { "Vanilla PVP": { "contested": true, "private": true, "trespassing": true, "friendly": true, "description": "Full PVP regardless of who or where. Same as Vanilla Rust" }, "Protected PVP": { "contested": true, "private": false, "trespassing": true, "friendly": true, "description": "Attackers cannot hurt victims when victims have building privileges. If the attacker gains access to the tool cupboard then the victim will not longer be protected." }, "Friendly PVP": { "contested": true, "private": false, "trespassing": false, "friendly": true, "description": "Attackers cannot hurt victims when on someone elses property. For this reason, victims will also protected when on their own property by having the private flag set to false." }, "Builder": { "contested": true, "private": false, "trespassing": false, "friendly": false, "description": "You cant do damage anywhere people are building. This makes it hard to stop intruders though." } }, "EntityModes": { "Vanilla PVP": { "damage_on": true, "players_can_damage_own_buildings": true, "players_can_damage_all_buildings": true, "players_can_damage_loot_containers": true, "players_can_damage_locked_items": true }, "Builder": { "damage_on": false, "players_can_damage_own_buildings": true, "players_can_damage_all_buildings": false, "players_can_damage_loot_containers": true, "players_can_damage_locked_items": false }, "Protected PVE": { "damage_on": true, "players_can_damage_own_buildings": true, "players_can_damage_all_buildings": false, "players_can_damage_loot_containers": true, "players_can_damage_locked_items": false }, "Vanilla PVE": { "damage_on": true, "players_can_damage_own_buildings": false, "players_can_damage_all_buildings": false, "players_can_damage_loot_containers": false, "players_can_damage_locked_items": false } } } }
Fire does damage the buildin now but C4 does not.
What iam doing wrong? -
Plugin simply doesn't work unfortunately ...
Here is my DMG Config (only part that changed from stock)
Code:"Settings": { "ConfigVersion": "1.2", "CurrentEntMode": "Vanilla PVE", "CurrentPVPMode": "Protected PVP", "pveSwitch": { "enabled": true, "pveModeTurnsController": "on", "useVisionPVP": true },
I unloaded DMG mod- made changes above, re-load DMG mod
Looked at logs see the errors (attached log)
PS - This a test server running ONLY your mods and fresh Rust install/OxideAttached Files:
-
-
[DOUBLEPOST=1454465357][/DOUBLEPOST]
[DOUBLEPOST=1454465509][/DOUBLEPOST] -
Hey,
I am getting a few issues with the plugin (along with locks) that keep spamming my console:
Code:[Oxide] 12:11 PM [Warning] CallHook 'OnEntityTakeDamage' on plugin 'VisionDMG v0.1.2' took: 682ms [Oxide] 12:12 PM [Warning] CallHook 'OnEntityTakeDamage' on plugin 'VisionDMG v0.1.2' took: 656ms [Oxide] 12:12 PM [Warning] CallHook 'OnEntityTakeDamage' on plugin 'VisionLocks v0.1.0' took: 678ms [Oxide] 12:12 PM [Warning] CallHook 'OnEntityTakeDamage' on plugin 'VisionLocks v0.1.0' took: 686ms
Any recommendations?
[DOUBLEPOST=1455394782][/DOUBLEPOST]edit: every time anyone does damage to anything I get the warning above. This may be something trivial, but I dont want it causing lag, and I suspect that it may be contributing. Thanks -
Hey there - What is the ETA on auth-based permissions?
-
Turrets and mines can kill sb and signs can be destroyed.. Any idea why and how to fix? (both modes are set to "Builder")
-
The plug-in does not work? the configs do not respond!
-
I'm trying to coordinate this with visionPVP.
We want pvp from 18 to 6. pve the rest of the day.
We want it set so that if you attack your own building or someone else's building you take damage during PVE time but you do not give damage to the building.
During PVP you can attack any building and any player without penalty.
I got the visionPVP to work solo, but then I put in visionDMG and everythings going haywire. People are killing themselves during the day and you can attack buildings giving them damage. Please let me know how I need to set the scripts in both these programs to work for the above.
Thank you so much! I appreciate your hard work and time! Love the plugin. We seen it used on a few other servers and enjoyed it. -
Error I am getting:
[Oxide] 19:02 [Error] Failed to call hook 'OnEntityTakeDamage' on plugin 'VisionDMG v0.1.2'
File: VisionDMG.js Line: 74 Column: 13 TypeError rules is undefined:
at Jint.Native.Function.ScriptFunctionInstance.Call (JsValue thisArg, Jint.Native.JsValue[] arguments) [0x00000] in <filename unknown>:0
at Oxide.Ext.JavaScript.Plugins.JavaScriptPlugin.OnCallHook (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0
[Oxide] 19:02 [Error] Failed to call hook 'OnEntityTakeDamage' on plugin 'VisionDMG v0.1.2'
File: VisionDMG.js Line: 74 Column: 13 TypeError rules is undefined:
at Jint.Native.Function.ScriptFunctionInstance.Call (JsValue thisArg, Jint.Native.JsValue[] arguments) [0x00000] in <filename unknown>:0
at Oxide.Ext.JavaScript.Plugins.JavaScriptPlugin.OnCallHook (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0
at Oxide.Core.Plugins.Plugin.CallHook (System.String hookname, System.Object[] args) [0x00000] in <filename unknown>:0
Its all undefined any way you can point me in the right direction? -
OnEntityTakeDamage eror