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-nmm6 (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-nmm6 (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-nmm6 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
(Solved) Multiple MAPPLANES/Facets
Author Message
TheDeviantMind
Apprentice
*

Posts: 2
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Aug 2012
Reputation: 0



Post: #1
(Solved) Multiple MAPPLANES/Facets
So, first of all, it's been awhile. I've been away from the SPHERE community for a good 5 or 6 years and alot has changed in that time with both SPHERE and Ultima Online. I'm going to have aloooooot of questions Smile But just one for now:

My goal is to have dungeons instanced. For each dungeon I'd like players to have the option to enter a public instance or a private instance. I think I remember being able to do this back in 55i by sending a player to one of 256 different MAPPLANES (.GO 5211 1747 0 17) That seems to no longer work. Atleast not the way I was hoping. Apparently MAPPLANES 0-5 correspond to the Map# files in the UO directory and everything above 5 defaults to MAPPLANE 0. So I did some reading on the forums and revisions, didn't find anything helpful, except that MAPPLANE was changed to MAP some time back. But I checked the SphereWiki and saw this under the Sphere.ini section:

MAPx=max_x,max_y,sector_size,real_map_number.

For example: MAP1=7168,4096,512,-1

will change map 1 size to 7168,4096, the sector sizes of map 1 to 512 tiles and the -1 means it'll call the default mul file for that map.

Another example:

MAP50=7168,4096,64,3

Will activate a map number 50 that has 7168,4096 as size, 64 as sector size and loads map3.mul, statics3.mul and staidx3.mul as it's map file


So I tried this in Sphere.ini

Map0=7168,4096,-1,-1
Map1=7168,4096,-1,-1
MAP2=2304,1600,32,2
MAP3=2560,2048,32,3
MAP4=1448,1448,8,4
MAP5=1280,4096,32,5
MAP6=7168,4096,64,0

Still doesn't work. When trying to go to MAP 6 the client crashes with the error Unknown facet 6 Sad Not sure what I'm doing wrong or if it's even possible to acheive what I'm going for with 56b at the moment. Any suggestions?
(This post was last modified: 08-07-2012 02:29 AM by TheDeviantMind.)
08-06-2012 03:36 AM
Find all posts by this user Like Post Quote this message in a reply
Anarch Cassius
Master
**

Posts: 273
Likes Given: 19
Likes Received: 10 in 9 posts
Joined: Mar 2012
Reputation: 2



Post: #2
RE: 56b - Multiple MAPPLANES/Facets
Standard client? It can't handle any more maps than are hardcoded. 56b isn't your problem, it's the EA client.

Look at Flourescence or Iris2.

Current Projects: Necromancy SCP overhaul. Custom Faction AI/System. Imbuing.
08-06-2012 07:58 AM
Find all posts by this user Like Post Quote this message in a reply
Terrikate
Apprentice
*

Posts: 30
Likes Given: 1
Likes Received: 2 in 2 posts
Joined: Mar 2012
Reputation: 1

Ultima Alianza

Post: #3
RE: 56b - Multiple MAPPLANES/Facets
MAPx=max_x,max_y,sector_size,real_map_number,map_id_client

Therefore... with that you have it.

MAP6=7168,4096,64,0,0
08-06-2012 08:38 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
TheDeviantMind
Apprentice
*

Posts: 2
Likes Given: 0
Likes Received: 0 in 0 posts
Joined: Aug 2012
Reputation: 0



Post: #4
RE: 56b - Multiple MAPPLANES/Facets
Hmm, interesting. I always thought multiple facets was something that was handled by SPHERE alone, not the client too. Anyway, problem solved. That did the trick, Terrikate, thank you. The question now is: Do I have to write completely new AREADEFS for every copy of a map that I define in Sphere.ini, or is there an easier way? For example, can I have every instance of Hythloth from MAP6 to MAP100 refer to the original AREADEFs in sphere_map0.scp or does each one have to have its own unique AREADEF?
08-07-2012 02:26 AM
Find all posts by this user Like Post Quote this message in a reply
Terrikate
Apprentice
*

Posts: 30
Likes Given: 1
Likes Received: 2 in 2 posts
Joined: Mar 2012
Reputation: 1

Ultima Alianza

Post: #5
RE: (Solved) Multiple MAPPLANES/Facets
You must create individual areas for each map. When there was only one map work exactly as you say, this you have to do it from more or less, the 56b version 2005, when Vjaka introduced the new maps support.
(This post was last modified: 08-07-2012 02:36 AM by Terrikate.)
08-07-2012 02:36 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Anarch Cassius
Master
**

Posts: 273
Likes Given: 19
Likes Received: 10 in 9 posts
Joined: Mar 2012
Reputation: 2



Post: #6
RE: (Solved) Multiple MAPPLANES/Facets
If the client is now accepting multiple maps freely this is a change. I remember it being impossible in the older days, you had to replace a region or use a different client. Of course last time I checked was before Tokuno was added.

Current Projects: Necromancy SCP overhaul. Custom Faction AI/System. Imbuing.
08-07-2012 06:16 AM
Find all posts by this user Like Post Quote this message in a reply
Terrikate
Apprentice
*

Posts: 30
Likes Given: 1
Likes Received: 2 in 2 posts
Joined: Mar 2012
Reputation: 1

Ultima Alianza

Post: #7
RE: (Solved) Multiple MAPPLANES/Facets
Was impossible to use maps ids higher than the allowed client without modifying the same. But using a single facet in several maps was possible before the introduction of new maps and now.
(This post was last modified: 08-07-2012 09:05 AM by Terrikate.)
08-07-2012 09:04 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
Anarch Cassius
Master
**

Posts: 273
Likes Given: 19
Likes Received: 10 in 9 posts
Joined: Mar 2012
Reputation: 2



Post: #8
RE: (Solved) Multiple MAPPLANES/Facets
Oh I see.

So if one wanted to make Felucca/Trammel splits for Ilshenar, Tokkuno and so on it would actually be quite easy?

Current Projects: Necromancy SCP overhaul. Custom Faction AI/System. Imbuing.
08-07-2012 06:26 PM
Find all posts by this user Like Post Quote this message in a reply
Extreme
Grandmaster Poster
***

Posts: 1,141
Likes Given: 217
Likes Received: 90 in 77 posts
Joined: May 2012
Reputation: 20

SphereCommunity

Post: #9
RE: (Solved) Multiple MAPPLANES/Facets
I know that you solved your question but I was reading the revisions for sector functions and found this:

Code:
08-01-05, Vjaka
- Added support for virtual maps. Now map numbers 0..255 are supported by the
  server.
- Map dimensions are now customizable in INI-file using by the following cmd:
  MAPx=max_x,max_y,sector_size,real_map_number.
  Here x - the map number for ingame useage (4rd coordinate of the coordinate).
  max_x - maximal X coordinate of the map (should be multiply of 8).
  max_y - maximal Y coordinate of the map (should be multiply of 8).
  sector_size - the sector size (you can play with this if you experience lags
    decreasing this value (should be multiply of 8 and both max_x and max_y).
  real_map_numer - number used by map files (like: 0 for map0, statics0).
  You can also change some attribute of the current map not redefining all
  values, skipping the ones you wish to be as default putting 0 instead (for
  real map number -1). For example, decreasing sector size for map 0 to 16
  from default value of 64 will look in INI file thus: "MAP0=0,0,16,-1".
  Please note, that no changes are applied when server is already started.
- Default map numbering has been changed (you can ovverride it easily by MAPx
  setting in sphere.ini). Now 0 = map0, 1 = map0, 2 = map2, 3 = map3, 4 = map4.

STEPS BEFORE CREATE A THREAD
- Check the revisions log;
- Use the search button and use the keywords of your problem;
- Check the WIKI;
- Create a thread.
08-17-2012 11:17 AM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


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