This website is a read-only preview of RuneLibris. Some features may not work. For more information about the full feature-complete version of this wiki, please visit this link.

(Return to archive index)

Info/Gaz's replacement script

From RuneLibris
Jump to: navigation, search

Overview[edit]

Gaz's replacement script is the meta-name for a Perl script created by Gaz Lloyd[1]. It is useful for various RuneScape preservation tasks, especially when dealing with cache data[2].

Usage[edit]

Create a text document called input.txt that contains string enclosed by __ (to avoid replacement errors), similar to this[3]:

__100__
__1__

The script should then be copied and have the replacement section be like this[4]:

my %replacements = (
    "__1__" => "Toolkit",
    "__100__" => "Ranarr potion (unf)"
);

Review synthax highligting for formatting errors.

Once done, run perl "Replacement script.pl" "input.txt" in CMD. This will create a output file called input_out.txt that will contains the replaced data[5].

Archives[edit]


References[edit]

  1. Data directly entered in RuneLibris by manpaint on 2025-05-02; based on his personal memories
  2. Data directly entered in RuneLibris by manpaint on 2025-05-02
  3. Data directly entered in RuneLibris by manpaint on 2025-05-02
  4. Data directly entered in RuneLibris by manpaint on 2025-05-02
  5. Data directly entered in RuneLibris by manpaint on 2025-05-02
  6. Data directly entered in RuneLibris by manpaint on 2025-05-02