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!

Basic ML & Elf functionality

Greystar

Wanderer
Arcanus said:
Question Ocean:

When you run the batch file, it should compile the source in order for you to use the RunUO.exe file, correct?

The file should be renamed Server.exe and replace your original Server.exe, correct?

Just seeing if I missed a step. If I didn't, then I found an error.


When I do as mentioned, to a fresh install, I get a fatal error and the server shuts down. Did I miss a step or am I failing to do something specific other than what I've mentioned above?


Thanx in advance!

Do you happen to have both .Net 1.1 installed and .Net 2.0 installed... cause if thats the case it may have compiled RunUO using the .Net 2.0 settings which means you need to edit the config file to add an entry for the .Net 2.0 framework... otherwise Im not sure what your error might be.

PS Buildnumber doesnt matter.
 

dashiznit_76

Wanderer
Greystar said:
hmm... thats a tad sucky... what about helms? if that happens with helms too I guess I'll just have to add a flag the sets the hair visible = false if they are an elf wearing a hat/helm but leave it visible if wearing a crown... bah... its only to test what people offer as coremods/fixes anyway so I dont really care, but I do care about OVERALL look for when these features actually get added to RunUO.

no its not anything wrong in the core or the server. Its the client. When an elf equips certain items they "change" to fit elf body. Hats become crown type armor, helmets become elven helmet types (raven, winged,...) I havent noticed any other armor doing this, but I havent tryed on every piece of equipment either.
 

Greystar

Wanderer
dashiznit_76 said:
no its not anything wrong in the core or the server. Its the client. When an elf equips certain items they "change" to fit elf body. Hats become crown type armor, helmets become elven helmet types (raven, winged,...) I havent noticed any other armor doing this, but I havent tryed on every piece of equipment either.

Problem is I put on a wizard's hat and I could see the tip of the hat through the top of my hair... otherwise I'd agree with what your saying... maybe it's just cause of some communications issues or something, guess ill have to mess around with a couple other objects...
 

blueocean

Wanderer
Another fix for scripts

in playermobile.cs:

at the end of Resurrection() function:

Code:
			this.Delta(MobileDelta.Hue);

then at the end of OnDeath() function:

Code:
			Timer.DelayCall( TimeSpan.FromSeconds( 1.0 ), new TimerCallback( RefreshGhost ) );

and after the OnDeath() function:

Code:
		public void RefreshGhost()
		{
			Delta( MobileDelta.Body );
			InvalidateProperties();
		}

this preserves body hue, hair hue and hair type so when u die as an elf ur hair and skin remain unchanged on resurrect
 

blueocean

Wanderer
Another fix for Elf NameHue in Notoriety.cs

find these lines in notoriety.cs (in scripts not in the core)

Code:
			if ( !(target is BaseCreature && ((BaseCreature)target).InitialInnocent) )
			{
				if ( !target.Body.IsHuman && !target.Body.IsGhost && !IsPet( target as BaseCreature ) && !Server.Spells.Necromancy.TransformationSpell.UnderTransformation( target ) )
					return Notoriety.CanBeAttacked;
			}


and replace with

Code:
			if ( !(target is BaseCreature && ((BaseCreature)target).InitialInnocent) )
			{
				if ( !target.Body.IsHuman && !target.Body.IsGhost && !IsPet( target as BaseCreature ) && !Server.Spells.Necromancy.TransformationSpell.UnderTransformation( target ) [b]&& !target.Elf [/b])
					return Notoriety.CanBeAttacked;
			}


then find bodyid 605 and 606 from IsHuman function in Body.cs from the core and delete them
 

Arcanus

Wanderer
Greystar said:
Do you happen to have both .Net 1.1 installed and .Net 2.0 installed... cause if thats the case it may have compiled RunUO using the .Net 2.0 settings which means you need to edit the config file to add an entry for the .Net 2.0 framework... otherwise Im not sure what your error might be.

PS Buildnumber doesnt matter.

Hmm That's very possible Grey. I recently added 2.0 while attempting to look over someones refrence recently and it caused more propblems than I cared to muck with. Lemme see if I can get that bloody thing uninstalled and try again.


Thanx again!
 

Arcanus

