The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[TUTORIAL] SphereServer Setup
Author Message
Mordaunt
Super Moderator
****

Posts: 1,237
Likes Given: 26
Likes Received: 55 in 43 posts
Joined: Mar 2012
Reputation: 35



Post: #1
[TUTORIAL] SphereServer Setup
This is a brief guide to getting your server to start:

After you have downloaded and unpacked the server to your computer there are a few things you must do in order to get it up and running.

To begin with, there are some changes you will need to make to your sphere.ini file.
while there are a lot of settings in sphere.ini I am only covering the ones here that you need in order to start your server

Code:
[SPHERE]
// Name of your Sphere shard
ServName=MyShard
// The IP of your server, this will be 127.0.0.1 almost always
ServIP=127.0.0.1
// The port of your server, this is 2593 by default
ServPort=2593
This block of text does not usually need much editing, except for the ServName line to give your shard it's own identity.
If your server is running on a different port obviously that line will have to be edited also.

If you are using the sphere nightly builds the team does require you to add the line

AGREE=1

Somewhere under the [SPHERE] block, right under the text listed above is not a bad place to do it.
The purpose behind this is that the nightly builds obviously may have bugs in the build, that does not mean that they are not suitable for live servers, by inserting that line you are making clear that you understand that this is not a build that is officially considered "stable"

At the bottom of the sphere.ini file you will find the following block of text:

Code:
///////////////////////////////////////////////////////////////
//////// Connection Information
///////////////////////////////////////////////////////////////

//First line should be the name of your shard (this is what people see when they connect)
//Second line should be the IP of your shard (this is almost always 127.0.0.1)
//Third line should be the port of your shard (this should be whatever ServPort is set to)

//Uncomment next 3 lines below this if you have a router
//First line should be a name different than your shard name above this
//Second line should be your real/external IP (www.whatismyip.com)
//Third line should be the shard port (this should be whatever ServPort is set to)
[SERVERS]
MyShard
127.0.0.1
2593
[code]

If you are not behind a router this is fine, though you may wish to change your shard name here also.
If you ARE behind a router you need to do one of two things, either edit the block of text:

[code]
//External
//my.ip.goes.here
//2593
The ip you enter here would be your external one, if i doubt you can find it with something like whatismyip.com

Though this is considered to be the "old" way of doing it and will result in 2 lines displaying on your server's login screen, the other method is to open the sphere_serv_triggers.scp file which is located in your scripts folder and insert your external IP there

Code:
// This function is called on server startup
[FUNCTION f_onserver_start]
serv.servip=my.ip.goes.here

Next you will find that sphere is missing some files it needs to run. The reason behind this though not clear, I beleive is to make upgrading from version to version easier without the risk of overwriting said files.
However

You will need to create a folder called save.
Inside this folder you will need to create and save 5 files

sphereworld.scp
spheredata.scp
spherechars.scp
spheremultis.scp
spherestatics.scp

Each of these files should be empty except for the text [eof]
These files MUST be saved as a .scp file in order to work, if saved as .txt you will receive errors from sphere saying that they were not found.

Next you will need to create a folder called accounts
Inside this folder you will need to create and save a file called

sphereaccu.scp

The same rules apply as to the files you previously created, though this one does not require the [eof] text.

You may also find that you need to download the libMySQL.dll file, which is available at the bottom of this page: PreReleases

That is it for sphereserver, however to get your UO client to log into your shard you will have to either edit the login.cfg file in your UO folder so that it points to your server's address, or use a program like Razor or another loader which will allow you to switch the IP address you are connecting to without actually editing any game files.

[Image: 2nis46r.jpg]
(This post was last modified: 12-22-2012 03:07 AM by Mordaunt.)
12-22-2012 02:44 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
EtherealArts
Apprentice
*

Posts: 5
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Mar 2015
Reputation: 0



Post: #2
RE: [TUTORIAL] SphereServer Setup
Im getting the error message when i try to start sphere server. PLEASE HELP ME I WANT MY OWN SHARD REALLY BADLY!

Sphere Version 0.56b-Pre-Release [WIN32] by http://www.sphereserver.com, compiled at Jun 16 2013 (19:31:47), internal build #1590
Expansion maps supported:
FATAL:The sphere.INI file is corrupt or missing
FATAL:MUL File 'multi.idx' not found...
FATAL:Server terminated by error -3!



I know theres something wrong here but I dont know what to do or where to put it! Try to be specific please!


///////////////////////////////////////////////////////////////
//////// File Locations
///////////////////////////////////////////////////////////////
// Directory where spheretables.scp is located, from there we will
// load any additional scripts
ScpFiles=scripts/C:\Users\Brett\Desktop\Server\scripts

// Where your sphereworld.scp and spherechars.scp are located
WorldSave=save/C:\Users\Brett\Desktop\Server\save

// Where your sphereaccu.scp and sphereacct.scp is located
AcctFiles=accounts/C:\Users\Brett\Desktop\Server\accounts

// Where your UO installation is located. This need: map0.mul, statics0.mul,
// staidx0.mul, multi.mul, multi.idx, hues.mul, tiledata.mul.
// Optional files: verdata.mul, mapX.mul/staticsX.mul/staidxX.mul for higher
// maps support (Malas, etc).
//
// Note that if not set, sphere will scan windows registry to auto-detect it
//MulFiles=mul/

// Where your log files will be saved by sphere
Log=logs/C:\Users\Brett\Desktop\Server\logs

