• All submissions to this site are governed by Second Life Project Contribution Agreement. By submitting patches and other information using this site, you acknowledge that you have read, understood, and agreed to those terms.
Issue Details (XML | Word | Printable)

Key: SVC-183
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Normal Normal
Assignee: Qarl Linden
Reporter: ZenMondo Wormser
Votes: 2
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
2. Second Life Service - SVC

key must be typecast in llParcelMediaCommandList to set media texture

Created: 04/May/07 02:31 PM   Updated: 29/Jan/08 02:39 PM
Return to search
Component/s: Scripts
Affects Version/s: 1.13.4
Fix Version/s: None

Issue Links:
Relates
 

Linden Lab Issue ID: DEV-9337


 Description  « Hide
llParcelMediaCommandList([PARCEL_MEDIA_COMMAND_TEXTURE, ...]) expects a key for the next argument, but if a key is passed in just double quotes (") like every other function that expects a key to be passed to it silently fails. One must explicitly typecast the key as a key for the function to work as expected.

Steps to Re[produce the bug:

In a script, use the following line of code (or similar providing your own texture UUID)

llParcelMediaCommandList([PARCEL_MEDIA_COMMAND_TEXTURE, "c2617dcf-9860-4494-62ff-6c1d516717cf"]);

This will silently fail, not setting the Parcel's Media texture.

this line of code, however works

llParcelMediaCommandList([PARCEL_MEDIA_COMMAND_TEXTURE, (key) "c2617dcf-9860-4494-62ff-6c1d516717cf"]);

(Note: llParcelMediaCommandList will only work if in an object owned by the landowner or deeded to the land-owning group on the land on which it is placed)

Observed Results:

When a key is passed that is not explicitly typecast as a key, the function will silently fail, not setting the media texture.

When a key is explicitly typecast as a key, it will set the Media Texture correctly.

Expected Results:

The function should know its a key being passed to it, and not a string, as other functions do, it should not have to be typecast as a key in order to function.



 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Lex Neva added a comment - 05/May/07 08:33 AM
Ooh, good point. llParticleSystem is annoying like this too. Check out SVC-185.

anthony reisman added a comment - 09/Jun/07 10:17 AM
This used to work differently before didn't it? When did this stop working. I've noticed another bug with video and I never saw in any release notes that video has been messed with...

anthony reisman added a comment - 09/Jun/07 10:28 AM
This may be related to an issue I noticed and put under VWR-1138