How to Create your own Shard!

Open discussion forum. For topics that do not fit anywhere else.
Kirin
New User
Posts: 7
Joined: Sat Nov 25, 2006 11:49 am

How to Create your own Shard!

Post by Kirin »

Greetings friends !

Thank you to the community who has helped me create my own Shard, now I will hope to enlighten all those who seek to create a shard of their own. This guide assumes you start with nothing, and know nothing. Questions and/or comments are greatly appreciated though I don't promise to be prompt on response :)


Step 1: Creating the Directory and Downloading the necessary files
  • Create a folder somewhere easily reached:
    (like your desktop or the root of your main hard drive (C:\)) called 'My UO Shard' Make sure to save all of the following in this folder !


    Download the latest UO client here:
    at this time it's 'The Legacy of Mondain' As it says.. largedownloads.ea.com .. do this first and get comfortable while we do the rest eh?


    Download the 097 'Core' here.
    don't unzip it yet just relax and lets download
    the next item :)


    Download the 097 'Distro' here.
    again .. don't do anything with it..


    Download UORice here
    do nothing !
Step 2: Extracting/Installing files and Fleshing out the 'My UO Shard' Directory
  • Unzip the following to your 'My UO Shard' folder:
    -Core
    -Distro
    -UORice


    Make a folder called 'Original Downloads':
    Or something as equally bland and obvious. Insert all of the .zip files into it so you have a reference in case problems occur (this is a sure thing my friends!)

    Is UO done being a stupidly large DL ??:
    It is! ok good go ahead and install it to its default path (C:\Program Files). When this is done move the uoml_setup file to the 'Original Downloads' folder for archival purposes.

    Open the UORice folder and double click the executable:
    You've just removed the client side encryption from UO ! awesome work. Navigate to UO directory (C:\Program Files\EA Games\Ultima Online Mondain's Legacy) and look for two icons 'No_Crypt_Client_2d' + 'No_Crypt_Client_3d'. if you see them then UORice has done it's job!! Lets clean up our work space and delete the 'UORice' folder from our 'My UO Shard' folder (If for some reason you need it again .. we have the zip file stored!)

    Rename the '097-BasicSetup' folder:
    To what you want the name of your shard to be ex. 'Kirins World' .. this is btw NOT a necessary step but it eases the mind and makes it less stressful to take in than '097-BasicSetup'.

    Open then 'pol-core-097-2006-10-29-RC-Coregina' folder:
    Copy all of the contents of this folder and paste t hem into the now renamed 'Kirins World' folder. It will ask you if you want to replace your 'scripts' folder , say yes. Go ahead and now delete the ever ridiculously named 'pol-core-097-2006-10-29-RC-Coregina' folder, as it has been properly gutted.
