Jump to content


Photo

String Edit Backups?


  • Please log in to reply
5 replies to this topic

#1 Grey Acumen

Grey Acumen

    Hunter of the Doomed

  • Member
  • 2047 posts

Posted 01 January 2004 - 02:42 PM

Okay, there is the option to edit the entries in the .tlk file directly(I think its the string set command, but when you do that, no backup is made.

Would it be possible to make it so that when you use this function it creates a notepad(or rtf) in the backup folder?

I figure this would work a little like how a copy of any 2da files that you edit gets put into the backup folder, except you would be creating and deleting a file instead of copying and moving?

Is this worthwhile, or even possible?
Improved Beastmaster ---------- [Complete!]
Mime Bardic Kit ------------------- [Complete!]
Rebalanced Use Any Item HLA -- [Complete!]
Improved Wizard Slayer --------- [Complete!]
Stormsinger Ultimate Elemental Bardic Kit [75%]

Find out what else is in store at Acumen's Assortment

#2 -jcompton-

-jcompton-
  • Guest

Posted 01 January 2004 - 09:35 PM

We've been over the .tlk backup issue and time and time again the conclusion is that there's no good way to back up and restore string changes. That's why the string-altering command tells you not to use it--in other words, you're expected to have a really really good reason for doing such a thing. And many tasks that would seem to require it, don't. If you say what you're trying to accomplish, there may be another solution.

#3 Smoketest

Smoketest
  • Member
  • 97 posts

Posted 02 January 2004 - 01:32 AM

It would be easy to record the changed strings in a text file for later restoration if the need arised. Merely coding that text file like a reverse TP2* would get the job done, much like Microsoft's RegClean program creates REG files that can be used to reverse changes it makes to the system registry.

*By this I mean WeiDU could create, in the backup folder, a TP2 (or whatever) full of STRING_SET statements that would restore the modified TLK strings to their original or previous values. This special file could then be processed automatically during uninstall if WeiDU found it in the backup folder.

Of course, if this is something you plan on releasing to the public, it's better to just add new strings instead of replacing existing ones. The only two mods I know of with a justified use of STRING_SET are the Baldurdash Remix and Ascension, and both used this feature to fix bugs, not add new content. On the other hand, if you're wanting this for personal use, I don't see any harm.

#4 -Sim-

-Sim-
  • Guest

Posted 02 January 2004 - 03:37 AM

The only two mods I know of with a justified use of STRING_SET are the Baldurdash Remix and Ascension, and both used this feature to fix bugs, not add new content.

Virtue modifies hardcoded GUI strings. And I think I posted the method I used to allow it to be completely uninstalled over at FWP somewhere.

#5 hlidskialf

hlidskialf

    Incarnation of the Eternal Ale Warrior

  • Modder
  • 2510 posts

Posted 02 January 2004 - 03:40 AM

Druidic Sorc kit uses the same method as well.

The great wolf Fenrir gapes ever at the dwelling of the gods.


#6 Mhoram

Mhoram

    Dlanīs Great Inquisitor

  • Member
  • 34 posts

Posted 02 January 2004 - 05:51 AM

As Sim says this a a way to restore string_set, the same he uses in Virtue mod .  To translate complete games or TC i think String_set and tlkcmp is the only way with traify-tlk. Of course this means that the tranlation must be installed first of all if you want to unisstall

tp2 setup:

BEGIN ~Traduccion del PST~
COPY + ~dialog.tlk~ ~tradu\restaurar\dialog.tlk~

        STRING_SET 0 @1000000
STRING_SET 1 @1000001
STRING_SET 2 @1000002
STRING_SET 3 @1000003


.
.
.
.
.
.

AT_INTERACTIVE_UNINSTALL ~setup-tradu.exe unistall.tp2~


Unistall.tp2:

BEGIN ~Desinstalacion de la traduccion del PST~
COPY ~tradu\restaurar\dialog.tlk~ ~dialog.tlk~


It works fine, thnaks to WeiDU u nistalling after reinstall anything the dialog file copied is always the same, and with the + option in copy is not deleted in unistalling.

Very good option for tranlating games and TC, but i donīt think it to be too usefull for mods..