Gamestudio Links
Zorro Links
Newest Posts
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
Data from CSV not parsed correctly
by jcl. 04/20/24 08:32
Zorro FIX plugin - Experimental
by jcl. 04/20/24 08:30
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (7th_zorro, Aku_Aku, 1 invisible), 604 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
Rate Thread
Page 11 of 32 1 2 9 10 11 12 13 31 32
Re: C# wrapper - RELEASE 1.1.0 [Re: Stromausfall] #281605
07/27/09 20:13
07/27/09 20:13
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline
Serious User
DJBMASTER  Offline
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
yeh, but it still shows the window momentarily. I think this is required to start rendering. I'll see if i can hack with win32.

Thanks.

Last edited by DJBMASTER; 07/27/09 20:14.
Re: C# wrapper - RELEASE 1.1.0 [Re: Stromausfall] #281726
07/28/09 10:28
07/28/09 10: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...
Hi Stromausfall

Dont know if you would like to add this to manual as the add_folders() (have never) dont seem to work outside Lite-C.
//
Setting up paths in C#
First create your folders in your bin/debug bin/release folder.
then:
Code:
//
        public static String levels = Application.StartupPath + @"\gsDefaults\levels\";
        public static String models = Application.StartupPath + @"\gsDefaults\models\";
        public static String terrains = Application.StartupPath + @"\gsDefaults\terrains\";
        public static String props = Application.StartupPath + @"\gsDefaults\props\";
        public static String textures = Application.StartupPath + @"\gsDefaults\textures\";
        public static String fx = Application.StartupPath + @"\gsDefaults\fx\";
        public static String ppfx = Application.StartupPath + @"\gsDefaults\pp_fx\";



Then use like so
Code:
public static String strDefLevel = levels + "default.wmb";
        public static String strDefEntity = models + "camnode.mdl";

OR

Actor = EngFun.ent_create(models + "cbabe.mdl", new Vector(0, 0, 32), ActorAction);




A8.3x Commercial, AcknexWrapper and VS 2010 Express
○pararealist now.
Re: C# wrapper - RELEASE 1.1.0 [Re: pararealist] #281728
07/28/09 10:45
07/28/09 10:45
Joined: May 2002
Posts: 7,441
ventilator Offline
Senior Expert
ventilator  Offline
Senior Expert

Joined: May 2002
Posts: 7,441
add_folder() works fine in every language but it has no effect if you use it before engine initialization.

Re: C# wrapper - RELEASE 1.1.0 [Re: ventilator] #281729
07/28/09 10:56
07/28/09 10:56
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...
Oh, couldnt find any help on getting it working
but thats good to know.


A8.3x Commercial, AcknexWrapper and VS 2010 Express
○pararealist now.
Re: C# wrapper - RELEASE 1.1.0 [Re: pararealist] #281732
07/28/09 11:11
07/28/09 11:11
Joined: Dec 2002
Posts: 616
Austria
Stromausfall Offline OP
User
Stromausfall  Offline OP
User

Joined: Dec 2002
Posts: 616
Austria
i will add it to the manual as "add_folder alternative"! thank you!

Last edited by Stromausfall; 07/28/09 11:24.

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 - RELEASE 1.1.0 [Re: Stromausfall] #281733
07/28/09 11:23
07/28/09 11:23
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline
Serious User
DJBMASTER  Offline
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
hi, how can i create a sky entity?

I'm using this Lite-C code...
Code:
ENTITY* skycube =
{
  type = "t_day_sky+6.tga"; // the image for a backdrop scene
  flags2 = SKY | CUBE | SHOW; // sky cube, visible
}



...how can i do this in C#. The ENTITY doesn't have a SKY property. Also if i set ENTITY.type = "t_day_sky+6.tga";, it results in a Marshalling Exception.

Thanks.

Last edited by DJBMASTER; 07/28/09 11:24.
Re: C# wrapper - RELEASE 1.1.0 [Re: DJBMASTER] #281736
07/28/09 11:47
07/28/09 11:47
Joined: Dec 2002
Posts: 616
Austria
Stromausfall Offline OP
User
Stromausfall  Offline OP
User

Joined: Dec 2002
Posts: 616
Austria
I'm looking into this!


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 - RELEASE 1.1.0 [Re: DJBMASTER] #281737
07/28/09 11:54
07/28/09 11:54
Joined: Dec 2002
Posts: 616
Austria
Stromausfall Offline OP
User
Stromausfall  Offline OP
User

Joined: Dec 2002
Posts: 616
Austria
i found this via a7oogle in a thread (http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&topic=27906&gonew=1) :

//Make a Pretty Sky
skycube = (ENTITY *)ent_createlayer("Sky_2+6.tga", _VAR(SKY | CUBE | VISIBLE), _VAR(0));

in c# it would then be

ENTITY MySky = EngFun.ent_createlayer("Sky_2+6.tga", (Var)(1 << 17 | 1 << 20 | 1 << 14), (Var)0);

In the next version this will be fixed and i will add an enum for CUBE SHOW and the other flags and i will also add a property for SKY which i somehow forgot !

In fact, you may also write it, like you will be able to in the next update of the wrapper (But you have change the enum FLAGS2 to public enum FLAGS2 in ENTITY.cs as workaround until the next update arrives ^^):

ENTITY MySky = EngFun.ent_createlayer("Skycube+6.tga", (Var)(int)(ENTITY.FLAGS2.SKY | ENTITY.FLAGS2.SHOW | ENTITY.FLAGS2.CUBE), (Var)0);

Last edited by Stromausfall; 07/28/09 12:20.

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 - RELEASE 1.1.1.1 [Re: Stromausfall] #281748
07/28/09 13:17
07/28/09 13:17
Joined: Dec 2002
Posts: 616
Austria
Stromausfall Offline OP
User
Stromausfall  Offline OP
User

Joined: Dec 2002
Posts: 616
Austria
i just uploaded the newest version of the wrapper : 1.1.1.1 get it here : http://acknexwrapper.matthias-auer.net
This version features several small improvements


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 - RELEASE 1.1.1.2 [Re: Stromausfall] #281781
07/28/09 16:23
07/28/09 16:23
Joined: Dec 2002
Posts: 616
Austria
Stromausfall Offline OP
User
Stromausfall  Offline OP
User

Joined: Dec 2002
Posts: 616
Austria
i just uploaded a new version of the wrapper : 1.1.1.2 get it here : http://acknexwrapper.matthias-auer.net
This version fixes a bug in engine_close()


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 11 of 32 1 2 9 10 11 12 13 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