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!

[RUO 2.0, SVN: v159] Skill Titles

Soultaker

Sorceror
Ok sorry i know this is a dumb question :)

Asmir3;657696 said:
btw its
Code:
if (version < 26) m_Settings = new MobileSettings(this);

sorry i know this is a dumb question but where exactly do i put this i have tried almost everthing that i can think of. we'll mabey not everything but over 15 and close to 20 times lol, and i crash myself because i cant get it in the right spot :)

Thank you for any help you can give me :)
Soultaker
 

Asmir3

Sorceror
Right before this code line
Code:
// Professions weren't verified on 1.0 RC0
			if ( !CharacterCreation.VerifyProfession( m_Profession ) )
				m_Profession = 0;
 

Soultaker

Sorceror
Sorry to be a bother ran into another Stone :)

Me and the script are having issues lol :)

This is the error i get:
Code:
RunUO - [www.runuo.com] Version 2.0, Build 2357.32527
Core: Running on .NET Framework Version 2.0.50727
Core: Optimizing for 2 processors
Scripts: Compiling C# scripts...failed (1 errors)
Errors:
 + Mobiles/PlayerMobile.cs:
    CS0103: Line 2606: The name 'm_Settings' does not exist in the current context
    CS0246: Line 2606: The type or namespace name 'MobileSettings' could not be found (are you missing a using directive or an assembly reference?)
Scripts: One or more scripts failed to compile or no script files were found.
 - Press return to exit, or R to try again.

any ideas on this would be great. did i miss something possibly that would have caused this?

Thanks Again in Advance
Soultaker
 

Asmir3

Sorceror
Did u get all the scripts that were on here for you to download?
What runuo are u using 1.0, 2.0, svn?
and post ur playermobile.cs here
 

Soultaker

Sorceror
Sheez, i can't believe i did that.

I missed putting back in the MobileSettings.cs & SkillTitlesGump.cs scripts
but i walked through before i figured that out lol and re-edited all the scripts again lol, and then put them in and it worked like a charm. the fix you gave me to put in the correct spot was great!!!

i've been wanting to get this one in for awhile!!
Thank you Very very very much!!!
Soultaker

p.s. thanks Everybody that has been responding to help get this going too, i appreciate it alot!!!
 

Cheetah2003

Wanderer
Found another crasher bug in this.

Seems if you try to open the paperdoll of a human NPC whom has no special title, you'll crash yer server with a IllegalCastException.

Thankfully, the fix is simple. In Titles.cs, change this line (in red)
Code:
			//Added for Skill Titles START
			if (customTitle != null && (customTitle = customTitle.Trim()).Length > 0)
			{
				title.AppendFormat(" {0}", customTitle);
			}
[COLOR="Red"]			else if (SkillTitles.Enabled)[/COLOR]
			{
				PlayerMobile pm = (PlayerMobile)beheld;

				if (pm != null)
to this:
Code:
			else if (SkillTitles.Enabled && beheld is PlayerMobile)
 

Soultaker

Sorceror
whew glad you found this :)

Thanks, i fixed it on myself at least already, works great. and the shard loaded perfectly.
Thanks
Soultaker
 

qwerty84

Sorceror
Code:
System.InvalidCastException: Unable to cast object of type 'Server.Mobiles.Clone' to type 'Server.Mobiles.PlayerMobile'.
   at Server.Misc.Titles.ComputeTitle(Mobile beholder, Mobile beheld)
   at Server.Misc.Paperdoll.EventSink_PaperdollRequest(PaperdollRequestEventArgs e)
   at Server.EventSink.InvokePaperdollRequest(PaperdollRequestEventArgs e)
   at Server.Mobile.DisplayPaperdollTo(Mobile to)
   at Server.ContextMenus.PaperdollEntry.OnClick()
   at Server.Network.PacketHandlers.ContextMenuResponse(NetState state, PacketReader pvSrc)
   at Server.Network.PacketHandlers.ExtendedCommand(NetState state, PacketReader pvSrc)
   at Server.Network.MessagePump.HandleReceive(NetState ns)
   at Server.Network.MessagePump.Slice()
   at Server.Core.Main(String[] args)
 
Top