|Anonymous | Login | Signup for a new account||2021-09-25 02:14 PDT|
|Main | My View | View Issues | Change Log | Roadmap | Summary | My Account|
|View Issue Details|
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0008909||opensim||[REGION] OpenSim Core||public||2021-07-11 08:42||2021-07-16 08:44|
|Assigned To||Total Sorbet|
|Platform||Linux||Operating System||Debain||Operating System Version||11 testing|
|Target Version||Fixed in Version|
|Summary||0008909: NPC are counted towards region agent limit|
|Description||I wish to limit the number of visitors in a region that may have up to 100 NPC on it. If I set World > Region details > Region > Agent limit to a number lower than the current NPC count then access to the region by teleport will fail and result in a region full message.|
I would like to limit the number of visitors to 8 but since the number of NPC on the region is dynamic it is currently impossible for me to do so.
Should NPC count towards the limit?
|Tags||No tags attached.|
|Git Revision or version number||96cb47e80f:2021-05-31 18:13:56 +0100|
|Run Mode||Grid (Multiple Regions per Sim)|
|Environment||Mono / Linux64|
|Viewer||Firestorm 6.4.13 (63251)|
NPCs may not be full agents and are generally lighter in resource consumption, but the more complex they get and the more you script them to do they might end up getting pretty close. As such them being counted toward the overall limit somewhat makes sense. While they probably could be counted as maybe a half agent or quarter, that number is currently an integer so...
The question whether they should count or not. I suppose could introduce some config to discount them from the agent limit, but at the same time that should ideally go along with a overall NPC limit to make sure a runaway script can't spawn thousands of the buggers while you ain't looking.
CountNPCTowardAgentLimit = false
NPCMaxNumber = 100
or defaulting to a sane number in code unless set.
Yes that level of self-preservation is actually warranted in this case.
Total Sorbet (reporter)
|Thanks for your response. I think your viewpoint regarding resource consumption is reasonable. It is hard to quantify. The suggestion to create a flag to discount the NPC in conjunction with an overall limit allows for more flexibility and would be a welcome change.|
|took number of NPCs out of number of avatars limit|
the max number of NPCs is now limited to the value of option MaxNumberNPCsPerScene in section [NPC] of opensim.ini
the default is 40.
set to -1 to disable limit check
Total Sorbet (reporter)
|Many thanks :)|
|2021-07-11 08:42||Total Sorbet||New Issue|
|2021-07-11 21:23||tampa||Note Added: 0037854|
|2021-07-12 08:43||Total Sorbet||Note Added: 0037859|
|2021-07-15 17:16||UbitUmarov||Note Added: 0037863|
|2021-07-15 17:59||UbitUmarov||Note Added: 0037864|
|2021-07-16 08:43||Total Sorbet||Note Added: 0037865|
|2021-07-16 08:44||Total Sorbet||Status||new => resolved|
|2021-07-16 08:44||Total Sorbet||Resolution||open => fixed|
|2021-07-16 08:44||Total Sorbet||Assigned To||=> Total Sorbet|
|Copyright © 2000 - 2012 MantisBT Group|