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
1 registered members (AndrewAMD), 533 guests, and 2 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 6 of 23 1 2 4 5 6 7 8 22 23
Re: C# wrapper 2.1.4 - RELEASE [Re: Tempelbauer] #351041
12/21/10 10:15
12/21/10 10:15
Joined: Dec 2008
Posts: 528
Wagga, Australia
the_mehmaster Offline
User
the_mehmaster  Offline
User

Joined: Dec 2008
Posts: 528
Wagga, Australia
I'm pretty sure the one I saw on forecast WAS Stromausfall's wrapper. wink

Re: C# wrapper 2.1.8 - RELEASE [Re: the_mehmaster] #352241
01/02/11 13:30
01/02/11 13:30
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
this update includes:
- update to 8.10
- engine extern Vector method vec_compareValues added, returns true if the values of the two vectors are equal
- engine extern Vector method vec_copy added, creates and returns a copy of the Vector/Color/Angle/VectorBase/PATH_EDGE (doesn't use the same memory, but has the same values)
- Vector xyz, Vector nxnynz, Vector x3y3z3 removed from D3DVertex, because D3DVertex doesn't use Var but Float !
- c_updatehull added

here's the link :

AcknexWrapper_8_10__2_1_8.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.1.8 - RELEASE [Re: Stromausfall] #352245
01/02/11 13:57
01/02/11 13:57
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline
Serious User
DJBMASTER  Offline
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
Hey Stromausfall, I haven't used C# with acknex in a while, good to see you're still developing it smile.

For the vec_compareValues and vec_copy features you've added;

I think it would be more OOP friendly to implement the IComparer interface to perform comparisons.

Also for the vec_copy method, IMO it's better to implement ICloneable, and in the 'Clone' method, serialize the object into a MemoryStream and return the new object.

Just my thoughts, don't mean to trash your design implementations, it's great as always wink

Re: C# wrapper 2.1.9 - RELEASE [Re: DJBMASTER] #352285
01/02/11 18:27
01/02/11 18:27
Joined: Dec 2002
Posts: 616
Austria
Stromausfall Offline OP
User
Stromausfall  Offline OP
User

Joined: Dec 2002
Posts: 616
Austria
@DJBMASTER
Big thanks for the design tips ! IComparer seems to be really better ! I also implemented the ICloneable interface for the vectors, although i also implemented a copy constructor for the vectors as the clone method always returns a object and thus a cast is always required (the copy constructor solves this issue)!

a new version was uploaded
this update includes:
- vec_compareValues removed
- Vector/Color/Angle/VectorBase/PATH_EDGE now implement the IComparable<T> interface, thus CompareTo can be used (0 if the two objects have the same value)
- vec_copy removed
- Vector/Color/Angle/VectorBase/PATH_EDGE now implement the ICloneable interface
- Vector/Color/Angle/VectorBase/PATH_EDGE now have a copy constructor
- All EngineObjects now implement the IEquatable<t> interface (doesn't change anything, because equals and GetHashCode were already implemented...)

here's the link :

AcknexWrapper_8_10__2_1_9.zip

Last edited by Stromausfall; 01/02/11 18:27.

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.0 - RELEASE [Re: Stromausfall] #359119
02/15/11 19:05
02/15/11 19:05
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)
additonaly a shader example, a bones example and a how to load lite-c scripts in C# example and a list of lite-c functions with their c# counterparts was added to the homepage
the update of the wrapper includes:

- return type of engine_getscript changed to IntPtr
- smooth function was accidently named accelerate - fixed
- return type of floatv, floatd, floatr changed to Int32
- vec_for_vertex, called vec_for_normal instead of vec_for_vertex - fixed
- mat_scale, removed Matrix argument (unnecessary as the method is an instance method)
- changed return type of bmap_to_uv from IntPtr to BMAP
- return types of bmap_unlock, bmap_blit, bmap_blitpart, bmap_zbuffer changed from void to double
- bmap_process was implemented
- pixel_for_vec, pixel_to_vec moved from static BMAP methods to instance methods of VectorBase
- return type of engine_open changed from void to bool (indicates whether the engine_open call was successful)
- MATERIAL/ENTITY skills now have a raw_skills equivalent which allows to directly save Integer (important for Shaders!)
- c_ignore changed from an instance method to a static method
- video_border - documentation was added
- send_data_id function was added
- execute function was added

here's the link:

AcknexWrapper_8_10_2_2_0.zip

Last edited by Stromausfall; 02/15/11 20:01.

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] #361627
03/03/11 23:56
03/03/11 23:56
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:

- methods for schedulers now have IEnumerable<ScheduleMethod> as return type instead of IEnumerable !
- instead of PROC_MODE.EARLIEST -> ScheduleMethod.PROC_EARLIEST
- yield return Schedule.wait(x) is now the equivalent to lite-c wait(x)
- SchedulerEnabled removed
- Scheduler code revised
- Scheduler.StartScheduler(EventObject, object) added
- ent_createterrain -> if position wasn't null an exception was thrown -> bug fixed
- execute -> FreeHGlobal was called twice -> caused an exception -> bug fixed
- var_for_name added
- Scheduler.ThreadExecutingTheScheduler - returns the thread that executes the scheduler

here's the link:

AcknexWrapper_8_10_2_2_1.zip


ATTENTION :
as mentioned this update changes how PROC_MODE is changed and the return type of functions which are called by the scheduler (this is a quite significant change, but it allows the yield return calls to be far safer (as only allowed variables/objects can be returned) and the speed of the Scheduler is improved as the previous constant casting has now been removed)!
thus :

Code:
private IEnumerable bla()
{
yield return 1;
}


now becomes :
Code:
private IEnumerable<ScheduleMethod> bla()
{
yield return 1;
//or: yield return ScheduleMethod.wait(1);
//or: yield return ScheduleMethod.waitForFrames(1);
//ALL these three calls are equivalent !
}


and
Code:
private IEnumerable bla()
{
yield return 1;
yield return Scheduler.PROC_MODE.PROC_EARLIEST;
yield return 1;
}


now becomes :
Code:
private IEnumerable<ScheduleMethod> bla()
{
yield return 1;
yield return ScheduleMethod.PROC_EARLIEST;
yield return 1;
}



Last edited by Stromausfall; 03/03/11 23:57.

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] #361750
03/04/11 20:51
03/04/11 20:51
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline
Expert
MasterQ32  Offline
Expert

Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
some question:
is it normal that Panels pos_x, size_x and so on are double, but Texts pos_x, ... are int??


Visit my site: www.masterq32.de
Re: C# wrapper 2.2.1 - RELEASE [Re: MasterQ32] #361773
03/04/11 22:36
03/04/11 22:36
Joined: Dec 2002
Posts: 616
Austria
Stromausfall Offline OP
User
Stromausfall  Offline OP
User

Joined: Dec 2002
Posts: 616
Austria
yes, that's an inconsistency..I will fix that in the next update (all double instead of int), but it's not that critical i guess !
Thanks !


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] #363930
03/15/11 17:00
03/15/11 17:00
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 matthias,
for some reason the update does or is not working as shown in your update examples?

Code:
After adding AW 2.21 get ERROR:

error CS0308: The non-generic type 'System.Collections.IEnumerable' cannot be used with type arguments


using:
private IEnumerable<ScheduleMethod> myMainMethod() //ERROR:
{

	//....
       //yield return 1;
       yield return ScheduleMethod.wait( 1 );

}

and:
        private IEnumerable<ScheduleMethod> SizeWindow() //ERROR:
        {
            /*wait until the form is being resized*/
            while (ResizingNow == false)
            {
                //yield return 1;
                yield return ScheduleMethod.wait( 1 );
            }
            /*change the resolution*/
            EngFun.video_window(null, new Vector((this.panel_acknexWindow.Width),
                                                  this.panel_acknexWindow.Height, 0), 0, null);
            IsChangingSize = false;   //reset flag
            //yield return 1;
            yield return ScheduleMethod.wait( 1 );
        }



I re-downloaded AW from your page, and tried again, but get the same error as above:
Have i missed anything else that has changed?
Or am i missing something?


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

Joined: Dec 2002
Posts: 616
Austria
hmm it looks like you haven't included System.Collections.Generic
in which example did this error occur ?


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 6 of 23 1 2 4 5 6 7 8 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