Jump to content

error throwing

Pending 1.0.6

KingShaq_
KingShaq_

Posted

Hi bro, just downloaded the plugin into my plugins and my consoles throwing errors. I have attempted to change amount of type to spawn all to 0 to see if it was a building issue on this procedural map of 3700 ish. 

error is:

oxide.reload RoadBunkers
Unloaded plugin RoadBunkers v1.0.6 by Fruster
Failed to call hook 'OnServerInitialized' on plugin 'RoadBunkers v1.0.6' (NullReferenceException: )
  at (wrapper managed-to-native) UnityEngine.Object.GetName(UnityEngine.Object)
  at UnityEngine.Object.get_name () [0x00001] in <90c589ebc24b486c9e5903521dacec9d>:0 
  at Oxide.Plugins.RoadBunkers.AddRoadList () [0x0005a] in <dd69fc12c1e84ed28571567180026c35>:0 
  at Oxide.Plugins.RoadBunkers.OnServerInitialized () [0x00037] in <dd69fc12c1e84ed28571567180026c35>:0 
  at Oxide.Plugins.RoadBunkers.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00080] in <dd69fc12c1e84ed28571567180026c35>: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 <15f61ddda771464d8246ebdce8ff4811>:0 
  at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <15f61ddda771464d8246ebdce8ff4811>:0 
Calling 'OnServerInitialized' on 'RoadBunkers v1.0.6' took 521ms
Loaded plugin RoadBunkers v1.0.6 by Fruster

Fruster

Posted

Hi, are there definitely roads on the map?

Fruster

Posted

The plugin's reload isn't helping? What's the map seed? Please provide the exact seed and size. I'll check it out.

Fruster

Posted

I don't have any problems, I double-checked. Try changing the AddRoadList method like this:

private void AddRoadList()
{
    foreach (var item in GameObject.FindObjectsOfType<GameObject>())
    {
        if (item == null) continue;
        if (item.name.Contains("Road Mesh"))
            roadList.Add(item.transform.position);
    }

    foreach (var item in BaseNetworkable.serverEntities.OfType<BaseEntity>())
    {
        if (item == null) continue;
        if (item.name.Contains("assets/prefabs/misc/junkpile/junkpile"))
            roadList.Add(item.transform.position);
    }
}

 

then let me know the results please

KingShaq_

Posted

Thank you bro for that, everything is all fixed and working properly now., Thank you

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
2.5m
Total downloads
Customers
11.2k
Customers served
Files Sold
160.1k
Total sales
Payments
3.4m
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.