| Bulk orders problème | |
|
|
Auteur | Message |
---|
Pastek
Messages : 5 Date d'inscription : 01/06/2010
| Sujet: Bulk orders problème Jeu 28 Juil - 15:05 | |
| Hello la compagnie, Je sais qu'il n'y a pas grand monde mais on sais jamais, Scriptiz je sais que tu es toujours de service :p ainsi que Plume. Je joue sur Vivre (Hile sur le forum, Loks, Oswald) J'aimerai avoir mon serveur a coté pour essayer de scripter un peu. J'ai fait les modif que Gargouille et Plume préconise de faire avant de lancer le serveur. Le souci vient quand je lance Run Uo, voilà ce qu'il me dit: Si vous avez la réponse Merci d'avance. | |
|
| |
Scriptiz
Messages : 102 Date d'inscription : 02/09/2008 Localisation : Belgium
| Sujet: Re: Bulk orders problème Lun 1 Aoû - 12:34 | |
| Salut Le premier problème qu'il faudrait réglé c'est le DataPath.cs. Peux tu poster la méthode Configure() du script Scripts\Misc\DataPath.cs ici entre les balises - Code:
-
[code] et [/code] Sinon essaye de mettre ceci dans ton DataPath.cs : - 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 separate 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 pathUO = GetPath( @"Origin Worlds Online\Ultima Online\1.0", "ExePath" ); string pathTD = GetPath( @"Origin Worlds Online\Ultima Online Third Dawn\1.0", "ExePath" ); //These refer to 2D & 3D, not the Third Dawn expansion string pathKR = GetPath( @"Origin Worlds Online\Ultima Online\KR Legacy Beta", "ExePath" ); //After KR, This is the new registry key for the 2D client string pathSA = GetPath( @"Electronic Arts\EA Games\Ultima Online Stygian Abyss Classic", "InstallDir" ); string pathClassic = GetPath(@"Electronic Arts\EA Games\Ultima Online Classic", "InstallDir"); // Scriptiz : dernier client en date (7.0.1x.x)
if ( CustomPath != null ) Core.DataDirectories.Add( CustomPath );
if ( pathUO != null ) Core.DataDirectories.Add( pathUO );
if ( pathTD != null ) Core.DataDirectories.Add( pathTD );
if ( pathKR != null ) Core.DataDirectories.Add( pathKR );
if ( pathSA != null ) Core.DataDirectories.Add( pathSA );
// Scriptiz : détection du dossier d'installation de la dernière version d'UO (7.0.1x.x) if (pathClassic != null) Core.DataDirectories.Add(pathClassic);
if ( Core.DataDirectories.Count == 0 && !Core.Service ) { Console.WriteLine( "Enter the Ultima Online directory:" ); Console.Write( "> " );
Core.DataDirectories.Add( Console.ReadLine() ); } }
private static string GetPath( string subName, string keyName ) { try { string keyString;
if( Core.Is64Bit ) keyString = @"SOFTWARE\Wow6432Node\{0}"; else keyString = @"SOFTWARE\{0}";
using( RegistryKey key = Registry.LocalMachine.OpenSubKey( String.Format( keyString, subName ) ) ) { if( key == null ) return null;
string v = key.GetValue( keyName ) as string;
if( String.IsNullOrEmpty( v ) ) return null;
if ( keyName == "InstallDir" ) v = v + @"\";
v = Path.GetDirectoryName( v );
if ( String.IsNullOrEmpty( v ) ) return null;
return v; } } catch { return null; } } } } | |
|
| |
Pastek
Messages : 5 Date d'inscription : 01/06/2010
| Sujet: Re: Bulk orders problème Lun 1 Aoû - 15:03 | |
| Voila je t'ai mi de Configure() a la fin du fichier car je ne savais pas ou m'arreter :s - Code:
-
public static void Configure() { string pathUO = GetPath( @"Origin Worlds Online\Ultima Online\1.0", "ExePath" ); string pathTD = GetPath( @"Origin Worlds Online\Ultima Online Third Dawn\1.0", "ExePath" ); //These refer to 2D & 3D, not the Third Dawn expansion string pathKR = GetPath( @"Origin Worlds Online\Ultima Online\KR Legacy Beta", "ExePath" ); //After KR, This is the new registry key for the 2D client string pathSA = GetPath( @"Electronic Arts\EA Games\Ultima Online Stygian Abyss Classic", "InstallDir" );
if ( CustomPath != null ) Core.DataDirectories.Add( CustomPath );
if ( pathUO != null ) Core.DataDirectories.Add( pathUO );
if ( pathTD != null ) Core.DataDirectories.Add( pathTD );
if ( pathKR != null ) Core.DataDirectories.Add( pathKR );
if ( pathSA != null ) Core.DataDirectories.Add( pathSA );
if ( Core.DataDirectories.Count == 0 && !Core.Service ) { Console.WriteLine( "Enter the Ultima Online directory:" ); Console.Write( "> " );
Core.DataDirectories.Add( Console.ReadLine() ); } }
private static string GetPath( string subName, string keyName ) { try { string keyString;
if( Core.Is64Bit ) keyString = @"SOFTWARE\Wow6432Node\{0}"; else keyString = @"SOFTWARE\{0}";
using( RegistryKey key = Registry.LocalMachine.OpenSubKey( String.Format( keyString, subName ) ) ) { if( key == null ) return null;
string v = key.GetValue( keyName ) as string;
if( String.IsNullOrEmpty( v ) ) return null;
if ( keyName == "InstallDir" ) v = v + @"\";
v = Path.GetDirectoryName( v );
if ( String.IsNullOrEmpty( v ) ) return null;
return v; } } catch { return null; } } } } A quel niveau du fichier je dois mettre le code que tu m'as donné, tout en haut ? Merci pour ton aide | |
|
| |
Scriptiz
Messages : 102 Date d'inscription : 02/09/2008 Localisation : Belgium
| Sujet: Re: Bulk orders problème Lun 1 Aoû - 16:09 | |
| Tu as mis un CustomPath ? Si oui, dans le dossier indiquer par le customPath as-tu vérifier que le fichier tiledata.mul soit présent?
Sinon si tu veux tu peux remplacer tout le code du fichier DataPath.cs par le code que j'ai posté plus haut et ça ira chercher les fichiers dans le répertoire d'installation de UO (t'empêchant du coup de faire des freeze en local mais rien de grave moi je n'en fait jamais ^^). | |
|
| |
Pastek
Messages : 5 Date d'inscription : 01/06/2010
| Sujet: Re: Bulk orders problème Lun 1 Aoû - 19:30 | |
| Non je n'ai pas mi de CustomPath.
J'ai changé le code du DataPath.
Par contre maintenant je lance Uo client et quand je mets mes identifiants d'admin le client bloque sur Verifying account.
J'ai eu cette phrase au démarrage de run uo "Restricting client version to 7.0.16.1. Action to be taken: LenientKick"
Je me demande si c'est pas du à ça. | |
|
| |
Scriptiz
Messages : 102 Date d'inscription : 02/09/2008 Localisation : Belgium
| Sujet: Re: Bulk orders problème Jeu 4 Aoû - 4:04 | |
| Non à mon avis tu n'a pas rajouter un script pour retirer l'encryption du client.
Ou alors utilise Razor qui permet de retirer l'encryption, mais il me semble qu'aux dernières nouvelles il ne support que les clients jusqu'à la version 7.0.16.0 (et tu as la 7.0.16.1 vu que c'est ce que dit ton LenientKick, à savoir que les joueurs ont besoin de cette joueur minimum sinon ça leur mettra un avertissement toutes les 15 minutes de jeu). | |
|
| |
Pastek
Messages : 5 Date d'inscription : 01/06/2010
| Sujet: Re: Bulk orders problème Jeu 4 Aoû - 16:41 | |
| J'ai utilisé Razor et j'ai réussi a me connecter Merci de ton aide Aurai tu une petite liste exhaustive des commande de base en tant qu'admin ? | |
|
| |
Scriptiz
Messages : 102 Date d'inscription : 02/09/2008 Localisation : Belgium
| Sujet: Re: Bulk orders problème Jeu 4 Aoû - 17:06 | |
| La liste des commandes de base : http://www.runuo.ru/docs/commands.html Cool que ça ait bien fonctionné | |
|
| |
Pastek
Messages : 5 Date d'inscription : 01/06/2010
| Sujet: Re: Bulk orders problème Ven 5 Aoû - 8:46 | |
| Merci pour la liste Je vais regarder un peu tout ça. | |
|
| |
Contenu sponsorisé
| Sujet: Re: Bulk orders problème | |
| |
|
| |
| Bulk orders problème | |
|