Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
1 registered members (Grant), 999 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
actions define in wdl?? #270688
06/09/09 11:41
06/09/09 11:41
Joined: Apr 2009
Posts: 248
Philippines
seecah Offline OP
Member
seecah  Offline OP
Member

Joined: Apr 2009
Posts: 248
Philippines
Hello,

Can anybody teach me how to do the trick of declaring all actions in a WDL file but the definitions of the actions are in another file (*.c)?

Example:

File: actions.wdl
action pl_rudi {wait(1);}
File: player.c
void pl_rudi ()
{
//do something here
}

I've read this from Rudi game but can't get the idea how the two files are being linked.

In the WED the actions.wdl is mapped on map properties..
This is a cool technique that I want to learn.

Anybody from Rudi game or anyone who knows about this?

Thanks...



Can't is not an option™
Re: actions define in wdl?? [Re: seecah] #270693
06/09/09 11:50
06/09/09 11:50
Joined: Nov 2007
Posts: 1,032
Croatia
croman Offline
Serious User
croman  Offline
Serious User

Joined: Nov 2007
Posts: 1,032
Croatia
cant you convert your actions.wdl to .c and then map the actions.c file?



Ubi bene, ibi Patria.
Re: actions define in wdl?? [Re: croman] #270705
06/09/09 12:54
06/09/09 12:54
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
ALL included files must be the same type.
Either *.C or *.WDL

So assuming you stick to *.WDL's with action.WDL as your primary project file,
that is, its the one you run and it contains the function main() function.
Code:
File: actions.wdl
action pl_rudi();

File: player.wdl
action pl_rudi()
{
   //do something here
}

OR 

//because ACTION and VOID functions are identical to the engine
File: actions.c
void pl_rudi();

File: player.c
void pl_rudi()
{
   //do something here
}



"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial

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