Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (Ayumi, NewbieZorro, TipmyPip), 13,887 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
"Action not found" Please help. #251998
02/15/09 21:53
02/15/09 21:53
Joined: Sep 2008
Posts: 76
Max_Prower Offline OP
Junior Member
Max_Prower  Offline OP
Junior Member

Joined: Sep 2008
Posts: 76
Hello, everyone. I've stumbled across an error, and being a newbie in the programming world I don't know how to correctly rectify it. What I have done, is I have created a main script inluding the script file that has an action in it.

Here is my main code (all of it, at the moment):

Code:
#include <acknex.h>
#include <default.c>
// Define objects here
include "player.c";

///////////////////////Functions

function main()
{
		level_load ("floor_1.WMB");
	media_loop ("level_1.wav", 0, 100);
}


And here is the script with the action.

Code:

action player1()
{
			camera.x = me.x;
	camera.y = me.y - 300;
	camera.z = me.z + 75;
	camera.pan = 90;
	camera.tilt = -10;
while (key_w);
c_move(me, nullvector, vector(15 * time_step, 0, 4 * time_step), GLIDE);
}


My guess is that I have to describe the function in the action script in my main script somehow; but I don't know how to.

Help in resolving this would be apprieciated. ^^

The main script is a WDL (otherwise it vomits all over me saying that function main has a missing bracket) and the action script is a C-script.

Re: "Action not found" Please help. [Re: Max_Prower] #252017
02/15/09 22:49
02/15/09 22:49
Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
Cowabanga Offline
Expert
Cowabanga  Offline
Expert

Joined: Aug 2008
Posts: 2,838
take me down to the paradise c...
"Action Not found" means that you put an action to an entity and it's missing.

Re: "Action not found" Please help. [Re: Cowabanga] #252020
02/15/09 23:55
02/15/09 23:55
Joined: Sep 2008
Posts: 76
Max_Prower Offline OP
Junior Member
Max_Prower  Offline OP
Junior Member

Joined: Sep 2008
Posts: 76
Yes, I know that. I put it in a different script and included the script. How do I make a reference of some kind that will tell it that the action is in the other script?

Re: "Action not found" Please help. [Re: Max_Prower] #252073
02/16/09 10:08
02/16/09 10:08
Joined: Feb 2009
Posts: 84
Deutschland/Niedersachsen
GorNaKosh Offline
Junior Member
GorNaKosh  Offline
Junior Member

Joined: Feb 2009
Posts: 84
Deutschland/Niedersachsen
Make sure that the file you're including exists in the same folder like the main-file. Also look up if you have attached the right action to the entity in the WED. But I really don't know: Could you mix WDL and C-LITE???

Last edited by GorNaKosh; 02/16/09 10:08.
Re: "Action not found" Please help. [Re: GorNaKosh] #252077
02/16/09 10:40
02/16/09 10:40
Joined: Jul 2008
Posts: 553
Singapore
delinkx Offline
User
delinkx  Offline
User

Joined: Jul 2008
Posts: 553
Singapore
u using include "player.c" and that is c-lite. the syntax for lite c is

#include. see manual for more info. u cannot mix c-lite and lite-c together.


A7 commercial Team / VC++ 2008 Pro
homepage | twitter | facebook
Re: "Action not found" Please help. [Re: delinkx] #252086
02/16/09 11:18
02/16/09 11:18
Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
Xarthor Offline
Expert
Xarthor  Offline
Expert

Joined: Jul 2002
Posts: 4,436
Germany, Luebeck
As delinkx already said, it has to be
Code:
#include "player.c"


Another thing:
Your action won't do anything because of:
Code:
(...)
while(key_w);
(...)


If you want movement depending on the W key:
Code:
while(me)
{
  c_move(me, nullvector, vector(15 * key_w * time_step, 0, 0), GLIDE);

  wait(1);
}


Re: "Action not found" Please help. [Re: Xarthor] #252726
02/19/09 22:25
02/19/09 22:25
Joined: Sep 2008
Posts: 76
Max_Prower Offline OP
Junior Member
Max_Prower  Offline OP
Junior Member

Joined: Sep 2008
Posts: 76
Awesome. Problem solved. ^^ Thanks a million guys! :3

Last edited by Max_Prower; 02/19/09 23:01.

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