Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/28/24 09:55
basik85278
by basik85278. 04/28/24 08:56
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 744 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 19 of 32 1 2 17 18 19 20 21 31 32
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 Offline OP
User
Stromausfall  Offline 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.

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.4 [Re: Stromausfall] #287085
08/29/09 21:02
08/29/09 21:02
Joined: Dec 2002
Posts: 616
Austria
Stromausfall Offline OP
User
Stromausfall  Offline 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 :
Quote:
//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!


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.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 Offline
Senior Member
pararealist  Offline
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 Offline OP
User
Stromausfall  Offline 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 !):
Code:
viewTo.flags = ((int)(viewTo.flags & ~Flags.NOSHADER) | (m_camera.flags & Flags.NOSHADER));




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.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 Offline
Senior Member
pararealist  Offline
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.
Re: C# wrapper - A7.80 V1.0.4 [Re: pararealist] #287286
08/31/09 08:30
08/31/09 08:30
Joined: Dec 2002
Posts: 616
Austria
Stromausfall Offline OP
User
Stromausfall  Offline OP
User

Joined: Dec 2002
Posts: 616
Austria
I just included the new version of the wrapper into a project which used a former version of the wrapper and also experienced your problem !
It seems that Visual Studio doesn't include new files automatically, so you have to do the following :

-Go to the Solution explorer (on the far right)
-Open the folder AcknexWrapper through clicking on the plus beside it
-then click on the second symbol in the solution explorer "Show all files"
-then right-click on the white/gray file called Flags in the solution explorer
-and click on "Include In Project"
-after this you can click on "Show all files" again !

this should fix the problem !


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.4 [Re: Stromausfall] #287290
08/31/09 09:23
08/31/09 09:23
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'm surprised at the problems VS 2008 Express has.
And its very slow loading a project. But its free
so we cant really complain too much i suppose.


A8.3x Commercial, AcknexWrapper and VS 2010 Express
○pararealist now.
C# wrapper - A7.80 V1.0.6 [Re: Stromausfall] #291196
09/23/09 19:14
09/23/09 19:14
Joined: Dec 2002
Posts: 616
Austria
Stromausfall Offline OP
User
Stromausfall  Offline OP
User

Joined: Dec 2002
Posts: 616
Austria
Hi !
I've just uploaded version 1.0.6 of the AcknexWrapper for A7.80.
This version adds two functions to the Scheduler class additionally to the
Scheduler.AddEventVoid(EventVoid MethodToSchedule)
method:

Scheduler.NewFirstEventVoid(EventVoid MethodToSchedule)
Scheduler.NewLastEventVoid(EventVoid MethodToSchedule)

NewFirstEventVoid adds the function passed as parameter to the scheduler so that it is always executed BEFORE all other scheduled functions

NewLastEventVoid adds the function passed as parameter to the scheduler so that it is always executed AFTER all other scheduled functions

But one has to notice that the First and the Last EventVoid which may be assigned through this method, are first scheduled after one frame !

As always : if you know a function which should be added or something that you would like to see changed in the wrapper, post here ^^


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
C# wrapper - A7.80 V1.0.7 [Re: Stromausfall] #291259
09/24/09 09:12
09/24/09 09:12
Joined: Dec 2002
Posts: 616
Austria
Stromausfall Offline OP
User
Stromausfall  Offline OP
User

Joined: Dec 2002
Posts: 616
Austria
Hi !
I recently found a bug that is now fixed in version 1.0.7 for A7.80 !
Methods that were added to the Scheduler via AddEventVoid didn't take in account what value the first yield returned.


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.7 [Re: Stromausfall] #291292
09/24/09 12:19
09/24/09 12: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...
Thanks ever so much, resizing works perfect now.


A8.3x Commercial, AcknexWrapper and VS 2010 Express
○pararealist now.
Page 19 of 32 1 2 17 18 19 20 21 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