Step 3: Compiling, Converting and Perhaps.. Utter Confusion!
Ok now lets begin compiling the scripts that will maintain the various aspects/mechanics of your shard and help setup your 'realm'!
  • Navigate to the 'scripts' folder:
    In your 'My (kirins) World' directory. You'll see a file named 'example.cfg' but you'll note the type of the file is not a CFG instead it is an EXAMPLE file. Go ahead and open this in notepad. The first five lines tell the program 'ecompile' where to look for the various .src files to compile, it will look something like this:

    Code: Select all

    ModuleDirectory 	c:\cvsdistro\pol\scripts\modules
    IncludeDirectory        c:\cvsdistro\pol\scripts
    PolScriptRoot		  c:\cvsdistro\pol\scripts
    PackageRoot		c:\cvsdistro\pol\pkg
    PackageRoot		c:\cvsdistro\pol\devpkg
    GenerateListing		1
    GenerateDebugInfo	1
    GenerateDebugTextInfo	1
    DisplayWarnings 1
    CompileAspPages 1
    AutoCompileByDefault 1
    UpdateOnlyOnAutoCompile 1
    OnlyCompileUpdatedScripts 1
    DisplaySummary 1
    GenerateDependencyInfo 1
    DisplayUpToDateScripts 0
    
    You will now change where ecompile looks to the proper directory, in your case, following the examples in this tutorial it would come out as follows:

    Code: Select all

    ModuleDirectory 	c:\My UO Shard\Kirins World\scripts\modules
    IncludeDirectory 	c:\My UO Shard\Kirins World\scripts
    PolScriptRoot		 c:\My UO Shard\Kirins World\scripts
    PackageRoot		c:\My UO Shard\Kirins World\pkg
    PackageRoot		c:\My UO Shard\Kirins World\devpkg
    GenerateListing		1
    GenerateDebugInfo	1
    GenerateDebugTextInfo	1
    DisplayWarnings 1
    CompileAspPages 1
    AutoCompileByDefault 1
    UpdateOnlyOnAutoCompile 1
    OnlyCompileUpdatedScripts 1
    DisplaySummary 1
    GenerateDependencyInfo 1
    DisplayUpToDateScripts 0
    
    Now that it knows where to look save the file as ecompile.cfg. Now some people depending on karma and such will have difficulty figuring out how to get it from type .example to type .cfg. If this is you then copy a .cfg file from somewhere else to your scripts directory and rename it ecompile.cfg. Open it in notepad or something else and replace the contents appropriately.

    Now there are some lines missing from the vitalInit.src file so we must add them prior to compilation to make sure the emulator can read from them and consequently boot up properly !


    Navigate to and open vitalInit.src:
    For this example would be in: C:\My UO Shard\Kirins World\pkg\attributes\hooks. Add the following to the bottom of the file and save it:

    Code: Select all

    exported function GetHitsRegenRate(mobile)
    	return 10000;
    endfunction
    
    exported function GetHitsMaximumValue(mobile)
    	return 10000;
    endfunction
    
    Start StartHere.bat:
    In your 'My(kirins) World' folder you'll find a file called 'starthere.bat'. Click it and you'll be presented with a menu select option 'b' and press return. Next, select option 'd' and press return in order to compile all the .src files you just told ecompile to look for. Close this out, you now have the barebones scripts for getting your world started !

    Create a new folder:
    In your 'My(kirins) World' folder called 'MUL'. Open it. In a new window navigate to your primary UO directory and copy the following files:

    map0.mul
    multi.idx
    multi.mul
    staidx0.mul
    statics0.mul
    tiledata.mul
    verdata.mul

    Into your MUL folder. Run the 'starthere.bat' program again and select 'a' RealmGen tools. A variety of options will come up this example assumes you're creating an emulated version of UO MOndains Legacy, and I will not cover how to do the others - it's straightforward and I'm sure you CAN figure it out. Select option 'e' for Britannia realm, and then select 'b' for the Mondains Legacy extensions.
    THIS PART TAKES A WHILE SO RELAX AND DONT PRESS ANYTHING! It will pause at "Initializing files:" so wait a bit then it will proceed to slowly slowly slowly convert the files we just put in the MUL folder to something readable by the emulator. Wait until this is done. After it finishes a 'primary conversion' some things will scroll and then again it will return to the 'Converting' dialog, this is normal just wait it out again :). When it says 'press any key to continue... do so !
THE FINALE!
  • Get back to the main menu of the 'starthere.bat' program:
    Select option 'd' to 'start POL', Some things will scroll and you may get a NON FATAL error about a start.ecl file or starting script - this is for customized onLoad type options and won't hinder starting the server so disregard it for now. Lines will scroll and it should end all dandy with a line like:

    Listening for HTTP requests on port 5000

    This means as it says.. it's waiting for people to login. Minimize this window.

    Open your main UO folder:
    double click the icon produced by UORice entitled:

    No_Crypt_Client_2d.exe

    The loading screen for UO will appear and when prompted for a user name and password enter:

    admin
    admin
Select the 'POL Local Server or whichever appears' and create a character, you will load into your barebones shard! Everything is customizable with the emulator it's just a matter of figuring it out, but hopefully this document will allow you to get on an even and exciting ground where you can SEE results in game. From this point on the section of this webpage entitled 'Documentation' would be most useful.

If there are any problems or inquiries I regret to inform you that I doubt I can help ! But if you feel the need to ask me directly then do so. The POL community is polite and helpful but we are all busy human beings. Patience and perserverance are all that is needed to enjoy the enormous work of this community !

