Skip to content
This repository was archived by the owner on Apr 4, 2025. It is now read-only.

[BUG-40870] The server reports incorrect parcel land capacity if region has an active object bonus greater than 1.0. #12484

Open
sl-service-account opened this issue Nov 11, 2016 · 2 comments

Comments

@sl-service-account
Copy link

sl-service-account commented Nov 11, 2016

Information

The server reports incorrect parcel land capacity if region has an active object bonus greater than 1.0.

The is reflected in About Land and with llGetParcelMaxPrims(llGetPos(),FALSE).

I suspect that the region object bonus is being applied after the rounddown of parcel max prims by parcel sqm instead of before.

e.g should be int((parcel_sqm / 65536.0) * region_max_prims * region_object_bonus) instead of int((parcel_sqm / 65536.0) * region_max_prims) * region_object_bonus

This is most noticable over a parcel whose owner owns no other parcels in the region as shown in the included pic (my HUD cannot read region object bonus atm)

This does not affect actual rezzing as the region capacity max value is still correct, but it would be great to have this fixed for scripted apps and viewer referencing.

Attachments

Original Jira Fields
Field Value
Issue BUG-40870
Summary The server reports incorrect parcel land capacity if region has an active object bonus greater than 1.0.
Type Bug
Priority Unset
Status Accepted
Resolution Accepted
Reporter Lucia Nightfire (lucia.nightfire)
Created at 2016-11-11T05:16:48Z
Updated at 2016-11-18T20:00:30Z
{
  'Business Unit': ['Platform'],
  "Is there anything you'd like to add?": '?',
  'ReOpened Count': 0.0,
  'Severity': 'Unset',
  'System': 'SL Simulator',
  'Target Viewer Version': 'viewer-development',
  'What just happened?': 'The server reports incorrect parcel land capacity if region has an active object bonus greater than 1.0.\r\n\r\nThe is reflected in About Land and with llGetParcelMaxPrims(llGetPos(),FALSE).\r\n\r\nI suspect that the region object bonus is being applied after the rounddown of parcel max prims by parcel sqm instead of before.\r\n\r\ne.g should be int((parcel_sqm / 65536.0) * region_max_prims * region_object_bonus) instead of int((parcel_sqm / 65536.0) * region_max_prims) * region_object_bonus\r\n\r\nThis is most noticable over a parcel whose owner owns no other parcels in the region as shown in the included pic.\r\n\r\nThis does not affect actual rezzing as the region capacity max value is still correct, but it would be great to have this fixed for scripted apps and viewer referencing.',
  'What were you doing when it happened?': '?',
  'What were you expecting to happen instead?': '?',
}
@sl-service-account
Copy link
Author

Lucia Nightfire commented at 2016-11-11T20:45:33Z

SVC-8152 was fixed as it currently caps the max prims at min(parcel max prims,region max prims) and isn't the problem here, but I see SVC-2294 is the same issue.

SVC-2294 is quite old, over 8 years, so I think it would be great to finally fix this as it is a simple rearrangement of math in the calc at the server.

@sl-service-account
Copy link
Author

Lucia Nightfire commented at 2016-11-18T20:00:31Z

Sorry, SVC-8152 is not fixed at the viewer level, only server.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant