Jump to content

Error message after game update

Pending 1.0.7

pookins
pookins

Posted

Getting this error message from todays update

103 TurretsReborn - Failed to compile: There is no argument given that corresponds to the required parameter 'id' of 'PlayerInventory.FindItemsByItemID(List<Item>, int)' | Line: 532, Pos: 56

  • Like 1
samsam

Posted

I'm having the same problem. Why isn't the plugin developer helping?

  • Like 1
Rambii

Posted

delete data and fix haha

 

  • Confused 1
samsam

Posted

The plugin does not have a data file. If you are referring to the config file, I tried that but the problem was not resolved.

GodlyHydra

Posted

Error while compiling TurretsReborn: There is no argument given that corresponds to the required parameter 'id' of 'PlayerInventory.FindItemsByItemID(List<Item>, int)' | Line: 532, Pos: 56

  • Like 1
pookins

Posted

On 8/10/2025 at 8:06 AM, samsam said:

I'm having the same problem. Why isn't the plugin developer helping?

No idea but it is a bit annoying. an indication that its a work in progress would be appreciated

  • Like 1
Millahdee

Posted

I was able to get it to compile by replacing the content on Line 532:

 

Quote

List<Item> foundedItems = player.inventory.FindItemsByItemID(itemid);

With the following 12 lines:

 

Quote

List<Item> foundedItems = new List<Item>();
List<Item> allItems = new List<Item>();
allItems.AddRange(player.inventory.containerMain.itemList);
allItems.AddRange(player.inventory.containerWear.itemList);
allItems.AddRange(player.inventory.containerBelt.itemList);
foreach (Item item in allItems)
{
    if (item.info.itemid == itemid)
    {
        foundedItems.Add(item);
    }
}

I can't make any guarantees, but at least it compiled successfully and *should* work as before.

  • Love 1
pookins

Posted

Works for me, managed to add AK47, Multiple rocket launcher or bazooka on turret and commands work

Rambii

Posted

7 hours ago, Millahdee said:

I was able to get it to compile by replacing the content on Line 532:

 

With the following 12 lines:

 

I can't make any guarantees, but at least it compiled successfully and *should* work as before.

Error while compiling TurretsReborn: The modifier 'public' is not valid for this item | Line: 627, Pos: 9

Rambii

Posted

50 minutes ago, pookins said:

A mí me funciona, logré agregar AK47, lanzacohetes múltiple o bazooka en la torreta y los comandos funcionan.

Would you mind sending me the corrected file? I'm trying, but I don't know what I'm doing wrong, and it's giving me another error.

1.9m

Downloads

Total number of downloads.

9k

Customers

Total customers served.

131.5k

Files Sold

Total number of files sold.

2.7m

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.