Jump to content

Failed to call hook 'OnServerInitialized' on plugin 'AutoCCTVStations v1.1.2' (ArgumentException: An item with the same key has already been added. Key: COBALT1)

Not a Bug 1.1.2

Kleementin
Kleementin

Posted

(17:41:30) | Failed to call hook 'OnServerInitialized' on plugin 'AutoCCTVStations v1.1.2' (ArgumentException: An item with the same key has already been added. Key: COBALT1)

at System.Collections.Generic.Dictionary`2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior) [0x0015a] in <8ce0bd04a7a04b4b9395538239d3fdd8>:0

at System.Collections.Generic.Dictionary`2[TKey,TValue].Add (TKey key, TValue value) [0x00000] in <8ce0bd04a7a04b4b9395538239d3fdd8>:0

at Oxide.Plugins.AutoCCTVStations.CheckConfig () [0x000b5] in <73dd6824159e405db4a07938b9b0ed93>:0

at Oxide.Plugins.AutoCCTVStations.OnServerInitialized () [0x00022] in <73dd6824159e405db4a07938b9b0ed93>:0

at Oxide.Plugins.AutoCCTVStations.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x006ba] in <73dd6824159e405db4a07938b9b0ed93>:0

at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <42f9bedc659b4f4786eb778d3cd58968>:0

at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000de] in <d59b507fd76240e5b62228d0eae39b73>:0

at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <d59b507fd76240e5b62228d0eae39b73>:0

Khan

Posted (edited)

Looks like your map dev named all the map placed ones the same name possibly, that or another plugin.
Tell them to name them all different to fix it.

 

That or you could try unloading the plugin, deleting the config then load it. 

Edited by Khan
Khan

Posted

Changed Status from Pending to Not a Bug

Kleementin

Posted

This is a generated map from RustMaps.com

Btw. if you don't mark names noone sees you answered. @Khan

 

I have another big problem which might have to do with this.

There are always cameres missing after another wipe.

No matter if I set them again before, after the wipe they are not automatically implemented in the computer stations.

  • Haha 1
Khan

Posted (edited)

No, that's not true. You need to simply update your codefling following settings so you actually get notified on support ticket threads.


📌 About Missing Cameras After Wipes

This is expected behavior and is how Rust itself works, not a plugin bug.

Every wipe generates monuments dynamically based on the map seed, size, and terrain.

Monuments directly determine which cameras exist.

Different wipes = different monuments = different cameras.

Even the same map seed can sometimes generate different monument/camera layouts.

If a monument doesn’t spawn on that map, its camera simply does not exist and cannot be added.
 

🔧 Important: Config Changes

Cameras depend on monument spawns.

Wipes can remove or change available cameras in the configuration file.

After changing which cameras are enabled in the config:

Existing computer stations will NOT auto-update

You must pick up and place the computer station again

Camera lists are populated only when the station is placed
 

🗺️ Custom Maps
Custom maps generated or edited using RustMaps.com are not supported.

Those maps can:

Add, remove, or modify monuments

Change or remove camera entities

Cause cameras to be missing or inconsistent across wipes

Because of this, missing cameras on custom maps are expected and not something the plugin can fix.

Edited by Khan
Kleementin

Posted

Aaah so the last point is the problem.

Are there any plans to support RustMaps maps in the future?

Kleementin

Posted

Btw. do you know where to set that I get a notification here on the website if someone answers my support thread?

I don't wanna have an email every time this happens.

  • Like 1
Khan

Posted

They do not allow access to how they generate there custom maps and the only way to give you the custom map is with a download link for it through there PAID API system.

so basically it's not anything i can do to fix it. 

The bug occurs with how there literally making the maps for you... It's 1 of many bugs using there paid custom map generations. 

 

I do support normal procedural generated maps & rust-edit maps also work fine if you add in static cameras correctly.


Regarding fixing your settings you messed with it'll be under your account.

image.png.db64250ef22c205de40b30e50b4877d8.png
image.png.e66febe4fdf2d5003666db819dc56c73.png
image.png.b3580c7340aa701464b03c1af243f61d.png

Kleementin

Posted

Thank you for all the informations. That really helps.

One more question: Wherelse can I generate maps except for RustMaps.com?

I have no clue.

Khan

Posted (edited)

You can use the RustMaps.com but only the procedural gen map data. 

Example you see a map you like and grab the SEED & SIZE data and input that into your server for your server to generate it's self.

image.png.090efb5f5efb235abe3f4497682efba4.png

image.png.74032ca643a05ec83a526f4846c165e6.png

So in this example the size I would set is 4250

Then I'd change the seed to 505441063

Then i'd restart my server for it to then map wipe & generate the new set map.


If you use anything else from rust maps.com then I don't support it. ( there paid custom maps, or paid feature that lets you add prefabs to maps )

Edited by Khan
Kleementin

Posted

I use the free option to generate procedural maps. I can only generate 3 maps in a row and cannot customize them but thats fine.

Using the already existing ones is not a good option for me.

Most of them have monuments missing for example.

Kleementin

Posted

Btw I had this turned on the whole time but don't receive a notification on the website when some answers my thread without naming me. Weird.

 

Screenshot 2026-01-04 115824.png

2.1m

Downloads

Total number of downloads.

10k

Customers

Total customers served.

145.4k

Files Sold

Total number of files sold.

3.1m

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.