Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by vicknick. 06/13/24 08:51
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 1,238 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19059 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
[WED] Actions in additional script-files #157167
09/27/07 12:10
09/27/07 12:10
Joined: Sep 2007
Posts: 42
Germany - Braunschweig
deleRium Offline OP
Newbie
deleRium  Offline OP
Newbie

Joined: Sep 2007
Posts: 42
Germany - Braunschweig
Hi.

When i add an action in an additional script-file, doesn't matter if *.c or *.wdl, (included by the level-script) those actions do not appear in the entity action selection list.

The script-file is shown in the ressource-tab of WED but the action is missing.

An example:

bullet_physics.c (main level script)
Code:
...

//////////////////////////////
// Project-specific includes
//////////////////////////////
#include "help.wdl"
#include "variables.wdl"
#include "envoirement.wdl"

...



envoirement.wdl (for the actions)
Code:
...

// text: Used for barrels
// image: barrel.pcx
// section: Physics
// Flag1: Physics 1
// help: Enables the physics-engine for this object
// Skill1: Weight 5
// help: Sets a weight for the object (f.e. filled and unfilled barrels)
action pFass()
{
if is(my,FLAG1)
{
phent_settype (me, PH_RIGID, PH_BOX);
phent_setmass (me, my.skill1, PH_BOX);
phent_setfriction (me, 100);
phent_setdamping (me, 40, 40);
phent_setelasticity (me, 0, 0);
}

my.emask = ENABLE_SHOOT;
my.event = shoot_event;
}

...



Lite-C Free-Edition V1.05.5
WED Version unknown -> it's from the last A6 Commercial update

Original post: http://www.coniserver.net/ubbthreads/showflat.php/Cat/0/Number/787716/an/0/page/0#Post787716

Re: [WED] Actions in additional script-files [Re: deleRium] #157168
09/27/07 14:23
09/27/07 14:23
Joined: Jul 2000
Posts: 27,987
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,987
Frankfurt
I guess you can't see actions in WED because there is no WED in this version.

Re: [WED] Actions in additional script-files [Re: jcl] #157169
09/27/07 15:43
09/27/07 15:43
Joined: Sep 2007
Posts: 42
Germany - Braunschweig
deleRium Offline OP
Newbie
deleRium  Offline OP
Newbie

Joined: Sep 2007
Posts: 42
Germany - Braunschweig
I'm using the WED from my A6 Com to create Levels ...

It's WED version 6.751

Re: [WED] Actions in additional script-files [Re: deleRium] #157170
09/27/07 19:23
09/27/07 19:23
Joined: Sep 2007
Posts: 42
Germany - Braunschweig
deleRium Offline OP
Newbie
deleRium  Offline OP
Newbie

Joined: Sep 2007
Posts: 42
Germany - Braunschweig
Ok, with WED V6.835 (from A7 Trial) it works!


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