|
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
deyshawn
OP
Newbie
|
OP
Newbie
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]
#239473
12/04/08 21:08
12/04/08 21:08
|
Joined: Jan 2002
Posts: 4,225 Germany / Essen
Uhrwerk
Expert
|
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
deyshawn
OP
Newbie
|
OP
Newbie
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.comAtari 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.comClose 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
Expert
|
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: deyshawn]
#239695
12/06/08 16:03
12/06/08 16:03
|
Joined: Oct 2004
Posts: 1,655
testDummy
Serious User
|
Serious User
Joined: Oct 2004
Posts: 1,655
|
jet = ent_create ("mig.hmp", vector(-400,0,100), NULL); jet / mig is not .mdl!? turn splash screen off use [ code ] [ code ] tags
#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);
}
}
|
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|