Jump to content

Does not compile after October Update

Pending 1.4.8

Neighigh
Neighigh

Posted

JetSki not compiling after wipe. No rush, just making a support request for your notification 🙂 

beetle

Posted

JetSki - Failed to compile: There is no argument given that corresponds to the required parameter 'forced' of 'Buoyancy.SavePointData(bool)' | Line: 572, Pos: 27 🤞

Sa1tire

Posted

Any update on a fix for this issue ?

Neighigh

Posted

1 hour ago, Sa1tire said:

Any update on a fix for this issue ?

Probably on the weekend. Senya usually gets an update in on Saturday/Sunday after wipe.

Covfefe

Posted

Tried to get gpt to fix it but ran out of data

Quote

JetSki.cs

File

tell me how to fix this compile error JetSki - Failed to compile: There is no argument given that corresponds to the required parameter 'forced' of 'Buoyancy.SavePointData(bool)' | Line: 572, Pos: 27

ChatGPT said:

ChatGPT

The error you're encountering is due to calling the SavePointData() method on _buoyancy without providing the required bool forced parameter. The error message specifies that the method Buoyancy.SavePointData(bool) expects a boolean argument.

Error:

csharp

Copy code

_buoyancy.SavePointData(); // Error: Missing required boolean parameter

How to fix it:

To resolve the error, you need to pass a boolean argument (either true or false) to the SavePointData() method, depending on what behavior you want. Here's an example:

csharp

Copy code

_buoyancy.SavePointData(true); // or false depending on your needs

If you're not sure whether to use true or false, check the method's documentation or usage elsewhere in your code to understand what the boolean parameter controls (e.g., forced save or optional save).

4o

You said:

fix it for me

ChatGPT said:

ChatGPT

I have fixed the compile error by passing a boolean argument to the SavePointData method. You can download the updated file using the link below:

Download the fixed file

4o

You said:

new error with your fix Error while compiling JetSki: 'PlayerInventory' does not contain a definition for 'AllItemsNoAlloc' and no accessible extension method 'AllItemsNoAlloc' accepting a first argument of type 'PlayerInventory' could be found (are you missing a using directive or an assembly reference?) | Line: 418, Pos: 50 fix this

ChatGPT said:

ChatGPT

The error occurs because the method AllItemsNoAlloc does not exist in the PlayerInventory class, or it's possible that you're missing a reference or using directive.

Here are a few ways to fix this issue:

1. Check if AllItemsNoAlloc should be replaced with an existing method:

If PlayerInventory has a method that retrieves all items, you can replace AllItemsNoAlloc with that method. A commonly used method might be GetItems() or something similar.

Example:

csharp

Copy code

player.inventory.GetItems(ref playerItems);

2. Add the appropriate using directive or assembly reference:

If AllItemsNoAlloc is part of an external library, ensure that you have added the correct using statement at the top of your file and that the assembly is referenced in your project.

Would you like me to check for potential method replacements or proceed with adding a different inventory retrieval method in the file?

4o

You said:

fix it for me

ChatGPT said:

ChatGPT

It seems like I can’t do more advanced data analysis right now. Please try again later.

However, you can manually fix the error by replacing the AllItemsNoAlloc method with GetItems (or another appropriate method) in your code at Line 418. Here's the modified line for you to use:

csharp

Copy code

player.inventory.GetItems(ref playerItems);

This should resolve the error if GetItems or a similar method exists in your PlayerInventory class.

c'mon @_senyaa! how do we get a mod to contact the creator?

  • Administrator
Death

Posted

We're now aware of the lack of updates and support and have deactivated sales.

  • Like 1
  • Sad 1
Covfefe

Posted

6 hours ago, dustyhansen said:

@_senyaa any chance on getting this fixed? my players miss the plugin.

same here, i tried and tried again with with AI but kept getting different errors

1.4m

Downloads

Total number of downloads.

6.8k

Customers

Total customers served.

101.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.