Jump to content
Sign in to follow this  
Countryboyaj

[Shard+] Tutorial Guide For: Shard Revolution Base Users

Recommended Posts

This is my first guide... so be kind! :)

Added:
How to change file extensions.
How to save accounts/profiles.

Coming [u]very[/u] soon:
[list=1]
[*]How to add NPCs in Shard Evolutions.
[*]How to add item spawns in Shard Revolutions.
[*]How to add object spawns in Shard Revolutions.
[*]How to change spawn point in Shard Revolutions.
[*]How to add shops in Shard Revolutions.
[*]How to add dialogue in Shard Revolutions.
[*]How to add drops + drop rates in Shard Revolutions.
[*]How to add multiple worlds in Shard Revolutions.
[*]Possibly more.
[/list]

Expected Guide finish date: 10-20-12

This guide will most likely be done before expected finish date!

[B][SIZE=5][COLOR="#00FF00"]How to change file extensions:[/COLOR][/SIZE][/B]

This page shows you how to change a file extension in Windows. For example, you might want to rename a file called MyDocument.rtf to MyDocument.txt.
These instructions are for Windows 7 but the same basic process applies to most versions of Windows.

NOTE: Changing a file extension should only be done if you are confident it's the right thing to do. Test the file thoroughly after the change. If it doesn't work you can easily change the extension back—just make sure you remember what it was!

My Computer
The first thing to do is open Windows Explorer (or My Computer) and view the file you wish to change. We'll use the example of [B]MyDocument.rtf[/B]. When we browse to the file it looks like this:
[img]http://www.mediacollege.com/microsoft/windows/7/images/file-extension_1.png[/img]

You'll notice that the file does not appear to have an extension—it's just called MyDocument. That's because in this example Windows is set to hide extension names.

If you can already see file extensions on your computer, skip the next step.

If you can't see the file extension, go to [B]organize > Folder and Search Options[/B], then click the [B]View[/B] tab. Uncheck the box titled "Hide extensions for known file types" like so:
[img]http://www.mediacollege.com/microsoft/windows/7/images/file-extension_2.png[/img]

Click [B]OK[/B]. Now you should be able to see the file extension:

[img]http://www.mediacollege.com/microsoft/windows/7/images/file-extension_3.png[/img]

Right-click the file name and select [B]Rename[/B] (or left-click and hold down the button for one second). Enter the new extension like so:

[img]http://www.mediacollege.com/microsoft/windows/7/images/file-extension_4.png[/img]

After entering the new extension, hit the Enter (return) key. Windows will give you a warning that the file may not work properly. This is quite safe—remember that you can restore the original extension if anything goes wrong.

It's also possible that you might get another message telling you that the file is "read-only". In this case either say yes to turning off read-only, or right-click the file, select Properties and uncheck the Read-only box.

If you do not have permission to change the file extension, you may have to login as Administrator. Another option is to make a copy of the file, rename the copy and then delete the original.

Note: Windows treats file extensions as case-insensitive, i.e. .RTF is the same as .rtf. However other operating systems do not, and will treat MyDocument.RTF and MyDocument.rtf as two different files. Therefore it is good practice to always treat your files as case-sensitive for maximum compatibility. This is especially crucial if you are going to use the files on the Internet. We recommend that you get into the habit of using all lower-case letters for all file extensions—then there's no confusion.

------------------------------------------------
------------------------------------------------

[SIZE=5][COLOR="#00FF00"]How to save profiles/accounts[/COLOR][/SIZE]

As you may have noticed, if you use Shard Revolutions from start, you will not have saved user profiles after logout. This is a panic and a headache unless you know what you are doing.

Details:

Difficulty: Newby
Length: 3 minutes or less
Effectiveness: 100%

Okay first, go to com.rs.worldserver.world.playermanager.java

Or just search for the file "playerManager.java" in your computer.

Second, after opening up playerManager.java (generally edited in notepad or notepad++), you will press the control key (One that says CTRL) [u][b]and[/b][/u] the "f" key [b][u]at the same time[/u][/b].

A little text box should popup.

Type in:

[code]savedgames[/code]

You should find something like this:

[code]String file = "./savedGames/" + tempSave.playerName + ".txt";[/code]

Okay this is the moment of truth...[COLOR="#00FF00"] Change the .txt to .dat[/COLOR]

It should look like this when you are done:

[code]String file = "./savedGames/" + tempSave.playerName + ".dat";[/code]

If you would like to take back any account(s) you've played on that have been "Deleted" or "Not saved", then proceed to this final short and easy step to get any accounts with work on them back!

Go all the way back to your savedGames folder and use the guide I showed above to changed your current saved game(s) from .txt to .dat and wala! You've got a fully functional saving system on your server! Congrats! :D

[b][u]*Note:[/u][/b] Don't forget to compile your server before running it or no changes will go into effect! Edited by Countryboyaj

Share this post


Link to post
Share on other sites
Sign in to follow this  

×