1. On servers with /remover tool, that is irrelevent. Perhaps a non-default section of code in the plugin solely for server admin who want an infinite rotate option?
     
  2. What do I need to set the value of amountOfMinutesAfterUpgrade to let people rotate things forever? Cheers.
     
  3. This isn't implemented yet but since you are the second person asking this I will see if I can implement this.
     
  4. That would be great, it's very handy to be able to rotate stairs.
     
  5. KeyboardCavemen updated RotateOnUpgrade with a new update entry:

    1.2.0

     
    Last edited by a moderator: Aug 17, 2015
  6. can you make "AllowAdminDestroy" and a feature to disable rotate/demolish if damage have been dealt x radious away from the building? that would prevent poeple from removing stuff during fights and raids
     
  7. Every time I hit "download" the page loads a sec then nothing happens. I looked in my downloads and I restarted my comp. I tried it yesterday and today and still nothing.
     
  8. Works fine for me.
     
  9. whenever i put this plugin on my server it starts to lag very bad. we remove it and its gone right away then add it and lag comes back. any idea whats up?
     
  10. seems like your plugin makes the server freeze for some people with high population.
    Server freezes for 5-10 seconds | Oxide

    i suspect this function:timerTickHandler from being the culpit
    you use: allBuildingBlocks.AddRange(UnityEngine.GameObject.FindObjectsOfType<BuildingBlock>());
    and
    allBuildingBlocks.Find(x => x.GetInstanceID().Equals(instanceIDs));
    on server that have 200k blocks, it sure would cause lags. especially if it has to loop multiple times in here: for (int i = 0; i < this.timesOfUpgrade.Count; i++)

    any way, hope you can maybe find a way to fix the lags!
     
  11. Good point you have there sir. Never really expected to have this causing performance issues but I just realised doing this every minute is redundant and can be done only when the mod reloads. This should fix all the performance issues, as this heavy function will only be called once at mod reload/server startup.
    Thanks for the report and I'll see if I have some time to work on a fix tomorrow.

    Kind regards,

    Kc
     
  12. KeyboardCavemen updated RotateOnUpgrade with a new update entry:

    1.3.0

     
  13. Ongoing
     

    Attached Files:

  14. Thank you for your report, I have looked trough the code very carfully but can't find anything that should bring up a nullpointer. Which is very odd, because this last version has about 200 downloads and none has reported this. The thing I noticed when looking trough your error-log is that another mod (SupplyDropDestroyer v0.2.0) also brings up nullpointers, which would make me think there's something else going on.
    I hate to ask this but *did you try to turn it on and off again?* maybe back up the configuration file and let the mod create a new one? I know it really sucks but apart from that I don't really have any other suggestions.

    Kind regards,

    K.c
     
  15. I get the same error:
    Code:
    [Oxide] 3:24 PM [Error] Failed to call hook 'OnStructureUpgrade' on plugin 'RotateOnUpgrade v1.3.0' (NullReferenceException: )
    [Oxide] 3:24 PM [Debug]   at (wrapper managed-to-native) UnityEngine.Component:get_transform ()
      at Oxide.Plugins.RotateOnUpgrade.updateConfig () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.RotateOnUpgrade.addBlockToList (.BuildingBlock buildingBlock, DateTime dateTime) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.RotateOnUpgrade.OnStructureUpgrade (.BuildingBlock block, .BasePlayer player, Enum grade) [0x00000] in <filename unknown>: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 <filename unknown>:0 
     
  16. I've got the same error. Starts when someone starts upgrading i.e a wall. Error is also given when an admin is rotating.
    Code:
    [Oxide] 8:07 PM [Error] Failed to call hook 'OnStructureUpgrade' on plugin 'RotateOnUpgrade v1.3.0' (NullReferenceException: )
    [Oxide] 8:07 PM [Debug]   at (wrapper managed-to-native) UnityEngine.Component:get_transform ()
      at Oxide.Plugins.RotateOnUpgrade.updateConfig () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.RotateOnUpgrade.addBlockToList (.BuildingBlock buildingBlock, DateTime dateTime) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.RotateOnUpgrade.OnStructureUpgrade (.BuildingBlock block, .BasePlayer player, Enum grade) [0x00000] in <filename unknown>: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 <filename unknown>:0 
     
  17. When the server is started -"[Error] Failed to call hook 'OnServerInitialized' on plugin 'RotateOnUpgrade v1.3.0' (InvalidCastException: Value is not a convertible object: System.Collections.Generic.List`1[System.Object] to System.Int32)"
    Before had never seen. Please fix it.
     
  18. Try deleting your config file, this should resolve the issue.
     
  19. Oh yeah! Thank you, really helped.
     
  20. Code:
    [9/28/2015 10:34:15 PM] [Oxide] 10:34 PM [Error] Failed to call hook 'OnStructureUpgrade' on plugin 'RotateOnUpgrade v1.3.0' (NullReferenceException: )
    [9/28/2015 10:34:15 PM] [Oxide] 10:34 PM [Debug]   at (wrapper managed-to-native) UnityEngine.Component:get_transform ()
      at Oxide.Plugins.RotateOnUpgrade.updateConfig () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.RotateOnUpgrade.addBlockToList (.BuildingBlock buildingBlock, DateTime dateTime) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.RotateOnUpgrade.OnStructureUpgrade (.BuildingBlock block, .BasePlayer player, Enum grade) [0x00000] in <filename unknown>: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 <filename unknown>:0
     

    Attached Files:

    • log.txt
      File size:
      20.5 KB
      Views:
      17
    Last edited by a moderator: Oct 3, 2015