Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (Ayumi, Power_P), 1,065 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 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 | 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