Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0008909opensim[REGION] OpenSim Corepublic2021-07-11 08:422021-07-16 08:44
ReporterTotal Sorbet 
Assigned ToTotal Sorbet 
PlatformLinuxOperating SystemDebainOperating System Version11 testing
Product Version 
Target VersionFixed in Version 
Summary0008909: NPC are counted towards region agent limit
DescriptionI 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?
TagsNo tags attached.
Git Revision or version number96cb47e80f:2021-05-31 18:13:56 +0100
Run Mode Grid (Multiple Regions per Sim)
Physics EngineubODE
Script EngineYEngine
EnvironmentMono / Linux64
Mono VersionOther
ViewerFirestorm 6.4.13 (63251)
Attached Files

- Relationships

-  Notes
tampa (reporter)
2021-07-11 21:23

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)
2021-07-12 08:43

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.
UbitUmarov (administrator)
2021-07-15 17:16

took number of NPCs out of number of avatars limit
UbitUmarov (administrator)
2021-07-15 17:59

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)
2021-07-16 08:43

Many thanks :)

- Issue History
Date Modified Username Field Change
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
Powered by Mantis Bugtracker