1. Wulf

    Wulf Community Admin

    I'm not sure what you mean.
     
  2. Code:
    (02:21:19) | [Oxide] 01:21 [Debug]   at Oxide.Plugins.XpBooster.OnPlayerSleepEnded (.BasePlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.XpBooster.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.Plugin.CallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
    with 2.0.2142 oxide version
     
  3. Great, but how we can set xp rate to offline players? I think second argument on OnXpEarn must be string userId, as default.
     
  4. Wulf

    Wulf Community Admin

    Offline players don't earn XP with the game that I am aware of? At least not via that hook as far as I know.

    Could you show me the error above that please?
     
  5. Look at this, maybe im wrong but there xp will added to item owners just be userid, no any online checks.

    Screenshot
     
  6. Wulf

    Wulf Community Admin

    Someone did tell me that they do get XP when players use stuff that you have crafted and such, so it may be best to just get rid of the player for the hook and use the ID instead, adding the ID as another arg won't help it when it still expects a player.
     
  7. We can find online/sleepers manually by userid taken in args, it will better than ignore offline players.
     
  8. Wulf

    Wulf Community Admin

    Yeah, I'll probably have to do that. Thanks for the info. :)
     
  9. this is the error
     

    Attached Files:

  10. Sorry for the late reponse but
    personally i think the xp rises too fast and I would love it down a little bit so I understands what plugins only serves to boost xp , but would it be possible to ensure to be more accurate with the variables ( x1.5 Boosted xp , xp X3.4 or x0.5 Boosted Boosted xp xp to lower the offer ) ?
     
    Last edited by a moderator: Jul 10, 2016
  11. Wulf

    Wulf Community Admin

    The XP only rises as high as you set it. There isn't much difference between those, I just opted for integers over floats as I've had a lot of users have trouble with decimal points in other plugins in the past.
     
  12. Okay, i see .. It is a shame that it does not take the decimals : / It is not possible Rust does not allow for the moment, or no try?
     
  13. Wulf

    Wulf Community Admin

    I updated my response a bit.
     
  14. Yes I can understand this is not easy at the beginning ^^ Anyway remove its many functionality precisely : /
     
    Last edited by a moderator: Jul 10, 2016
  15. I see in console so many time this error
     

    Attached Files:

  16. Wulf

    Wulf Community Admin

    Do you have any more info on when this is happening? I can't figure out why anything would be null in there, I can't reproduce it.
     
  17. oh mine isn't doing it anymore since your last update
     
  18. Wulf

    Wulf Community Admin

    Hmmm... okay. The Oxide update? Ah, I know why I think... yeah, that makes sense now. Thanks.
     
  19. Wulf can you change the loading of configs so we can set the bonus to 1.5 to add +50% xp for example ? I think it takes only whole numbers now.
     
  20. Installed last update version
    Code:
    [Oxide] 20:09 [Error] Failed to call hook 'OnXpEarn' on plugin 'XpBooster v0.3.3
    ' (NullReferenceException: Object reference not set to an instance of an object)