Jump to content

Failed compiling 'OfflineRaidProtection.cs': on the new update

Pending 1.1.16

BjarkeH
BjarkeH

Posted

Failed compiling 'OfflineRaidProtection.cs':

1. Argument 1: cannot convert from 'System.Collections.Generic.HashSet' to 'in System.Collections.Generic.List' [CS1503] (OfflineRaidProtection 50 line 1246)

  • Like 1
BjarkeH

Posted

I am running the newest version of carbon

Carbon 2.0.216.0/windows/2025.10.02.1 [production] [production_build] on Rust 949/2604.273.1 (11/06/2025 12:25:52)

  • Like 1
Slord3

Posted

same Failed compiling 'OfflineRaidProtection.cs': 1. Argument 1: cannot convert from 'System.Collections.Generic.HashSet<ulong>' to 'in System.Collections.Generic.List<ProtoBuf.PlayerNameID>' [CS1503] (OfflineRaidProtection 50 line 1246) thanks in advance

Bear Grills

Posted

Error while compiling OfflineRaidProtection: Argument 1: cannot convert from 'System.Collections.Generic.HashSet<ulong>' to 'in System.Collections.Generic.List<ProtoBuf.PlayerNameID>' | Line: 3753, Pos: 50Error while compiling OfflineRaidProtection: Argument 1: cannot convert from 'System.Collections.Generic.HashSet<ulong>' to 'in System.Collections.Generic.List<ProtoBuf.PlayerNameID>' | Line: 3753, Pos: 50

HempyX

Posted

11/7 6:51:47 AM [Info] Error while compiling OfflineRaidProtection: Argument 1: cannot convert from 'System.Collections.Generic.HashSet<ulong>' to 'in System.Collections.Generic.List<ProtoBuf.PlayerNameID>' | Line: 3753, Pos: 50

stag

Posted

I think I have a working version. Untested, but compiling. If anyone is interested, let me know and I will upload.

  • Like 1
joqnez46

Posted (edited)

I have the fixed version, only the message that previously appeared of "6:00 hours remaining protection" does not appear, whoever knows how to fix the "message tip" can write to me on my discord kxcherxzo

OfflineRaidProtection.cs

Edited by joqnez46
stag

Posted

16 hours ago, BjarkeH said:

@stag
That sounds great, Im down for trying it out

I've attached the untested, but compiling version. Let me know what doesn't work.

 

I rolled the version number forward as this is quite a rewrite from @realedwin's version.

OfflineRaidProtection.cs

  • Like 1
COLD2000

Posted

geht leider nicht.

Failed compiling 'OfflineRaidProtection.cs':
  1. Invalid token '=' in a member declaration [CS1519]
     (OfflineRaidProtection 24 line 1276)
  2. Tuple must contain at least two elements. [CS8124]
     (OfflineRaidProtection 54 line 1276)
  3. ) expected [CS1026]
     (OfflineRaidProtection 28 line 1277)
  4. Syntax error, '(' expected [CS1003]
     (OfflineRaidProtection 89 line 1283)
  5. Top-level statements must precede namespace and type declarations. [CS8803]
     (OfflineRaidProtection 13 line 1296)
  6. Type or namespace definition, or end-of-file expected [CS1022]
     (OfflineRaidProtection 9 line 1379)
  7. The modifier 'private' is not valid for this item [CS0106]
     (OfflineRaidProtection 9 line 1381)
  8. A namespace cannot directly contain members such as fields, methods or statements [CS0116]
     (OfflineRaidProtection 58 line 1930)
  9. '<invalid-global-code>.LoadDefaultMessages()': no suitable method found to override [CS0115]
     (OfflineRaidProtection 33 line 2194)
  10. The type or namespace name '_privilege' could not be found (are you missing a using directive or an assembly reference?) [CS0246]
     (OfflineRaidProtection 61 line 1283)
  11. '_privilege' in explicit interface declaration is not an interface [CS0538]
     (OfflineRaidProtection 61 line 1283)
  12. Program using top-level statements must be an executable. [CS8805]
     (OfflineRaidProtection 13 line 1296)
  13. Cannot use local variable or local function 'LoadMessages' declared in a top-level statement in this context. [CS8801]
     (OfflineRaidProtection 58 line 2194)
  14. 'OfflineRaidProtection' does not contain a definition for 'Msg' and no accessible extension method 'Msg' accepting a first argument of type 'OfflineRaidProtection' could be found (are you missing a using directive or an assembly reference?) [CS1061]
     (OfflineRaidProtection 54 line 496)
  15. 'OfflineRaidProtection.GetAuthorizedPlayers(in BaseCombatEntity)': not all code paths return a value [CS0161]
     (OfflineRaidProtection 32 line 1227)
  16. The name 'pObj' does not exist in the current context [CS0103]
     (OfflineRaidProtection 20 line 1285)
  17. Argument 1: cannot convert from 'System.Collections.Generic.List<ulong>' to 'in System.Collections.Generic.HashSet<ulong>' [CS1503]
     (OfflineRaidProtection 45 line 1448)
  18. A local variable or function named 'GetOfflineMember' is already defined in this scope [CS0128]
     (OfflineRaidProtection 23 line 1778)
  19. Keyword 'this' is not valid in a static property, static method, or static field initializer [CS0026]
     (OfflineRaidProtection 16 line 2202)

Outlaw

Posted

Tested 1.1.17 wit update 8.11.2025 (both server and oxide) but still have error: "Error while compiling OfflineRaidProtection: Argument 1: cannot convert from 'System.Collections.Generic.HashSet<ulong>' to 'in System.Collections.Generic.List<ProtoBuf.PlayerNameID>' | Line: 3753, Pos: 50"

2m

Downloads

Total number of downloads.

9.6k

Customers

Total customers served.

139.6k

Files Sold

Total number of files sold.

2.9m

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.