imperialplugins / rocket-regions Goto Github PK
View Code? Open in Web Editor NEWRegions for Unturned
Home Page: https://dev.rocketmod.net/plugins/regions/
License: GNU Affero General Public License v3.0
Regions for Unturned
Home Page: https://dev.rocketmod.net/plugins/regions/
License: GNU Affero General Public License v3.0
If i am do /rocket reload the server is Sometimes Laging very very bad for a fev sec becuase off The Plugin
I tryed to look if it some problem with a another plugin but it is only if i have Rocket regions loaded
I am a running a server on a workshop map maybe thats why this is happening I'm running Greenport Island my base is on a hill maybe thats why as well but when i create a region. with [/rpos 1 & 2] i create it. It creates a region but only certain spots get a safe zone when in my base it says left and entered while inside when I wanted the whole base to be covered.
Sorry to keep sending error messages reports. I only intend to make your plugin work properly since I really like your idea. Here's what I am getting using latest plugin and rocket version.
If I try to add myself to the Region’s owner, the plugin spamming my steamid in the Configuration file
A thread for tests, so we can eliminiate bugs before this plugin gets released.
when i do /rflag base noenter on is working but i want it to allow only to the group that i choose.
i did /rflag base noenter on MyGroupName and its says unknown group!. i did it good please help
http://pastebin.com/USaK9dvC
-Need to reproduce
[6/29/2016 6:45:20 AM] [Error] NullReferenceException: Object reference not set to an instance of an object - Rocket.Unturned.Player.UnturnedPlayer.get_CSteamID ()
Safezone.Util.PlayerUtil.GetCSteamId (IRocketPlayer player)
Safezone.Util.PlayerUtil.GetId (IRocketPlayer player)
Safezone.Model.Safezone.SafeZone.GetGroup (IRocketPlayer player)
Safezone.Model.Flag.Impl.PlaceAllowedFlag.b__4_0 (Rocket.Unturned.Player.UnturnedPlayer p)
System.Linq.Enumerable+c__Iterator102[Rocket.Unturned.Player.UnturnedPlayer,<>f__AnonymousType1
2[Rocket.Unturned.Player.UnturnedPlayer,Safezone.Model.Group]].MoveNext ()
System.Linq.Enumerable+c__Iterator102[<>f__AnonymousType1
2[Rocket.Unturned.Player.UnturnedPlayer,Safezone.Model.Group],<>f__AnonymousType22[<>f__AnonymousType1
2[Rocket.Unturned.Player.UnturnedPlayer,Safezone.Model.Group],SDG.Unturned.UseableBarricade]].MoveNext ()
System.Linq.Enumerable+c__Iterator1D1[<>f__AnonymousType2
2[<>f__AnonymousType12[Rocket.Unturned.Player.UnturnedPlayer,Safezone.Model.Group],SDG.Unturned.UseableBarricade]].MoveNext () System.Linq.Enumerable+<CreateSelectIterator>c__Iterator10
2[<>f__AnonymousType22[<>f__AnonymousType1
2[Rocket.Unturned.Player.UnturnedPlayer,Safezone.Model.Group],SDG.Unturned.UseableBarricade],Rocket.Unturned.Player.UnturnedPlayer].MoveNext ()
Safezone.Model.Flag.Impl.PlaceAllowedFlag.UpdateState (System.Collections.Generic.List`1 players)
Safezone.SafeZonePlugin.Update ()
I am getting this new error after updating the plugin to latest version: 28.06.2016
-> #41
Add documentation for API and documentation for how this plugin works
When I uploaded this plugin to my server, it removed everyone's stuff. I don't know if it wiped the player files clean or if it just didn't allow the server to connect to them, but it caused my server to go back a week to the last uncorrupted player files that I had. And the plugin didn't work at all either.
if a weapon deals more damage than the structure/barricades health it will still be destroyed even with the destroyallowed flag set to false
Implement region limitations for groups.
E.g. max size of a region, max regiones per user, etc... (so users can create their own regiones for theirs houses etc)
Plants should be the only things that regions dont protect, because my players are spamming their plants and getting infinite plants to sell and its OP
Add priorities so you can define a region in a region. Use flags from the region with higher priority.
An error occured while executing command /sflag 1 godmode 1: System.NullReferenc
eException: Object reference not set to an instance of an object
at Safezone.Model.Safezone.SafeZone.GetFlag (System.Type t, Boolean createIfNo
tFound) [0x00000] in :0
at Safezone.Commands.FlagCommand.Execute (Rocket.Unturned.Player.RocketPlayer
caller, System.String[] command) [0x00000] in :0
at Rocket.Unturned.Commands.RocketAliasBase.execute (CSteamID caller, System.S
tring command) [0x00000] in :0
I suffered dll files in the plugins folder and run, it writes an error "invalid of oudated plugin assembly: Safezone"
[6/28/2016 8:37:42 AM] [Error] NullReferenceException: Object reference not set to an instance of an object - Safezone.SafeZonePlugin.Unload ()
Rocket.Core.Plugins.RocketPlugin.UnloadPlugin (PluginState state)
Rocket.Core.Plugins.RocketPlugin.OnDisable ()
UnityEngine.Object:Destroy(Object)
Rocket.Core.Plugins.RocketPluginManager:unloadPlugins()
Rocket.Core.Plugins.RocketPluginManager:Reload()
Rocket.Core.R:Reload()
Rocket.Unturned.Commands.CommandRocket:Execute(IRocketPlayer, String[])
Rocket.Core.Commands.RegisteredRocketCommand:Execute(IRocketPlayer, String[])
Rocket.Core.Commands.RocketCommandManager:Execute(IRocketPlayer, String)
Rocket.Unturned.Interface:Execute(CSteamID, String)
SDG.Unturned.CommandWindow:onInputText(String)
SDG.Unturned.ConsoleInput:onEnter()
SDG.Unturned.ConsoleInput:update()
SDG.Unturned.CommandWindow:update()
SDG.Unturned.Dedicator:Update()
Reports suggest that this flag is not working on wooden structures, glass etc. Maybe the flag isnt working at all and people just can't destroy metal structures...
Add some dank translations
When you make the first zone everything seems fine but after server restart it seems the xml has some error and I get this:
[6/29/2016 2:12:51 PM] [Error] ArgumentNullException: Argument cannot be null.
Parameter name: elementType - System.Array.CreateInstance (System.Type elementType, System.Int32[] lengths)
System.Array.CreateInstance (System.Type elementType, Int32 length)
System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadListString (System.Xml.Serialization.XmlTypeMapping typeMap, System.String values)
System.Xml.Serialization.XmlSerializationReaderInterpreter.GetValueFromXmlString (System.String value, System.Xml.Serialization.TypeData typeData, System.Xml.Serialization.XmlTypeMapping typeMap)
System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadAttributeMembers (System.Xml.Serialization.ClassMap map, System.Object ob, Boolean isValueList)
System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadMembers (System.Xml.Serialization.ClassMap map, System.Object ob, Boolean isValueList, Boolean readByOrder)
System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadClassInstanceMembers (System.Xml.Serialization.XmlTypeMapping typeMap, System.Object ob)
System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadClassInstance (System.Xml.Serialization.XmlTypeMapping typeMap, Boolean isNullable, Boolean checkType)
System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadObject (System.Xml.Serialization.XmlTypeMapping typeMap, Boolean isNullable, Boolean checkType)
System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadObjectElement (System.Xml.Serialization.XmlTypeMapElementInfo elem)
System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadListElement (System.Xml.Serialization.XmlTypeMapping typeMap, Boolean isNullable, System.Object list, Boolean canCreateInstance)
System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadMembers (System.Xml.Serialization.ClassMap map, System.Object ob, Boolean isValueList, Boolean readByOrder)
System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadClassInstanceMembers (System.Xml.Serialization.XmlTypeMapping typeMap, System.Object ob)
System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadClassInstance (System.Xml.Serialization.XmlTypeMapping typeMap, Boolean isNullable, Boolean checkType)
System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadObject (System.Xml.Serialization.XmlTypeMapping typeMap, Boolean isNullable, Boolean checkType)
System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadObjectElement (System.Xml.Serialization.XmlTypeMapElementInfo elem)
System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadListElement (System.Xml.Serialization.XmlTypeMapping typeMap, Boolean isNullable, System.Object list, Boolean canCreateInstance)
System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadMembers (System.Xml.Serialization.ClassMap map, System.Object ob, Boolean isValueList, Boolean readByOrder)
System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadClassInstanceMembers (System.Xml.Serialization.XmlTypeMapping typeMap, System.Object ob)
System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadClassInstance (System.Xml.Serialization.XmlTypeMapping typeMap, Boolean isNullable, Boolean checkType)
System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadObject (System.Xml.Serialization.XmlTypeMapping typeMap, Boolean isNullable, Boolean checkType)
System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadRoot (System.Xml.Serialization.XmlTypeMapping rootMap)
System.Xml.Serialization.XmlSerializationReaderInterpreter.ReadRoot ()
System.Xml.Serialization.XmlSerializer.Deserialize (System.Xml.Serialization.XmlSerializationReader reader)
Rethrow as Exception: Failed to deserialize XMLFileAsset: Plugins/Rocket-Safezone/Rocket-Safezone.configuration.xml
Rocket.Core.Assets.XMLFileAsset1[Safezone.SafeZoneConfiguration].Load (Rocket.API.AssetLoaded
1 callback)
Rocket.Core.Assets.XMLFileAsset1[Safezone.SafeZoneConfiguration]..ctor (System.String file, System.Type[] extraTypes, Safezone.SafeZoneConfiguration defaultInstance) Rocket.Core.Plugins.RocketPlugin
1[RocketPluginConfiguration]..ctor ()
Safezone.SafeZonePlugin..ctor ()
UnityEngine.GameObject:.ctor(String, Type[])
Rocket.Core.Plugins.RocketPluginManager:loadPlugins()
Rocket.Core.Plugins.RocketPluginManager:Start()[6/29/2016 2:12:51 PM] [Error] NullReferenceException: Object reference not set to an instance of an object - Rocket.Core.Plugins.RocketPlugin`1[RocketPluginConfiguration].LoadPlugin ()
Rocket.Core.Plugins.RocketPlugin.OnEnable ()
UnityEngine.GameObject:.ctor(String, Type[])
Rocket.Core.Plugins.RocketPluginManager:loadPlugins()
Rocket.Core.Plugins.RocketPluginManager:Start()
Hi,
I'm trying out your Regions plugin but I'm running into a bit of an issue.
I try to do /rpos1 at one corner of an area and /rpos2 at the opposite, but they give no output in chat to say that the corners were defined and then when I try to create it I am told that I need to do /spos1 and /spos2 instead and that the region couldn't be created...
The issue with /spos1 and /spos2 is that they instead of giving no output in chat say that the commands don't exist. Even when typing those two commands in and trying to create the region afterwards won't work.
If you could fix this that would be awesome.
Thanks,
- James
The said flag is not working. The plugin doesn't recognize the flag everytime I try to use it on any safezones I created.
It would be great if the plugin allows /rflag from console :)
Regions get removed, but wont recreate.
For example It still says /screate instead of /rcreate
I am getting this error message after a vehicle entered a safezone with "EnterVehicles" flag set to true.
Hello I used this plugin on my server I will talk about the bugs I have encountered.
They are more like ovals
i've been testing the plugin on my server and both those flags dont work
i had my friend come into the server and try to enter and leave the area and he still can
not being an admin and not being on the same steam group
NullReferenceException: Object reference not set to an instance of an object - Safezone.Model.Flag.Impl.DestroyAllowedFlag.UpdateState (System.Collection.Generic.List`1 players)
If i try to make a Region so that only member can go in it .It wont let anyone in the zone. I used /rflag "....." noenter true -g NONMEMBER
but it dont work. I tryed it with /rflag "...." noenter true nonmember but it still sayes:
"Flag has been set to:flase for group ALL"
Please try to fix this Problem
If anyone else have the same problem
EnterVehiclesAllowed does not work at all. command does nothing as if it doesn't exist
Godmode breaks safezone upon resarting server
nozombies breaks safezone upon restart
noplace doesn't work either
So i have a safezone on my server with noequipweapon flag on my server, then i started getting this spam in console
https://gyazo.com/1c01407fd926e5dd9a6476d71ae23d78
Edit: It doesnt seem to be happening anymore. Not sure why it was happening
Edit 2: still happens sometimes
Edit 3: now im getting this https://gyazo.com/0fa10f8cf1a4b85fb7967445faa8a317
Edit 4: apears im getting a new error spam now https://gyazo.com/57efbeed8d1678215ac97d6196e7010d
Edit 5: now im getting this casting error spam even on novehiclesusage and noequip. appears this error can happen on any 'limiting' flag
[7/16/2016 2:43:38 AM] [Error] Error in MulticastDelegate PlayerUpdatePosition: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: Nullable object must have a value.
at System.Nullable1[System.Double].get_Value () [0x00000] in <filename unknown>:0 at Safezone.Model.Safezone.Type.CircleType.GetDistance (Safezone.Model.SerializablePosition p) [0x00000] in <filename unknown>:0 at Safezone.Model.Safezone.Type.CircleType.IsInSafeZone (Safezone.Model.SerializablePosition p) [0x00000] in <filename unknown>:0 at Safezone.SafeZonePlugin.IsInSafeZone (Vector3 pos, Safezone.Model.Safezone.SafeZone zone) [0x00000] in <filename unknown>:0 at Safezone.SafeZonePlugin+<>c__DisplayClass17_0.<GetSafeZoneAt>b__0 (Safezone.Model.Safezone.SafeZone safeZone) [0x00000] in <filename unknown>:0 at System.Linq.Enumerable.First[SafeZone] (IEnumerable
1 source, System.Func2 predicate, Fallback fallback) [0x00000] in <filename unknown>:0 at System.Linq.Enumerable.FirstOrDefault[SafeZone] (IEnumerable
1 source, System.Func`2 predicate) [0x00000] in :0
at Safezone.SafeZonePlugin.GetSafeZoneAt (Vector3 pos) [0x00000] in :0
at Safezone.SafeZonePlugin.OnPlayerUpdatePosition (IRocketPlayer player, Vector3 position) [0x00000] in :0
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in :0
--- End of inner exception stack trace ---
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in :0
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in :0
at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x00000] in :0
at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00000] in :0
at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in :0
at Rocket.Core.Extensions.MulticastDelegateExtension.TryInvoke (System.MulticastDelegate theDelegate, System.Object[] args) [0x00000] in :0
[Error] An error occured while executing command /screate newpos: System.NullReferenceException: Object reference not set to an instance of an object
at Safezone.Commands.CreateCommand.Execute (Rocket.Unturned.Player.RocketPlayer caller, System.String[] command) [0x00000] in <filename unknown>:0
at Rocket.Unturned.Commands.RocketAliasBase.execute (CSteamID caller, System.String command) [0x00000] in <filename unknown>:0
Most recent build as of writing.
Also unrelated note, but upon first execution the whole server was treated as safezone, this was not the case in subsequent runs
I had a quick question about regions... Is there possibly going to be an update where salvaging items in a "nodestroy" area will give the item back rather than it being broken and lost?
Also in “placeallowed false” you can’t place doors or sandbags but you still can place floors pillars etc.. I think structures are still allowed to be placed.
(reported by m4djoker)
Like NoEquip but only for weapons
Reported by Pandahut and other users in the comments:
Sometimes it seems to randomly not detect us in the zone, or think we are in it whilst we are not and have left it.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.