Jump to content

renaming some npcs

Pending 2.7.1

Papi Rusty
Papi Rusty

Posted

renaming some npc causes issues in consol spamming this 

System.NullReferenceException: Object reference not set to an instance of an object
  at Oxide.Plugins.NpcSpawn+CustomScientistNpc.CanTargetNpcPlayer (NPCPlayer target) [0x0001d] in <660fdf372dd04f56a86ab1bcf7795faa>:0 
  at Oxide.Plugins.NpcSpawn+CustomScientistNpc.CanTargetEntity (BaseEntity target) [0x0008b] in <660fdf372dd04f56a86ab1bcf7795faa>:0 
  at Oxide.Plugins.NpcSpawn+CustomScientistNpc.GetBestTarget () [0x00049] in <660fdf372dd04f56a86ab1bcf7795faa>:0 
  at Oxide.Plugins.NpcSpawn+CustomScientistBrain.Think (System.Single delta) [0x00087] in <660fdf372dd04f56a86ab1bcf7795faa>:0 
  at BaseAIBrain.DoThink () [0x0000d] in <8949cf58f8fe40b2939985ba6002e8fc>:0 
  at HumanNPC.ServerThink (System.Single delta) [0x0001a] in <8949cf58f8fe40b2939985ba6002e8fc>:0 
  at NPCPlayer.ServerThink_Internal () [0x0000d] in <8949cf58f8fe40b2939985ba6002e8fc>:0 
  at HumanNPC.TryThink () [0x00000] in <8949cf58f8fe40b2939985ba6002e8fc>:0 
  at AIThinkManager.DoProcessing (ListHashSet`1[T] process, System.Single budgetSeconds, System.Int32& last) [0x00014] in <8949cf58f8fe40b2939985ba6002e8fc>:0    had to restart server cuz npc at oxums was stuck there did not go away 

 

Jbird

Posted

5 hours ago, Papi Rusty said:

renaming some npc causes issues in consol spamming this

had to restart server cuz npc at oxums was stuck there did not go away

How are you going about changing their names?

I know there is at least one plugin that changes NPCs names that had caused some issues in the past, do you have anything like that?

Papi Rusty

Posted

no i literally renamed them inside better npc data

 

Papi Rusty

Posted

also i added new clothing items and this combo seems to cause errors

Jbird

Posted

11 hours ago, Papi Rusty said:

no i literally renamed them inside better npc data

If the formatting is left in tact then there should not be an issue with this. The ability to change their names within the config files of any plugin that uses them is never a problem if done correctly.

12 hours ago, Papi Rusty said:

also i added new clothing items and this combo seems to cause errors

The configuration options to change their names and wearable items would not be there and would be a problem for many more people if this were the case. Something is using an incorrect short name, or there is an error either in the formatting or something else when these changes were made.

You are welcome to share an example of a file that you changed and I can review it for potential issues, or you are always welcome to create a ticket in the Mad Mapper DIscord as well if you'd rather share files there.

Jbird

Posted

13 hours ago, Papi Rusty said:

ok ill create ticket there

Thank you for doing that I'm sure we will sort it out together.

Jbird

Posted

On 9/1/2024 at 10:36 PM, Papi Rusty said:

we always do big bro

You know it!

For future reference if others come across a similar error, armor was combined with a mummy outfit which takes up all of the wearable slots like a hazmat suit or variant.

Thank you again for making a ticket and glad we could get to the bottom of it!

1.7m

Downloads

Total number of downloads.

7.2k

Customers

Total customers served.

108.2k

Files Sold

Total number of files sold.

2.2m

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.