Wanderer
Still no luck.


I uninstalled 2.0 (.net)

I compiled the source:

Code:
F:\RUO-Source\RunUO-1.0.0-Source>compile
F:\RUO-Source\RunUO-1.0.0-Source>C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\cs
c.exe /t:exe /out:RunUO.exe /unsafe /optimize /recurse:*.cs
Microsoft (R) Visual C# .NET Compiler version 7.10.3052.4
for Microsoft (R) .NET Framework version 1.1.4322
Copyright (C) Microsoft Corporation 2001-2002. All rights reserved.
Network\Packets.cs(3134,27): warning CS0618: 'System.Net.IPAddress.Address' is
        obsolete: 'IPAddress.Address is address family dependant, use Equals
        method for comparison.'
Network\Packets.cs(3171,20): warning CS0618: 'System.Net.IPAddress.Address' is
        obsolete: 'IPAddress.Address is address family dependant, use Equals
        method for comparison.'
Serialization.cs(303,11): warning CS0618: 'System.Net.IPAddress.Address' is
        obsolete: 'IPAddress.Address is address family dependant, use Equals
        method for comparison.'
Serialization.cs(933,17): warning CS0618: 'System.Net.IPAddress.Address' is
        obsolete: 'IPAddress.Address is address family dependant, use Equals
        method for comparison.'
Utility.cs(206,20): warning CS0618: 'System.Net.IPAddress.Address' is obsolete:
        'IPAddress.Address is address family dependant, use Equals method for
        comparison.'
Utility.cs(217,14): warning CS0618: 'System.Net.IPAddress.Address' is obsolete:
        'IPAddress.Address is address family dependant, use Equals method for
        comparison.'
Utility.cs(217,42): warning CS0618: 'System.Net.IPAddress.Address' is obsolete:
        'IPAddress.Address is address family dependant, use Equals method for
        comparison.'
F:\RUO-Source\RunUO-1.0.0-Source>



I then renamed the RUNUO.exe to Server.exe and placed it in the root directory of my server. (Backed up original)

I first get this build number:

Code:
RunUO - [www.runuo.com] Version 1.0.0, Build 32034


Then as the server runs through the scripts and finds no problem, right before it throws up my IP addy and what not, I get this error:


Code:
Application has generated an exception that could not be handled.
Process id=0X5d8 (1496), Thread id=0x5dc (1500).



Still not sure what the problem would be. Any more ideas?
 

Greystar

Wanderer
Arcanus said:
Still no luck.


I uninstalled 2.0 (.net)

I compiled the source:

Code:
F:\RUO-Source\RunUO-1.0.0-Source>compile
F:\RUO-Source\RunUO-1.0.0-Source>C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\cs
c.exe /t:exe /out:RunUO.exe /unsafe /optimize /recurse:*.cs
Microsoft (R) Visual C# .NET Compiler version 7.10.3052.4
for Microsoft (R) .NET Framework version 1.1.4322
Copyright (C) Microsoft Corporation 2001-2002. All rights reserved.
Network\Packets.cs(3134,27): warning CS0618: 'System.Net.IPAddress.Address' is
        obsolete: 'IPAddress.Address is address family dependant, use Equals
        method for comparison.'
Network\Packets.cs(3171,20): warning CS0618: 'System.Net.IPAddress.Address' is
        obsolete: 'IPAddress.Address is address family dependant, use Equals
        method for comparison.'
Serialization.cs(303,11): warning CS0618: 'System.Net.IPAddress.Address' is
        obsolete: 'IPAddress.Address is address family dependant, use Equals
        method for comparison.'
Serialization.cs(933,17): warning CS0618: 'System.Net.IPAddress.Address' is
        obsolete: 'IPAddress.Address is address family dependant, use Equals
        method for comparison.'
Utility.cs(206,20): warning CS0618: 'System.Net.IPAddress.Address' is obsolete:
        'IPAddress.Address is address family dependant, use Equals method for
        comparison.'
Utility.cs(217,14): warning CS0618: 'System.Net.IPAddress.Address' is obsolete:
        'IPAddress.Address is address family dependant, use Equals method for
        comparison.'
