1 registered members (7th_zorro),
927
guests, and 0
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Lite-C Workshop 20 = Broken
#231302
10/13/08 17:02
10/13/08 17:02
|
Joined: Oct 2008
Posts: 6 Netherlands
WRobN
OP
Newbie
|
OP
Newbie
Joined: Oct 2008
Posts: 6
Netherlands
|
I am busy with the workshops and perhaps encountered a mistake from the maker.
When i open script20.c from the workshop and run it, it loads and shuts down imediatly. Or it makes the program shut down due to a unexpected error in windows.
Because i know 3 sites from 3DGS (dont know why there are multiple sites under different adresses) i downloaded the workshop's from them also to check if the file was broken. But all script20.c files did the same. I checked the code and checked te content in the workshop 20 folder without any results...
So i cant do that workshop.
Please help! If anyone got those files working plz post it so i can download workshop20, or tell me why this is happening and give a solution.
Please dont give a solution without explaining why this is happening... Im a person of mathematical logic, i dont like to learn how i can do something, i like to learn why something works/behaves so i can use it...
[img:left]http://www.nucia.nl/forum/images/signaturepics/sigpic22248_3.gif[/img] Life would be easier if i had the source code...
|
|
|
Re: Lite-C Workshop 20 = Broken
[Re: WRobN]
#231303
10/13/08 17:03
10/13/08 17:03
|
Joined: Oct 2008
Posts: 6 Netherlands
WRobN
OP
Newbie
|
OP
Newbie
Joined: Oct 2008
Posts: 6
Netherlands
|
damn, can anyone tell why the [img] doent work in my signature?¿? TY!
Last edited by WRobN; 10/13/08 17:03.
[img:left]http://www.nucia.nl/forum/images/signaturepics/sigpic22248_3.gif[/img] Life would be easier if i had the source code...
|
|
|
Re: Lite-C Workshop 20 = Broken
[Re: WRobN]
#231333
10/13/08 19:08
10/13/08 19:08
|
Joined: Oct 2008
Posts: 6 Netherlands
WRobN
OP
Newbie
|
OP
Newbie
Joined: Oct 2008
Posts: 6
Netherlands
|
The debug run gives a system beep at these lines, no matter what sequence you put them...
ent_create("logo+29.pcx", vector(300,100,0), acknex_loop); ent_create("explo+11.tga", vector(300,-100,0), explosion);
[img:left]http://www.nucia.nl/forum/images/signaturepics/sigpic22248_3.gif[/img] Life would be easier if i had the source code...
|
|
|
Re: Lite-C Workshop 20 = Broken
[Re: WRobN]
#231804
10/17/08 00:57
10/17/08 00:57
|
Joined: Aug 2008
Posts: 408 mi usa
sadsack
Senior Member
|
Senior Member
Joined: Aug 2008
Posts: 408
mi usa
|
Here is what I have for workshop 20, and it works for me.
///////////////////////////////
#include <acknex.h>
#include <default.c>
///////////////////////////////
action acknex_loop()
{
while (1)
{
my.frame += 0.8 * time_step;
if (my.frame >= 30) my.frame -= 29;
wait (1);
}
}
action explosion()
{
my.ambient = 100;
my.flags |= BRIGHT;
while(1)
{
while (!key_e) wait (1);
for (my.frame=0; my.frame<12; my.frame += 0.7 * time_step) wait (1);
}
}
function main()
{
vec_set(sky_color,vector(1,1,1)); // almost black sky
level_load(""); // load empty level
ent_create("logo+29.pcx", vector(300,100,0), acknex_loop);
ent_create("explo+11.tga", vector(300,-100,0), explosion);
}
renny
I have A7 Commercial .............. Now I just need to learn how to use it
|
|
|
Re: Lite-C Workshop 20 = Broken
[Re: sadsack]
#231805
10/17/08 01:22
10/17/08 01:22
|
Joined: Sep 2008
Posts: 66
falagar8
Junior Member
|
Junior Member
Joined: Sep 2008
Posts: 66
|
actually pretty cool. Ran the program. But ooooopps!, I'm supposed to be learning C Script. So, Hi Ho, Hi Ho its back to C Script that I go.
|
|
|
Re: Lite-C Workshop 20 = Broken
[Re: falagar8]
#231833
10/17/08 07:51
10/17/08 07:51
|
Joined: Oct 2008
Posts: 6 Netherlands
WRobN
OP
Newbie
|
OP
Newbie
Joined: Oct 2008
Posts: 6
Netherlands
|
This is weird, if i paste your code into script editor, save ,and run it. It will open the window and close it imediatly (its only a flash i see of the window) I will try a reinstall, and hope it will work...
If any of you got the solution plz post it...
[img:left]http://www.nucia.nl/forum/images/signaturepics/sigpic22248_3.gif[/img] Life would be easier if i had the source code...
|
|
|
|