SphereCommunity
(Solved) Multiple MAPPLANES/Facets - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: (Solved) Multiple MAPPLANES/Facets (/Thread-Solved-Multiple-MAPPLANES-Facets)



(Solved) Multiple MAPPLANES/Facets - TheDeviantMind - 08-06-2012 03:36 AM

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?


RE: 56b - Multiple MAPPLANES/Facets - Anarch Cassius - 08-06-2012 07:58 AM

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.


RE: 56b - Multiple MAPPLANES/Facets - Terrikate - 08-06-2012 08:38 AM

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


RE: 56b - Multiple MAPPLANES/Facets - TheDeviantMind - 08-07-2012 02:26 AM

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?


RE: (Solved) Multiple MAPPLANES/Facets - Terrikate - 08-07-2012 02:36 AM

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.


RE: (Solved) Multiple MAPPLANES/Facets - Anarch Cassius - 08-07-2012 06:16 AM

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.


RE: (Solved) Multiple MAPPLANES/Facets - Terrikate - 08-07-2012 09:04 AM

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.


RE: (Solved) Multiple MAPPLANES/Facets - Anarch Cassius - 08-07-2012 06:26 PM

Oh I see.

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


RE: (Solved) Multiple MAPPLANES/Facets - Extreme - 08-17-2012 11:17 AM

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.