Author Topic: compiling scripts...  (Read 368 times)

Legacy_WhiteTiger

  • Hero Member
  • *****
  • Posts: 889
  • Karma: +0/-0
compiling scripts...
« on: December 21, 2014, 12:54:51 am »


               

I would like to compile all files that have nw_o2_coninclude included (#include "nw_o2_coninclude"). I can see more than 5000 resources on my module witch 1500 scripts are customized and others 4000 are standard. I would like to access the standard scripts to compile all which has implemented the include I mentioned.


 


I need list all scripts I am looking for to compile them. Where can I find the folder that contains all standard scripts, folks? Is needed to extract them from somewhere?



               
               

               
            

Legacy_WhiZard

  • Hero Member
  • *****
  • Posts: 2149
  • Karma: +0/-0
compiling scripts...
« Reply #1 on: December 21, 2014, 01:49:21 am »


               

Most of the treasure calling scripts are module specific to the standard campaign (e.g. quest rewards).  Recompiling them might not be worth the effort.  The main ones you should focus on are OnSpawn for creatures and the use and destruction for placeable containers.



               
               

               
            

Legacy_Proleric

  • Hero Member
  • *****
  • Posts: 1750
  • Karma: +0/-0
compiling scripts...
« Reply #2 on: December 21, 2014, 07:07:42 am »


               

The Bioware scripts aren't all in one folder, but you can easily make one.


 


Using NWNExplorer, navigate to NWN Main Data > scripts.bif. Place the cursor on the Scripts heading, right-click > Export to your folder.


 


Repeat for SoU, HotU, HotU patch and 1.69 patch, in that order. The patches don't have a scripts.bif - simply export from the Scripts heading.


 


The order is important - you want expansions and patches to overwrite the OC in the correct sequence, so that you end up with the latest scripts.


 


If you don't have a tool that does text search within a folder, I recommend FreeCommander.


 


This approach excludes campaign-specific scripts, since most modders never use them.



               
               

               
            

Legacy_WhiteTiger

  • Hero Member
  • *****
  • Posts: 889
  • Karma: +0/-0
compiling scripts...
« Reply #3 on: December 21, 2014, 04:26:49 pm »


               

Well thanks WhiZard. nice tips  '<img'>


I could find the scripts in standard containers and onspawns events. And thank you, Proleric, I tested it you said and worked well, I use "grep" to search for a text in multiple files, excellent program, you know?



               
               

               
            

Legacy_meaglyn

  • Hero Member
  • *****
  • Posts: 1451
  • Karma: +0/-0
compiling scripts...
« Reply #4 on: December 21, 2014, 11:08:31 pm »


               


Well thanks WhiZard. nice tips  '<img'>


I could find the scripts in standard containers and onspawns events. And thank you, Proleric, I tested it you said and worked well, I use "grep" to search for a text in multiple files, excellent program, you know?




 


Grep is a beautiful thing!


               
               

               
            

Legacy_Lightfoot8

  • Hero Member
  • *****
  • Posts: 4797
  • Karma: +0/-0
compiling scripts...
« Reply #5 on: December 29, 2014, 11:44:54 pm »


               use lilac soul's biosearcher.
               
               

               
            

Legacy_WhiteTiger

  • Hero Member
  • *****
  • Posts: 889
  • Karma: +0/-0
compiling scripts...
« Reply #6 on: December 30, 2014, 04:28:12 am »


               



ok I'll check soon


 


PGBVI.jpg