Utility.cs(217,42): warning CS0618: 'System.Net.IPAddress.Address' is obsolete:
        'IPAddress.Address is address family dependant, use Equals method for
        comparison.'
F:\RUO-Source\RunUO-1.0.0-Source>



I then renamed the RUNUO.exe to Server.exe and placed it in the root directory of my server. (Backed up original)

I first get this build number:

Code:
RunUO - [www.runuo.com] Version 1.0.0, Build 32034


Then as the server runs through the scripts and finds no problem, right before it throws up my IP addy and what not, I get this error:


Code:
Application has generated an exception that could not be handled.
Process id=0X5d8 (1496), Thread id=0x5dc (1500).



Still not sure what the problem would be. Any more ideas?


Build Number changes everytime you compile the core... I really dont have any other ideas...
 

Arcanus

Wanderer
Hmm Never knew that.

Thanx anyways for the help. I'll keep mucking with it till I figure something out. Gonna throw it up on my laptop to see if the problem lies somewhere else.

 

Arcanus

Wanderer
Just tried this on my laptop that has only .net 1.1 installed. So far, I'm still not having any luck. I wanna make sure I'm not perhaps doing something wrong or forgetting something. Someone please look over these steps to see if I'm doing this correctly.



1) Downloaded the compilation into a new, empty directory
2) Ran the batch file
3) The batch file created a RUNUO.exe file
4) Dropped the RUNUO.exe file into my root RunUO directory
5) Backed up my Server.exe file to Server.exe.bak
6) Renamed RUNUO.exe to Server.exe
7) Ran Server.exe

This is as far as I get with it:

Code:
RunUO - [www.runuo.com] Version 1.0.0, Build 37825
Scripts: Compiling C# scripts...done (0 errors, 0 warnings)
Scripts: Compiling VB.net scripts...no files found.
Scripts: Verifying...Error:
System.Reflection.ReflectionTypeLoadException: One or more of the types in the a
ssembly unable to load.
   at System.Reflection.Module.GetTypesInternal(StackCrawlMark& stackMark)
   at System.Reflection.Assembly.GetTypes()
   at Server.Core.VerifySerialization(Assembly a)
   at Server.Core.VerifySerialization()
   at Server.ScriptCompiler.Compile(Boolean debug)
   at Server.Core.Main(String[] args)
This exception is fatal, press return to exit


All of my steps correct?


Thanx again! (this one doesnt like me at all :mad: )



Grey, thanx for the file bro, but unfortunaly I'm not getting too far with #Dev either. I'm getting errors while compiling. (that is, if I am doing it correctly - heh)

I'm also downloading a brand new RunUO to make sure the one I'm using now isnt faulty somehow. very odd.
 

Arcanus

Wanderer
Ok, now I feel like a complete dumbass. One of the links you listed DID have one hint of how to remedy this.


Delete the bloody Save files!


:p


Thanx Blue!
 

PappaSmurf

Knight
Greystar said:
hmm... thats a tad sucky... what about helms? if that happens with helms too I guess I'll just have to add a flag the sets the hair visible = false if they are an elf wearing a hat/helm but leave it visible if wearing a crown... bah... its only to test what people offer as coremods/fixes anyway so I dont really care, but I do care about OVERALL look for when these features actually get added to RunUO.

Right now with the exception of a few of the eleven pieces of headgear anything put on their pointy eared lil heads becomes a crown or circlet...All the Human Helms and Hats suffer from this....if you click the link for my Web page and then go to my Yahoo 360 page there is a picture of a character I had on an EA server....He's an elf wearing a Kasa you can see it in the paperdoll that it's showing as a circlet or crown on his head.
 

haazen

Sorceror
Arcanus said:
Just tried this on my laptop that has only .net 1.1 installed. So far, I'm still not having any luck. I wanna make sure I'm not perhaps doing something wrong or forgetting something. Someone please look over these steps to see if I'm doing this correctly.



1) Downloaded the compilation into a new, empty directory
2) Ran the batch file
3) The batch file created a RUNUO.exe file
4) Dropped the RUNUO.exe file into my root RunUO directory
5) Backed up my Server.exe file to Server.exe.bak
6) Renamed RUNUO.exe to Server.exe
7) Ran Server.exe

