ScriptUO

Scripting Resources & Utilities => Stealth Client => Stealth archive => Topic started by: rwo001 on November 26, 2013, 04:16:56 PM

Title: Error on getting Resist from Stealth.Script_GetExtInfo() (C#)
Post by: rwo001 on November 26, 2013, 04:16:56 PM
Code: [Select]
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ScriptDotNet;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            TExtendedInfo ExtInfo = Stealth.Script_GetExtInfo();
            Console.Write(Convert.ToSingle(ExtInfo.FireResist));
            // Output : 2304 , Real is 5
            Console.ReadLine();

        }
    }
}

What the problem is ? I'm is OSI shard
Title: Re: Error on getting Resist from Stealth.Script_GetExtInfo() (C#)
Post by: Orich on November 26, 2013, 04:34:15 PM
Fixed in new ScriptDotNet.DLL

The record was packed coming from Stealth ... Sorry about that.
Title: Re: Error on getting Resist from Stealth.Script_GetExtInfo() (C#)
Post by: rwo001 on November 26, 2013, 05:27:00 PM
Thanks and waiting for the new patch.. ;D
Title: Re: Error on getting Resist from Stealth.Script_GetExtInfo() (C#)
Post by: Orich on November 26, 2013, 11:40:15 PM
I already uploaded the new ScriptDotNet.DLL

It's on the Bitbucket download link at the bottom of this post :

http://www.scriptuo.com/index.php?topic=11628.0
Title: Re: Error on getting Resist from Stealth.Script_GetExtInfo() (C#)
Post by: rwo001 on November 27, 2013, 04:14:14 AM
Code: [Select]
The thread 0x28e8 has exited with code 259 (0x103).
The thread 0x67c has exited with code 259 (0x103).
'ConsoleApplication2.vshost.exe' (CLR v4.0.30319: ConsoleApplication2.vshost.exe): Loaded 'c:\users\ray\documents\visual studio 2013\Projects\ConsoleApplication2\ConsoleApplication2\bin\Debug\ConsoleApplication2.exe'. Symbols loaded.
'ConsoleApplication2.vshost.exe' (CLR v4.0.30319: ConsoleApplication2.vshost.exe): Loaded 'c:\users\ray\documents\visual studio 2013\Projects\ConsoleApplication2\ConsoleApplication2\bin\Debug\ScriptDotNet.dll'. Cannot find or open the PDB file.
A first chance exception of type 'System.TypeInitializationException' occurred in ConsoleApplication2.exe
Additional information: The type initializer for 'ScriptDotNet.Stealth' threw an exception.

'ConsoleApplication2.vshost.exe' (CLR v4.0.30319: ConsoleApplication2.vshost.exe): Loaded 'C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll'. Skipped loading symbols. Module is optimized and the debugger option 'Just My Code' is enabled.
An unhandled exception of type 'System.TypeInitializationException' occurred in ConsoleApplication2.exe
Additional information: The type initializer for 'ScriptDotNet.Stealth' threw an exception.

The program '[7372] ConsoleApplication2.vshost.exe' has exited with code 0 (0x0).

it seems have problem....
Title: Re: Error on getting Resist from Stealth.Script_GetExtInfo() (C#)
Post by: Crome969 on November 27, 2013, 04:38:56 AM
Quote
C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll'
I remember we pushed project to 4.5. Maybe missing assemblys?
I also get often that issue
Quote
An unhandled exception of type 'System.TypeInitializationException' occurred in ConsoleApplication2.exe
when not running Visual Studio as Admin and try to run debugger.
Title: Re: Error on getting Resist from Stealth.Script_GetExtInfo() (C#)
Post by: rwo001 on November 27, 2013, 05:59:01 AM
Run as Administrator can work  ;)