Need help proper! Cant play games for sum reason??

Posted By: Dansta

Need help proper! Cant play games for sum reason?? - 11/13/08 16:58

Hi ppl who r readin this! I have been making games for 6 months now. I have made a hollow cube with a guard scripted and place is built and when i run it runs perfectly but i cannot play or move around only thing you can move is the camera the camera the guard doesnt move,(guard is player_walk_fight action) is there a script for engine options to play the game?(btw this is on WED!)
Posted By: MattyTheG

Re: Need help proper! Cant play games for sum reason?? - 11/13/08 17:29

I know this sounds simple but did you remember to right click on the entity in WED and set the behavior to player_walk_fight? It should show up on the drop down list.

Other than that I'm not really sure.
Posted By: Dansta

Re: Need help proper! Cant play games for sum reason?? - 11/13/08 17:32

i went into guard behavior and pressed player_walk_fight, but i think its something to do with engine options??
Posted By: Dansta

Re: Need help proper! Cant play games for sum reason?? - 11/13/08 17:35

wen i click on run and play it cums up with: hi.wdl -nx 30 but i no its a WMB file thing??
Posted By: MattyTheG

Re: Need help proper! Cant play games for sum reason?? - 11/13/08 17:41

Well .wdl is the level format so I don't think that is the issue.

Have you used the code before and know its working? I haven't coded too much but perhaps there is a pointer error so one of your key commands are going to the guard.

I'm not really sure just putting ideas out there haha.
Posted By: Hallucinogen

Re: Need help proper! Cant play games for sum reason?? - 11/13/08 17:42

If its a template from the gamestudio directory then when you press a key to move the guard are you pressing w,s,a and d? or up down left and right?

iirc the templates movement keys are set to up down left and right.
Posted By: Dansta

Re: Need help proper! Cant play games for sum reason?? - 11/13/08 17:47

i used A5 template(player_walk_fight) i press run and in engine options it comes up with: hi.wdl -nx 30, and it comes up with syntax errors, so i change it to: hi.wmb and everything loads up but guard is still and you can only move camera with mouse,w,a,s,d and up,down,left,right?
Posted By: Dansta

Re: Need help proper! Cant play games for sum reason?? - 11/13/08 17:48

btw i type in hi.WMB<<(i dont know if this is problem?)
Posted By: Hallucinogen

Re: Need help proper! Cant play games for sum reason?? - 11/13/08 17:51

open the script up and make sure the level_load function is set to something like

level_load("hi.wmb");

then leave the engine startup as hi.wdl
Posted By: Hallucinogen

Re: Need help proper! Cant play games for sum reason?? - 11/13/08 17:53

the script you want to open up would be the hi.wdl one
Posted By: Dansta

Re: Need help proper! Cant play games for sum reason?? - 11/13/08 17:58

ok i looked into script editor and loaded script for hi.wdl this is wat cum up: (i havent done anthing)

///////////////////////////////////////////////////////////////////////////////////
// GameStudio main script
////////////////////////////////////////////////////////////////////////////
// Files to over-ride:
// * logodark.bmp - the engine logo, include your game title
// * horizon.pcx - A horizon map displayed over the sky and cloud maps
////////////////////////////////////////////////////////////////////////////
// The PATH keyword gives directories where game files can be found,
// relative to the level directory
path "C:\\Program Files (x86)\\GStudio7\\template_5"; // Path to WDL templates subdirectory
path "C:\\Program Files (x86)\\GStudio7\\templates\\images"; // Path to template image subdirectory
path "C:\\Program Files (x86)\\GStudio7\\templates\\sounds"; // Path to template sound subdirectory
path "C:\\Program Files (x86)\\GStudio7\\templates\\models"; // Path to template model subdirectory

////////////////////////////////////////////////////////////////////////////
// The INCLUDE keyword can be used to include further WDL files,
// like those in the TEMPLATE subdirectory, with prefabricated actions
include <movement.wdl>;
include <messages.wdl>;
include <menu.wdl>; // must be inserted before doors and weapons
include <particle.wdl>; // remove when you need no particles
include <doors.wdl>; // remove when you need no doors
include <actors.wdl>; // remove when you need no actors
include <weapons.wdl>; // remove when you need no weapons
include <war.wdl>; // remove when you need no fighting
//include <venture.wdl>; // include when doing an adventure
include <lflare.wdl>; // remove when you need no lens flares

////////////////////////////////////////////////////////////////////////////
// The engine starts in the resolution given by the follwing vars.
var video_mode = 6; // screen size 640x480
var video_depth = 16; // 16 bit colour D3D mode

/////////////////////////////////////////////////////////////////
// Strings and filenames
// change this string to your own starting mission message.
string mission_str = "Fight your way through the level. Press [F1] for help";
string level_str = <hi.WMB>; // give file names in angular brackets


////////////////////////////////////////////////////////////////////////////
// The following script controls the sky
sky horizon_sky {
// A backdrop texture's horizontal size must be a power of 2;
// the vertical size does not matter
type = <horizon.pcx>;
tilt = -10;
flags = scene,overlay,visible;
layer = 3;
}

/////////////////////////////////////////////////////////////////
// The main() function is started at game start
function main()
{
// set some common flags and variables
// warn_level = 2; // announce bad texture sizes and bad wdl code
tex_share = on; // map entities share their textures

// now load the level
level_load(level_str);
// freeze the game
freeze_mode = 1;

// load some global variables, like sound volume
load_status();

// display the initial message
msg_show(mission_str,10);

// initialize lens flares when edition supports flares
ifdef CAPS_FLARE;
lensflare_start();
endif;

// use the new 3rd person camera
move_view_cap = 1;

// un-freeze the game
freeze_mode = 0;

// client_move(); // for a possible multiplayer game
// call further functions here...
}


/////////////////////////////////////////////////////////////////
// The following definitions are for the pro edition window composer
// to define the start and exit window of the application.
WINDOW WINSTART
{
TITLE "3D GameStudio";
SIZE 480,320;
MODE IMAGE; //STANDARD;
BG_COLOR RGB(240,240,240);
FRAME FTYP1,0,0,480,320;
// BUTTON BUTTON_START,SYS_DEFAULT,"Start",400,288,72,24;
BUTTON BUTTON_QUIT,SYS_DEFAULT,"Abort",400,288,72,24;
TEXT_STDOUT "Arial",RGB(0,0,0),10,10,460,280;
}

/* no exit window at all..
WINDOW WINEND
{
TITLE "Finished";
SIZE 540,320;
MODE STANDARD;
BG_COLOR RGB(0,0,0);
TEXT_STDOUT "",RGB(255,40,40),10,20,520,270;

SET FONT "",RGB(0,255,255);
TEXT "Any key to exit",10,270;
}*/


/////////////////////////////////////////////////////////////////
//INCLUDE <debug.wdl>;

this is what come up when i loaded my hi.wdl script?? for player_walk_fight?
Posted By: Dansta

Re: Need help proper! Cant play games for sum reason?? - 11/13/08 18:10

oh ok guy i looked up the script it comes up with something rediculus and its trying to load that: hi.wdl but i have loaded alien model and deleted script and did the player_walk_fight thing again to refresh it but same script comes up? And could sum1 plz give me a simple script for a very simple shooter?
Posted By: Dansta

Re: Need help proper! Cant play games for sum reason?? - 11/13/08 18:20

Ppl tried out shooter project in map properties works but doesnt move
© 2024 lite-C Forums