Not an Issue Errors after Update

Discussion in 'Hurtworld Discussion' started by Glumi Chan, Jun 24, 2016.

  1. I got this Error messages with LootConfig (cannot be load) and my own Plugin

    LootConfig-Error
    Code:
    [Oxide] 19:07 [Error] LootConfig.cs(150,57): error CS1061: Type `GameManager' do
    es not contain a definition for `GetProtocolVersion' and no extension method `Ge
    tProtocolVersion' of type `GameManager' could be found. Are you missing an assem
    bly reference?
    

    My Plugin-Error
    Code:
    [Oxide] 19:07 [Error] MyPlugin plugin failed to compile!
    [Oxide] 19:07 [Error] MyPlugin.cs(1149,43): error CS0117: `GameManager' does not
     contain a definition for `GetPlayerEntity'
    

    Did you missed to include some librarys in Oxide @ Admin?

    Or what have changed?
     
  2. Wulf

    Wulf Community Admin

    LootConfig is already updated, see it's thread. The change is from Hurtworld, not Oxide.

    For one, Replace "Instance.GetProtocolVersion()" with "PROTOCOL_VERSION".

    For your other issue, you'd need to find where GetPlayerEntity moved to.
     
  3. Hi guys,
    I found solution for Glumi's plugin error.

    Code:
    [Oxide] 19:07 [Error] MyPlugin plugin failed to compile!
    [Oxide] 19:07 [Error] MyPlugin.cs(1149,43): error CS0117: `GameManager' does not
    contain a definition for `GetPlayerEntity'
    Replace "GameManager.GetPlayerEntity" with "GameManagerUtilities.GetPlayerEntity".

    You'r welcome :)