Gamestudio Links
Zorro Links
Newest Posts
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
M1 Oversampling
by 11honza11. 04/20/24 20:57
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (rki, AndrewAMD), 407 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 16 of 32 1 2 14 15 16 17 18 31 32
Re: C# wrapper - A6.60 [Re: Stromausfall] #283980
08/11/09 02:36
08/11/09 02:36
Joined: Feb 2005
Posts: 3,687
Hessen, Germany
T
Tempelbauer Offline
Expert
Tempelbauer  Offline
Expert
T

Joined: Feb 2005
Posts: 3,687
Hessen, Germany
great smile

but where is the downloadlink? on your site are just the A7-versions.
maybe i´m blind... confused

Re: C# wrapper - A6.60 [Re: Tempelbauer] #283992
08/11/09 07:14
08/11/09 07:14
Joined: Dec 2002
Posts: 616
Austria
Stromausfall Offline OP
User
Stromausfall  Offline OP
User

Joined: Dec 2002
Posts: 616
Austria
now that's really strange, the site should look like the following picture (screenshot of the homepage) : http://acknexwrapper.matthias-auer.net/homepage.PNG


get the C# wrapper:
for A7.85.4 and A8.30.4, Version 2.3.9
at http://acknexwrapper2.matthias-auer.net/ or visit the thread
Re: C# wrapper - A6.60 [Re: Stromausfall] #284040
08/11/09 11:40
08/11/09 11:40
Joined: Feb 2005
Posts: 3,687
Hessen, Germany
T
Tempelbauer Offline
Expert
Tempelbauer  Offline
Expert
T

Joined: Feb 2005
Posts: 3,687
Hessen, Germany
oh, sry
the browser-cache... blush

Re: C# wrapper - RELEASE [Re: Stromausfall] #284098
08/11/09 18:19
08/11/09 18:19
Joined: Dec 2006
Posts: 434
UK,Terra, SolarSystem, Milky W...
pararealist Offline
Senior Member
pararealist  Offline
Senior Member

Joined: Dec 2006
Posts: 434
UK,Terra, SolarSystem, Milky W...
@Stromausfall

Problem in entity class
Code:
public class Actor : ENTITY
{
        /*create entity player*/
        private static ENTITY m_actor = null; 
        ...
        public Actor()
        {
           // m_actor = new ENTITY();  //CRASH
           // m_actor = (ENTITY)EngVar.player; //CRASH
           //m_actor = (ENTITY)EngFun.ent_create(null, new Vector(0, 0, 0), null); //CRASH
           ...
        }
        ...
}


