Full Version : Help Needed with a few error
xmlspawner >>Scripting Support >>Help Needed with a few error
<< Prev | Next >>
Crystal Jem- 08-07-2006
ok frist i'll put up there intrutcions.
Install Notes:
Theres two folder's that need to be installed into your RunUO scripts folder. One folder is labeled "Custom Mobiles", this can be placed anywhere you want within the scripts folder. The other folder labeled "Distro Mobiles" will need to be installed over your exsisting RunUO Mobile scripts, Find each script and replace it with the one included. I had to take back some space that UO was wasting on hueing mobiles, so I edited the distro mobiles to the proper hue but using one body type.
I plan on updating the mobiles to be more complex, for now I just wanted to get the animation out there so edit the mobiles as you please and if you want to use my future ones as well then by all means use them all.
The Animations IDs file is for referance only, DO NOT install it into runuo.
The shrink rar has the temp shrink file for your runuo data folder, shrink file replacement.
And they said to do this with 2 more files:
Install Notes:
Theres two folders, one contains the def files and the other contains the mul files, just copy and paste the files from both folders over your exsisting ones located in your mondains UO folder. If you want your players to see your new animations then rar up the folders and patch them out
i can't find the ( mondains UO folder) if you can tell me where this is that would be a big help.
The errors are:
Errors:
+ Custom/Custom Mobiles/DaemonSnake.cs:
CS0117: Line 66: 'Server.Mobiles.BaseCreature' does not contain a definition
for 'Controled'
+ Custom/Custom Mobiles/MiniCow.cs:
CS0117: Line 10: 'Server.Mobiles.FightMode' does not contain a definition fo
r 'Agressor'
+ Custom/Distro Mobiles/GreyWolf.cs:
CS0117: Line 11: 'Server.Mobiles.FightMode' does not contain a definition fo
r 'Agressor'
+ Custom/Distro Mobiles/ShadowIronElemental.cs:
CS0117: Line 66: 'Server.Mobiles.BaseCreature' does not contain a definition
for 'Controled'
+ Custom/Distro Mobiles/ValoriteElemental.cs:
CS0117: Line 70: 'Server.Mobiles.BaseCreature' does not contain a definition
for 'Controled'
+ Custom/Distro Mobiles/WhiteWolf.cs:
CS0117: Line 11: 'Server.Mobiles.FightMode' does not contain a definition fo
r 'Agressor'
Thank you for takeing a look even if you are unable to help.
All Adive is apreshated.
ArteGordon- 08-07-2006
There were some spelling changes in 2.0
You need to change 'Controled' to 'Controlled', and 'Agressor' to 'Aggressor'
Crystal Jem- 08-07-2006

QUOTE (ArteGordon @ August 07, 2006 03:52 pm)
There were some spelling changes in 2.0 You need to change 'Controled' to 'Controlled', and 'Agressor' to 'Aggressor'

Thank you Arte.
what do i do with the Mul file and Def files?
the Mul has in it:
anim UO2D
anim.idx IDX file
and the Def has:
Body def file
bodyconv def file
Corpse def file
mobtypes text
ArteGordon- 08-07-2006
you need to set up a custom data folder and then enter the path to it in DataPath.cs. Then put copies of all of the required files into the custom folder including the modified files that you have.
Do not directly modify the files in your actual client installation or you will not be able to patch your client any more.
Crystal Jem- 08-07-2006

QUOTE (ArteGordon @ August 07, 2006 04:31 pm)
you need to set up a custom data folder and then enter the path to it in DataPath.cs. Then put copies of all of the required files into the custom folder including the modified files that you have. Do not directly modify the files in your actual client installation or you will not be able to patch your client any more.

ok i added a custom data file to the runuo2 file that's the frist file the one that the Data file is in.
do i just add them on at the end of the list ?
i really don't want to mess up my Data file lol

CODE
using System; using System.IO; using Microsoft.Win32; using Server; namespace Server.Misc
{
public class DataPath
{
/* If you have not installed Ultima Online,
* or wish the server to use a seperate set of datafiles,
* change the 'CustomPath' value, example:
*
* private const string CustomPath = @"C:\Program Files\Ultima Online";
*/
private static string CustomPath = null;
/* The following is a list of files which a required for proper execution:
*
* Multi.idx
* Multi.mul
* VerData.mul
* TileData.mul
* Map*.mul
* StaIdx*.mul
* Statics*.mul
* MapDif*.mul
* MapDifL*.mul
* StaDif*.mul
* StaDifL*.mul
* StaDifI*.mul
*/
public static void Configure()
{
string pathReg = GetExePath( "Ultima Online" );
string pathTD = GetExePath( "Ultima Online Third Dawn" ); //These refer to 2D & 3D, not the Third Dawn expansion
if ( CustomPath != null )
Core.DataDirectories.Add( CustomPath );
if ( pathReg != null )
Core.DataDirectories.Add( pathReg );
if ( pathTD != null )
Core.DataDirectories.Add( pathTD );
if ( CustomPath != null )
Core.DataDirectories.Add( CustomPath );
if ( pathReg != null )
Core.DataDirectories.Add( pathReg );
if ( pathTD != null )
Core.DataDirectories.Add( pathTD );
if ( Core.DataDirectories.Count == 0 )
{
Console.WriteLine( "Enter the Ultima Online directory:" );
Console.Write( "> " );
Core.DataDirectories.Add( Console.ReadLine() );
}
}
private static string GetExePath( string subName )
{
try
{
String keyString;
if( Core.Is64Bit )
keyString = @"SOFTWARE\Wow6432Node\Origin Worlds Online\{0}\1.0";
else
keyString = @"SOFTWARE\Origin Worlds Online\{0}\1.0";
using( RegistryKey key = Registry.LocalMachine.OpenSubKey( String.Format( keyString, subName ) ) )
{
if( key == null )
return null;
string v = key.GetValue( "ExePath" ) as string;
if( v == null || v.Length <= 0 )
return null;
if( !File.Exists( v ) )
return null;
v = Path.GetDirectoryName( v );
if( v == null )
return null;
return v;
}
}
catch
{
return null;
}
}
}
}

ArteGordon- 08-07-2006
you can create the directory for your data files anywhere. It does not need to be in the RunUO directory. For example, if you put them into a directory called c:\UODATA, you would then just assign the CustomPath string like this

CODE
private static string CustomPath = @"C:\UODATA";

that is the only thing that you need to change in DataPath.cs
Crystal Jem- 08-07-2006
[QUOTE=ArteGordon,August 07, 2006 08:26 pm] you can create the directory for your data files anywhere. It does not need to be in the RunUO directory. For example, if you put them into a directory called c:\UODATA, you would then just assign the CustomPath string like this
Thank you I finaly got it right . Sorry sometimes i seam to not see it even though it's right infront or my face lol.