Gamestudio Links
Zorro Links
Newest Posts
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
LPDIRECT3DCUBETEXTUR
E9

by Ayumi. 04/12/24 11:00
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 04/11/24 14:56
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, Quad), 509 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
11honza11, ccorrea, sakolin, rajesh7827, juergen_wue
19045 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 3 of 4 1 2 3 4
Re: Black Screen when Test Runing in Lite-C [Re: Uhrwerk] #239327
12/03/08 23:36
12/03/08 23:36
Joined: Nov 2008
Posts: 20
D
deyshawn Offline OP
Newbie
deyshawn  Offline OP
Newbie
D

Joined: Nov 2008
Posts: 20
It stops working at this line:

video_mode 7;

Here is the whole thing again:

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

VECTOR jet_speed;
ENTITY* jet;

function main()
{
video_mode 7;
set(pSplash,VISIBLE);
wait (3);

printf("test");
fps_max = 140;
level_load("riverbed.hmp");
ent_createlayer("blood_gsmall+6.tga", SKY | CUBE | VISIBLE, 0);
wait (2);
jet = ent_create ("mig.hmp", vector(-400,0,100), NULL);
ph_setgravity (vector(0,0, -386));
phent_settype (jet, PH_RIGID, PH_CUBE);
phent_setmass (jet, 3, PH_CUBE);
phent_setfriction (jet, 80);
phent_setdamping (jet, 40, 40);
phent_setelasticity (jet, 50, 20);
while(1)
{
jet_speed.x = 25 * (key_a - key_d);
jet_speed.y = 25 * (key_w - key_s);
jet_speed.z = 25 * (key_cuu - key_cud);
phent_addtorqueglobal (jet, jet_speed);
camera.x = jet.x - 300;
camera.y = jet.y;
camera.z = jet.z;
camera.tilt = -60;
wait (1);
}
}

i don't know what I did wrong or I would fix it. I don't get the black screen, just an error message. up until this point, it displayed both the message you gave me and the black screen.

Re: Black Screen when Test Runing in Lite-C [Re: deyshawn] #239338
12/04/08 01:55
12/04/08 01:55
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline
Serious User
DJBMASTER  Offline
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
it has to be "video_mode = 7;"

Re: Black Screen when Test Runing in Lite-C [Re: DJBMASTER] #239341
12/04/08 03:26
12/04/08 03:26
Joined: Nov 2008
Posts: 20
D
deyshawn Offline OP
Newbie
deyshawn  Offline OP
Newbie
D

Joined: Nov 2008
Posts: 20
I changed it but I still get the black screen.

Re: Black Screen when Test Runing in Lite-C [Re: deyshawn] #239473
12/04/08 21:08
12/04/08 21:08
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
Please post the new content of the ackog.txt again...


Always learn from history, to be sure you make the same mistakes again...
Re: Black Screen when Test Runing in Lite-C [Re: Uhrwerk] #239480
12/04/08 21:56
12/04/08 21:56
Joined: Nov 2008
Posts: 20
D
deyshawn Offline OP
Newbie
deyshawn  Offline OP
Newbie
D

Joined: Nov 2008
Posts: 20
here is the contents of the acklog:

Log of Atari Lite-C 1.10.2 run at Wed Dec 03 18:33:30 2008
Jake on Windows NT/2000/XP version 6.0 Build 6000
Options test.c -eq -diag -te

App C:\Program Files\Lite-C\acknex.exe in C:\Users\Jake\Desktop\
MM mixer opened
DSOUND device opened
DI interface opened
Start Window opened
(c)Conitec . Dieburg . San Diego . www.3dgamestudio.com
Atari Lite-C - Free Edition V1.10.2 - Jul 10 2008
Development version

Mouse found
Speakers (Realtek High Definition Audio) opened
Mobile Intel(R) 965 Express Chipset Family pure T&L device 1ff9 detected
D3D device Mobile Intel(R) 965 Express Chipset Family 1ff9 selected.
PATH C:\Program Files\Lite-C\code\
Compiling TEST.C - [Esc] to abort..
Error in 'MAIN' line 12: syntax error

< video_mode 7;
>
.. 0.096 sec
Can't compile TEST.C
Startup failure - any key to abort
Program aborted
Close level,DLL,objects
Free input,funcs,panels,defs,syns,views,strings,vars..ok
Free sounds,bmaps,fonts,hash,defs1,script..ok
Close dx,multimedia,D3D,engine,physics,nexus..ok
Atari Lite-C - Free Edition V1.10.2 - Jul 10 2008
(c)Conitec . Dieburg . San Diego . www.3dgamestudio.com
Close window

But I know that that is not right because I changed the "video_mode 7;" to "video_mode = 7;" but it doesn't say that in teh acklog, which makes me think that is for someone reason not recognizing the enw code. Also, when I run, i don't get any errors like the acklog says, just the black screen. I am wondering if I just had a bad install (though I can still play the examples in the workshops).

Re: Black Screen when Test Runing in Lite-C [Re: deyshawn] #239491
12/04/08 22:44
12/04/08 22:44
Joined: Jan 2002
Posts: 4,225
Germany / Essen
Uhrwerk Offline
Expert
Uhrwerk  Offline
Expert

Joined: Jan 2002
Posts: 4,225
Germany / Essen
If you corrected video_mode = 7; and this is really the file you're running then I am at the end of ideas. Sorry. Only advice: doublecheck everything written here so far.


Always learn from history, to be sure you make the same mistakes again...
Re: Black Screen when Test Runing in Lite-C [Re: Uhrwerk] #239690
12/06/08 15:13
12/06/08 15:13
Joined: Nov 2008
Posts: 20
D
deyshawn Offline OP
Newbie
deyshawn  Offline OP
Newbie
D

Joined: Nov 2008
Posts: 20
Ok, thankyou for your help. I will try uninstalling and reinstalling both it and the workshops. If they still both act weird, then I will asume that it is my machine that is the problem. Again, thankyou for your help.

-deyshawn

Re: Black Screen when Test Runing in Lite-C [Re: deyshawn] #239695
12/06/08 16:03
12/06/08 16:03
Joined: Oct 2004
Posts: 1,655
T
testDummy Offline
Serious User
testDummy  Offline
Serious User
T

Joined: Oct 2004
Posts: 1,655
Code:
jet = ent_create ("mig.hmp", vector(-400,0,100), NULL);

jet / mig is not .mdl!?
turn splash screen off
use [ code ] [ code ] tags

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

VECTOR jet_speed;
ENTITY* jet;

function main() {
	video_mode = 7;
	//set(pSplash,VISIBLE);	// splash screen on
	//wait(-3);
	//reset(pSplash, VISIBLE);	// splash screen off
	
	printf("test");
	fps_max = 140;
	level_load("riverbed.hmp");
	ent_createlayer("blood_gsmall+6.tga", SKY | CUBE | VISIBLE, 0);
	wait(2);
	jet = ent_create ("mig.mdl", vector(-400,0,100), NULL);
	ph_setgravity (vector(0,0, -386));
	phent_settype (jet, PH_RIGID, PH_CUBE);
	phent_setmass (jet, 3, PH_CUBE);
	phent_setfriction (jet, 80);
	phent_setdamping (jet, 40, 40);
	phent_setelasticity (jet, 50, 20);
	while(1) {
		jet_speed.x = 25 * (key_a - key_d);
		jet_speed.y = 25 * (key_w - key_s);
		jet_speed.z = 25 * (key_cuu - key_cud);
		phent_addtorqueglobal (jet, jet_speed);
		camera.x = jet.x - 300;
		camera.y = jet.y;
		camera.z = jet.z;
		camera.tilt = -60;
		wait (1);
	}
}


Re: Black Screen when Test Runing in Lite-C [Re: testDummy] #239696
12/06/08 16:15
12/06/08 16:15
Joined: Nov 2008
Posts: 20
D
deyshawn Offline OP
Newbie
deyshawn  Offline OP
Newbie
D

Joined: Nov 2008
Posts: 20
I checked and yes it is a .mdl, so I changed and still get the black screen. Does it matter that my script is a .wdl format? I thought it was the same as .c but I wanted to check.

Re: Black Screen when Test Runing in Lite-C [Re: deyshawn] #239697
12/06/08 16:20
12/06/08 16:20
Joined: Oct 2004
Posts: 1,655
T
testDummy Offline
Serious User
testDummy  Offline
Serious User
T

Joined: Oct 2004
Posts: 1,655
Try turning off the splash screen, if it is on. (see above)
The file should probably be saved as .c, not .wdl (C-Script).
#include (<- this is .c -like syntax)


Page 3 of 4 1 2 3 4

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