Jump to content

After plugin reload

Pending 1.4.1

Runcul
Runcul

Posted (edited)

This is about locked crates and airdrops that are already on the map.
It's working fine but when I reload the plugin it disappears.
How can I make NPCs appear in airdrops and locked crates even after reloading the plugin?  
If there is a setting, please let me know

Edited by Runcul
  • Administrator
Steenamaroo

Posted (edited)

Hi,

BotReSpawn does kill off all of its npcs if you unload, or reload it,
to make sure it leaves the server as it found it.

Plugins which spawn and manage populations of custom npcs or vehicles or whatever should always do this.


I have made efforts to reduce the number of scenarios where you'd need to reload the plugin, though.


Everything (I think?) can be changed via the in-game UI,
saving you from having to make json edits.


Many of the options per profile take effect immediately without the need to kill/respawn npcs,
and in cases where kill/respawn is needed, like changing kits or spawnpoints or names, you can reload the specific profile via UI,
rather than reloading the whole plugin.

Is there some reason you're finding you need to reload the plugin often?

Edited by Steenamaroo
Runcul

Posted

Hi,

Thank you for the detailed explanation.
It's a great plugin and I really like it!

To explain in more detail, my server restarts twice a day.

When that happens, locked crates and airdrops remain and there are no bots.

I want to make the world harder, so I delete them manually every time...
I was hoping there might be a solution so I asked!

  • Administrator
Steenamaroo

Posted (edited)

No trouble.

That's a bit of a tricky one.
I suppose a solution could be to make BotReSpawn save down the IDs of crates which have an npc complement,
so upon reload it could repopulate those crates with a new npc complement,
and just put it behind a true/false autorepopulate option,
although, saying that, I didn't think hackable crates and supply drops were persistent across server restart...


On the other hand, most servers I've dealt with don't restart that frequently.
Maybe there's a reason for that...a problem we can solve that lets you just restart once daily at the server's lowest population time?
If I can help with that I will.

Edited by Steenamaroo
Runcul

Posted

Thank you!

I would be very happy if such an option were added,
but for now I will try restarting the server once a day.
The fact that it is maintained even after restarting the server may be related to the locked crates and airdrop plugins...
I am sorry that this is my first time as a server admin and there are many things I do not know, so I am sorry if it is vague...
I will try my best to start with!

I will ask any other questions if I have any, so thank you in advance!
Thank you for your careful response!

  • Administrator
Steenamaroo

Posted

No problem at all. Glad to help if I can.

If adding such an option solves a problem I can look in to that but, to be honest, it's never come up before.
I expect restarting once a day at something like 4am local will probably make it a non-issue.

 

Let me know how you go and, yes, don't hesitate if you have any questions. 👍

 

1.8m

Downloads

Total number of downloads.

8.3k

Customers

Total customers served.

126k

Files Sold

Total number of files sold.

2.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.