|
Newbie what am I doing wrong sample won't compile!
#167332
11/14/07 14:53
11/14/07 14:53
|
Joined: Nov 2007
Posts: 45 Fort Worth, Texas
peacerosetx
OP
Newbie
|
OP
Newbie
Joined: Nov 2007
Posts: 45
Fort Worth, Texas
|
Greetings guys,
Peace. Excited and ready to start. Went to the lite-C Workshop I tried to Run sample files (both the small and earthball)with the "push the black button." I see the program trying to compile the file gets a small inner box, then a larger window begins to appear with the words lite-C on it, BUT then the whole thing disappears. I do not see the images that are supposed to compile afterwards. I am just back to the Script Editor.
Thank you for your help, I feel embarassed having problems so early in the game...maybe someone out there had same
_______________________
trusting in the Lord...
|
|
|
Re: Newbie what am I doing wrong sample won't comp
[Re: peacerosetx]
#167333
11/14/07 15:44
11/14/07 15:44
|
Joined: Nov 2007
Posts: 45 Fort Worth, Texas
peacerosetx
OP
Newbie
|
OP
Newbie
Joined: Nov 2007
Posts: 45
Fort Worth, Texas
|
Hi guys,
I went through all the files in the work file to see if they all would not compile, it turns out that everything compiles fine, except for the earthball, small and the pong files. The madelbrot_pure files has an error, but that seems fixable.
Thank you for any and all help, I am scarred if I don't fix it, it may be some unknown problem that might effect the code I write from compiling, or maybe I have not downloaded a need file.
Peace.
_______________________
trusting in the Lord...
|
|
|
Re: Newbie what am I doing wrong sample won't comp
[Re: peacerosetx]
#167334
11/14/07 18:26
11/14/07 18:26
|
Joined: Nov 2007
Posts: 45 Fort Worth, Texas
peacerosetx
OP
Newbie
|
OP
Newbie
Joined: Nov 2007
Posts: 45
Fort Worth, Texas
|
Thank you for your interest to help. I think that I may have found the cause of the problem, it may be because I do not have directX 9 properly loaded onto my computer. Perhaps if I fix this error all will be fine.
peace
_______________________
trusting in the Lord...
|
|
|
Re: Newbie what am I doing wrong sample won't comp
[Re: peacerosetx]
#167335
11/14/07 23:41
11/14/07 23:41
|
Joined: Nov 2007
Posts: 45 Fort Worth, Texas
peacerosetx
OP
Newbie
|
OP
Newbie
Joined: Nov 2007
Posts: 45
Fort Worth, Texas
|
Well I installed DirectX and it still does not work. Perhaps it is something with my computer.
Cheers
_______________________
trusting in the Lord...
|
|
|
Re: Newbie what am I doing wrong sample won't comp
[Re: D3D]
#167337
11/15/07 00:18
11/15/07 00:18
|
Joined: Nov 2007
Posts: 45 Fort Worth, Texas
peacerosetx
OP
Newbie
|
OP
Newbie
Joined: Nov 2007
Posts: 45
Fort Worth, Texas
|
Quote:
Did you told the script editor which script (from the sample) to run? You can also set this in settings so that it always run the active script. You could run the other scripts, guess you found that option. Maybe you have not set the current script to run and still run another previous script?
Thank you very very much D3D for offering kind advice. I am new so I am not sure how to tell the script editor which script to run. I have placed the highlighted yellow bar on each line of the code --that was not commented--and tried to hit run and I get the same results.
I went into preferences and placed the small file as the file to run and still it has the same results.
I appreciate efforts very much!
peace
Last edited by peacerosetx; 11/15/07 00:22.
_______________________
trusting in the Lord...
|
|
|
Re: Newbie what am I doing wrong sample won't comp
[Re: peacerosetx]
#167338
11/15/07 00:25
11/15/07 00:25
|
Joined: Apr 2006
Posts: 1,551 Netherlands
D3D
Serious User
|
Serious User
Joined: Apr 2006
Posts: 1,551
Netherlands
|
From the Lite-C workshop 24 does this sample give the problem? Code:
/////////////////////////////// #include <acknex.h> #include <default.c>
///////////////////////////////
var rotation_speed = 0.1;
function mother_earth() { while (1) { my.pan += rotation_speed * time_step; wait (1); } }
function main() { vec_set(sky_color,vector(1, 1, 1)); // black sky level_load (""); wait (2); // wait until the level is loaded ent_create("earth.mdl", vector(400, 0, 0), mother_earth); }
Or this example inside the Workshop Code:
//////////////////////////////////////////////////////////////////////////// // small.c - small lite-C example //////////////////////////////////////////////////////////////////////////// #include <acknex.h> // include these predefined, needed files in our project #include <default.c> //////////////////////////////////////////////////////////////////////////// void main() { // Load the level named "small.hmp" level_load("small.hmp"); // Wait for 3 frames, until the level is loaded wait (3); // Now create the "earth.mdl" model at x = 10, y = 20, z = 30 in our 3D world ent_create("earth.mdl", vector(10, 20, 30), NULL); // NULL tells the engine that the model doesn't have to do anything }
|
|
|
Re: Newbie what am I doing wrong sample won't comp
[Re: D3D]
#167339
11/15/07 00:37
11/15/07 00:37
|
Joined: Nov 2007
Posts: 45 Fort Worth, Texas
peacerosetx
OP
Newbie
|
OP
Newbie
Joined: Nov 2007
Posts: 45
Fort Worth, Texas
|
Greetings,
I have opened all three of those files workshop/script-24; workshop/script24-2; and small.c none of these will compile; they all cause problems. Thank you.
_______________________
trusting in the Lord...
|
|
|
Re: Newbie what am I doing wrong sample won't comp
[Re: peacerosetx]
#167340
11/15/07 00:38
11/15/07 00:38
|
Joined: Apr 2006
Posts: 1,551 Netherlands
D3D
Serious User
|
Serious User
Joined: Apr 2006
Posts: 1,551
Netherlands
|
Tried the example and if there are //// at the bottom of the script it would trow some error. Also if earth.mdl and small.hmp are not inside folder the engine can't find them. Anyways i've made a working demo, you can take a look here. Try this Code:
//////////////////////////////////////////////////////////////////////////// // small.c - small lite-C example //////////////////////////////////////////////////////////////////////////// #include <acknex.h> // include these predefined, needed files in our project #include <default.c> //////////////////////////////////////////////////////////////////////////// void main() { fps_max = 60; // Load the level named "small.hmp" level_load("small.hmp"); // Wait for 3 frames, until the level is loaded wait (3); // Now create the "earth.mdl" model at x = 10, y = 20, z = 30 in our 3D world ent_create("earth.mdl", vector(10, 20, 30), NULL); // NULL tells the engine that the model doesn't have to do anything }
if your cpu goes wild.
|
|
|
Re: Newbie what am I doing wrong sample won't comp
[Re: D3D]
#167341
11/15/07 00:54
11/15/07 00:54
|
Joined: Nov 2007
Posts: 45 Fort Worth, Texas
peacerosetx
OP
Newbie
|
OP
Newbie
Joined: Nov 2007
Posts: 45
Fort Worth, Texas
|
Thank you for your help. I unzipped your file and it still did the same thing. I went through the explore menu then to files and opened the earth image and the other image of the terrain that you were kind enough to send and they are there.
I really appreciate your efforts, I have even tried to open each workshop up util workshop number 7 and they do not open either. No error messages. Strange?
peace...
_______________________
trusting in the Lord...
|
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|