Gamestudio Links
Zorro Links
Newest Posts
Zorro FIX plugin - Experimental
by 7th_zorro. 04/20/24 07:29
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (7th_zorro, henrybane, flink, Edgar_Herrera), 758 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rating: 5
Page 9 of 23 1 2 7 8 9 10 11 22 23
Re: C# wrapper 2.2.1 - RELEASE [Re: Dark_samurai] #365417
03/26/11 15:11
03/26/11 15:11
Joined: Dec 2002
Posts: 616
Austria
Stromausfall Offline OP
User
Stromausfall  Offline OP
User

Joined: Dec 2002
Posts: 616
Austria
>>But I noticed a problem with the focus thing. If the main form creates a dialog that is placed over the engine window, you will be unable to click a button in this dialog.


lol yeah that's indeed a problem, to fix this the dialog would have to somehow register itself to the focus handling piece of the code...

yepp the other solution is far easier in this regard ^^


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 2.2.1 - RELEASE [Re: Stromausfall] #365437
03/26/11 18:34
03/26/11 18:34
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline
Serious User
DJBMASTER  Offline
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
Stromausfall - did you ever use/look into 'AttachThreadInput'. I'm sure this is the right way to do this. It will attach the engine thread to the window thread, so any input registered on the window, will automatically transfer to the engine handler.

Re: C# wrapper 2.2.1 - RELEASE [Re: Stromausfall] #365439
03/26/11 18:45
03/26/11 18:45
Joined: Jul 2005
Posts: 1,930
Austria
Dark_samurai Offline
Serious User
Dark_samurai  Offline
Serious User

Joined: Jul 2005
Posts: 1,930
Austria
I have a question regarding to the scheduler and time_step:
In Lite-C we have to multiply things like the camera speed with time_step so that the speed is framerate unrelated. But I converted my camera code to c# and now it moves slow as hell. --> is SchedulerMethod.wait(1); some kind of slower than wait(1) in Lite-C?

Code:
private IEnumerable<ScheduleMethod> myMainMethod()
{
   //...
   while (true)
   {
      CameraFunc();

      //HeavyFunc();

      yield return ScheduleMethod.wait(1);
   }
}

void ShowEditorCam()
{
   EngVar.Camera.x += 5 * time_step;
}



Another thing I notice, if a function that does heavy calculations is also called every frame the camera moves faster --> time_step got bigger.

Could it be that SchedulerMethod.wait(1) doesn't wait only 1 frame but more?


ANet - A stable and secure network plugin with multi-zone, unlimited players, voip, server-list features,... (for A7/A8)!
get free version
Re: C# wrapper 2.2.1 - RELEASE [Re: Dark_samurai] #365440
03/26/11 18:56
03/26/11 18:56
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...
I have not had any problems with camera being slower,
but i make my camera method also an IEnumerable<ScheduleMethod>.


Last edited by pararealist; 03/26/11 19:18.

A8.3x Commercial, AcknexWrapper and VS 2010 Express
&#9675;pararealist now.
Re: C# wrapper 2.2.1 - RELEASE [Re: pararealist] #365444
03/26/11 19:08
03/26/11 19:08
Joined: Dec 2002
Posts: 616
Austria
Stromausfall Offline OP
User
Stromausfall  Offline OP
User

Joined: Dec 2002
Posts: 616
Austria
@DJBMASTER, nope didn't have a look yet, but I'll look into that, the function name at least sounds promising ^^
edit: I had a quick look at the function, and it seams that this function uses thread ids, but not managed thread ids ! That's a potential problem afaik, because the native thread of a managed thread may change during runtime afaik!
second edit: the two methods Thread.EndThreadAffinity() and Thread.BeginThreadAffinity() prevent this... hmmm now only the function would need to work (let's hope it does ^^)
third edit ^^: didn't manage to get it to work frown

@Dark_samurai hmmm nope wait(1), should only wait one frame !
did you set fps_max ?


Last edited by Stromausfall; 03/26/11 21:05.

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 2.2.2 - RELEASE [Re: Stromausfall] #365710
03/28/11 18:39
03/28/11 18:39
Joined: Dec 2002
Posts: 616
Austria
Stromausfall Offline OP
User
Stromausfall  Offline OP
User

Joined: Dec 2002
Posts: 616
Austria
a new version was uploaded (for Acknex 7.85.4 AND Acknex 8.10)
the update of the wrapper includes:

- MATERIAL, too large internal type(double instead of float) for matrix11 to matrix44 variables - skin1..4 didn't work - fixed
- MATRIX, too large internal type(double instead of float) for element00 to element33 - fixed
- EngVar.on_message, can now be not only changed (set) but also retrieved (get)
- ent_getvertex - null couldn't be passed as Contact argument - fixed
- the Scheduler.EngineClosed variable was intialized with false even though the scheduler wasn't started (the scheduler sets it automatically to false and after it exits, to true !) -> fixed, EngineClosed is now initialized with true
- int to double : Text.pos_x, Text.pos_y, Text.offset_y, Text.size_y, Text.size_x

here's the link:

AcknexWrapper_8_10__2_2_2.zip


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 2.2.2 - RELEASE [Re: Stromausfall] #365787
03/29/11 11:16
03/29/11 11:16
Joined: Mar 2011
Posts: 13
Yorkshire, England
monotonic Offline
Newbie
monotonic  Offline
Newbie

Joined: Mar 2011
Posts: 13
Yorkshire, England
Hi,

I purchased the Commercial license yesterday and when I came to start making my project using the wrapper I keep getting an AccessViolationException - Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

This exception is thrown during the EngFun.engine_open(null, null); line in the example code. I have also tested a previous project (that was working) that I created whilst using the Free version of 3DGS and that throws the same exception. This leads me to believe that there is an issue with the Commercial version I have installed.

Any ideas what this could be?

Thanks in advance.

Re: C# wrapper 2.2.2 - RELEASE [Re: monotonic] #365794
03/29/11 12:55
03/29/11 12:55
Joined: Dec 2002
Posts: 616
Austria
Stromausfall Offline OP
User
Stromausfall  Offline OP
User

Joined: Dec 2002
Posts: 616
Austria
hmmm could you zip a small version of your project and send it to my e-mail address ? then I could have a look at it (mail@matthias-auer.net) !
The commercial version should without a doubt be able to be used from external languages !


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 2.2.2 - RELEASE [Re: Stromausfall] #365796
03/29/11 13:04
03/29/11 13:04
Joined: Mar 2011
Posts: 13
Yorkshire, England
monotonic Offline
Newbie
monotonic  Offline
Newbie

Joined: Mar 2011
Posts: 13
Yorkshire, England
Hi,

I have sent you an email with a test project attached, this is essentially an example off your the website.

Thanks

Re: C# wrapper 2.2.2 - RELEASE [Re: monotonic] #365802
03/29/11 13:32
03/29/11 13:32
Joined: Dec 2002
Posts: 616
Austria
Stromausfall Offline OP
User
Stromausfall  Offline OP
User

Joined: Dec 2002
Posts: 616
Austria
thanks, i received your project, it worked for me without a problem...
This is indeed strange ! Does a lite-c program already display Commercial version ? Other than that I can't really think of why this doesn't work on your computer...
edit : do you have administrator rights on the windows user account you use ?

Last edited by Stromausfall; 03/29/11 13:36.

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 9 of 23 1 2 7 8 9 10 11 22 23

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