Kindest Regards,
Kirin
Poi
Grandmaster Poster
Posts: 298
Joined: Fri Apr 14, 2006 9:36 am

Post by Poi »

Very nice :) Would be very helpful to new users :D
hamtardo
New User
Posts: 2
Joined: Wed Jan 03, 2007 9:58 am

whats wrong

Post by hamtardo »

I just used this guide and got everything to work the only problem i had was i didnt have a verdata.mul file in the uo folder so i left it out. I dont know if thats because i was using uo gold instead of mondains legacy but it is fully patched as of like 2 weeks ago. But when i tried to log onto my server i entered the username and password and the only shard i could select was Uo Gamers Demise which definatly isnt my shard why is that. and how do i get onto my shard
Shinigami
Former Developer
Posts: 308
Joined: Mon Jan 30, 2006 9:28 am

Post by Shinigami »

verdata.mul... no problem. newer clients doesn't support it anymore.

your other problem... did u've entered your shard into clients login.cfg?

Shinigami
Martnz
New User
Posts: 5
Joined: Sat Jan 06, 2007 3:31 am

Post by Martnz »

I do everything like you say bet when i pres start POL Warning! pkg/attributes/hooks/vitalInit.ecl does not exist!
Exception caught while loading script pkg/attributes/hooks/vitalInit.ecl: Unable
to open pkg/attributes/hooks/vitalInit.ecl for reading.
Unable to read script 'pkg/attributes/hooks/vitalInit.ecl'
Error reading script pkg/attributes/hooks/vitalInit.ecl
Error reading configuration file pkg/attributes/config/vitals.cfg:
Export Script pkg/attributes/hooks/vitalInit.ecl not found
Element: Vital Life, found on line 1
Server Shutdown: load_vitals_cfg: load_packed_cfgs
Execution aborted due to: Configuration file error :evil: :evil:
Shinigami
Former Developer
Posts: 308
Joined: Mon Jan 30, 2006 9:28 am

Post by Shinigami »

Martnz wrote:I do everything like you say
u're sure that u've made this part?
Step 3: Compiling, Converting and Perhaps.. Utter Confusion!

Start StartHere.bat:
In your 'My(kirins) World' folder you'll find a file called 'starthere.bat'. Click it and you'll be presented with a menu select option 'b' and press return. Next, select option 'd' and press return in order to compile all the .src files you just told ecompile to look for. Close this out, you now have the barebones scripts for getting your world started !
Shinigami
Martnz
New User
Posts: 5
Joined: Sat Jan 06, 2007 3:31 am

Post by Martnz »

Could not find C:/My UO Shard/Kirins World/scripts/ecompile.cfg; using defaults.
Shinigami
Former Developer
Posts: 308
Joined: Mon Jan 30, 2006 9:28 am

Post by Shinigami »

and? don't understand the problem here...

ecompile doesn't need the ecompile.cfg

Shinigami
Martnz
New User
Posts: 5
Joined: Sat Jan 06, 2007 3:31 am

Post by Martnz »

where can i see what should i write in loginserver??
User avatar
CWO
POL Expert
Posts: 1160
Joined: Sat Feb 04, 2006 5:49 pm

Post by CWO »

in pol.cfg, you have a ListenPort. Thats the port you use in the loginserver. Your IP or DNS name should be put into the IP part of the loginserver. Also, you have to make sure /config/servers.cfg is configured correctly. It should have at least 1 entry and it should reference your server.

Name - The name that appears on the shard selection screen.
IP - The IP or DNS name of your server
Port - The port of your server
Martnz
New User
Posts: 5
Joined: Sat Jan 06, 2007 3:31 am

Post by Martnz »

Where there is no LIstenPort ???????
User avatar
CWO
POL Expert
Posts: 1160
Joined: Sat Feb 04, 2006 5:49 pm

Post by CWO »

ListenPort should be in POL.cfg

It should be an entry like

ListenPort=5003
User avatar
Austin
Former Developer
Posts: 621
Joined: Wed Jan 25, 2006 2:30 am

Post by Austin »

It uses uoclient.cfg for setting up listener ports, not pol.cfg

pol.cfg's listenport setting is the old way to set it up
MuadDib
Former Developer
Posts: 1091
Joined: Sun Feb 12, 2006 9:50 pm

