User:Guthix1110/Programs

From the RuneScape Wiki, the wiki for all things RuneScape
Jump to: navigation, search

Not many people might know it, but I'm a pretty good programmer. Recently, I decided to use my 1337 programming skills to help the wiki. So I've started making random programs to do whatever non-editting tasks are needed. The folder i keep the programs is here Note: If a link isn't working, please tell me.
Here are the programs I've made so far:

Disambiguation Links[edit | edit source]

This program creates a text document that contains the name of every disambiguation page on this wiki and a list of what pages link to it. A few notes:

1.) It takes a while to finish. That is because it has to parce and get information from the raw html version from over 800 seperate pages. Ever seen the html version of some of these pages?

2.) It will not print a disambig page that has no links to it.

3.) It will not print out if the Orphanage, someone's own user page, or a talk page link to it.

You can download it here

NPC Map Creator[edit | edit source]

This program creates NPC Maps. Its dimensions are 250X150 px, and the blue square is 33X33 px. A few notes:

1.) By default, it uses the large RS world map. You can browse your pictures to use a different picture if you want.

2.) The area used for the map never changes locations relative to the program.

3.) There are several buttons on the right of the program. Use them to change the location of the world map relative to the square.

4.) Click anywhere inside the box to position the blue square.

5.) Click anywhere outside of the box to center the map where you clicked, and remove the blue square.

6.) Type the desired file name in the text box on the left of the form. After saving a picture, the program will add a "0" to the end of the name to prevent picture overriding. You can disable this feature by unchecking the checkbox under the save button.

7.) If for some reason, the wiki won't accept the picture, add .png to the end of the name while uploading it.

8.) The blue square looks much better on the final version than on the program itself. It has to picture box stacking in C#, not much I can do about it.

9.) There is now a button to download the most current version of the world map.

You can download the folder here

Image Cropper[edit | edit source]

This program takes a image, and automatically crops it. It looks for a line of pixels that have the same RGB values (or really close) along each of the edges to remove. A few notes:

1.) You can set the allowable difference of RGB pixels. By default, I have it set to 3. If you set it to 0, then it will not crop any line that has a pixel that doesn't exactly match up to the first in the line/column.

2.) This program works best with transparent images that need to be cropped

3.) It can now handle multiple images. Use the control key to upload multiple images at once. After you upload the pictures, it will give a count of how many images were cropped.

4.) By default, the cropped images will be saved where the program is executing and will always be entitled: Cropped(Original File Name)

5) You can change the location where the program will save the image with the button at the bottom of the form.

6.) If you keep the Check box checked, the program will add a "Cropped" in front of the file name. Uncheck it to retain the original file name

You can download the program here

ScreenShot Taker[edit | edit source]

This program basically acts as a fancy Print Screen button. It will take a picture of whatever is on the screen behind it. The size of the picture is the same as the size of the program. A few notes about it:

1.) If you keep the check box checked, then my program will add a "0" to the end of the filename textbox after each successful save. This is to deter file overwriting.

2.) The Numeric Up Down control determines how long the programs pauses for. It has to pause because it takes a little time to hide the program before taking the picture. If the wait isn't long enough, then the program will be captured in the image. By default, I set it for 200 milliseconds. Minimum time is 100 (I doubt your computer is fast enough to minimize my program in anything less) and maximum is 1000 (if your computer can't hide it in 1000 milliseconds, I think its time to get a new one...)

3.) You can change the location where the program will save the image with the button at the bottom of the form. By default, it will save to the same location that the program is operating.

4.) Press enter to quick take a picture.

You can download the program here

Quest Reward Scroll Transer[edit | edit source]

This program seperates the Quest Reward Scroll from a background, puts it on a transparent background, and then uses an exact copy of my image cropper and crops it. You use it pretty much the same way you'd use my ScreenShot program, just align the reward scroll and take a picture. A few notes about the program:

1.) If you keep the check box checked, then my program will add a "0" to the end of the filename textbox after each successful save. This is to deter file overwriting.

2.) The Numeric Up Down control determines how long the programs pauses for. It has to pause because it takes a little time to hide the program before taking the picture. If the wait isn't long enough, then the program will be captured in the image. By default, I set it for 200 milliseconds. Minimum time is 100 (I doubt your computer is fast enough to minimize my program in anything less) and maximum is 1000 (if your computer can't hide it in 1000 milliseconds, I think its time to get a new one...)

3.) You can change the location where the program will save the image with the button at the bottom of the form. By default, it will save to the same location that the program is operating.

4.) Press enter to quick take a picture.

5.) This program can be used to take multiple images of anything, as long as thier shapes match up. To take a picture of one of them, create a reverse-transparency image of what you want (Image is transparent with a solid background), and click the Change Image button. My program will automatically set the size to match your image. To prevent it from hiding any important things, I'd recommend making the image at least 300x200 pixils. Don't worry about extra blank pixils, my program will crop those out.

6.) You can use the 4 buttons labeled "Up, Down, Left, and Right" to move the form 1 pixil in that direction. Use them to get the form in the perfect location.

7.) You can stretch the form if needed, but you shouldn't have to if your taking pictures of quest reward scrolls.

8.) It takes a few seconds to complete, just be patient.

You can download the program here

Worldmap Updater[edit | edit source]

This program is designed to making updating the World map easier. To use it, you load up the in game world map at 50% zoom, and activate the program. Then align the image of the worldmap with the in game world map, and click the "Take Picture" button. The part of the in game world map directly behind the program (not including the title bar) will be copied and pasted where ever you aligned it. A few notes:

1.) I have a method to automatically detect where to insert the new part, but it doesn't work all the time. This is because the wiki's world map is randomly missing rows of pixils and might be differently shaded than the in game's. You can try to use it if you feel lucky. It analyzes the first few rows of pixils from the part you are trying to insert (number of which you can set), and finds where on the wiki's map those pixils match up to. There is a allowable difference which you can set, but set it too high, and my program might find the wrong spot.

2.) I have a button which downloads the current version of the world map and puts in the folder.

3.) You cannot name the new map RSMAP, as that is the name of the map I've included in the folder. This is because C# doesn't really like it when I take an image, modify it, and resave it under the same name. Don't ask me why...

4.) You can update multiple parts of the map in one session.

You can download the folder here

Program Requests[edit | edit source]

If you have an idea for a program, please tell me what you want on the talk page and I'll get on it a soon as possible.