Coder Social home page Coder Social logo

imperialplugins / rocket-regions Goto Github PK

View Code? Open in Web Editor NEW
12.0 8.0 12.0 12.72 MB

Regions for Unturned

Home Page: https://dev.rocketmod.net/plugins/regions/

License: GNU Affero General Public License v3.0

C# 100.00%
rocketmod csharp game plugin unturned

rocket-regions's People

Contributors

charter0d avatar finadil avatar fr34kyn01535 avatar kr4ken-9 avatar mattmentrup avatar pustalorc avatar rube200 avatar solarne avatar trojaner avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

rocket-regions's Issues

New Flags

  • Unlimited fuel for generators inside region
  • EnterEffect / LeaveEffect for playing sounds / effects

Server lag if i Do /rocket reload

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

Problem with update 16.07.2016

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.

Testers Thread

A thread for tests, so we can eliminiate bugs before this plugin gets released.

NoEnter (Allowing to custom group)

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

Errors when PlaceAllowed is "False"

[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__AnonymousType12[Rocket.Unturned.Player.UnturnedPlayer,Safezone.Model.Group]].MoveNext ()
System.Linq.Enumerable+c__Iterator102[<>f__AnonymousType12[Rocket.Unturned.Player.UnturnedPlayer,Safezone.Model.Group],<>f__AnonymousType22[<>f__AnonymousType12[Rocket.Unturned.Player.UnturnedPlayer,Safezone.Model.Group],SDG.Unturned.UseableBarricade]].MoveNext ()
System.Linq.Enumerable+c__Iterator1D1[<>f__AnonymousType22[<>f__AnonymousType12[Rocket.Unturned.Player.UnturnedPlayer,Safezone.Model.Group],SDG.Unturned.UseableBarricade]].MoveNext () System.Linq.Enumerable+<CreateSelectIterator>c__Iterator102[<>f__AnonymousType22[<>f__AnonymousType12[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 ()

Documentation

Add documentation for API and documentation for how this plugin works

Player Crash

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.

DestroyAllowed issue

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 limitations

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 issue

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

Make Regiones Overlapable

Add priorities so you can define a region in a region. Use flags from the region with higher priority.

Flag godmod

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

bug works

I suffered dll files in the plugins folder and run, it writes an error "invalid of oudated plugin assembly: Safezone"

Plugin has sometimes errors when unloading

[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()

Problem after server restart

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.AssetLoaded1 callback)
Rocket.Core.Assets.XMLFileAsset1[Safezone.SafeZoneConfiguration]..ctor (System.String file, System.Type[] extraTypes, Safezone.SafeZoneConfiguration defaultInstance) Rocket.Core.Plugins.RocketPlugin1[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()

Cannot create a region

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

'NoZombies' Flag

The said flag is not working. The plugin doesn't recognize the flag everytime I try to use it on any safezones I created.

Bug(s) with the latest update: 29.06.2016

Hello I used this plugin on my server I will talk about the bugs I have encountered.

  • 1. When Using NoZombies Flag they will become invisible.
  • 2. I Do not know if this is a bug but Godmode Is not constant like if an admin had it. for example if I shot someone if a room with god mode they have to exit then enter the room.
  • 3. With NoEnter or NoLeave people will be teleported to the roof of the map and stay there until someone makes the flag False.
    Thats all I have found for now. ~Honcho

Flags NoLeave and NoEnter

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

DestroyAllowed issue

NullReferenceException: Object reference not set to an instance of an object - Safezone.Model.Flag.Impl.DestroyAllowedFlag.UpdateState (System.Collection.Generic.List`1 players)

Groups Still not working for me

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

/Sflags breaks safezones

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

noequipweapon error spam

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

Circle radius is null sometimes

[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] (IEnumerable1 source, System.Func2 predicate, Fallback fallback) [0x00000] in <filename unknown>:0 at System.Linq.Enumerable.FirstOrDefault[SafeZone] (IEnumerable1 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

Cannot create zone

[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

Salvaging Items removed them in NoDestroy areas

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?

PlaceAllowed issue

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.