Aller au contenu

Photo

Idea: A program to allow blanket script replacement


  • Veuillez vous connecter pour répondre
15 réponses à ce sujet

#1
WoC_Builder

WoC_Builder
  • Members
  • 225 messages
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.  :)

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!

#2
Shadooow

Shadooow
  • Members
  • 4 465 messages
Letoscript-Moneo can do that.

#3
WoC_Builder

WoC_Builder
  • Members
  • 225 messages
Thanks for the tip! I'm checking it out even now. :D

#4
WoC_Builder

WoC_Builder
  • Members
  • 225 messages
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.

#5
WoC_Builder

WoC_Builder
  • Members
  • 225 messages
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. :)

#6
HipMaestro

HipMaestro
  • Members
  • 1 515 messages
Found these yet?

LetoScript 101
LetoScript 201

#7
WoC_Builder

WoC_Builder
  • Members
  • 225 messages
Yes, I have, and thanks for the tip. :) 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.

#8
FunkySwerve

FunkySwerve
  • Members
  • 1 308 messages
I'll be posting a Moneo tutorial with dozens of sample scripts in the Scripting forum in the next couple days.

Funky

#9
WoC_Builder

WoC_Builder
  • Members
  • 225 messages

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.  :)

#10
Shadooow

Shadooow
  • Members
  • 4 465 messages
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 .


#11
WoC_Builder

WoC_Builder
  • Members
  • 225 messages
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. :)

Thank you, Sir. :D

#12
WoC_Builder

WoC_Builder
  • Members
  • 225 messages
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.

#13
WoC_Builder

WoC_Builder
  • Members
  • 225 messages

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?  :)

#14
FunkySwerve

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

Funky

#15
WoC_Builder

WoC_Builder
  • Members
  • 225 messages
Sounds good, bud. No worries; we all do what we can do when we can do it. :D

Appreciate the work you are putting into it. :D

#16
FunkySwerve

FunkySwerve
  • Members
  • 1 308 messages
Here's that tutorial I promised, posted yesterday:
Tutorial

Funky

Modifié par FunkySwerve, 10 novembre 2011 - 05:15 .