CRASHES in Var.cs
Code:
public class Var
    {
        private NativeVar HiddenVar = new NativeVar();
        private IntPtr VarIntPtr = IntPtr.Zero;

        private int mValue
        {
            get
            {
                if (VarIntPtr != IntPtr.Zero)
                {
                    unsafe
                    {
                        HiddenVar = *((NativeVar*)VarIntPtr);
                    }
                }
                return HiddenVar.mValue;
            }
            set
            {
                HiddenVar.mValue = value;
                if (VarIntPtr != IntPtr.Zero)  //update structure in unmanaged memory if the var was already used as IntPtr
                {
                    Marshal.StructureToPtr(HiddenVar, VarIntPtr, false); //CRASH HERE
                }
            }
        }



In Main called
Actor testactor = new Actor();

Please can you try to reproduce?
Thanks.


A8.3x Commercial, AcknexWrapper and VS 2010 Express
○pararealist now.
Re: C# wrapper - RELEASE [Re: pararealist] #284111
08/11/09 18:57
08/11/09 18:57
Joined: Dec 2002
Posts: 616
Austria
Stromausfall Offline OP
User
Stromausfall  Offline OP
User

Joined: Dec 2002
Posts: 616
Austria
i wrote the following :
Code:
public class Actor : ENTITY
    {
        private static ENTITY m_actor = null;

        public Actor()
        {
            m_actor = new ENTITY();  //CRASH
            m_actor = (ENTITY)EngVar.player; //CRASH
            m_actor = (ENTITY)EngFun.ent_create(null, new Vector(0, 0, 0), null); //CRASH
        }
    }


and in my main method i called
Code:
Actor testactor = new Actor();



but this call didn't cause any crash, error or exception : /
Do you have another example where this crash happens ?

Last edited by Stromausfall; 08/11/09 19:09.

get the C# wrapper:
for A7.85.4 and A8.30.4, Version 2.3.9
at http://acknexwrapper2.matthias-auer.net/ or visit the thread
Re: C# wrapper - RELEASE [Re: Stromausfall] #284116
08/11/09 19:13
08/11/09 19:13
Joined: Dec 2006
Posts: 434
UK,Terra, SolarSystem, Milky W...
pararealist Offline
Senior Member
pararealist  Offline
Senior Member

Joined: Dec 2006
Posts: 434
UK,Terra, SolarSystem, Milky W...
No, its just in the actor class
OK, i will create the actor class new
and see, maybe there is an error in
the first one somewhere.

Its still the same, each call from constructor crashes
in the newly created class.
//
If i comment out the call in main, all is fine.
//
Sorted it just now, i had left out public before class, how silly of me.
can now use

Code:
Actor m_actor = new Actor(models + "cbabe.mdl", new Vector(0, 0, 16), Actor.ActorAction);



Last edited by pararealist; 08/15/09 05:02.

A8.3x Commercial, AcknexWrapper and VS 2010 Express
○pararealist now.
Re: C# wrapper - RELEASE [Re: pararealist] #284765
08/14/09 22:10
08/14/09 22:10
Joined: May 2004
Posts: 1,510
Denmark
Claus_N Offline
Serious User
Claus_N  Offline
Serious User

Joined: May 2004
Posts: 1,510
Denmark
I finally got the time for trying it (using SharpDevelop) - so far everything works great!

Thank you for this very nice contribution! smile

Re: C# wrapper - RELEASE [Re: Claus_N] #284790
08/15/09 04:55
08/15/09 04:55
Joined: Dec 2006
Posts: 434
UK,Terra, SolarSystem, Milky W...
pararealist Offline
Senior Member
pararealist  Offline
Senior Member

Joined: Dec 2006
Posts: 434
UK,Terra, SolarSystem, Milky W...
Great.


A8.3x Commercial, AcknexWrapper and VS 2010 Express
○pararealist now.
Re: C# wrapper - A7.80 V1.0 [Re: Stromausfall] #284847
08/15/09 13:25
08/15/09 13:25
Joined: Dec 2002
Posts: 616
Austria
Stromausfall Offline OP
User
Stromausfall  Offline OP
User

Joined: Dec 2002
Posts: 616
Austria
version 1.0 of the wrapper for A7.80 was released, it contains all new features of A7.80 except the Engine Variable "sys_active" which be added when the next version of Gamestudio is released. It also features an alternative way to set flags and masks. The manual was also updated (but only the change list ^^)
get it here : http://acknexwrapper.matthias-auer.net


get the C# wrapper:
for A7.85.4 and A8.30.4, Version 2.3.9
at http://acknexwrapper2.matthias-auer.net/ or visit the thread
Re: C# wrapper - A7.80 V1.0.1 [Re: Stromausfall] #284875
08/15/09 16:57
08/15/09 16:57
Joined: Dec 2002
Posts: 616
Austria
Stromausfall Offline OP
User
Stromausfall  Offline OP
User

Joined: Dec 2002
Posts: 616
Austria
version 1.0.1 of the wrapper for A7.80 and A6.60 was released, it fixes a bug with the Var method getValueFrom (which affects some functions)
get it here : http://acknexwrapper.matthias-auer.net


get the C# wrapper:
for A7.85.4 and A8.30.4, Version 2.3.9
at http://acknexwrapper2.matthias-auer.net/ or visit the thread
Page 16 of 32 1 2 14 15 16 17 18 31 32

Moderated by  TWO 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1