0 registered members (),
744
guests, and 5
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: C# wrapper - A7.80 V1.0.2
[Re: DJBMASTER]
#285978
08/21/09 23:03
08/21/09 23:03
|
Joined: Dec 2002
Posts: 616 Austria
Stromausfall
OP
User
|
OP
User
Joined: Dec 2002
Posts: 616
Austria
|
Yes that seems to be a bug, thank you ! I will upload a new version tomorrow, that fixes this issue (and i will also have a look at the other pan_ functions which most likely also suffer from this)! until then you can replace the pan_setbutton function in the EngFun.cs file with the following pan_setbutton method : http://www.matthias-auer.net/pan_.txt which should enable to pass null as parameter for BMAP in pan_setbutton! edit: I will upload the updated wrapper later, as my main pc is currently defect ^^
Last edited by Stromausfall; 08/23/09 18:16.
|
|
|
Re: C# wrapper - A7.80 V1.0.4
[Re: Stromausfall]
#287085
08/29/09 21:02
08/29/09 21:02
|
Joined: Dec 2002
Posts: 616 Austria
Stromausfall
OP
User
|
OP
User
Joined: Dec 2002
Posts: 616
Austria
|
Finally i got my pc to work again ^^ I've uploaded a new Version of the Wrapper for A7.80, Version 1.0.4 : It fixes the issue with BMAP bein null in pan_setbmap, pan_setneedle, pan_setslider, pan_setwindow and pan_setbutton. This update additionally features a new class called "Flags" which contains ALL flags which may be used (the are now stored as const int and not as enum, so one doesn't have to cast them to int anymore !). Thus one doesn't have to guess where the enum for certain flags is stored (thanks to pararealist as he showed me that the current usage of flags wasn't flawless!). Thus flags may now be used as followed : //old usage (is still supported) EngFun.c_trace(new Vector(0, 0, 0), new Vector(0, 0, 0), (int)(EngFun.c_FLAGS.IGNORE_FLAG2 | EngFun.c_FLAGS.IGNORE_PASSABLE));
//new usage EngFun.c_trace(new Vector(0, 0, 0), new Vector(0, 0, 0), Flags.IGNORE_FLAG2 | Flags.IGNORE_PASSABLE); If someone has any suggestions for the next release, post them here please!
|
|
|
Re: C# wrapper - A7.80 V1.0.4
[Re: Stromausfall]
#287112
08/30/09 05:25
08/30/09 05:25
|
Joined: Dec 2006
Posts: 434 UK,Terra, SolarSystem, Milky W...
pararealist
Senior Member
|
Senior Member
Joined: Dec 2006
Posts: 434
UK,Terra, SolarSystem, Milky W...
|
Hi Stromausfakk i was trying to convert this:
viewTo.flags = ( (int)(viewTo.flags & ~NOSHADER) | (m_camera.flags & NOSHADER) );
but NOSHADER seems to be returning bool instead of int. bool wont work with ~(tilde).
viewTo.NOSHADER = false; m_camera.NOSHADER = true;
A8.3x Commercial, AcknexWrapper and VS 2010 Express ○pararealist now.
|
|
|
Re: C# wrapper - A7.80 V1.0.4
[Re: pararealist]
#287205
08/30/09 17:10
08/30/09 17:10
|
Joined: Dec 2002
Posts: 616 Austria
Stromausfall
OP
User
|
OP
User
Joined: Dec 2002
Posts: 616
Austria
|
Hi ! i just uploaded version 1.0.5 (in 1.0.4 i added static to const int variables -.- and 1.0.5 fixes that error !) the problem in your example is that viewTo.NOSHADER is indeed bool, which is WAD ! you would have to write the following code if you want to convert that line (i didn't try it, but it should work !):
viewTo.flags = ((int)(viewTo.flags & ~Flags.NOSHADER) | (m_camera.flags & Flags.NOSHADER));
|
|
|
Re: C# wrapper - A7.80 V1.0.4
[Re: Stromausfall]
#287260
08/31/09 02:16
08/31/09 02:16
|
Joined: Dec 2006
Posts: 434 UK,Terra, SolarSystem, Milky W...
pararealist
Senior Member
|
Senior Member
Joined: Dec 2006
Posts: 434
UK,Terra, SolarSystem, Milky W...
|
Using viewTo.flags = ((int)(viewTo.flags & ~Flags.NOSHADER) | (m_camera.flags & Flags.NOSHADER));
The name Flags does not exist in the current context. (Flags.NOSHADER). Using ver 1.0.5.
A8.3x Commercial, AcknexWrapper and VS 2010 Express ○pararealist now.
|
|
|
|