Author Topic: Error on getting Resist from Stealth.Script_GetExtInfo() (C#)  (Read 4847 times)

0 Members and 1 Guest are viewing this topic.

Offline rwo001Topic starter

  • Jr. Member
  • **
  • Posts: 45
  • Activity:
    0%
  • Reputation Power: 1
  • rwo001 has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
Error on getting Resist from Stealth.Script_GetExtInfo() (C#)
« on: November 26, 2013, 04:16:56 PM »
0
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

Offline Orich

  • Jr. Member
  • **
  • Posts: 77
  • Activity:
    0%
  • Reputation Power: 3
  • Orich has no influence.
  • Respect: +12
  • Referrals: 1
    • View Profile
Re: Error on getting Resist from Stealth.Script_GetExtInfo() (C#)
« Reply #1 on: November 26, 2013, 04:34:15 PM »
0
Fixed in new ScriptDotNet.DLL

The record was packed coming from Stealth ... Sorry about that.
Member of the Stealth development team.
Author of Stealth .NET DLL

Offline rwo001Topic starter

  • Jr. Member
  • **
  • Posts: 45
  • Activity:
    0%
  • Reputation Power: 1
  • rwo001 has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
Re: Error on getting Resist from Stealth.Script_GetExtInfo() (C#)
« Reply #2 on: November 26, 2013, 05:27:00 PM »
0
Thanks and waiting for the new patch.. ;D

Offline Orich

  • Jr. Member
  • **
  • Posts: 77
  • Activity:
    0%
  • Reputation Power: 3
  • Orich has no influence.
  • Respect: +12
  • Referrals: 1
    • View Profile
Re: Error on getting Resist from Stealth.Script_GetExtInfo() (C#)
« Reply #3 on: November 26, 2013, 11:40:15 PM »
0
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
Member of the Stealth development team.
Author of Stealth .NET DLL

Offline rwo001Topic starter

  • Jr. Member
  • **
  • Posts: 45
  • Activity:
    0%
  • Reputation Power: 1
  • rwo001 has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
Re: Error on getting Resist from Stealth.Script_GetExtInfo() (C#)
« Reply #4 on: November 27, 2013, 04:14:14 AM »
0
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....

Offline Crome969

  • Moderator
  • *
  • *****
  • Posts: 2098
  • Activity:
    0%
  • Reputation Power: 25
  • Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.Crome969 is on the verge of being accepted.
  • Gender: Male
  • UO Enthusiast
  • Respect: +211
  • Referrals: 10
    • View Profile
    • ScriptSDK
Re: Error on getting Resist from Stealth.Script_GetExtInfo() (C#)
« Reply #5 on: November 27, 2013, 04:38:56 AM »
0
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.

Offline rwo001Topic starter

  • Jr. Member
  • **
  • Posts: 45
  • Activity:
    0%
  • Reputation Power: 1
  • rwo001 has no influence.
  • Respect: 0
  • Referrals: 0
    • View Profile
Re: Error on getting Resist from Stealth.Script_GetExtInfo() (C#)
« Reply #6 on: November 27, 2013, 05:59:01 AM »
0
Run as Administrator can work  ;)

Tags: