Jump to content

Plugin Broken with last Patch

Closed 3.1.15 3.1.16

Geini
Geini

Posted

Error while compiling AdminToggle: 'BasePlayer' does not contain a definition for 'MountObject' and no accessible extension method 'MountObject' accepting a first argument of type 'BasePlayer' could be found (are you missing a using directive or an assembly reference?) | Line: 3415, Pos: 28

Any quick fixes?

Xray

Posted

Hotfix
Rename MountObject -> SetMounted

The update is coming tomorrow after I get home from work...

  • Love 1
Xray

Posted

Changed Status from Pending to Work in Progress

Changed Fixed In to Next Version

Geini

Posted

SetMounted worked,,
but another problem appears:

Error while compiling AdminToggle: 'PlayerInventory' does not contain a definition for 'AllItems' and no accessible extension method 'AllItems' accepting a first argument of type 'PlayerInventory' could be found (are you missing a using directive or an assembly reference?) | Line: 3614, Pos: 87

btw: thank you for the quick reply!!

Xray

Posted (edited)

Hotfixes
Open AdminToggle.cs

STEP 1 Find & Replace 

player.MountObject((BaseMountable)MountOjb);

With (Line 3372~~)

player.SetMounted((BaseMountable)MountOjb);

 


STEP 2 Find & Replace

public static void Save(BasePlayer player, string InventoryKey, bool ClearInventoryAfterSave = false)

{

    ContainsKeyValue(player.userID, InventoryKey, true);

    PlayerInventories[player.userID][InventoryKey] = player.inventory.AllItems().Where(x => x != null).Select(i => FromItem(i)).ToArray();

    if (ClearInventoryAfterSave) { player.inventory.Strip(); }

}

With (Line 3568~~)

public static void Save(BasePlayer player, string InventoryKey, bool ClearInventoryAfterSave = false)
{
    ContainsKeyValue(player.userID, InventoryKey, true);
    List<Item> Items = new List<Item>();
    player.inventory.GetAllItems(Items);
    PlayerInventories[player.userID][InventoryKey] = Items.Where(x => x != null).Select(i => FromItem(i)).ToArray();
    if (ClearInventoryAfterSave) { player.inventory.Strip(); }
}



UPDATE COMING LATER

Edited by Xray
Xray

Posted (edited)


 

Edited by Xray
Xray

Posted (edited)

.

Edited by Xray
stupid text editor
  • Love 1
Geini

Posted

Thank you very much!!
Everything is working again ❤️

Xray

Posted

Fixed in version 3.1.16

Xray

Posted

Changed Status from Work in Progress to Closed

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.4k

Files Sold

Total number of files sold.

2m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.