3 registered members (Ayumi, Akow, AndrewAMD),
1,505
guests, and 9
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: C# wrapper - RELEASE
[Re: Stromausfall]
#277481
07/09/09 11:59
07/09/09 11:59
|
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...
|
Thx very much. Was playing with a previous wrapper posted here adding more acknex stuff but will try this one as ALL acknex is already added. // My level will not load, either from the level folder in the project folder
a7.EngFun.level_load( (String)"..\\gsDefaults\\default.wmb" );
or directly from the project folder
a7.EngFun.level_load( (String)"default.wmb" );
So i am off to check why. // Everything else is fine though and thanks again for your work.
A8.3x Commercial, AcknexWrapper and VS 2010 Express ○pararealist now.
|
|
|
Re: C# wrapper - RELEASE
[Re: Stromausfall]
#277496
07/09/09 12:26
07/09/09 12:26
|
Joined: May 2002
Posts: 7,441
ventilator
Senior Expert
|
Senior Expert
Joined: May 2002
Posts: 7,441
|
thanks for working on this! having a c# wrapper for a7 is very nice. i also would try to reduce the amount of unnecessary verbosity though. i am no c# expert but i am sure it's possible to make it much more convenient to use. def_debug_pan.setdigits(0, 0, 12, "fps%5.0f", ackfont, lambda: def_dfps * 16) in python using pointers isn't possible at all so i use lambda expressions for panel elements. internally i have a big var array for panels which gets updated each frame by calling the lambdas that got registered for panel elements. it works great and even is much more powerful than simply passing a pointer. for example it supports local variables and arbitrary expressions. lambdas are available in c# too. i wouldn't use threads for the scheduler. the lite-c scheduler doesn't use threads either. it uses coroutines. coroutines can be simulated by generators in python and c#. you could look into the source of my scheduler. it's really simple. just some ideas.
|
|
|
Re: C# wrapper - RELEASE
[Re: enrike]
#277510
07/09/09 12:59
07/09/09 12:59
|
Joined: Aug 2005
Posts: 512 Bayern
Schmerzmittel
User
|
User
Joined: Aug 2005
Posts: 512
Bayern
|
i think i did all steps correct but i get this error... any ideas? i am using VStudio 2008 and GameStudio Pro 7.06
Use a legal version, then it works.
A7 Com V7.80
|
|
|
Re: C# wrapper - RELEASE
[Re: Stromausfall]
#277546
07/09/09 15:19
07/09/09 15:19
|
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...
|
@Stromausfall Tried in all the places project folder debug/release folder (my) gsdefaults folder
but they load in my original c# project so i know i' just need to look a little closer at the problem. No worries, will definately solve this when i get time to concentrate OK- fine now should be in debug folder, but settings were to release folder (knew it was something simple).
Last edited by pararealist; 07/09/09 18:38.
A8.3x Commercial, AcknexWrapper and VS 2010 Express ○pararealist now.
|
|
|
Re: C# wrapper - RELEASE
[Re: pararealist]
#277646
07/09/09 23:38
07/09/09 23:38
|
Joined: Aug 2005
Posts: 1,230
MichaelGale
Serious User
|
Serious User
Joined: Aug 2005
Posts: 1,230
|
I hate being negative about something, but I see a few issues with your wrapper that would stop me (personally) from using it:
1. your code doesn't follow the C# coding conventions at all and this is a really big issue as far as I am concerned because, especially in larger projects, continuity of style is important to ensure maintainability 2. there is no validation whatsoever anywhere in your wrapper 3. nested classes should not be used in the way you used them 4. the statement in your first post "withouth the use of unsafe code !" is obviously wrong since most of your code is unsafe and when the methods in your wrapper are called, unsafe code is executed - it's just less obvious.
Michael
Your friendly mod is at your service.
|
|
|
|