Author Topic: How-to-guide to make a RunUO shard  (Read 14637 times)

Archon

  • UO Central - Owner
  • Administrator
  • Full Member
  • *****
  • Posts: 122
    • View Profile
    • UO Central
How-to-guide to make a RunUO shard
« on: June 24, 2014, 04:11:13 PM »
How-to-guide to make a RunUO shard by Deadpirate87

The basics
 
Did you download runuo yet?! Go do it! and make sure to download Runuo 2.0 The latest release. Why? Because this new release completely dusts 1.0, and alot of new cooler scripts are out for 2.0, And 2.0 is alot more effecient. After downloading Runuo, and BEFORE installing, Verify that you have Microsoft .net framework 2.0 Otherwise the install and runuo will NOT work. Now that you have the framework, Go ahead and install Runuo. Once installed, Go to your "Runuo" folder, and start runuo 2.0. A black box or "console" will appear, leave it open, this is the server. Soon it will ask to create an administrative account, do so, And make your username and password something that is not obvious.
 
Connectivity
 
THIS is where all the new comers stumble, and lose hope, but trust me, its simple. First off, are you Behind a router? Ok..if you are, you are going to have to forward ports 2500-2600 (or just 2593) On your router. Many router websites have instructions to do so, but, if you have a linksys, then it is quite simple. Just go to your linksys box (type 192.168.1.1 in IE browser) type in admin/admin or administrator/administrator Go to advanced/forwarding, OR (for newer wireless users) Go to applications/gaming, then forwarding. Inserting the port numbers is very self explanitory.

www.whatismyip.com WRITE IT DOWN. Now, Take that ip address, and open up your Runuo folder, and find your way to the serverlist.cs file (runuo/scripts/misc/serverlist.cs) Scroll down and you will see
public const string Address = null we are going to want to change this to public const string Address = "Your ip here"; Save the file, close, and restart the server, It should now be accessible by the internet! (use uogateway.com or connectuo.com to advertise your server, so players will connect)
 
Imagination
 
Imagination is your limit when it comes Ultima online, and runuo. Runuo is by far the most flexible Emulator. Use your imagination to create your server, Make a unique theme. You have TONS of space to call your own, make custom buildings, monsters, doungens, towns, hell, even maps! But, well get into Custom map creation, a little later on. Now, keep in Mind, if you want a sucessful shard, you have to create it for what the Players want, not what you want. i'm NOT saying that you cant do it any other way, im just saying, keep the players in mind. Once your shard is up for a while, you will get a few players on (depending if your on uogateway or to be released connectuo) Players will come and go, and sooner or later you will get the frequent players, These are the ones that give golden advice. (usually) Again, ask them for advice on your work, on your thoughts, things you have imagined, and scripted.
 
Another good idea is to build a web based community for your shard, Like a forum, or portal. This will enable you to post news bullitens, reminders, rules, events, ETC. It will also be a nice place for staff applications, Or to build up your network of players. But, stay creative, make your website look unique, Use your Imagination. If your website looks slopped together in 5 minutes, That leaves a horrible impression for players.. maybee even drive potential players away.
 
Creation And Decoration
 
Creating the shard.. hmm. how do i want to decorate it, how do i want to theme it?! THIS is a very difficult part about a shard.. is choosing a good theme, and decoration style, Well at least it was difficult for me =P. Decoration is very important in a shard, especially where the players start. Decoration can be Very inviting and warming, causing players to stay, and explore your vast decorations, maybee even comment them. Keeping a team of 3-4 decorators is recommended. I always have my team of 4.. thatway theres almost always at least one of them online at all times.
 
Commands
 
