Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 14:22
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
3 registered members (Martin_HH, steyr, alibaba), 509 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Vector isn`t noticed by SED #235438
11/07/08 16:50
11/07/08 16:50
Joined: Nov 2008
Posts: 5
B
Bludda Offline OP
Newbie
Bludda  Offline OP
Newbie
B

Joined: Nov 2008
Posts: 5
Hello,

after trying Lite-C and making the tutorial I got Gamestudio 7.

Now I just copied the script of tutorial 19 (the one with the ball) and changed the filename for the level (WED).

The Problem is now, always when I start this "game" there appears a error message:

<VECTOR* ball_speed;>
THEBALL_NOTWORKINGCODE WDL 7:0 (): Keyword unknown VECTOR*

because of that the ball controls don`t work either of course.
It`s the most basic thing of all but I don`t know what could be wrong with this. frown

In the free Lite-C this tutorial worked of course.

Thanks for your help.

Re: Vector isn`t noticed by SED [Re: Bludda] #235445
11/07/08 17:25
11/07/08 17:25
Joined: Oct 2007
Posts: 5,209
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,209
İstanbul, Turkey
save your file as .c not .wdl


3333333333
Re: Vector isn`t noticed by SED [Re: Quad] #235448
11/07/08 17:45
11/07/08 17:45
Joined: Nov 2008
Posts: 5
B
Bludda Offline OP
Newbie
Bludda  Offline OP
Newbie
B

Joined: Nov 2008
Posts: 5
Thanks, now this problem is destroyed.

But now another error message expires, about a missing bracket in line 11...I checked it, but this bracket ({) is after function_main () and the other one (}) at the end of the text.
No idea what could be wrong with that again.

Re: Vector isn`t noticed by SED [Re: Bludda] #235475
11/07/08 21:03
11/07/08 21:03
Joined: Oct 2007
Posts: 5,209
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,209
İstanbul, Turkey
post your script so we can help better.


3333333333
Re: Vector isn`t noticed by SED [Re: Quad] #235508
11/08/08 00:43
11/08/08 00:43
Joined: Aug 2008
Posts: 408
mi usa
sadsack Offline
Senior Member
sadsack  Offline
Senior Member

Joined: Aug 2008
Posts: 408
mi usa
Bludda, the bracket may not be at line 11, go down your code and make sure that you have all the right bracket in the right place.


I have A7 Commercial .............. Now I just need to learn how to use it

Re: Vector isn`t noticed by SED [Re: sadsack] #235541
11/08/08 10:50
11/08/08 10:50
Joined: Nov 2008
Posts: 5
B
Bludda Offline OP
Newbie
Bludda  Offline OP
Newbie
B

Joined: Nov 2008
Posts: 5
///////////////////////////////////////////////////////////////
#include <acknex.h>
#include <default.c>

///////////////////////////////////////////////////////////////

VECTOR ball_speed;
ENTITY* ball;

function main();
{
fps_max = 140;
level_load("theballworld.wmb"); // load the level
wait (2); // wait until the level is loaded
ball = ent_create ("ball.mdl", vector(-400, 0, 100), NULL); // create the ball
ph_setgravity (vector(0, 0, -386)); // set the gravity
phent_settype (ball, PH_RIGID, PH_SPHERE); // set the physics entity type
phent_setmass (ball, 3, PH_SPHERE); // and its mass
phent_setfriction (ball, 80); // set the friction
phent_setdamping (ball, 40, 40); // set the damping
phent_setelasticity (ball, 50, 20); // set the elasticity
while (1)
{
ball_speed.x = 25 * (key_cur - key_cul); // move the ball using the cursor keys
ball_speed.y = 25 * (key_cuu - key_cud); // 25 sets the x / y movement speeds
ball_speed.z = 0; // no need to move on the vertical axis
phent_addtorqueglobal (ball, ball_speed); // add a torque (an angular force) to the ball
camera.x = ball.x - 300; // keep the camera 300 quants behind the ball
camera.y = ball.y; // using the same y with the ball
camera.z = 1000; // and place it at z = 1000 quants
camera.tilt = -60; // make it look downwards
wait (1);
}
}

After loading it again today I noticed that the error message of the unknown keyword VECTOR is appearing again. tired

Re: Vector isn`t noticed by SED [Re: Bludda] #235552
11/08/08 11:50
11/08/08 11:50
Joined: Oct 2007
Posts: 5,209
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,209
İstanbul, Turkey
delete ; after funtion main.

again make sure you save it as .c not .wdl


3333333333
Re: Vector isn`t noticed by SED [Re: Quad] #235864
11/10/08 15:51
11/10/08 15:51
Joined: Nov 2008
Posts: 5
B
Bludda Offline OP
Newbie
Bludda  Offline OP
Newbie
B

Joined: Nov 2008
Posts: 5
Thank you all very much! laugh


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