Author Topic: Idea: A program to allow blanket script replacement  (Read 1463 times)

Legacy_WoC_Builder

  • Sr. Member
  • ****
  • Posts: 425
  • Karma: +0/-0
Idea: A program to allow blanket script replacement
« on: October 03, 2011, 04:58:49 am »


               What I wish we had would be a program that could open a NWN mod file, look through selectable resource types (placeables, conversations, creatures, etc), whether in the palette or an area and then simply find and replace one assigned script label with another one.  It would not have to worry about the actual scriipt existing, simply look for the text in a handle and replace it.  '<img'>

Case in point; I would select placeables, do a search for  "chairsit", and then tell it to replace each instance of that script  that it found with "x2_plc_used_sit".

I am cleaning up the mod file for our PW, and there are really a lot of redundencies that I wish to remove, but some things I don't wish to do...like 1.5 million placeables with 13 variations of a chair script!
               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Idea: A program to allow blanket script replacement
« Reply #1 on: October 03, 2011, 08:16:30 am »


               Letoscript-Moneo can do that.
               
               

               
            

Legacy_WoC_Builder

  • Sr. Member
  • ****
  • Posts: 425
  • Karma: +0/-0
Idea: A program to allow blanket script replacement
« Reply #2 on: October 03, 2011, 01:59:15 pm »


               Thanks for the tip!  I'm checking it out even now.  '<img'>
               
               

               
            

Legacy_WoC_Builder

  • Sr. Member
  • ****
  • Posts: 425
  • Karma: +0/-0
Idea: A program to allow blanket script replacement
« Reply #3 on: October 04, 2011, 03:55:07 am »


               Hmmm, looking all over for th tutorial, but am having no luck.  Looks like the website for it is no longer maintained.  Does anyone have a copy of it they would be willing to e-mail me?

Looking at the help pages, it looks like it will do what I need it to, but I need a tutorial to learn how to use it.

Unless for some of you, this is old hat and can give me the exact code I need to rename script handles in the mod.
               
               

               
            

Legacy_WoC_Builder

  • Sr. Member
  • ****
  • Posts: 425
  • Karma: +0/-0
Idea: A program to allow blanket script replacement
« Reply #4 on: October 04, 2011, 04:31:28 am »


               The best I could find was Letoscript Functions page, but unfortunately I am unsure of even how it installs.  Hopefully, someone in the community kept this manual!

Thanks again for the nod in the right direction though.  '<img'>
               
               

               
            

Legacy_HipMaestro

  • Hero Member
  • *****
  • Posts: 2849
  • Karma: +0/-0
Idea: A program to allow blanket script replacement
« Reply #5 on: October 04, 2011, 11:35:25 pm »


               Found these yet?

LetoScript 101
LetoScript 201
               
               

               
            

Legacy_WoC_Builder

  • Sr. Member
  • ****
  • Posts: 425
  • Karma: +0/-0
Idea: A program to allow blanket script replacement
« Reply #6 on: October 05, 2011, 04:47:11 am »


               Yes, I have, and thanks for the tip.  '<img'>  I have also opened up the latest version, 27, and there is a help file of sorts there, but unfinished.

I can see roughly what needs to be done, but still need to learn further about gff formats, and discover whether script handles are considered lists, fields, etc.

A lot to learn, and I have only scratched the surface, but that is why I'm looking for the tutorial if it still exists.
               
               

               
            

Legacy_FunkySwerve

  • Hero Member
  • *****
  • Posts: 2325
  • Karma: +0/-0
Idea: A program to allow blanket script replacement
« Reply #7 on: October 05, 2011, 07:22:35 am »


               I'll be posting a Moneo tutorial with dozens of sample scripts in the Scripting forum in the next couple days.

Funky
               
               

               
            

Legacy_WoC_Builder

  • Sr. Member
  • ****
  • Posts: 425
  • Karma: +0/-0
Idea: A program to allow blanket script replacement
« Reply #8 on: October 06, 2011, 03:10:51 am »


               

FunkySwerve wrote...

I'll be posting a Moneo tutorial with dozens of sample scripts in the Scripting forum in the next couple days.

Funky


You, Sir, have my utmost thanks.  '<img'>
               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Idea: A program to allow blanket script replacement
« Reply #9 on: October 07, 2011, 11:42:17 pm »


               And btw you can do it within toolset features.

Simply, add the (each?) chair into palette if it hasnt been yet. Then change the script in blueprint in palette. Then click right mouse button and select "update instances" or something like that (i dont have english texts atm). Then you can select whether this update is in every area or in the current open.

It takes a while, but it works and I found out that moneo raise the module size after any modification, so its definitely more clean way to do it too (while moneo still can do a lot of things that are not possible to do this way).
               
               

               


                     Modifié par ShaDoOoW, 07 octobre 2011 - 10:43 .
                     
                  


            

Legacy_WoC_Builder

  • Sr. Member
  • ****
  • Posts: 425
  • Karma: +0/-0
Idea: A program to allow blanket script replacement
« Reply #10 on: October 08, 2011, 04:46:41 am »


               Now I feel stupid.  I'm wondering though if it looks for instances in the area by tag, or by resref?  I would think tag, as a resref is just a blueprint, and it is not an instance until placed.  Still, a very good suggestion, and possibly a fix.  '<img'>

Thank you, Sir.  '<img'>
               
               

               
            

Legacy_WoC_Builder

  • Sr. Member
  • ****
  • Posts: 425
  • Karma: +0/-0
Idea: A program to allow blanket script replacement
« Reply #11 on: October 08, 2011, 05:47:35 am »


               Answer...resref.  Back to the drawing board.  Or, add each instance that I want to change, change them, then delete the new placeable I added from the temp folder, not affecting the placeable.  Hmm.
               
               

               
            

Legacy_WoC_Builder

  • Sr. Member
  • ****
  • Posts: 425
  • Karma: +0/-0
Idea: A program to allow blanket script replacement
« Reply #12 on: October 17, 2011, 02:18:28 am »


               

FunkySwerve wrote...

I'll be posting a Moneo tutorial with dozens of sample scripts in the Scripting forum in the next couple days.

Funky


Heya Funky, did I miss this?  Or is it still on the to-do list?  '<img'>
               
               

               
            

Legacy_FunkySwerve

  • Hero Member
  • *****
  • Posts: 2325
  • Karma: +0/-0
Idea: A program to allow blanket script replacement
« Reply #13 on: October 20, 2011, 04:22:42 am »


               Still very much on the todo. I'm waiting for one of my team members to be a guinea pig, for the writeup.

Funky
               
               

               
            

Legacy_WoC_Builder

  • Sr. Member
  • ****
  • Posts: 425
  • Karma: +0/-0
Idea: A program to allow blanket script replacement
« Reply #14 on: October 21, 2011, 05:51:22 am »


               Sounds good, bud.  No worries; we all do what we can do when we can do it.  '<img'>

Appreciate the work you are putting into it. '<img'>