You arent going to have any good shard without knowing commands! the commands you will use most, i garuntee is [admin [add [props and the infamous [ban There are a ton of commands, I have included The important commands you will need below, You will learn more as time goes on.
 

 [admin --Opens the main administration system of the shard
 [Add -- Adds an item, example [add itemname or simply [add to choose from a menu.
 [Who -- Command to see who is online
 [S -- Staff talk. Example [s hey guys
 [Ban -- Bans the targeted Player For an amount of time chosen by you.
 [Save -- Manually initiate world save
 [Bank -- Open the targets bank box.
 [Dupe -- Dupe an item
 [Delete -- Remove an item
 [Remove -- Remove an item
 [Dismount -- Dismounts Target
 [Flip -- Flip an items image.
 [Kick -- kicks the player off the server
 [Shavebeard -- Speaks for itself
 [Shavehair -- Speaks for itself
 [Squelch -- Stop annoying players from talking
 [Wipe -- Wipe items in a box specified by cursor
 

Thats all for now.. there is alot more but im sure you will find them out.. Make sure to keep these handy.. but im sure you will remember them soon because staff members use Alot of commands!
 
Customization
 
Now its time to Bring your shard to life, and make it unique! If we make it an "osi clone" its just the same as every other shard on uogateway, so try to be a little different. Try adding custom monsters, weapons, armor, Quests. Try to run alot of events, Players LOVE events, they provide interactive fun, and maybee a prize for the winner at the end. If you cannot script, you can download the script creator.. although i do not suggest it, i suggest to LEARN to script first. Next go to http://www.runuo.net.  You can add a Lot of custom items and is a good thing, it makes the game fresh, and seem new to players and you. Another cool idea, is look through the runuo.com forums, and see if you can find a good Scripts. These add a lot of fun, new ingots, woods, and leathers. Daat99's system adds a TON of new content to the game, so you should review that script too. Now, How to edit some of the most commonly edited files.
 
Editing Skill gain speeds:

Editing skill gain is quite simple, Just head over to runuofolder\scripts\misc\Skillcheck.cs
 
Now, As you can see there is some anti-macro code. If you disable these, They will make skillgain Much easier. However note, this will not increase actual skill gain speed, but will turn off the code that prevents you from getting only 3 gains in one tile. Turn off whichever anti macro codes you wish, I turn them all off. Now, want to edit the actual skill gain speed? Okay, easy enough. Now. Go to Line 127. Line 127 should be this "gc /= 2;" 2 is the skillgain number. 10 would be REALLY slow gain, while .25 would be fast gain. I suggest starting off at .50 and working your way around, use different skills, and see which speed is right for you. NOTICE. you must also edit the "gc /= 2;" Below line 127, there are two, edit them both to the same thing. There you go! you edited skill gain speed =P.
 
Editing Starting Items:

This brings in some customization, and a sense of 'newness' or change, to the new player. Go ahead and open
runuofolder\scripts\misc\charactercreation.cs This file is THE file to edit for creating characters (obviously). Now, back to the point, open this file, scroll down half a page... see anything familiar..yup its the crappy normal starting items, a book? man come on! how ridiculous. Lets start your player with an ethereal mount! see the line "PackItem( new Candle() );" ?? This line shows you, its very, very easy too add more items to the players backpack on upon their creation. now. For a new ethereal, we would do something like PackItem( new EtherealLlama() ); I'm sure you can see where to put it.. try it out.. YOU have to learn some stuff too you know =P I will give you an empty template for giving a player an item at startup, Along with color coded brackets to tell you what goes where PackItem( new item() ); Now, See the brackets highlighted in red? Those are for stating how many of the item you wish to give the player, If its a non-stackable item, you bypass that, and leave the brackets empty (do not put a 0, leave it empty). Now, say if you have some bandages, you would do something like this new bandage( 10 ) ); And that would create 10 bandages in the players backpack (obviously that wasn't the whole line of code, just an example. And just a warning, NEVER forget your parentheses ( ) Brackets [ ] or semicolons ; If you do, it'll suck, trust me, lol.
 
UPDATE SEPT 5 2008
A lot of you have been asking "how do i script?" Well to be honest.. no one can tell you how to script.. you have to learn for yourself and go from there. I learned to script the same way all the noobs here do. everyone told me to go edit a script.. small parts.. and get it to work. My advice is the same.. Go edit a non vital script (like a weapon) a few times, without copy pasting. The mind can learn much easier when you do it yourself. scripting is like learning another language, or relearning math. Its quite simple and becomes systematic when you get it down. So before you ask how to script... just try. Download a simple weapon script from here on the forums, edit it up a bit.. look at effects of other weapons and try to do multiple effects or change the color or hit chances... whatever... that's all it starts with. The only thing holding you back, is you.
 
CharacterCreation.cs
 
\runuo\Scripts\Misc\CharacterCreation.cs
 
This file contains the items given to a character on startup. This script also calls upon testcenter.cs to see if test center is enabled, if it is, all the items you see almost immediately will be given to a character.
 
To edit items given to a character is quite simple, and i invite you to try.
 
« Last Edit: May 09, 2016, 06:47:16 PM by Archon »
UO Central - Owner

Archon

  • UO Central - Owner
  • Administrator
  • Full Member
  • *****
  • Posts: 122
    • View Profile
    • UO Central
Re: How-to-guide to make a RunUO shard
« Reply #1 on: June 24, 2014, 04:15:33 PM »
How to make a RunUO shard by Newbie Dropped

Ok so i have been working on my own server for quite a while now, while i am no computer genious i have found quite a few outdated links. So now that i have got my server up and going i would like to post the links you need to get it up and going.

 1st) To download UO
 http://download.cnet.com/Ultima-Online-Mondain-s-Legacy-client/3000-7540_4-10432237.html
 2nd) To download RAZOR
 http://www.uorazor.com or http://www.uosteam.com
 3rd) To download RUNUO
 www.runuo.net and select the core you want to use from the tools/download sections
4th) To download 7-zip (if needed this is to unzip)
 http://www.7-zip.org/
 5th) To get your IP
 http://www.whatsmyip.us/

 From Here you have everything you need for a private server. If you want to make it public it will take some more work, now as far as i know, all i had to do, whas go to into Scripts, Misc, then serverlist.cs(i used notpad to open and edit), then you just look for this(highlighted in red)

 using System;
 using System.IO;
 using System.Net;
 using System.Net.NetworkInformation;
 using System.Net.Sockets;
 using Server;
 using Server.Network;
 namespace Server.Misc
 {
 public class ServerList
 {
 /*
 * The default setting for Address, a value of 'null', will use your local IP address. If all of your local IP addresses
 * are private network addresses and AutoDetect is 'true' then RunUO will attempt to discover your public IP address
 * for you automatically.
 *
 * If you do not plan on allowing clients outside of your LAN to connect, you can set AutoDetect to 'false' and leave
 * Address set to 'null'.
 *
 * If your public IP address cannot be determined, you must change the value of Address to your public IP address
 * manually to allow clients outside of your LAN to connect to your server. Address can be either an IP address or
 * a hostname that will be resolved when RunUO starts.
 *
 * If you want players outside your LAN to be able to connect to your server and you are behind a router, you must also
 * forward TCP port 2593 to your private IP address. The procedure for doing this varies by manufacturer but generally
 * involves configuration of the router through your web browser.
 *
 * ServerList will direct connecting clients depending on both the address they are connecting from and the address and
 * port they are connecting to. If it is determined that both ends of a connection are private IP addresses, ServerList
 * will direct the client to the local private IP address. If a client is connecting to a local public IP address, they
 * will be directed to whichever address and port they initially connected to. This allows multihomed servers to function
 * properly and fully supports listening on multiple ports. If a client with a public IP address is connecting to a
 * locally private address, the server will direct the client to either the AutoDetected IP address or the manually entered
 * IP address or hostname, whichever is applicable. Loopback clients will be directed to loopback.
 *
 * If you would like to listen on additional ports (i.e. 22, 23, 80, for clients behind highly restrictive egress
 * firewalls) or specific IP adddresses you can do so by modifying the file SocketOptions.cs found in this directory.
 */
 public static readonly string Address = null;
 public static readonly string ServerName = null;
 public static readonly bool AutoDetect = true;
 public static void Initialize()
 {
 if ( Address == null ) {
 if ( AutoDetect )
 AutoDetection();

 AND CHANGE IT the first null should be your IP address in hiphens "127.0.0.123" thats an example the next red null should be changed to the name you want your shard in hiphens "example MY TEST SHARD" so it would look like this

 using System;
 using System.IO;
 using System.Net;
 using System.Net.NetworkInformation;
 using System.Net.Sockets;
 using Server;
 using Server.Network;
 namespace Server.Misc
 {
 public class ServerList
 {
 /*
* The default setting for Address, a value of 'null', will use your local IP address. If all of your local IP addresses
 * are private network addresses and AutoDetect is 'true' then RunUO will attempt to discover your public IP address
 * for you automatically.
 *
 * If you do not plan on allowing clients outside of your LAN to connect, you can set AutoDetect to 'false' and leave
 * Address set to 'null'.
 *
* If your public IP address cannot be determined, you must change the value of Address to your public IP address
 * manually to allow clients outside of your LAN to connect to your server. Address can be either an IP address or
 * a hostname that will be resolved when RunUO starts.
 *
* If you want players outside your LAN to be able to connect to your server and you are behind a router, you must also
 * forward TCP port 2593 to your private IP address. The procedure for doing this varies by manufacturer but generally
 * involves configuration of the router through your web browser.
 *
 * ServerList will direct connecting clients depending on both the address they are connecting from and the address and
 * port they are connecting to. If it is determined that both ends of a connection are private IP addresses, ServerList
 * will direct the client to the local private IP address. If a client is connecting to a local public IP address, they
 * will be directed to whichever address and port they initially connected to. This allows multihomed servers to function
 * properly and fully supports listening on multiple ports. If a client with a public IP address is connecting to a
 * locally private address, the server will direct the client to either the AutoDetected IP address or the manually entered
 * IP address or hostname, whichever is applicable. Loopback clients will be directed to loopback.
 *
* If you would like to listen on additional ports (i.e. 22, 23, 80, for clients behind highly restrictive egress
 * firewalls) or specific IP adddresses you can do so by modifying the file SocketOptions.cs found in this directory.
 */
 public static readonly string Address = "127.0.0.123";
 public static readonly string ServerName = "MY TEST SHARD";
 public static readonly bool AutoDetect = true;
 public static void Initialize()
 {
 if ( Address == null ) {
 if ( AutoDetect )
 AutoDetection();

 That would make it public you just save the file, and boot up your run uo, now this works if you have a static Ip address if its dynamic it will take quite abit more work, but i just wanted to get the links up thanks and i hope this helps
« Last Edit: May 09, 2016, 06:28:13 PM by Archon »
UO Central - Owner

Archon

  • UO Central - Owner
  • Administrator
  • Full Member
  • *****
  • Posts: 122
    • View Profile
    • UO Central
How do I create a runuo shard by Vorspire
« Reply #2 on: June 24, 2014, 05:10:54 PM »
"How do I create a runuo shard" by Vorspire

RunUO https://www.runuo.net has a variety of cores to choose from or you can work with the latest release from Mark Sturgil's github repository https://github.com/runuo/runuo

Quick start: Edit Scripts/Misc/DataPath.cs and Scripts/Misc/ServerList.cs with the correct configuration options. Use your computer's internal network IP to ensure privacy and access to only networked computers. Your router will probably block port 2593 to public access anyway, this is nothing for you to worry about, but for anyone starting up a new shard, it can be a nightmare step :P

When you're done editing those two files, just launch RunUO.exe to start your shard up.

You will need Razor in order to connect to your shard, the most up to date releases of Razor can be found here: https://github.com/msturgill/razor/releases or http://www.uorazor.com

When you install Razor, simply boot it up, enter the IP you used in ServerList.cs and login with the Owner account you made when you first booted up RunUO.



« Last Edit: May 09, 2016, 06:40:50 PM by Archon »
UO Central - Owner

Archon

  • UO Central - Owner
  • Administrator
  • Full Member
  • *****
  • Posts: 122
    • View Profile
    • UO Central
Re: How-to-guide to make a RunUO shard
« Reply #3 on: February 07, 2015, 02:29:18 PM »
Post by Nozgo1

Here is an updated set of instructions on how to create an ultima online shard using the latest runuo emulator

First things first, You will need to make sure you have the following programs installed on your computer. Have them running, and verify the correct versions of each.

1.) .NET Framework - Get version 4. You can either get it from windows update or direct from Microsoft's download page.
http://www.microsoft.com/en-us/download/details.aspx?id=17851

2.) Ultima Online Client - This is the actual game itself. Grab the Classic Client directly from UO's website, install it, and let it patch all the way.
http://www.uo.com/Client-Download

3.)Razor 1.0.13 - You need this multi-purpose tool to log into your, or anyone else's shard. It is also a very useful tool once in-game to control macro's and several other easy-of-use options.
http://www.uorazor.com or http://www.uosteam.com

4.)Download newest release package of RunUO 2.5.
This is the actual Server/Shard that your world will be running on
https://github.com/runuo/runuo/releases

5.)Download the newest version of Neruns World Spawner, grab RunUO-2.5 + Rev138.7z
https://www.dropbox.com/sh/9hyqibenw0hhuvp/_OUSf5_roS

Now currently, because to the way Neruns and Runuo or currently packaged, you will need to unzip them both into their own folders. Once done, copy all the files from the Neruns folder into the Runuo folder. When all of the pop-ups start, always choose merge if it is an option. If merge is not an option, then it is asking you if you want to copy over the current file or keep it. always choose the newest file. Once that is all done, you are ready to double click your RunUo EXE file. That starts your Shard running, and you now have an Ultima Online Shard

Now there is a lot more you will need to do to actually start playing. I am going to list a few things here that you need to do. Some are self explanatory, some you will have to search these forums for to get further instructions. I just wanted to bring all the newest "usable" Links together.

6.)In your scripts folder you will have to find the "dataPath.cs" file. Open it in Notpad++ and edit this section with your "exact" path to your Ultima Online Classic install.

public class DataPath
    {
        /* If you have not installed Ultima Online,
        * or wish the server to use a separate set of datafiles,
        * change the 'CustomPath' value.
        * Example:
        *  private static string CustomPath = @"C:\Ultima Online Classic";
        */
        private static string CustomPath = @"C:\Ultima Online Classic";

Here is the original post:
http://www.runuo.com/community/threads/how-to-start-from-scratch.535806/
« Last Edit: March 18, 2016, 04:37:30 PM by Archon »
UO Central - Owner