Gamestudio Links
Zorro Links
Newest Posts
Future of ZorroHFT
by TipmyPip. 11/16/25 13:52
COT Download with Quandl does not work
by Petra. 11/15/25 09:35
Training with the R bridge does not work
by Petra. 11/15/25 09:31
Zorro 2.70
by jcl. 11/15/25 08:43
Camera always moves upwards?
by NeoDumont. 11/14/25 16:32
brokerCommand PLOT_HLINE parameters
by M_D. 11/13/25 10:42
ZorroGPT
by TipmyPip. 11/10/25 11:04
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 6,697 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
tritom, sheliepaley, Blueguy, blobplayintennis, someone2
19178 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Including a .c in my .wdl project #341446
09/16/10 18:48
09/16/10 18:48
Joined: Aug 2003
Posts: 716
Canada, Toronto
thegamedesigner Offline OP
User
thegamedesigner  Offline OP
User

Joined: Aug 2003
Posts: 716
Canada, Toronto
Hey all, I have a7 pro, and I have a project written in wdl.

I read in the manual: "You can even include a .c script in a .wdl script, and call lite-C functions from C-Script."

I want to do that, but I don't know how. I tried this:

in main.wdl:
include "litec.c";

in litec.c:
function litec_func()
{
beep();
}


Yet when I call litec_func, it says error nonexistant function.

How do I mix lite-c and wdl?

Thanks,


My games - www.spyeart.com
Re: Including a .c in my .wdl project [Re: thegamedesigner] #341465
09/16/10 21:17
09/16/10 21:17
Joined: Oct 2006
Posts: 470
Balkan
Ganderoleg Offline
Senior Member
Ganderoleg  Offline
Senior Member

Joined: Oct 2006
Posts: 470
Balkan
I used .c in my .wdl projects mostly for post-processing effects & there is a way to communicate between them by using engine vars.

The bad thing is that you must have a startup function in your .c because you can't initiate anything from .wdl, it has to be self-initiated. Another bad thing is that you can kiss standard save/load system goodbye grin since game_load in .wdl will not be able to re-initiate anything from .c.

Surprisingly & thankfully level_load works fine & it doesn't brake .c functionality so all you need is save-vars-to-txt based system smile

Check out my replies here, everything is explained down this page:

http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=301046#Post301046


>>Demos free3DModels Tutorials<<
>>>>>>> by Pavle Nikolic <<<<<<<

Re: Including a .c in my .wdl project [Re: Ganderoleg] #341468
09/16/10 21:33
09/16/10 21:33
Joined: Aug 2003
Posts: 716
Canada, Toronto
thegamedesigner Offline OP
User
thegamedesigner  Offline OP
User

Joined: Aug 2003
Posts: 716
Canada, Toronto
Great. THanks, I'll check all this out.


My games - www.spyeart.com

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | 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