Jump to content

failing to compile?

Pending 1.6.2

Deisel
Deisel

Posted

Failed compiling 'BotReSpawn.cs':

  1. } expected [CS1513]
    (BotReSpawn 2 line 24)
    at Oxide.Plugins.BotReSpawn+<>c__DisplayClass70_0.<SetupAPC>b__0 () (at /home/container/carbon/plugins/BotReSpawn.cs:636)
    at InvokeHandlerBase1[T].DoTick () (at <aa997485d7974d81a6d8dbef8170daad>:0) at InvokeHandlerBase1[T].LateUpdate () (at <aa997485d7974d81a6d8dbef8170daad>:0)
    NullReferenceException: Object reference not set to an instance of an object
    at Oxide.Plugins.BotReSpawn+<>c__DisplayClass70_0.<SetupAPC>b__0 () (at /home/container/carbon/plugins/BotReSpawn.cs:636)
    at InvokeHandlerBase1[T].DoTick () (at <aa997485d7974d81a6d8dbef8170daad>:0) at InvokeHandlerBase1[T].LateUpdate () (at <aa997485d7974d81a6d8dbef8170daad>:0)
    NullReferenceException: Object reference not set to an instance of an object
    Unloaded plugin BotReSpawn v1.6.2 by Steenamaroo
    Loaded plugin BotReSpawn v1.6.2 by Steenamaroo [851ms]
    [BotReSpawn] Navmesh build complete - Initializating
    BotReSpawn v1.6.2 by Steenamaroo hook 'OnServerInitialized' took longer than 100ms [566ms]
    at Oxide.Plugins.BotReSpawn+<>c__DisplayClass70_0.<SetupAPC>b__0 () (at /home/container/carbon/plugins/BotReSpawn.cs:636)
    at InvokeHandlerBase1[T].DoTick () (at <aa997485d7974d81a6d8dbef8170daad>:0) at InvokeHandlerBase1[T].LateUpdate () (at <aa997485d7974d81a6d8dbef8170daad>:0)
    NullReferenceException: Object reference not set to an instance of an object
    at Oxide.Plugins.BotReSpawn+<>c__DisplayClass70_0.<SetupAPC>b__0 () (at /home/container/carbon/plugins/BotReSpawn.cs:636)
    at InvokeHandlerBase1[T].DoTick () (at <aa997485d7974d81a6d8dbef8170daad>:0) at InvokeHandlerBase1[T].LateUpdate () (at <aa997485d7974d81a6d8dbef8170daad>:0)
    NullReferenceException: Object reference not set to an instance of an object
    at Oxide.Plugins.BotReSpawn+<>c__DisplayClass70_0.<SetupAPC>b__0 () (at /home/container/carbon/plugins/BotReSpawn.cs:636)
    at InvokeHandlerBase1[T].DoTick () (at <aa997485d7974d81a6d8dbef8170daad>:0) at InvokeHandlerBase1[T].LateUpdate () (at <aa997485d7974d81a6d8dbef8170daad>:0)
    NullReferenceException: Object reference not set to an instance of an object
    at Oxide.Plugins.BotReSpawn+<>c__DisplayClass70_0.<SetupAPC>b__0 () (at /home/container/carbon/plugins/BotReSpawn.cs:636)
    at InvokeHandlerBase1[T].DoTick () (at <aa997485d7974d81a6d8dbef8170daad>:0) at InvokeHandlerBase1[T].LateUpdate () (at <aa997485d7974d81a6d8dbef8170daad>:0)
    NullReferenceException: Object reference not set to an instance of an object
    at Oxide.Plugins.BotReSpawn+<>c__DisplayClass70_0.<SetupAPC>b__0 () (at /home/container/carbon/plugins/BotReSpawn.cs:636)
    at InvokeHandlerBase1[T].DoTick () (at <aa997485d7974d81a6d8dbef8170daad>:0) at InvokeHandlerBase1[T].LateUpdate () (at <aa997485d7974d81a6d8dbef8170daad>:0)
    NullReferenceException: Object reference not set to an instance of an object
    at Oxide.Plugins.BotReSpawn+<>c__DisplayClass70_0.<SetupAPC>b__0 () (at /home/container/carbon/plugins/BotReSpawn.cs:636)
    at InvokeHandlerBase1[T].DoTick () (at <aa997485d7974d81a6d8dbef8170daad>:0) at InvokeHandlerBase1[T].LateUpdate () (at <aa997485d7974d81a6d8dbef8170daad>:0)
    NullReferenceException: Object reference not set to an instance of an object
    at Oxide.Plugins.BotReSpawn+<>c__DisplayClass70_0.<SetupAPC>b__0 () (at /home/container/carbon/plugins/BotReSpawn.cs:636)
    at InvokeHandlerBase1[T].DoTick () (at <aa997485d7974d81a6d8dbef8170daad>:0) at InvokeHandlerBase1[T].LateUpdate () (at <aa997485d7974d81a6d8dbef8170daad>:0)
    NullReferenceException: Object reference not set to an instance of an object
    at Oxide.Plugins.BotReSpawn+<>c__DisplayClass70_0.<SetupAPC>b__0 () (at /home/container/carbon/plugins/BotReSpawn.cs:636)
    at InvokeHandlerBase1[T].DoTick () (at <aa997485d7974d81a6d8dbef8170daad>:0) at InvokeHandlerBase1[T].LateUpdate () (at <aa997485d7974d81a6d8dbef8170daad>:0)
    NullReferenceException: Object reference not set to an instance of an object
    at Oxide.Plugins.BotReSpawn+<>c__DisplayClass70_0.<SetupAPC>b__0 () (at /home/container/carbon/plugins/BotReSpawn.cs:636)
    at InvokeHandlerBase1[T].DoTick () (at <aa997485d7974d81a6d8dbef8170daad>:0) at InvokeHandlerBase1[T].LateUpdate () (at <aa997485d7974d81a6d8dbef8170daad>:0)
    NullReferenceException: Object reference not set to an instance of an object
    at Oxide.Plugins.BotReSpawn+<>c__DisplayClass70_0.<SetupAPC>b__0 () (at /home/container/carbon/plugins/BotReSpawn.cs:636)
    at InvokeHandlerBase1[T].DoTick () (at <aa997485d7974d81a6d8dbef8170daad>:0) at InvokeHandlerBase1[T].LateUpdate () (at <aa997485d7974d81a6d8dbef8170daad>:0)
    NullReferenceException: Object reference not set to an instance of an object
    at Oxide.Plugins.BotReSpawn+<>c__DisplayClass70_0.<SetupAPC>b__0 () (at /home/container/carbon/plugins/BotReSpawn.cs:636)
    at InvokeHandlerBase1[T].DoTick () (at <aa997485d7974d81a6d8dbef8170daad>:0) at InvokeHandlerBase1[T].LateUpdate () (at <aa997485d7974d81a6d8dbef8170daad>:0)
    NullReferenceException: Object reference not set to an instance of an object
    at Oxide.Plugins.BotReSpawn+<>c__DisplayClass70_0.<SetupAPC>b__0 () (at /home/container/carbon/plugins/BotReSpawn.cs:636)
    at InvokeHandlerBase1[T].DoTick () (at <aa997485d7974d81a6d8dbef8170daad>:0) at InvokeHandlerBase1[T].LateUpdate () (at <aa997485d7974d81a6d8dbef8170daad>:0)
    NullReferenceException: Object reference not set to an instance of an object
    at Oxide.Plugins.BotReSpawn+<>c__DisplayClass70_0.<SetupAPC>b__0 () (at /home/container/carbon/plugins/BotReSpawn.cs:636)
  • Administrator
