Make sure you’re still using the latest Oxide build.

Portals
Create portals allowing players to walk through to another location
Total Downloads: 3,736 - First Release: Jul 16, 2015 - Last Update: Nov 23, 2017
- 5/5, 17 likes
-
Wulf Community Admin
-
-
@LaserHydra
Great mod LaserHydra, have been really enjoying it. I did find a bug though. Whenever reloading/unloading the mod, portal objects don't properly remove themselves. I found the issue to be how you named your function. Please make the following change to fix it as oxide does not recognize Unloaded() in its API.
Code:private void Unloaded()// Change to //private void Unload()
-
So I've been trying to investigate what has been plaguing my server with lag spikes during garbage collections. This is the only mod I've found where the problem went away after unloading it. I re-enabled the mod and removed all the portals. The problem again went away. I then created two portal objects, entrance and exit. The problem returned. Somehow the portal objects are causing this problem.
I started noticing the lag spikes occur exactly whenever I get one of the following garbage collection msges. And I only get these when running Portals with any portals enabled.
Code:(23:45:46) | [Oxide] 23:45 [Warning] Calling 'CanNetworkTo' on 'Vanish v0.4.1' took 1410ms [GARBAGE COLLECT] (23:46:40) | [Oxide] 23:46 [Warning] Calling 'CanNetworkTo' on 'Vanish v0.4.1' took 1443ms [GARBAGE COLLECT] (23:47:18) | [Oxide] 23:47 [Warning] Calling 'CanNetworkTo' on 'Vanish v0.4.1' took 1454ms [GARBAGE COLLECT] (23:47:57) | [Oxide] 23:47 [Warning] Calling 'CanNetworkTo' on 'Vanish v0.4.1' took 1393ms [GARBAGE COLLECT] (23:48:28) | [Oxide] 23:48 [Warning] Calling 'CanNetworkTo' on 'Vanish v0.4.1' took 1421ms [GARBAGE COLLECT] (23:48:57) | [Oxide] 23:48 [Warning] Calling 'OnNpcTarget' on 'Vanish v0.4.1' took 1559ms [GARBAGE COLLECT] (23:49:34) | [Oxide] 23:49 [Warning] Calling 'CanNetworkTo' on 'Vanish v0.4.1' took 1437ms [GARBAGE COLLECT] (23:50:12) | [Oxide] 23:50 [Warning] Calling 'CanNetworkTo' on 'Vanish v0.4.1' took 1545ms [GARBAGE COLLECT] (23:51:24) | [Oxide] 23:51 [Warning] Calling 'CanNetworkTo' on 'Vanish v0.4.1' took 1476ms [GARBAGE COLLECT]
Edit:
I was thinking about all the changes the Rust devs have been talking about making changes to garbage collection to improve performance. Is there possibly a new conflict introduced between the game and this mod resulting in my garbage collection issue with the mod?
Edit:
Seems I still have the same issue when Portals isn't loaded, but get the garbage collect warning once every 10 minutes instead of once every 30 seconds.Last edited by a moderator: Oct 17, 2017 -
For some reason I am unable to remove my portals... I type /portal remove <nameofportal> and it shows it removing it even in the .json configuration... However, when i stepped into the area, where I had the entrance portal... it still works.... I even went as far as removing the plugin from the plugins folder and the portals still worked.... strange....
-
-
Thanks, ill give it a go
-
(01:32:21) | Error while compiling: Portals.cs(432,24): error CS0411: The type arguments for method `BaseEntity.ClientRPCPlayer<T1,T2,T3,T4,T5>(Network.Connection, BasePlayer, string, T1, T2, T3, T4, T5)' cannot be inferred from the usage. Try specifying the type arguments explicitly
Help ! -
Wulf Community Admin
-
-
-
Wulf Community Admin
-
hmm love the plugin however as an admin i cant walk through portals
i have all the permissions. LOL am i special or something?? or can someone point me in the right direction @Wulf wink wink nudge nudge your the genius in these situations XD
-
Wulf Community Admin
-
-
-
I should have worded that better, delete the .cs and upload latest version aggain. BUT NOT delete the .json
-
Reuploading, would normally result in the same effect as reloading (if you load the same version). -
screenshot_169 — Postimage.org i am getting
Duplicate permission registered 'portals.use' (by plugin 'Portals')
Duplicate permission registered 'portals.use' (by plugin 'Portals')
Duplicate permission registered 'portals.use' (by plugin 'Portals')
in console........any idea how to fix this? or?
anyone?Last edited by a moderator: Dec 28, 2017 -