|
Re: C# wrapper 2.1.3 - RELEASE
[Re: Stromausfall]
#346192
11/02/10 13:31
11/02/10 13:31
|
Joined: Dec 2002
Posts: 616 Austria
Stromausfall
OP
User
|
OP
User
Joined: Dec 2002
Posts: 616
Austria
|
this update includes (big thanks to 3dgs_snake): - fixes a bug were assigning null to some EngineObject EngineObject properties resulted in a crash - moved all vector and angle functions to VectorBase and change the Parameters to VectorBase which allows to use these functions with all class which are derived from VectorBase (Vector, Color and Angle) - constructors of EngineObjects changed from private to protected - added the ReferenceStorage class which allows to store a reference to an object in an integer, thus allowing to store a object in for example ENTITY.skill50 here's the link : AcknexWrapper_8_0_3_2__2_1_3.zip
Last edited by Stromausfall; 11/02/10 13:32.
|
|
|
Re: C# wrapper 2.1.3 - RELEASE
[Re: Stromausfall]
#346193
11/02/10 13:37
11/02/10 13:37
|
Joined: Feb 2010
Posts: 320 TANA/Madagascar
3dgs_snake
Senior Member
|
Senior Member
Joined: Feb 2010
Posts: 320
TANA/Madagascar
|
You are really fast at doing things! How many hands do you have? Or do you use some magic keyboard and mouse ? I'll get it now and make some test, perhaps we have here the best wrapper of all? Thanks for your work!
|
|
|
Re: C# wrapper 2.1.3 - RELEASE
[Re: 3dgs_snake]
#346202
11/02/10 18:11
11/02/10 18:11
|
Joined: Jul 2007
Posts: 424 EUROPE
maslone1
Senior Member
|
Senior Member
Joined: Jul 2007
Posts: 424
EUROPE
|
Thanx a lot for your great contribution!
A8c, Blender, FlStudio, Unity3d
|
|
|
C# wrapper 2.1.4 - RELEASE
[Re: maslone1]
#346297
11/03/10 20:27
11/03/10 20:27
|
Joined: Dec 2002
Posts: 616 Austria
Stromausfall
OP
User
|
OP
User
Joined: Dec 2002
Posts: 616
Austria
|
and again a new version ^^ this update includes: - added + and - operator for eventHandlers - changed return type of file_length from double to int - changed return type of file_load from IntPtr to String here's the link : AcknexWrapper_8_0_3_2__2_1_4.zip
|
|
|
Re: C# wrapper 2.1.4 - RELEASE
[Re: maslone1]
#347519
11/15/10 20:37
11/15/10 20:37
|
Joined: Feb 2009
Posts: 3,207 Germany, Magdeburg
Rei_Ayanami
Expert
|
Expert
Joined: Feb 2009
Posts: 3,207
Germany, Magdeburg
|
Hello I have tried your wrapper, and I really like it. But I have a problem (maybe it's because of my stupidness and because I just started with C#...)... However, if I embed my window in a Form(with the tut on your site), I cannot really create entities because I get an AccesViolationExeption in engine_frame (Reading/Writing protected memory areas), this seem to happen only with some models, though. Any ideas why?
|
|
|
Re: C# wrapper 2.1.4 - RELEASE
[Re: Rei_Ayanami]
#347529
11/15/10 22:38
11/15/10 22:38
|
Joined: Dec 2002
Posts: 616 Austria
Stromausfall
OP
User
|
OP
User
Joined: Dec 2002
Posts: 616
Austria
|
i guess that's most likely because you press a button or something in your form and then you create there the entity, but this leads almost inevitably to problems, as functions may only be called when the engine is no in the engine_frame or any other engine function ^^ thus the proper way to create an entity or interact with the entity from another thread - thus in the function of your button is the following (like in the example on the homepage) - should be
private void changeTextButton_Click(object sender, EventArgs e)
{
//add this function THREAD SAFE to the scheduler
Scheduler.AddEventVoidThreadSafe(createEntity);
}
static ENTITY dummy = null;
private IEnumerable changeText()
{
dummy = ENTITY.ent_create("some entity", new Vector(), null);
yield return 1;
}
if this doesn't work for you - send me the part of your project or a small example project were this happens and I'll have a look at it !
|
|
|
|