// To activate ML-sized map #0 uncomment the next line (don't forget to uncomment
// sphere_map0_ml.scp and sphere_map_points0_ml.scp in spheretables.scp if you want
// to use the default areas)
//Map0=7168,4096,-1,-1

// To activate ML-sized map #1 uncomment the next line
//Map1=7168,4096,-1,-1

// To enable the use of MapDif*.mul and StaDif*.mul files, set this to 1.
UseMapDiffs=0
03-08-2015 11:01 AM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #3
RE: [TUTORIAL] SphereServer Setup
The errors are :


ScpFiles=scripts/C:\Users\Brett\Desktop\Server\scripts

should be

ScpFiles=C:\Users\Brett\Desktop\Server\scripts


WorldSave=save/C:\Users\Brett\Desktop\Server\save

should be

WorldSave=C:\Users\Brett\Desktop\Server\save

// Where your sphereaccu.scp and sphereacct.scp is located
AcctFiles=accounts/C:\Users\Brett\Desktop\Server\accounts

should be

AcctFiles=C:\Users\Brett\Desktop\Server\accounts


// Where your log files will be saved by sphere
Log=logs/C:\Users\Brett\Desktop\Server\logs

should be

Log=C:\Users\Brett\Desktop\Server\logs
(This post was last modified: 03-08-2015 11:08 AM by darksun84.)
03-08-2015 11:06 AM
Find all posts by this user Like Post Quote this message in a reply
EtherealArts
Apprentice
*

Posts: 5
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Mar 2015
Reputation: 0



Post: #4
RE: [TUTORIAL] SphereServer Setup
i changed it it still gives me the same message Sad

does it have something to do with this?


// Where your UO installation is located. This need: map0.mul, statics0.mul,
// staidx0.mul, multi.mul, multi.idx, hues.mul, tiledata.mul.
// Optional files: verdata.mul, mapX.mul/staticsX.mul/staidxX.mul for higher
// maps support (Malas, etc).
//
// Note that if not set, sphere will scan windows registry to auto-detect it
//MulFiles=mul/C:\Program Files\Electronic Arts\Ultima Online
(This post was last modified: 03-08-2015 12:37 PM by EtherealArts.)
03-08-2015 12:15 PM
Find all posts by this user Like Post Quote this message in a reply
darksun84
Sir Spamalot
****

Posts: 1,687
Likes Given: 245
Likes Received: 162 in 151 posts
Joined: Mar 2012
Reputation: 35



Post: #5
RE: [TUTORIAL] SphereServer Setup
This wrong

//MulFiles=mul/C:\Program Files\Electronic Arts\Ultima Online


Should be

MulFiles=C:\Program Files\Electronic Arts\Ultima Online
03-08-2015 08:15 PM
Find all posts by this user Like Post Quote this message in a reply
bororeh
Apprentice
*

Posts: 13
Likes Given: 1
Likes Received: 0 in 0 posts
Joined: May 2016
Reputation: 0



Post: #6
RE: [TUTORIAL] SphereServer Setup
[SPHERE]
ServName=My Shard
ServIP=127.0.0.1
ServPort=2593

[SERVERS]
My Shard
127.0.0.1 (sphere.ini comments tell me to use my external ip, but if I do so, I get this error: "FATAL:Unable to bind listen socket xxx.xxx.xxx.xxx port 2593 (error code: -1)")
2593

[FUNCTION f_onserver_start]
SERV.ServIP=xxx.xxx.xxx.xxx (my external ip here)

LoginServer = 127.0.0.1,2593 <- this works like a charm, but only for me, of course
LoginServer = 192.168.0.1,2593 <- this doesn't connect, no messages at the console
LoginServer = xxx.xxx.xxx.xxx,2593 <- this doesn't connect, no messages at the console
LoginServer = 192.168.0.14 <- with this I can see the "shard selection" screen (and the console shows that one client connected), however, when I choose the shard, the client crashes and the console only shows that one client was disconnected (no errors appear)

Am I missing something? Tried lots of combinations but no success Sad
(This post was last modified: 10-02-2020 12:37 AM by bororeh.)
10-01-2020 10:20 AM
Find all posts by this user Like Post Quote this message in a reply
lujun9972
Apprentice
*

Posts: 2
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Jan 2019
Reputation: 0



Post: #7
RE: [TUTORIAL] SphereServer Setup
I have met the same problem, how did you fix it, please?
(10-01-2020 10:20 AM)bororeh Wrote:  [SPHERE]
ServName=My Shard
ServIP=127.0.0.1
ServPort=2593

[SERVERS]
My Shard
127.0.0.1 (sphere.ini comments tell me to use my external ip, but if I do so, I get this error: "FATAL:Unable to bind listen socket xxx.xxx.xxx.xxx port 2593 (error code: -1)")
2593

[FUNCTION f_onserver_start]
SERV.ServIP=xxx.xxx.xxx.xxx (my external ip here)

LoginServer = 127.0.0.1,2593 <- this works like a charm, but only for me, of course
LoginServer = 192.168.0.1,2593 <- this doesn't connect, no messages at the console
LoginServer = xxx.xxx.xxx.xxx,2593 <- this doesn't connect, no messages at the console
LoginServer = 192.168.0.14 <- with this I can see the "shard selection" screen (and the console shows that one client connected), however, when I choose the shard, the client crashes and the console only shows that one client was disconnected (no errors appear)

Am I missing something? Tried lots of combinations but no success Sad
10-09-2024 12:39 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)