Steenamaroo

Posted (edited)

Looks like your file's damaged, modified, or incomplete.
Delete and re-download from here. That should sort it. 👍

Edited by Steenamaroo
Deisel

Posted

deleted original .cs file. R

e uploaded the new .cs downloaded from codefling. same issue.

  • Administrator
Steenamaroo

Posted

Can you go back a little farther in your logs?

What precedes this? "} expected [CS1513]"

Deisel

Posted

 

chat gpt response????

Why This Is Happening

Because this error is coming from an internal timer loop (DoTick -> SetupAPC -> b__0), the plugin is actively looking for the map's APC to assign bots or parameters to it, but cannot find it. This usually happens for one of two reasons: [1]

Map Without a Bradley APC: You are running a custom map or a small map seed that does not naturally spawn a Bradley APC at Launch Site, but BotReSpawn is configured to try and manage an APC profile.

Outdated Plugin Version: A recent Rust update changed how the Bradley APC or its components are referenced in the game code. Because your path shows you are using Carbon (/carbon/plugins/BotReSpawn.cs), a mismatch between Carbon's hook translation and an older version of the plugin can trigger this.

Deisel

Posted

Loaded plugin BotReSpawn v1.6.2 by Steenamaroo [1709ms]
[BotReSpawn] Navmesh build complete - Initializating
BotReSpawn v1.6.2 by Steenamaroo hook 'OnServerInitialized' took longer than 100ms [541ms]
at Oxide.Plugins.BotReSpawn+<>c__DisplayClass70_0.<SetupAPC>b__0 () (at /home/container/carbon/plugins/BotReSpawn.cs:636)
at InvokeHandlerBase1[T].DoTick () (at <aa997485d7974d81a6d8dbef8170daad>:0) at InvokeHandlerBase1[T].LateUpdate () (at <aa997485d7974d81a6d8dbef8170daad>:0)
NullReferenceException: Object reference not set to an instance of an object
at Oxide.Plugins.BotReSpawn+<>c__DisplayClass70_0.<SetupAPC>b__0 () (at /home/container/carbon/plugins/BotReSpawn.cs:636)
at InvokeHandlerBase1[T].DoTick () (at <aa997485d7974d81a6d8dbef8170daad>:0) at InvokeHandlerBase1[T].LateUpdate () (at <aa997485d7974d81a6d8dbef8170daad>:0)
NullReferenceException: Object reference not set to an instance of an object
at Oxide.Plugins.BotReSpawn+<>c__DisplayClass70_0.<SetupAPC>b__0 () (at /home/container/carbon/plugins/BotReSpawn.cs:636)
at InvokeHandlerBase1[T].DoTick () (at <aa997485d7974d81a6d8dbef8170daad>:0) at InvokeHandlerBase1[T].LateUpdate () (at <aa997485d7974d81a6d8dbef8170daad>:0)
NullReferenceException: Object reference not set to an instance of an object
at Oxide.Plugins.BotReSpawn+<>c__DisplayClass70_0.<SetupAPC>b__0 () (at /home/container/carbon/plugins/BotReSpawn.cs:636)
at InvokeHandlerBase1[T].DoTick () (at <aa997485d7974d81a6d8dbef8170daad>:0) at InvokeHandlerBase1[T].LateUpdate () (at <aa997485d7974d81a6d8dbef8170daad>:0)
NullReferenceException: Object reference not set to an instance of an object
at Oxide.Plugins.BotReSpawn+<>c__DisplayClass70_0.<SetupAPC>b__0 () (at /home/container/carbon/plugins/BotReSpawn.cs:636)
at InvokeHandlerBase1[T].DoTick () (at <aa997485d7974d81a6d8dbef8170daad>:0) at InvokeHandlerBase1[T].LateUpdate () (at <aa997485d7974d81a6d8dbef8170daad>:0)
NullReferenceException: Object reference not set to an instance of an object
at Oxide.Plugins.BotReSpawn+<>c__DisplayClass70_0.<SetupAPC>b__0 () (at /home/container/carbon/plugins/BotReSpawn.cs:636)
at InvokeHandlerBase1[T].DoTick () (at <aa997485d7974d81a6d8dbef8170daad>:0) at InvokeHandlerBase1[T].LateUpdate () (at <aa997485d7974d81a6d8dbef8170daad>:0)
NullReferenceException: Object reference not set to an instance of an object

 

 

