Search found 19 matches

by John Mela
Wed Dec 04, 2019 3:33 pm
Forum: Other Support
Topic: How to get rid of NPCs
Replies: 3
Views: 152

Re: How to get rid of NPCs

For anyone searching the forums for a script like that in future: default { touch_start(integer n) { llSensor("", NULL_KEY, OS_NPC, 500.0, PI) ; } sensor(integer n) { integer i ; for (i = 0 ; i < n ; i++) { key Detected = llDetectedKey(i) ; llSay(0, "Removing " + llKey2Name(Detected)) ; osNpcRemove(...
by John Mela
Fri Jun 14, 2019 3:15 pm
Forum: Scripting
Topic: Garage Door Script
Replies: 2
Views: 2459

Re: Garage Door Script

Hi Greg. At a glance, there are a couple of things very wrong with this script. I've made a couple of changes that may help, but I've not tested it: //door script vector gPos; rotation gRot; default { touch_start(integer total_number) { gPos = llGetPos(); gRot = llGetRot(); llSetRot(llEuler2Rot(<0.0...
by John Mela
Sun Jun 02, 2019 7:54 pm
Forum: Worlds Support
Topic: Scripts Not Running After Restart
Replies: 19
Views: 4944

Re: Scripts Not Running After Restart

Thanks, Tonia. I've run OSGrid regions myself, and other grids too, so I'm familiar with the OpenSim.exe console. What I don't understand is the difference between the two scenarios you describe here: if I re-started a region from the console many scripts would fail to start. Anyway if I re-started ...
by John Mela
Sun Jun 02, 2019 5:57 pm
Forum: Worlds Support
Topic: Scripts Not Running After Restart
Replies: 19
Views: 4944

Re: Scripts Not Running After Restart

if I re-started a region from the console many scripts would fail to start. Anyway if I re-started the simulator Xengine would tell me that all the scripts had been started and then I had no further problems. Hi Tonia. Could you clarify this please? How exactly are you restarting the region in thes...
by John Mela
Thu May 23, 2019 6:27 pm
Forum: Scripting
Topic: Need help re Material Alignment Script
Replies: 2
Views: 2204

Re: Need help re Material Alignment Script

I've done a bit of experimentation with this code, and it looks to me like what you're trying to do is not currently possible in OpenSim. This Mantis report seems to describe what I'm seeing, and it's still flagged as an open issue, even in OpenSim 0.9. In short, you still can't set the properties o...
by John Mela
Wed May 22, 2019 3:12 pm
Forum: Building and Texturing
Topic: Object centre moving between Blender and OpenSim
Replies: 14
Views: 4507

Re: Object centre moving between Blender and OpenSim

I think we have a success here, thanks to Zed. He demonstrated to me how to create a dummy geometry that forces the centre of the exported object to be in exactly the same position as the geometric centre of the tetrahedron, as he described above. All I had to do was figure out how to do that in Ble...
by John Mela
Wed May 22, 2019 12:52 pm
Forum: Building and Texturing
Topic: Object centre moving between Blender and OpenSim
Replies: 14
Views: 4507

Re: Object centre moving between Blender and OpenSim

Thanks, Zed! You're definitely on to something with that method. The origin is centred horizontally, which is great for rotations around Z. Unfortunately, it's not in the centre in other axes, but slightly higher than that. You can check that easily by positioning a slightly smaller sphere in precis...
by John Mela
Tue May 21, 2019 3:10 pm
Forum: Building and Texturing
Topic: Object centre moving between Blender and OpenSim
Replies: 14
Views: 4507

Re: Object centre moving between Blender and OpenSim

Hi Zed. Thanks for getting back to me. Replies to your points (numbers don't relate to your numbers): 1. The vertical axis in Blender is Z by default, so normally objects imported into SL/OS have the same orientation. This has caused problems when I've made objects for Unity (with its Y vertical), s...
by John Mela
Mon May 20, 2019 4:15 pm
Forum: Building and Texturing
Topic: Object centre moving between Blender and OpenSim
Replies: 14
Views: 4507

Re: Object centre moving between Blender and OpenSim

After more experimentation today, I've found that if the tetrahedron is exported and uploaded after step 3, everything is OK except that the rotation is not what's needed. Step 5 - applying a rotation to align one of the faces to the floor plane - seems to be the point at which the origin of an expo...
by John Mela
Mon May 20, 2019 1:55 pm
Forum: Building and Texturing
Topic: Object centre moving between Blender and OpenSim
Replies: 14
Views: 4507

Re: Object centre moving between Blender and OpenSim

Many thanks, Zed. Unfortunately, I didn't describe what I'd done very well, so I'll explain it step-by-step and see if that relates to your description. The object I linked was not the one I made - that's where I sourced the geometry from (and I tried a couple of others too). I'll use that file I li...