Post by MuadDib »

Not to mention, if it's saying it cannot open listenport...... either reboot the pc, or make sure nothing else is already using that port. It says that because it cannot bind that port number to POL.
Balmunk
New User
Posts: 5
Joined: Fri Jan 12, 2007 4:46 pm

Post by Balmunk »

Helo i'm new and i am having the exact same problem he is having i did step 3 perfectly. i dont know whats going on with this but if you can help me plz do
Martnz
New User
Posts: 5
Joined: Sat Jan 06, 2007 3:31 am

Post by Martnz »

Isnt other way how to find what should i write in loginserver or tell me what folder and what file should i open ?????//
shanoova
New User
Posts: 14
Joined: Wed Jan 31, 2007 1:40 am

i to have a problem

Post by shanoova »

ok, first of when i open the uorice thing it does not create a 'No_Crypt_Client_2d' also, when i ignore this fact and do everything else accept the copying of verdata.mul because i myself do not have that in the my UO folder, but if i ignore that and open the 'No_Crypt_Client_3d' i cannot logg in under an admin or anything, it simply says i was D/Ced, i am in desperate need of your help, please tell me how to fix this problem as i am trying to set up a privet server for me and some friends to play on,

sincerely: Shanoova.
Yukiko
Distro Developer
Posts: 2825
Joined: Thu Feb 02, 2006 1:41 pm

Post by Yukiko »

One thing you need to know is that with the introduction of Age of Shadows there is no longer a verdata.mul file.

My first question is, do you have thge lates version of UO_Rice and have you set the login.cfg file in your UO folder to point to the proper IP and port for your server?
Yukiko
Distro Developer
Posts: 2825
Joined: Thu Feb 02, 2006 1:41 pm

Post by Yukiko »

One other thing, be sure UO_Rice is in your UO folder.
shanoova
New User
Posts: 14
Joined: Wed Jan 31, 2007 1:40 am

Post by shanoova »

omg, lol, i didnt do that i thought that the UO_Rice thing had to be in myshard thing, like the "kirins world thing" ill give that a try :D
shanoova
New User
Posts: 14
Joined: Wed Jan 31, 2007 1:40 am

Post by shanoova »

oh and yes i have the mondains legacy Fully up to date to,
shanoova
New User
Posts: 14
Joined: Wed Jan 31, 2007 1:40 am

Post by shanoova »

uhm yea and one other thing lol, i dont know if i have the newest version of rice, i downloaded it from that link that was there,
shanoova
New User
Posts: 14
Joined: Wed Jan 31, 2007 1:40 am

the error i get,

Post by shanoova »

this is the error i get,

Welcome to Lord Binary's UO-RICE version minus 3.33

Mode: NO_Crypt

error opening client dir 3
WARNING: LBR/NON LBR installation mismatch
. Might Cause Troubles, consider reintalling UO.

2D client <LBR/NON LBR mismatch, patchlevel:-1> : D:program files\EA GAMES\ULTIMA ONLINE MONDAINS LEGACY\UOTD.EXE

Trying to remove 2D-client encryption
encryption changes too huge, plz email the author about it
Error, not patched.

Trying to remove 3D-client encryption.
New client -file: D:\PROGRAM FILES\EA GAMES\ULTIMA ONLINE MONDAIN'S LEGACY\No_Cry successfully patched.

Thx for using UO-Rice !

Thats the message right there :D. ^_^ ^_^ ^_^
User avatar
CWO
POL Expert
Posts: 1160
Joined: Sat Feb 04, 2006 5:49 pm

Post by CWO »

If you're fully patched, 3.33 wont do it. You need 3.5.

http://uo.pspace.at/UO_RICE.htm

the download is at the bottom of the page.
shanoova
New User
Posts: 14
Joined: Wed Jan 31, 2007 1:40 am

Post by shanoova »

alright, i downloaded it, and i have downloaded your guy's Newest pol-core-097-2007-01-04-RC2-coregina.zip, i will resintall the game to make sure that i have messed up the game with the other ones i used, i will get back to you guys on it :D, thanks for the help :D ^_^
Post Reply