GManB Posted September 17, 2020 Posted September 17, 2020 I am using an external editor for editing my scripts. When I save a file in the external editor it updates the inworld script nicely (or pops it up in the inworld editor if there is a compile error). But, I am working with two object, call them Main Board (MD) and HUD. Each has one script and the MB has the HUD object in its Contents. If I make changes to both scripts here is what I have to do for a test iteration. Save both scripts in the external editor Detach the HUD Rez the HUD on the Ground and Edit it Delete script from HUD Drag new version of the HUD script to the HUD Take the HUD Delete old HUD object from my inventory (to keep me more or less sane) Edit MB Delete script from MB Contents Delete old HUD object from MB Contents Drag new version of the MB script to the MB Contents Drag the new version of the HUD object to the MB Contents When MB initializes do a test, which requires selecting a button on the MB waiting for the HUD to rez Touching the HUD Answering 'Yes' to the HUD asking for permission to attach waiting for the HUD to iniitialize Whew! Makes me tired just writing this process. Any ideas on some optimizations on the workflow? I am using Sublime Text. Thanks, G
Wulfie Reanimator Posted September 17, 2020 Posted September 17, 2020 (edited) 26 minutes ago, GManB said: Save both scripts in the external editor Detach the HUD ... Edit MB Delete script from MB Contents If the scripts you're editing already exist in-world and the script in them have just been recompiled... Why do you then replace the scripts with itself? The process of editing an object rezzed by another object is unavoidably laborious. Rez MB Wear HUD Open their scripts externally Save your edits Detach HUD Replace the HUD in MB Test. Edited September 17, 2020 by Wulfie Reanimator
GManB Posted September 17, 2020 Author Posted September 17, 2020 5 minutes ago, Wulfie Reanimator said: If the scripts you're editing already exist in-world and the script in them have just been recompiled... Why do you then replace the scripts with itself? Wulfie, Your answer touches another discussion I am having in here about asset UUIDs. Are scripts the same as textures, sounds, and notecards? I.e, all uses of them are by reference not copy? If I have a script in my inventory and in the Contents of an object and I edit the script in my inventory, save and compile it, does the script in the Contents change? I have tested this and it does NOT seem to be the case. The version of the script in the Contents of an object does not change if I change the version in my inventory. Thanks, G
Wulfie Reanimator Posted September 17, 2020 Posted September 17, 2020 16 minutes ago, GManB said: Wulfie, Your answer touches another discussion I am having in here about asset UUIDs. Are scripts the same as textures, sounds, and notecards? I.e, all uses of them are by reference not copy? If I have a script in my inventory and in the Contents of an object and I edit the script in my inventory, save and compile it, does the script in the Contents change? I have tested this and it does NOT seem to be the case. The version of the script in the Contents of an object does not change if I change the version in my inventory. Thanks, G When you pull a script from your inventory into an object, editing the script in your inventory does not change the script in the object.
GManB Posted September 17, 2020 Author Posted September 17, 2020 Just now, Wulfie Reanimator said: When you pull a script from your inventory into an object, editing the script in your inventory does not change the script in the object. Got it thanks. G
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now