Author Topic: Default on Heartbeat script?  (Read 1358 times)

Legacy_Bassix

  • Jr. Member
  • **
  • Posts: 65
  • Karma: +0/-0
Default on Heartbeat script?
« on: September 07, 2010, 05:30:30 pm »


               I'm afraid I made quiete a big blooper. I accidententally replaced the original on heartbeat script with my own script. 'PostedCould anyone post the default script?
Big thanks!
               
               

               
            

Legacy_420

  • Sr. Member
  • ****
  • Posts: 370
  • Karma: +0/-0
Default on Heartbeat script?
« Reply #1 on: September 07, 2010, 05:42:44 pm »


               Just delete the script and the default one will magically reappear.



-420
               
               

               
            

Legacy_Bassix

  • Jr. Member
  • **
  • Posts: 65
  • Karma: +0/-0
Default on Heartbeat script?
« Reply #2 on: September 07, 2010, 05:56:42 pm »


               No, I mean that i practically deleted the original script. I edited the original onheartbeat script and accidententally saved. Do you understand me?
               
               

               
            

Legacy_420

  • Sr. Member
  • ****
  • Posts: 370
  • Karma: +0/-0
Default on Heartbeat script?
« Reply #3 on: September 07, 2010, 06:35:51 pm »


               Yes, I do actually.



When you edit any of the BioWare scripts it simply saves it as a new copy, the original is still there but overridden. Simply delete your edited copy and the original will be restored. Do you understand me?



-420
               
               

               
            

Legacy_Xovian

  • Full Member
  • ***
  • Posts: 158
  • Karma: +0/-0
Default on Heartbeat script?
« Reply #4 on: September 07, 2010, 06:58:54 pm »


               420 is correct, unless of course you're saying you rewrote the .2da?

Replacing scripts that are the default names only over write for that module, if deleted they revert back to the original source script.
               
               

               
            

Legacy_Bassix

  • Jr. Member
  • **
  • Posts: 65
  • Karma: +0/-0
Default on Heartbeat script?
« Reply #5 on: September 07, 2010, 08:59:37 pm »


               Yes, I understand you. My bad. I'm deleting it right now, takes a very long time.. But I guess that's because almost every NPC uses the script.
Thank  you very much'Posted
               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Default on Heartbeat script?
« Reply #6 on: September 07, 2010, 09:04:06 pm »


               OH NO! You did it badly, use backup of the module ASAP!



You did choose to delete this script from every npc's events. You mustn't do that.
               
               

               
            

Legacy_Bassix

  • Jr. Member
  • **
  • Posts: 65
  • Karma: +0/-0
Default on Heartbeat script?
« Reply #7 on: September 08, 2010, 04:23:45 pm »


               No, it's alright. 420 is correct, everything is replaced with the default on heartbeat script (Y).
               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Default on Heartbeat script?
« Reply #8 on: September 08, 2010, 06:59:00 pm »


               Yes, thats right, but if you choose to delete script, there is confirmation pop up.



"Would you like to remove all references to the Script from the Conversations, Instances, and Blueprints in the Module?"



I predicted you chooses YES as you stated it took long time to finish, and you must not click on YES, because if you do that all creatures in your custom palette or placed in any area in your module will have the heartbeat script deleted from their events, breaking very much AI for them...



Check it again.
               
               

               
            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
Default on Heartbeat script?
« Reply #9 on: September 08, 2010, 09:42:45 pm »


               Shadoow is correct.  I just think he missed the point that your script was named 'default' So the only thing you removed the script from was a few traps.   At least I think that is all.  The PC who you are wanting the script to run on where never loaded into to toolset to have the script removed from them.  



In short you Took a long time deleting the script when it should have been don in a heart beat.  Well less then a heart beat.  6 sec is a long time.  



Now if I miss understood and you really did delete and remoce the NPC HB script(nw_c2_default1) from everything.  Like shadow said, I hope you have a back up of your module.
               
               

               
            

Legacy_Grymlorde

  • Sr. Member
  • ****
  • Posts: 362
  • Karma: +0/-0
Default on Heartbeat script?
« Reply #10 on: September 09, 2010, 09:24:19 pm »


               This is why I prefer to A) write new scripts instead of overwriting the default ones and 'B)' I have to to overwrite then if I need to delete it I delete from the temp0 directory rather than the toolset directly.
               
               

               
            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
Default on Heartbeat script?
« Reply #11 on: September 09, 2010, 10:25:16 pm »


               

Grymlorde wrote...

This is why I prefer to A) write new scripts instead of overwriting the default ones and 'B)' I have to to overwrite then if I need to delete it I delete from the temp0 directory rather than the toolset directly.



If you wrote a new script and named it something else, It would no longer be called 'default' and no longer work as the pc's heart beat.    If you delete the scripts from the temp0 folder, make sure you get both of them.  the .nss and the .ncs
               
               

               
            

Legacy_Bassix

  • Jr. Member
  • **
  • Posts: 65
  • Karma: +0/-0
Default on Heartbeat script?
« Reply #12 on: September 12, 2010, 02:14:38 pm »


               Could someone post the default onheartbeat script?
               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Default on Heartbeat script?
« Reply #13 on: September 12, 2010, 02:56:56 pm »


               nw_c2_default1
               
               

               
            

Legacy_Bassix

  • Jr. Member
  • **
  • Posts: 65
  • Karma: +0/-0
Default on Heartbeat script?
« Reply #14 on: September 12, 2010, 03:42:44 pm »


               Thanks. At the moment I'm placing the nw_c2_default1 script on my custom NPC's. Hell, that's a lot of work. Will it work?