Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by M_D. 04/26/24 20:22
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
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (M_D, AndrewAMD, Quad, Ayumi), 806 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
Rating: 5
Page 7 of 23 1 2 5 6 7 8 9 22 23
Re: C# wrapper 2.2.1 - RELEASE [Re: Stromausfall] #363937
03/15/11 17:11
03/15/11 17:11
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...
Its in my app, but System.Collections.Generic
could well be the cause if that is a new requirement,
as i may well not have that included in my main.cs.
Will try this in about 5 mins as i am not at home.
thanks for quick reply.


A8.3x Commercial, AcknexWrapper and VS 2010 Express
○pararealist now.
Re: C# wrapper 2.2.1 - RELEASE [Re: pararealist] #363944
03/15/11 17:28
03/15/11 17:28
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...
It seems that was needed.
Thanks again.


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

Joined: Dec 2002
Posts: 616
Austria
Glad it worked ^^


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] #364563
03/19/11 11:57
03/19/11 11:57
Joined: Mar 2011
Posts: 13
Yorkshire, England
monotonic Offline
Newbie
monotonic  Offline
Newbie

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

I'm new to 3DGS and will be purchasing the Commercial version on Friday next week (when I get paid). I will be using your C# wrapper as I've been using C# for many years now so feel comfortable with it.

I will be writing the main game code in C# and scripting objects with Lite-C. I have seen that I can call Lite-C functions within my C# code, which is fantastic, now my question is can I call my C# functions from within Lite-C. I have though of a way that I could get around it if not, I will use a queue, which I will add calls/params to then parse this from within C#. However it woulf be infinitely nicer if I could directly call the functions.

Thanks in advance.

Re: C# wrapper 2.2.1 - RELEASE [Re: monotonic] #364592
03/19/11 13:49
03/19/11 13:49
Joined: Dec 2002
Posts: 616
Austria
Stromausfall Offline OP
User
Stromausfall  Offline OP
User

Joined: Dec 2002
Posts: 616
Austria
Hmmm yes, this should be possible i guess, because C# functions are called from the engine, for example in ent_create or when events occur !

But I don't really see a need for lite-c if you use C# ! The only thing were you really need (from what i know) lite-c instead of C# is for declaring bitmaps which you use in shader (at least i know of no workaround for this..). You can also access all engine objects like entities and modify them in C#, the wrapper also has a scheduler, similar to the one in lite-c !
Did you have a look at the examples at the wrapper homepage ? http://acknexwrapper2.matthias-auer.net/

If you got more questions don't hesitate to post or e-mail them !

Last edited by Stromausfall; 03/19/11 13:56.

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] #364639
03/19/11 18:27
03/19/11 18:27
Joined: Mar 2011
Posts: 13
Yorkshire, England
monotonic Offline
Newbie
monotonic  Offline
Newbie

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

What I'm planning on doing is writing the main code in C# then for things like AI behaviour I was going to use Lite-C as the scripting language to save me from recompiling every time I tweak the behavioural script. This is how I've done it in the past but with LUA or something similar.

What method do you use for calling managed functions from within Lite-C?

Yeah I've looked at the examples on your site, they were very informative. I would like to extend my gratitude to you for creating this wrapper it is very useful.

Re: C# wrapper 2.2.1 - RELEASE [Re: monotonic] #364709
03/20/11 03:52
03/20/11 03:52
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline
Serious User
DJBMASTER  Offline
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
I think you'll have to make a choice - either C# or lite-c laugh mixing them isn't possible. 'acknex.dll' is the heart of the engine which C# uses, so I can't see any reason why you would want to call lite-c functions.

You can of course write a lite-c parser which converts lite-c code to C# wrapper code.

Re: C# wrapper 2.2.1 - RELEASE [Re: DJBMASTER] #364711
03/20/11 07:20
03/20/11 07:20
Joined: Mar 2011
Posts: 13
Yorkshire, England
monotonic Offline
Newbie
monotonic  Offline
Newbie

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

It is possible I have already got the process for calling Lite-C from C# resolved and the process for Lite-C to C# calls is something that I have a method of doing but would like to improve it.

The reason I'm wanting to use a scripting language as well as C# is that after many years of being a professional developer I have learnt that hard coding things that are likely to change is a bad idea.

I was thinking that I could just use C# as my scripting language and compile the scripts at runtime, but I would prefer to use Lite-C for this.

Re: C# wrapper 2.2.1 - RELEASE [Re: monotonic] #364712
03/20/11 07:49
03/20/11 07:49
Joined: May 2002
Posts: 7,441
ventilator Offline
Senior Expert
ventilator  Offline
Senior Expert

Joined: May 2002
Posts: 7,441
lite-c is a c compiler, not an interpreted language like lua.

if you use c# and additionally want a real scripting language then you could combine it with something like ironpython, lua.net,...

Re: C# wrapper 2.2.1 - RELEASE [Re: ventilator] #364715
03/20/11 08:35
03/20/11 08:35
Joined: Mar 2011
Posts: 13
Yorkshire, England
monotonic Offline
Newbie
monotonic  Offline
Newbie

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

Yeah this is what I've been contemplating over the past day or so. The reason why I'm trying to figure out if Lite-C is suitable for my needs is that the functionality is already there for me to load and call the functions within LC code from C#. Now if I interface with LUA or something similar it would require me integrating it (not a difficult task I know, but still a task none the less). Thus using LC would save me time, plus LC obviously already has full integration with all the engine functionality, whereas LUA does not and it would require me to implement this functionality myself.

I'm aware that LC is not a "scripting" language, I'm trying to figure out if it would lend itself to my needs or not. I have several options, I could use dynamically compiled C# code as my script, LUA or Lite-C.

To be honest I will probablly go with C# for the scripts, but I thought I would just ask you kind people for your input because you have far more experience with 3DGS than I.

Thank you for your help guys and sorry for derailing this thread a little smile

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