Jump to content

Blacklisting the ring road

Closed 1.1.0



Hi, can i blacklist the ring road? i cant see how i can keep them off the main road. 

i have the convoy plugin, which is on the ring road. 

also my roadbradleys wont spawn unless i have "Tank Route - Use longest path": true,

i tried 

    "default": {
      "Tank Route - Road IDs": [
        1,
        2,
        3
      ],

just to see if it stayed off ring road (i think its ring road is 0 , im not sure)

my config

https://pastebin.com/j62DLJWE

Share this comment


Link to comment

just noticed, if i set "Tank Route - Use longest path": false i get this

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

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

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

at Oxide.Plugins.RoadBradley.GenerateDefaultTracks () [0x001d8] in <e0a3b716ccb84de091d137af2a0f47be>:0

at Oxide.Plugins.RoadBradley.OnServerInitialized () [0x00277] in <e0a3b716ccb84de091d137af2a0f47be>:0

at Oxide.Plugins.RoadBradley.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0006a] in <e0a3b716ccb84de091d137af2a0f47be>:0

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

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

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

Share this comment


Link to comment

the error above happens when i add a second id to 

"default": {
      "Tank Route - Road IDs": [
        1
      ],

one id is ok, 2 produces the error, any id added

 

Edited by Swedish Chef

Share this comment


Link to comment

when i change the config (reset to default by the way) to this

"default": {
      "Tank Route - Road IDs": [
        1
      ],
      "Tank Route - Is route looped": false,
      "Tank Route - Use longest path": false,
      "Tank Route - Remove first and last checkpoints": 15,
      "Spawns - Announce Spawn": true,
      "Spawns - Respawn Time (in seconds)": 900,
      "Spawns - Min. Online Players": 0,
      "Spawns - Chance": {
        "Hard": 2,
        "Normal": 5
      }
    }

a tank spawns on a side paved road, but it will not move. 

20220414142628_1.thumb.jpg.0b49714d5483ac172a53e0bdc3a82971.jpg

its shudders like its trying to move

and this is in the console

(14:23:40) | [RoadBradley] Tank has been stuck for over 30 seconds! Current location: (330.9, 5.4, -50.0). Sending list of entities nearby:

(14:23:40) | [RoadBradley] Its recommended to check these entities and add them to filter, because players could abuse and block bradley!

(14:23:40) | [RoadBradley] It can be also a road that bradley cound't reach!

.. and message repeats.

Share this comment


Link to comment

i checked the id of that road and i was definitley 1. i changed the id to 2 and it spawned on a different paved road and started moving fine

Edited by Swedish Chef

Share this comment


Link to comment

im realising theres 2 different issues here, 

1 needing to blacklist road 0

2 the tank stuck an the road

 

i think another issue thats confusing me is if i have a completely default fresh config and only change this

"default": {
      "Tank Route - Road IDs": [
        4
      ],
      "Tank Route - Is route looped": false,
      "Tank Route - Use longest path": false,
      "Tank Route - Remove first and last checkpoints": 15,
      "Spawns - Announce Spawn": true,
      "Spawns - Respawn Time (in seconds)": 900,
      "Spawns - Min. Online Players": 0,
      "Spawns - Chance": {
        "Hard": 2,
        "Normal": 5
      }
    }

i checked road 4 using /tankroute 4, looks fine

 i get this error

(16:30:10) | Failed to call hook 'OnServerInitialized' on plugin 'RoadBradley v1.1.0' (ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.

Parameter name: index)

at System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) [0x00029] in <eae584ce26bc40229c1b1aa476bfa589>:0

at System.ThrowHelper.ThrowArgumentOutOfRangeException () [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0

at Oxide.Plugins.RoadBradley.SpawnTank (System.String profileName, System.String routeName, System.Boolean firstSpawn) [0x00536] in <f539ae093591441e93ee0ee2efc2a20c>:0

at Oxide.Plugins.RoadBradley.SpawnDefaultRouteTank (System.String route) [0x000a4] in <f539ae093591441e93ee0ee2efc2a20c>:0

at Oxide.Plugins.RoadBradley.OnServerInitialized () [0x002b3] in <f539ae093591441e93ee0ee2efc2a20c>:0

at Oxide.Plugins.RoadBradley.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0006a] in <f539ae093591441e93ee0ee2efc2a20c>:0

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

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

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

Edited by Swedish Chef

Share this comment


