Ryandor.com

Forums
It is currently Sat Jul 05, 2025 3:27 pm

All times are UTC - 7 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: registering custom map
PostPosted: Sat Aug 28, 2004 5:34 pm 
Offline
Young
Young

Joined: Tue Aug 03, 2004 7:35 pm
Posts: 5
Im kindof lost as to how to add my new map. here is the scenario

I have a new map its the same size as ilshenar. I have been using the ilshenar settings for the map, but now i want to register a new map within mapdefinitions.cs so when someone marks a rune, etc it doesnt say ilshenar.

here is some code in mapdef*.cs
Code:
         RegisterMap( 0, 0, 0, 6144, 4096, 4, "Felucca",  MapRules.FeluccaRules );
         RegisterMap( 1, 1, 0, 6144, 4096, 0, "Trammel",  MapRules.TrammelRules );
         RegisterMap( 2, 2, 2, 2304, 1600, 1, "Ilshenar", MapRules.FeluccaRules );
         RegisterMap( 3, 3, 3, 2560, 2048, 1, "Malas",    MapRules.TrammelRules );
         RegisterMap( 4, 2, 2, 2304, 1600, 3, "Mythosa", MapRules.FeluccaRules );

         RegisterMap( 0x7F, 0x7F, 0x7F, Map.SectorSize, Map.SectorSize, 1, "Internal", MapRules.Internal );




Now have i done this correctly?
If so how does it know what facet im currently in if ilshenar and mythosa are the same map?

question 2: In my publicmoongates.cs file i added stuff there and as well as the cliloc.enu file because i didnt want it to say ilshenar on the mongate. I cant seem to get this right. here is th code that i have edited.

Code:
      //   count += MoonGen( PMList.Trammel );
      //   count += MoonGen( PMList.Felucca );
      //   count += MoonGen( PMList.Ilshenar );
      //   count += MoonGen( PMList.Malas );
              count += MoonGen( PMList.Mythosa );

and,
Code:
public static readonly PMList Mythosa =
                     new PMList( 600000, 1012001, Map.Ilshenar, new PMEntry[]
                        {
                           new PMEntry( new Point3D( 2043,  644, 7 ), "Halo" ), // Moonglow
                           new PMEntry( new Point3D( 1171, 996, 5 ), "Sandhead" ), // Britain
                           new PMEntry( new Point3D( 635,  463, 5 ), "Ruins" ), // Jhelom
                           new PMEntry( new Point3D(  497, 647,   4 ), "Brookshire" ), // Yew
                           new PMEntry( new Point3D( 1136, 656, 5 ), "Ice Isle" ), // Minoc
                        //   new PMEntry( new Point3D( 1828, 2948,-20), 1012008 ), // Trinsic
                        //   new PMEntry( new Point3D(  643, 2067, 5 ), 1012009 ), // Skara Brae
                        //   new PMEntry( new Point3D( 3563, 2139, 34), 1012010 ), // Magincia
                        //   new PMEntry( new Point3D( 2711, 2234, 0 ), 1019001 )  // Buccaneer's Den
            } );


and since i do not want to use any other facets
Code:
public static readonly PMList[] UORLists = new PMList[]{ Mythosa };
      public static readonly PMList[] LBRLists = new PMList[]{ Mythosa };
      public static readonly PMList[] AOSLists = new PMList[]{ Mythosa };
      public static readonly PMList[] RedLists = new PMList[]{ Mythosa };



Thanks for helping:)[/quote]


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 30, 2004 10:49 am 
Offline
Apprentice
Apprentice

Joined: Wed Jul 14, 2004 4:27 pm
Posts: 30
I think I can help you with the first question at least. AFAIK, Ultima currently recognizes maps *only* from 0-3. This means that instead of keeping the Ilsh definition, you'll want to actually replace it with the new map definition for map 2. You won't be able to use the Ilshenar map, but since you only want to use Mythosa, this shouldn't be a problem, I would think. ^_^

Hope this helps, and that people will correct me if I'm wrong. ^_^;
Good luck!
-Janice
aka Sparkle!


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 30, 2004 11:01 am 
Offline
Not your daddy
Not your daddy

Joined: Mon Nov 18, 2002 2:18 am
Posts: 1224
Location: Oregon State
That will work for registering a new mapDefinition.. but thats exactly what it is, a definition of a map. What you have done there, is basicly added a second facet to Map3.mul. If you are starting fresh anyways, that will work allright, just set all instances that call for Ileshnar to that new facet name, Mythosa.

You should be able to just set the name for marking runes in the RecallRune.cs Or, since you are editing the Cliloc files anyways, just change the Ileshnar entry that the recall rune uses to Mythosa. Theres a couple ways to do what you want, as you can see.

For PublicMoongate, (Im running out of time here) Search on RunUO forums for PublicMoongate within the Script Submission forum, there should be a modified script to enter string text names to the entries, rather than cliloc Localized int numbers. As you were saying, add cliloc names of your own, and change the exsisting numbers in the default script to match your new cliloc names. (you cant enter a string (text) name where the script is wanting an int (number) ).

_________________
Forget what you know, know what you forget.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 7 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group