Author Topic: Enable Logging=1 2 scripts keep firing....  (Read 581 times)

Legacy_Knight_Shield

  • Hero Member
  • *****
  • Posts: 812
  • Karma: +0/-0
Enable Logging=1 2 scripts keep firing....
« on: April 09, 2011, 11:44:41 pm »


               Enabled Logging =1 shows scripts that are fired.  I have a script or 2 that is constantly being fired.

zep_torchspawn
crpz_hide_sobjs


Is it normal for these to be fired constantly?
               
               

               


                     Modifié par Knight_Shield, 09 avril 2011 - 11:10 .
                     
                  


            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Enable Logging=1 2 scripts keep firing....
« Reply #1 on: April 10, 2011, 12:30:03 am »


               zep_torchspawn is famous CEP crap script that is running on most CEP light placeables (like candles etc.) every 6 seconds. The easiest way to get rid of it is to track this script in CEP haks and delete it on server side. Its not 100%, it still drains some resources but at least something.

Don't know that second one, but I would follow the same process.
               
               

               
            

Legacy_Knight_Shield

  • Hero Member
  • *****
  • Posts: 812
  • Karma: +0/-0
Enable Logging=1 2 scripts keep firing....
« Reply #2 on: April 10, 2011, 12:35:30 am »


               Thanks  ...my next question is how do I open a hak?Is there a link I can look at?
               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Enable Logging=1 2 scripts keep firing....
« Reply #3 on: April 10, 2011, 12:37:30 am »


               NWN/utils/nwhak.exe
               
               

               
            

Legacy_kalbaern

  • Hero Member
  • *****
  • Posts: 1531
  • Karma: +0/-0
Enable Logging=1 2 scripts keep firing....
« Reply #4 on: April 10, 2011, 02:26:49 am »


               Those scripts are found in "cep2_add_sb_v1" and "cep2_crp_s" respectively.
               
               

               
            

Legacy_Knight_Shield

  • Hero Member
  • *****
  • Posts: 812
  • Karma: +0/-0
Enable Logging=1 2 scripts keep firing....
« Reply #5 on: April 10, 2011, 02:28:45 pm »


               Lol now you tell me kalbaern. I found zep_torchspawn and erased it.Let me ask you guys this...is there supposed to be any scripts firing if noone is on server except maybe loadmodule.I have no heartbeat scripts in place..all NPC spawn.Thanks for your help guys.
               
               

               
            

Legacy_kalbaern

  • Hero Member
  • *****
  • Posts: 1531
  • Karma: +0/-0
Enable Logging=1 2 scripts keep firing....
« Reply #6 on: April 10, 2011, 03:01:39 pm »


               Anything attached to your OnModuleLoad Event will fire as will any Heartbeats will run. CEP lighting placeables and demi liche bone piles will run their heartbeats along with some Bioware gargoyles and other possible things (zombie corpses I believe).

What I've done in the past year for a few modules is to rename the "cep2_add_sb_v1" hak into an erf and import it it instead. Then editted the offending placeables and updated them modulewide. I also then mass deleted most unused scripts and blueprints after that. Since the modules used very few unmodified versions of either standard or CEP resources anyhow, this cut out a lot of waste (though did inflate them until the weeding was done).

I still use placeables that have heartbeat scripts. I just spawn them in when a PC enters the area or gets close to them on a map. Then my area cleaners will gobble them up later if left still. I also do this with many visual effect placeables (fog, smoke, summoning circles, etc...)