Link to comment
9 hours ago, Swedish Chef said:

just noticed, if i set "Tank Route - Use longest path": false i get this

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

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

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

at Oxide.Plugins.RoadBradley.GenerateDefaultTracks () [0x001d8] in <e0a3b716ccb84de091d137af2a0f47be>:0

at Oxide.Plugins.RoadBradley.OnServerInitialized () [0x00277] in <e0a3b716ccb84de091d137af2a0f47be>:0

at Oxide.Plugins.RoadBradley.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0006a] in <e0a3b716ccb84de091d137af2a0f47be>:0

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

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

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

Hey. Already found a problem. Will release fix today.

  • Like 1

Share this comment


Link to comment

Fix is out. Please check if it fixed your error problem.
About "slow bradley", it can be an AI that detects you somehow and tries to use the bradley brakes. Fly away or hide somewhere and chech in the map if the bradley started moving or problem still appear.

  • Like 1

Share this comment


Link to comment

No errors, looks good, thanks.

do you think you can add a blacklist for schedule routes? then i wont have the convoy smashing into brad on the ringroad.. 

i watched a 3.0 size brad run over the convoy.. cool

 

Share this comment


Link to comment
9 minutes ago, Swedish Chef said:

No errors, looks good, thanks.

do you think you can add a blacklist for schedule routes? then i wont have the convoy smashing into brad on the ringroad.. 

i watched a 3.0 size brad run over the convoy.. cool

 

Not sure how convoy route select works. If it is always random or based on road.

Share this comment


Link to comment

the stuck tank, ill not worry about. its a test map, might not be an issue on normal..

if you want the map its +server.seed 365874 +server.worldsize 1500

road index 1, on the crate marker

20220415002317_1.thumb.jpg.f5890caf420ce75eb503d23cff70e923.jpg

 

Share this comment


Link to comment
2 minutes ago, ThePitereq said:

how convoy route select works

ive got it just on the ring road, only. thats why if i can blacklist that road, im good i think

Share this comment


Link to comment

oh, i tried restarting the plugin while far away, but the crate didnt move, it was still stuck, thats where he starts

Edited by Swedish Chef

Share this comment


Link to comment
15 minutes ago, Swedish Chef said:

ive got it just on the ring road, only. thats why if i can blacklist that road, im good i think

what is ring road. all roads have their id's. It can be different in each wipe if you are using proc gen maps.

Share this comment


Link to comment
4 minutes ago, ThePitereq said:

what is ring road. all roads have their id's. It can be different in each wipe if you are using proc gen maps.

i thought the ring road was always 0, on large maps its the circle road that rings the map. its fatter than normal roads.

nevermind, ill find out. thanks for fixing the error.  🙂 please close the ticket

Edited by Swedish Chef

Share this comment


Link to comment
5 minutes ago, Swedish Chef said:

that stuck tank started moving after aggroing it, consistently.. mysteries

It goes on dirt road? Or normal one? Maybe dirt one is too far in ground and he couldnt check it because he stands on asphalt. I added asphalt check in newest version.

Share this comment


Link to comment
19 minutes ago, ThePitereq said:

It goes on dirt road? Or normal one? Maybe dirt one is too far in ground and he couldnt check it because he stands on asphalt. I added asphalt check in newest version.

normal, asphalt, i just took a video, https://youtu.be/a7eI55BuNXk

it kind of rolls back a bit before taking off

Edited by Swedish Chef

Share this comment


Link to comment
8 minutes ago, Swedish Chef said:

normal, asphalt, i just took a video, https://youtu.be/a7eI55BuNXk

it kind of rolls back a bit before taking off

Not sure whati can be. Will release an new version in few minutes with small fixes that will also spawn bradley little bit higher, maybe it will fix that.

  • Like 1

Share this comment


Link to comment
13 minutes ago, ThePitereq said:

maybe it will fix that.

nope, no change. youve got the map seed and location, so maybe on a rainy day youll figure it out.  🙂

Share this comment


Link to comment
1 minute ago, Swedish Chef said:

nope, no change. youve got the map seed and location, so maybe on a rainy day youll figure it out.  🙂

Okay, Can you also send me a config where this appears? Thank you. Will check later today.

Share this comment


Link to comment

1.1m

Downloads

Total number of downloads.

5.7k

Customers

Total customers served.

82.3k

Files Sold

Total number of files sold.

1.6m

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.