Gamestudio Links
Zorro Links
Newest Posts
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
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
6 registered members (AndrewAMD, Ayumi, degenerate_762, 7th_zorro, VoroneTZ, HoopyDerFrood), 1,268 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
LucasJoshua, Baklazhan, Hanky27, firatv, wandaluciaia
19053 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
First FPS project off to a bad start #241806
12/18/08 23:44
12/18/08 23:44
Joined: Feb 2008
Posts: 87
O
OblivionDrake Offline OP
Junior Member
OblivionDrake  Offline OP
Junior Member
O

Joined: Feb 2008
Posts: 87
Hi Im just begining my first game project in Lite-C and I appear to have been shot down before I even got in the plan so to speek. I was trying to test and ent creat method to have my gun show in FPS mode when I got the message that my Testlvl.wmb can't be opened and its nothing but a hollow cube and a camera I striped the code down to this:

#include <acknex.h>
#include <default.c>

function main()
{
video_mode = 7;
level_load ("Testlvl.wmb");
}

And it still doesnt work.
Now Iv saved the script as ShooterProject.c cause it kept wating to save it as ShooterProject *.wdl

Any thoughts

O and mostlikely this being my first project ill continue to post on this thread as I make it over one hurtal and then get closelined by the next considern my plan is to make a FPS with One seme gun,One Full Auto gun,and One maylay weapone(Knife)
And also 2 types of enemys ranged and maylay with basic Ai in other words they stand there till they see you then attack.

thanks in advanced

Re: First FPS project off to a bad start [Re: OblivionDrake] #241808
12/19/08 00:02
12/19/08 00:02
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
if the wdl still exists delete it. and make sure you compiled the map.


3333333333
Re: First FPS project off to a bad start [Re: Quad] #241810
12/19/08 00:29
12/19/08 00:29
Joined: Feb 2008
Posts: 87
O
OblivionDrake Offline OP
Junior Member
OblivionDrake  Offline OP
Junior Member
O

Joined: Feb 2008
Posts: 87
the wdl file was deleted and I built then saved the map which is what I think you meant by compiling the map Quadraxas. If not what step am I missing? the lvl plays in WED no problems.

Re: First FPS project off to a bad start [Re: OblivionDrake] #241812
12/19/08 01:07
12/19/08 01:07
Joined: Feb 2008
Posts: 87
O
OblivionDrake Offline OP
Junior Member
OblivionDrake  Offline OP
Junior Member
O

Joined: Feb 2008
Posts: 87
The messages that I get are

Malfunction W1301

and

Error E1100

Re: First FPS project off to a bad start [Re: OblivionDrake] #241853
12/19/08 11:47
12/19/08 11:47
Joined: Jul 2007
Posts: 959
nl
F
flits Offline
User
flits  Offline
User
F

Joined: Jul 2007
Posts: 959
nl
are you sure the lvl is in the same folder as your script


"empty"
Re: First FPS project off to a bad start [Re: flits] #241881
12/19/08 17:17
12/19/08 17:17
Joined: Feb 2008
Posts: 87
O
OblivionDrake Offline OP
Junior Member
OblivionDrake  Offline OP
Junior Member
O

Joined: Feb 2008
Posts: 87
thanks flits didnt know they had to be in the same folder to work.

Re: First FPS project off to a bad start [Re: OblivionDrake] #241924
12/20/08 02:01
12/20/08 02:01
Joined: Feb 2008
Posts: 87
O
OblivionDrake Offline OP
Junior Member
OblivionDrake  Offline OP
Junior Member
O

Joined: Feb 2008
Posts: 87
Ok this is were I am so far lvl loads now and I placed the cbabe model in and am trying to get it to move with the c_move comand but it doesnt seem to attach to the cbabe model cause all it does is cycle though its animations.

also while I was tinkering I tried to make my pistal model appear in the corner of the screen I just dont know were to put this

ent_create (drone_mdl, temp, start_drone);

and what to change on it well other than the drone_mdl to my pistal_mdl.

And lastly I wanted to put a mouse mode in my game just not sure how to do it in workshop14 they spend more time explaining how to make a program change from one mouse mode to the other they never really explain how to just implement the mouse mode you want in your project or at least thats all I got out of it.

any help would be appreashated


and heres my current scripte:

#include <acknex.h>
#include <default.c>

ENTITY* pistal_ent =

{
type = "pistal.mdl";
layer = 10;
view = camera;
x = 20;
y = -10;
z = -10;
}
action my_cbabe()
{
while (1)
{
if (key_a)
my.pan += 3*time_step;
if (key_s)
my.pan -= 3*time_step;
if (key_space)
c_move (my, vector(15 * time_step, 0, 0), nullvector, GLIDE);
wait (1);
}
}
function main()
{
video_mode = 7;
level_load ("Testlvl.wmb");
while (1)
}

Re: First FPS project off to a bad start [Re: OblivionDrake] #241926
12/20/08 02:22
12/20/08 02:22
Joined: Feb 2008
Posts: 87
O
OblivionDrake Offline OP
Junior Member
OblivionDrake  Offline OP
Junior Member
O

Joined: Feb 2008
Posts: 87
Update I got a mouse mode to work just dont know which one it is or how to change it to the one I want. heres the current script.

#include <acknex.h>
#include <default.c>

ENTITY* pistal_ent =

{
type = "pistal.mdl";
layer = 10;
view = camera;
x = 20;
y = -10;
z = -10;
}
action my_cbabe()
{
while (1)
{
if (key_a)
my.pan += 3*time_step;
if (key_s)
my.pan -= 3*time_step;
if (key_space)
c_move (my, vector(15 * time_step, 0, 0), nullvector, GLIDE);
wait (1);
}
}
function main()
{
video_mode = 7;
level_load ("Testlvl.wmb");
while (1) //
{ //
//
camera.pan -= mouse_force.x; //this is were Im having the mouse mode
camera.tilt += mouse_force.y; //problems
//
wait (1); //
}



}

P.S. still havent figured out the other problems from last post.

Re: First FPS project off to a bad start [Re: OblivionDrake] #242244
12/22/08 00:43
12/22/08 00:43
Joined: Apr 2006
Posts: 737
Ottawa, Canada
O
Ottawa Offline
User
Ottawa  Offline
User
O

Joined: Apr 2006
Posts: 737
Ottawa, Canada
Hi!

For cbabe model : you have to create ACTION in SED
then go into WED and attach this action to the model.

For the pistol position : place a bloc in your world and read it's
position from the properties panel. Delete the bloc but hold on to
the coordinates. place these in the script.

Is this what your looking for? smile

Ottawa

Re: First FPS project off to a bad start [Re: Ottawa] #242248
12/22/08 01:25
12/22/08 01:25
Joined: Feb 2008
Posts: 87
O
OblivionDrake Offline OP
Junior Member
OblivionDrake  Offline OP
Junior Member
O

Joined: Feb 2008
Posts: 87
When it comes down to it I was trying to do everything in SED but that action thing sounds easyer I just dont know how to use it if you could so me or point me in the direction of a tutorial cause right now I'm just working off of the Lite-C tutorial knowledge and I thought since the movement script worked for the car .mdl that it would work for the cbabe also.

As for the pistol I used the script in the Lite-C tutorial except for the ent_creat part which as far as I know should work in terms of location on the screen not the lvl. Which brings me to the problem of my pistal code which is I cant figure out were put the ent_creat(----,----,----) and what to put in those blanks?

thanks for answering.

Page 1 of 2 1 2

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