Code:
UberEnvironment.GetGame().GetCatalog().InitCache();
This may be the cause of the errors, ill continue investigating
---------- Post added at 08:20 PM ---------- Previous post was at 08:16 PM ----------
Right
I ran this in Debugger mode, this is the error
Code:
The thread '<No Name>' (0xed0) has exited with code 0 (0x0).
The thread 'vshost.LoadReference' (0x12f8) has exited with code 0 (0x0).
'uberEmu.vshost.exe' (Managed (v4.0.30319)): Loaded 'E:\BASHALPHA\bin\Debug\uberEmu.exe', Symbols loaded.
A first chance exception of type 'System.Exception' occurred in uberEmu.exe
The program '[5344] uberEmu.vshost.exe: Managed (v4.0.30319)' has exited with code 0 (0x0).
---------- Post added at 08:23 PM ---------- Previous post was at 08:20 PM ----------
Ahhh Fixed mine now - Ill post how to now :)
---------- Post added at 08:25 PM ---------- Previous post was at 08:23 PM ----------
Right, to fix this
Replace your Program.cs with this code
PHP Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Security.Permissions;
using Uber.Core;
namespace Uber
{
public class Program
{
[SecurityPermission(SecurityAction.Demand, Flags = SecurityPermissionFlag.ControlAppDomain)]
public static void Main(string[] args)
{
AppDomain currentDomain = AppDomain.CurrentDomain;
currentDomain.UnhandledException += new UnhandledExceptionEventHandler(MyHandler);
try
{
UberEnvironment.Initialize();
while (true) //
{ //
Console.ReadLine(); //
}
}
catch (Exception e)
{
Console.Write(e.ToString()); //
Console.Read();
}
}
static void MyHandler(object sender, UnhandledExceptionEventArgs args)
{
Exception e = (Exception)args.ExceptionObject;
Logging.LogCriticalException(e.ToString());
}
}
}
It will now display errors, if it errors. Post it here!