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
2 registered members (AndrewAMD, rki), 390 guests, and 0 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 15 of 23 1 2 13 14 15 16 17 22 23
Re: C# wrapper 2.3.1 - RELEASE [Re: pararealist] #379445
08/02/11 16:19
08/02/11 16:19
Joined: Dec 2010
Posts: 5
2
2010_Trekky Offline
Newbie
2010_Trekky  Offline
Newbie
2

Joined: Dec 2010
Posts: 5
Hallo Stromausfall,
dein wrapper ist wirklich eine tolle Sache, aber irgendwie funktioniert das bei mir nicht. Genauer gesagt meldet WED, dass er die HelloWorldExample.C nicht öffnen kann.
Mein Vorgehen: Ich verwende Visual Studio 2010 und bin bei dem Erstellen des Projektes so vorgegangen wie es auf deiner Webseite vorgeschlagen wird. Habe also ein neues Projekt erstellt, den Post-build event command eingefügt, den VS Hosting Process ausgeschaltet und im Anschluß die wrapper-Dateien hinzugefügt. Anschließend habe ich den Quelltext des HelloWorld Programms von deiner Webseite in das Programm kopiert. Dann habe ich den Debug gestartet und das Programm hat auch super kompiliert aber der WED hat dann anschließend gemeldet, dass er die HelloWorldExample.C nicht öffnen kann.
Weißt du reinzufällig woran das liegen könnte, habe ich da irgendeine Einstellung vergessen vorzunehmen und auf deiner Webseite überlesen?

Re: C# wrapper 2.3.1 - RELEASE [Re: Stromausfall] #379505
08/03/11 14:35
08/03/11 14:35
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline
Expert
MasterQ32  Offline
Expert

Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
Originally Posted By: Stromausfall
i try to keep as close to lite-c as possible !


afak every vec_ function returns the first parameter (a vector) as return value
so you can write this:
Code:
vec_set(a,vec_rotate(b,vec_normalize(c,5)));


and this would be nice in c#, too


Visit my site: www.masterq32.de
Re: C# wrapper 2.3.1 - RELEASE [Re: MasterQ32] #379513
08/03/11 18:56
08/03/11 18:56
Joined: May 2002
Posts: 7,441
ventilator Offline
Senior Expert
ventilator  Offline
Senior Expert

Joined: May 2002
Posts: 7,441
Originally Posted By: Richi007
Originally Posted By: Stromausfall
i try to keep as close to lite-c as possible !


afak every vec_ function returns the first parameter (a vector) as return value
so you can write this:
Code:
vec_set(a,vec_rotate(b,vec_normalize(c,5)));


and this would be nice in c#, too


no, this would be nice in c#:

a = b.rotate(c.normalize(5));

Re: C# wrapper 2.3.1 - RELEASE [Re: ventilator] #379515
08/03/11 19:39
08/03/11 19:39
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline
Expert
MasterQ32  Offline
Expert

Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
yes, but he don't wanna do this ;(

but if we use the c# wrapper, we want to get rid of all those non-class system wich is used by lite-c
but if the c# wrapper is like lite-c, we can't use the full power of c#
that's what i want to say...


Visit my site: www.masterq32.de
Re: C# wrapper 2.3.1 - RELEASE [Re: MasterQ32] #379516
08/03/11 19:50
08/03/11 19:50
Joined: Apr 2008
Posts: 2,488
ratchet Offline
Expert
ratchet  Offline
Expert

Joined: Apr 2008
Posts: 2,488
I've tesetd the demo, and it coould tranform easily in real indie selling game, just by adding levels, some more gameplay meachnism or any addition like RPG system !
It could make some Metroid alternative game laugh

I've took a look at the code , i have some questions :
How is made the complete level ? it is not imported from WED ?

For entities that have code scritp attached to them, can we do that with C# ? or howw do we manage the entities with code and their attributes: values, AI state etc ... ?

Re: C# wrapper 2.3.1 - RELEASE [Re: ratchet] #379646
08/05/11 16:16
08/05/11 16:16
Joined: Dec 2002
Posts: 616
Austria
Stromausfall Offline OP
User
Stromausfall  Offline OP
User

Joined: Dec 2002
Posts: 616
Austria
@Richi007
>>afak every vec_ function returns the first parameter (a vector) as return value

hmmm then it may be just an expected behaviour, that the function behaves as you showed..
@ventilator
yep ^^

@ratchet
the level was created in blender and then imported in MED and then in WED I just added some lights...

nope attaching a script in WED won't do anything I guess !
but assigning skills works of course, thus there are several possibilities, hard code the entity-function relationship or assign them according to a skill value, or even type of entitity !


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.3.1 - RELEASE [Re: Stromausfall] #379956
08/10/11 15:47
08/10/11 15:47
Joined: Jul 2010
Posts: 283
Germany
J
jenGs Offline
Member
jenGs  Offline
Member
J

Joined: Jul 2010
Posts: 283
Germany
Hi,
Is it possible that the panel.event function is not implemented in c#-wrapper?
Patrick

edit:
Another question:
How can I add a on_mouse_click event.
"private IEnumerable<ScheduleMethod> pEvent()" doesn't work in this case.

Last edited by jenGs; 08/10/11 16:23.
Re: C# wrapper 2.3.1 - RELEASE [Re: jenGs] #379964
08/10/11 16:42
08/10/11 16:42
Joined: Dec 2002
Posts: 616
Austria
Stromausfall Offline OP
User
Stromausfall  Offline OP
User

Joined: Dec 2002
Posts: 616
Austria
@jenGs
indeed, it looks like the panel.event_ property is missing !

to add an event to for example EngVar.on_mouse_left you have to do the following :

Code:
private static IEnumerable<ScheduleMethod> onMouseLeftMethod(double value)
{
    yield return 1;
}

static void Main(string[] args)
{
    EngFun.engine_open(null, null);
    EngFun.level_load(null);

    // ....

    // register this method on the event
    EngVar.on_mouse_left += onMouseLeftMethod;

    // ....

    // unregister this method on the event
    EngVar.on_mouse_left -= onMouseLeftMethod;

    // clear all registered method on this event...
    EngVar.on_mouse_left.Events.Clear();
}



P.S.:
I'll try to update the wrapper as soon as possible !


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.3.1 - RELEASE [Re: Stromausfall] #379978
08/10/11 18:59
08/10/11 18:59
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.20)
the update of the wrapper includes:

- missing event_ property for PANELs was added (thanks at jenGs)
- class methods that return void and aren't static, now return the instance of the object (thanks at Richi007)

here's the link:

AcknexWrapper_2_3_2_FOR_8_20_AND_7_85_4.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.3.1 - RELEASE [Re: Stromausfall] #379982
08/10/11 19:27
08/10/11 19:27
Joined: Jul 2010
Posts: 283
Germany
J
jenGs Offline
Member
jenGs  Offline
Member
J

Joined: Jul 2010
Posts: 283
Germany
Hi,
Thank you. But I can't figure out how to assign an event.
Thank you for this very fast update laugh
MfG,
Patrick

Page 15 of 23 1 2 13 14 15 16 17 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