Lite-C Workshop 20 = Broken

Posted By: WRobN

Lite-C Workshop 20 = Broken - 10/13/08 17:02

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...
Posted By: WRobN

Re: Lite-C Workshop 20 = Broken - 10/13/08 17:03

damn, can anyone tell why the [img] doent work in my signature?¿?
TY!
Posted By: WRobN

Re: Lite-C Workshop 20 = Broken - 10/13/08 19:08

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);
Posted By: sadsack

Re: Lite-C Workshop 20 = Broken - 10/17/08 00:57

Here is what I have for workshop 20, and it works for me.



Code:

///////////////////////////////
#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
Posted By: falagar8

Re: Lite-C Workshop 20 = Broken - 10/17/08 01:22


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. smile
Posted By: WRobN

Re: Lite-C Workshop 20 = Broken - 10/17/08 07:51

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...
© 2024 lite-C Forums