Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 840 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
ENTITY* problem #306138
01/20/10 00:22
01/20/10 00:22
Joined: Mar 2008
Posts: 45
N
nigel Offline OP
Newbie
nigel  Offline OP
Newbie
N

Joined: Mar 2008
Posts: 45
Hi, I'm attempting to have an onscreen model attached to the camera using the ENTITY* function, this is that section of code (I'm using lite C):


ENTITY* ak_onscreen =
{
type = "ak.mdl";
flags = SHOW;
view = camera;
}


But when I run the game it has the following error message:

Parameter unknown ENTITY
Parameter unknown type
Parameter unknown flags
Parameter unknown view

And then it shuts down. Please help!

Re: ENTITY* problem [Re: nigel] #306144
01/20/10 02:07
01/20/10 02:07
Joined: Jul 2008
Posts: 1,178
England
M
MrGuest Offline
Serious User
MrGuest  Offline
Serious User
M

Joined: Jul 2008
Posts: 1,178
England
have you put in
Code:
#include <acknex.h>
#include <default.c>

?

Re: ENTITY* problem [Re: MrGuest] #306145
01/20/10 02:59
01/20/10 02:59
Joined: Mar 2008
Posts: 45
N
nigel Offline OP
Newbie
nigel  Offline OP
Newbie
N

Joined: Mar 2008
Posts: 45
no i don't, but the thing about that is when I try to put them in at the top of my project it has the following error message:

Script error - invalid .C code in .WDl script

any ideas?

Re: ENTITY* problem [Re: nigel] #306151
01/20/10 05:49
01/20/10 05:49
Joined: Feb 2009
Posts: 84
Deutschland/Niedersachsen
GorNaKosh Offline
Junior Member
GorNaKosh  Offline
Junior Member

Joined: Feb 2009
Posts: 84
Deutschland/Niedersachsen
You have to save your code-files with the ending .c for using liteC code!

Re: ENTITY* problem [Re: GorNaKosh] #306154
01/20/10 07:22
01/20/10 07:22
Joined: Feb 2008
Posts: 3,232
Australia
EvilSOB Offline
Expert
EvilSOB  Offline
Expert

Joined: Feb 2008
Posts: 3,232
Australia
Easy mistake to make... AFAIK Sed still saves with a default of WDL.

Put the includes in (at the very top always)
Save the script with the file/saveas as an *.c file
(NEVER named 'unnammed' or weird stuff happens)
Be sure to manually delete the old WDL file or it will interfere
at compile time, even if it isnt open in SED.


"There is no fate but what WE make." - CEO Cyberdyne Systems Corp.
A8.30.5 Commercial
Re: ENTITY* problem [Re: EvilSOB] #306289
01/20/10 23:50
01/20/10 23:50
Joined: Mar 2008
Posts: 45
N
nigel Offline OP
Newbie
nigel  Offline OP
Newbie
N

Joined: Mar 2008
Posts: 45
thanks so much everyone! but now there's one problem with the code that wasn't there before i changed it to .c, now when i compile it has a problem with my player's movement vector:

syntax error:

<var move_vec[3] = 0,0,0;>

any ideas?

Re: ENTITY* problem [Re: nigel] #306292
01/21/10 00:00
01/21/10 00:00
Joined: Oct 2004
Posts: 900
Lgh
rojart Offline
User
rojart  Offline
User

Joined: Oct 2004
Posts: 900
Lgh
try this:
var move_vec[3] = {0,0,0};


Regards, Robert

Quote
Everything should be made as simple as possible, but not one bit simpler.
by Albert Einstein

PhysX Preview of Cloth, Fluid and Soft Body

A8.47.1P
Re: ENTITY* problem [Re: rojart] #306296
01/21/10 00:53
01/21/10 00:53
Joined: Mar 2008
Posts: 45
N
nigel Offline OP
Newbie
nigel  Offline OP
Newbie
N

Joined: Mar 2008
Posts: 45
that worked, thanks! there were a couple of other bugs like that which were easy to fix, probably because of the switch from .wdl to .c. but there's one glitch that i have no idea, when i try to run the script it says:

error in 'C:/program files/gstudio7/include/default.c' line 191: syntax error: can't convert GETP VALUE: FIXED::FIXED.
<var mode = video_mode;>

in my script in the variables at the top of the code right after the includes i have:

var video_screen = 1;
var video_mode = 9;
var video_depth = 16;

any ideas?

Re: ENTITY* problem [Re: nigel] #306297
01/21/10 00:57
01/21/10 00:57
Joined: Mar 2008
Posts: 45
N
nigel Offline OP
Newbie
nigel  Offline OP
Newbie
N

Joined: Mar 2008
Posts: 45
i figured it out, the video settings had to be in function_main. thanks everyone for all your help!


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