Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Can I modify the default "New Script"? And other questions.

Krashnburn Hillquit
Registered User
Join date: 14 Feb 2006
Posts: 15
03-16-2006 02:33
I looked through the second life files hoping that it would be a text file I could replace or something, but no such luck.

While it's not the end of the world or anything, it would really be nice if I could replace the default New Script with my own basic script, as often as I create new scripts just for testing an idea or whatever, it would save a lot of typing.



I read on the Wiki under llAplyImpulse that the MAX_MAG for push type scripts is 20,000.
This is not mentioned under any other physics functions that I notices, can any one confirm or refute this or know the source of that information?


Energy, Obviously linked directly to the mass of an object, I would like to confirm some observations.

a 10x10x10 cube has a mass of 10,000 takes 50 seconds to go from 0 to 1 energy (measuerd)

a 1x1x0.1 has a mass of 1 should take 1/200 of a second to refill its energy. (looks about right)

From my observations, the total amount of energy in a prim, is irrelivant to the push it can apply.
It seems to me that the MASS of an object affects its Push function calls, and the PERCENTAGE of energy effects them. (not total energy)

I think this because a 10,000 mass object at 0.5 energy, still has 5,000 times more energy than a 1 mass prim. however when atempting to apply the same push, the large prims push is attenuated because its only at 50% energy, while the small prim is not atenuated, even though it has less total energy.

Moral of the story, when you want to know the effect you Prim will have on a push from your script, you look at its MASS, and its PERCENTAGE of energy. (not try to figure out how much actual energy it has)

Another possibly way to look at is that all prims contain exactly the same MAX_ENERGY, and larger prims have a slower refill, I do not think that is the case though, because if you are doing really piddly pushes, a large prim will not have its energy percentage reduced to 0, whereas a small prim will.


Ok, so Default script change, max magnitude on llpush type functions, and observations on energy. I have more questions kind of related to the Energy part, but I think that deserves a seperate post.

Please please please let me know if you have any answers/observations about any of this, I hate working on the dark with no documentation that should explain what functions do and how they work.
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
03-16-2006 04:09
From: Krashnburn Hillquit

Ok, so Default script change, max magnitude on llpush type functions, and observations on energy. I have more questions kind of related to the Energy part, but I think that deserves a seperate post.


To change the default script you have to modify the client.
You would have to ask Omei Turnbull who added it to the wiki (i have yet to find a documented source); but it is probably accurate.

Energy is a black box, if you have none, your script haults. The mass equations are imperfect (there was a time when by using the edit tools you could create super massive prims).
It is my understanding that...
The magnitude of a push will drain a certain amount of energy, dependant on the mass. The available energy will then limit the magnitude of the push to that amount of energy available. The amount of energy available is adversly effected if the object is attached.
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river.
- Cyril Connolly

Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence.
- James Nachtwey