Deisel

Posted

custom map, but definately a Bradley at launch site.

 

  • Administrator
Steenamaroo

Posted

Don't upload paid plugins to other servers.
If I want to know what ChatGPT guesses, I'll ask it.

 

Answering what I asked would be helpful, though.

What precedes this? "} expected [CS1513]"

Deisel

Posted

} expected [CS1513]" im not seeing this... its just the same spam i posted above over and over

 

 

Deisel

Posted

As for uploading your plugin to chat gpt. i simply uploaded the error log, not your plugin at all.

Deisel

Posted

after deleting the original file it is now compiling but throwing the NRE above.. the compiling is sorted, but it still errors and spams the console.

Deisel

Posted

destroyed the bradley and reloaded the plugin, no NRE spam. Bots were deployed as normal when bradley was destroyed. Plugin is working, but has an issue with Bradley when it is deployed on the map.

  • Administrator
Steenamaroo

Posted (edited)

Yeah, I understand.
Something on your server isn't compiling; I was trying to help you out but would need to see the rest of the logs.

The APC related issue I can sort.
Thanks for reporting. 👍

 

Edit: I was wrong in my first reply.
BotReSpawn was loaded (subsequently unloaded) when you saw "} expected [CS1513]"
So something, unrelated, isn't compiling.

Edited by Steenamaroo
  • Administrator
Steenamaroo

Posted (edited)

32 minutes ago, Deisel said:

} expected [CS1513]" im not seeing this... its just the same spam i posted above over and over

 

 

It's the first lines of your original post.

} expected [CS1513]
(BotReSpawn 2 line 24)


It suggests that BotReSpawn failed to compile but the subsequent errors are coming from BotReSpawn,
and a few lines later BRS is unloaded and reloaded, proving that it was compiled, which seems strange.

Edited by Steenamaroo
  • Administrator
Steenamaroo

Posted

"BotReSpawn 2"
Oh, ok. You've had two copies of the plugin at some point - I guess the other was called "BotReSpawn 2"?

I'll update for the APC related issue soon.
Thanks again. 👍

  • Like 1
Deisel

Posted

i deleted my original .cs after you said it was corrupted, hence why it compiled the second time.

 

 

  • Administrator
Steenamaroo

Posted

Ok. If you look at your original message, before I replied,
I think "BotReSpawn 2.cs" was failing to compile, and "BotReSpawn.cs" was loaded.

 

Maybe just check your plugin folder in case there's a duplicate still in there.

Either way, nothing to do with the actual error, which I can sort.
Thanks for reporting. 🙂

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
3.3m
Total downloads
Customers
12.4k
Customers served
Files Sold
175.5k
Total sales
Payments
3.8m
Processed total
×
×
  • 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.