Jump to content

NPC not spawning / Better NPC conflict

Closed 1.3.6

JackMachine
JackMachine

Posted (edited)

Hi!

Thanks for this plugin, my players love it on my Vanilla server!

But on the mod it seems there is a conflict with BetterNpc plugin.

When BetterNpc is loaded, Airfield NPC don't spawn.
I tried everything, if I want this to work, I need to unload BetterNpc.

It's a very big problem because BetterNpc is a very popular plugin and I need it on my server.
Is a fix exist for that ?

Thank you very much,

Jack
 

Edited by Jack
Fruster

Posted

Hey! You need to understand why betterNpc removes NPCs from the airfield. But I know how this plugin works, so I can’t help. I won’t close this support for now, I’ll try to solve this issue, but I don’t promise you anything

JackMachine

Posted

The owner of BetterNPC plugin tell me you can do that to fix the problem :



-------------------------- owner response ----------------------------

As far as with the AirfieldEvent plugin you would need to ask that the Developer use the API available in the plugin description to remove BetterNpc NPCs during the event, and spawn them back in when the event ends. I'll share that text here for reference.

API 
void DestroyController(string name) – It destroys the place of appearance NPC with the name {name} 

void CreateController(string name) – It creates the place of appearance NPC with the name {name} 

These APIs can be used with standard monuments, custom monuments (NPC locations) and roads. 
The name of this monument is in standard monuments {name}. 
It is the name of the file in the Custom and Road folder in custom monuments and roads

They can use this API to have the plugin compatible with BetterNpc and to fully avoid this issue, and to have everything working in unison properly.
---------------------------- owner response --------------------------

JackMachine

Posted

Ok, it's fixed.

I had to delete a custom NPC location file.

But an option to remove or not BetterNpc NPCs via API hooks could be nice!
In fact I have all the NPCs from Arifield, BetterNpc and your plugin, but it could be nice to have an option to keep only those from your plugin if desired.

So problem solved for me!

Sorry for the mess.
Thank you for your attention.

Fruster

Posted

ok, I'll close this request to support, maybe later I'll try to add betterNPC support

  • Like 1
Fruster

Posted

Changed Status from Pending to Closed

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.3k

Files Sold

Total number of files sold.

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.