RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

How come I can`t Select the Elven or Gargoyl Race?

happymarc

Squire
I'm using RunUO with Nerun`s latest version, I patched UO to the max and I can`t create and Elf or a Gargoyle...

How can I fix that?


Thanks
 

Soteric

Knight
"Can't create" doesn't make sense at all. You should describe your problem in more informative way.
 

happymarc

Squire
Ok here's the problem...

In character creation, if I choose an Elf or a Gargoyle, when I press on the Arrow to confirm character creation, it tells me `The Version of UO you are playing doesn't support this race`
I installed UO 9th anniversary, patched it completely and run it with RunUo2.1 + Latest Nerun Spawner through Razor
 

Jeff

Lord
The latest patch doesnt work with 2.1 You can't go over 7.0.12.* Also, make sure your CurrentExpansion.cs is setup to support ML. The garg race is not implemented in RunUO yet.
 

happymarc

Squire
How do I make it that The CurrentExpansion.cs Supports ML, I tried this "private static readonly Expansion Expansion = Expansion.ML;" But it still doesn't work...
 

happymarc

Squire
Nope, thats all I did using Run Uo 2.1 with nerun and Razor , I play a solo game in in my own world, with 127.0.0.1 as an address and 2593 in port... and thats it, got my admi account fo world building and some other Player accounts to play the world ...
 

moet

Wanderer
Same thing here...weird...Neruns Distro and Runuo 2.1, with UO 6.0.1.7 few other things but i cant even [props change race...
 

moet

Wanderer
hmmm...i think that, i could be wrong here, but it seems o me that its not supported yet? I upgraded to 7.0.1.7 and there was the gargoyle selection but alas you couldnt play as a gargoyle just a normal char body
 

Phr3d13

Sorceror
that's as close as you're gonna get without modifying the server scripts.
race.cs needs
Code:
		public static Race Human { get { return m_Races[0]; } }
		public static Race Elf { get { return m_Races[1]; } }

		#region SA
		public static Race Gargoyle { get { return m_Races[2]; } }
		#endregion
and then you need to re-compile. Then racedefinitions.cs in your scripts/misc folder needs:
Code:
			RegisterRace( new Human	( 0, 0 ) );
			RegisterRace( new Elf	( 1, 1 ) );

			#region SA
			RegisterRace( new Gargoyle ( 2, 2 ) );
			#endregion
and:
Code:
#region SA
		private class Gargoyle : Race
		{
			public Gargoyle( int raceID, int raceIndex )
				: base( raceID, raceIndex, "Gargoyle", "Gargoyles", 666, 667, 402, 403, Expansion.SA )
			{
			}

			public override bool ValidateHair(bool female, int itemID )
			{
				if (female == false)
				{
				return itemID >= 0x4258 && itemID <= 0x425F;
				}
				else
				{
				return ((itemID == 0x4261 || itemID == 0x4262) || (itemID >= 0x4273 && itemID <= 0x4275) || (itemID == 0x42B0 || itemID == 0x42B1) || (itemID == 0x42AA || itemID == 0x42AB));
				}
			}

			public override int RandomHair( bool female )
			{
				if ( Utility.Random( 9 ) == 0 )
					return 0;
				else
					if (!female)
						return 0x4258 + Utility.Random( 8 );
					else
					{
						switch (Utility.Random(9))
                				{
                    				case 0: return 0x4261;
                    				case 1: return 0x4262;
                    				case 2: return 0x4273;
                    				case 3: return 0x4274;
                    				case 4: return 0x4275;
                    				case 5: return 0x42B0;
                    				case 6: return 0x42B1;
                    				case 7: return 0x42AA;
                    				case 8: return 0x42AB;
                				}
					return 0;
					}
			}

			public override bool ValidateFacialHair( bool female, int itemID )
			{
				if ( female )
					return false;
				else
					return itemID >= 0x42AD && itemID <= 0x42B0;
			}

			public override int RandomFacialHair( bool female )
			{
				if ( female )
					return 0;
				else
					return Utility.RandomList( 0, 0x42AD, 0x42AE, 0x42AF, 0x42B0 );
			}

			// Todo Finish body hues
			private static int[] m_BodyHues = new int[]
			{
				0x484, 0x93F, 0x94F, 0x9D7,
				0x9C4, 0x98D, 0x8AB, 0x797,
				0x99B, 0x947, 0x9CC, 0x793
				// 0x, 0x, 0x, 0x, // 86E7/86E8/86E9/86EA?
				// 0x, 0x, 0x, 0x, // 86EB/86EC/86ED/86EE?
				// 0x86F3, 0x86DB, 0x86DC, 0x86DD
			};

			public override int ClipSkinHue( int hue )
			{
				return hue; // for hue infomation gathering
			}

			public override int RandomSkinHue()
			{
				return m_BodyHues[Utility.Random( m_BodyHues.Length )] | 0x8000;
			}

			private static int[] m_HornHues = new int[]
			{
				0x709, 0x70B, 0x70D, 0x70F, 0x711, 0x763,
				0x765, 0x768, 0x76B, 0x6F3, 0x6F1, 0x6EF,
				0x6E4, 0x6E2, 0x6E0, 0x709, 0x70B, 0x70D
			};

			public override int ClipHairHue( int hue )
			{
				for(  int i = 0; i < m_HornHues.Length; i++ )
					if ( m_HornHues[i] == hue )
						return hue;

				return m_HornHues[0];
			}

			public override int RandomHairHue()
			{
				return m_HornHues[ Utility.Random( m_HornHues.Length ) ];
			}
		}
		#endregion
 

Phr3d13

Sorceror
that'll get you playable gargies, there's a lot more then that like the gargoyle specific items (weaps, armor, etc.)
 

moet

Wanderer
woah! Thats hectic stuff there, i noticed a things like gargoyle pickaxes and etc... would it be a matter of adding it to say loot.cs?
private static Type[] m_GargoyleTypes = new Type[]
{ (typeof (find gargoyle things and add them here) ?
 

Dodger-b

Sorceror
weird i can create elven characters tho...not that i want too..

whats wrong with the elven race they have any other race beat hands down for any template except dexxer.
elves have bonus to INT./perma night sight/ have a better chance at finding the rare resources /have alot of armor that can only be worn by elves /plus they are the only ones that can tame cu's
humans have bonus to dex. and str.
 

guyjin

Wanderer
Btw ACC Core and ACC in general are awesome. a minor tweak and it works even for bringing TerMur into our world XD
 

Phr3d13

Sorceror
where the heck is race.cs? i cant seem to find it anywhere... i found racedefinitions.cs just fine tho... im running the runuo from here with a handful of customs in it. iv got elf and human and if i select garg it does what guy was talking about, itll just turn you into a hume player. can you tell me where to find race.cs? i believe i looked everywhere but then again i coulda missed it...
race.cs is compiled into your executable. If you compiled yourself it will be somewhere in the "server" folder
 

guyjin

Wanderer
found it lol oh hey i have another problem... i have the race now but... is there a way to get the paperdoll to work? theres no paperdoll for the garg race aparently. that or its not reading it... is that gonna be a creation thing or what file would i find that?
 
Top