This is as far as I get with it:

Code:
RunUO - [www.runuo.com] Version 1.0.0, Build 37825
Scripts: Compiling C# scripts...done (0 errors, 0 warnings)
Scripts: Compiling VB.net scripts...no files found.
Scripts: Verifying...Error:
System.Reflection.ReflectionTypeLoadException: One or more of the types in the a
ssembly unable to load.
   at System.Reflection.Module.GetTypesInternal(StackCrawlMark& stackMark)
   at System.Reflection.Assembly.GetTypes()
   at Server.Core.VerifySerialization(Assembly a)
   at Server.Core.VerifySerialization()
   at Server.ScriptCompiler.Compile(Boolean debug)
   at Server.Core.Main(String[] args)
This exception is fatal, press return to exit


All of my steps correct?


Thanx again! (this one doesnt like me at all :mad: )



Grey, thanx for the file bro, but unfortunaly I'm not getting too far with #Dev either. I'm getting errors while compiling. (that is, if I am doing it correctly - heh)

I'm also downloading a brand new RunUO to make sure the one I'm using now isnt faulty somehow. very odd.


I had exaactly the same errors. I compiled the core using name serverml.exe. I changed the name to server.exe and got the exact errors you have. I changed the name back to serverml.exe and the error went away.

Rather or not this make any sense, this fixed the problem. I even renamed the serverml.exe again to serverml2.exe and the errror came back. It appears that the executable file must remain named as it was compiled. Just as a note, I am just using the csc.exe that came with .net to compile.
 

blueocean

Wanderer
anyone has the problem of missing animations?

i presume the problem is here from packethandlers.cs

Code:
		public static int[] m_ValidAnimations = new int[]
			{
				6, 21, 32, 33,
				100, 101, 102,
				103, 104, 105,
				106, 107, 108,
				109, 110, 111,
				112, 113, 114,
				115, 116, 117,
				118, 119, 120,
				121, 123, 124,
				125, 126, 127,
				128
			};

		public static int[] ValidAnimations{ get{ return m_ValidAnimations; } set{ m_ValidAnimations = value; } }

		public static void Animate( NetState state, PacketReader pvSrc )
		{
			Mobile from = state.Mobile;
			int action = pvSrc.ReadInt32();

			bool ok = false;

			for ( int i = 0; !ok && i < m_ValidAnimations.Length; ++i )
				ok = ( action == m_ValidAnimations[i] );

			if ( from != null && ok && from.Alive && ( from.Body.IsHuman || from.Elf ) && !from.Mounted )
					from.Animate( action, 7, 1, true, false, 0 );				
		}

i added a ( from.Body.IsHuman || from.Elf ) but the validanimation array list is for humans only i think


p.s. sorry for my english is a bit gone
 

Avalon

Wanderer
Resurrect ()

Code:
public override void Resurrect()
		{
			bool wasAlive = this.Alive;

			base.Resurrect();

			if ( this.Alive && !wasAlive )
			{
				Item deathRobe = new DeathRobe();

				if ( !EquipItem( deathRobe ) )
				{
					deathRobe.Delete();
				}
			}
           [COLOR="Red"] this.Delta(MobileDelta.Hue);[/COLOR]
		}

OnDeath ()

Code:
		public override void OnDeath( Container c )
		{
			base.OnDeath( c );
                          ...

		        Faction.HandleDeath( this, killer );
[COLOR="#ff0000"]Timer.DelayCall(TimeSpan.FromSeconds(1.0), new TimerCallback(RefreshGhost));[/COLOR]
		}

[COLOR="#ff0000"]        public void RefreshGhost()
        {
            Delta(MobileDelta.Body);
            InvalidateProperties();
        }[/COLOR]

		private ArrayList m_PermaFlags;
		private ArrayList m_VisList;

is this correct???
 

noob2

Wanderer
you guys make things overly complicated this is very simple all you do it make it so Elf works like Female in the core basicaly everywhere it says female put in elf same way and it works you also need char creation mods for it to work all the way hue, hair, and gender will all work if you mod char creation and hair script files right unfortuantely i don't have my files i edited because my computer is in the shop

i will post the scripts as soon as i get a copy from my friend
 
Top