A 'Old C-Script articles converted to Lite-C section'

Posted By: dracula

A 'Old C-Script articles converted to Lite-C section' - 10/14/08 17:32

It is sad (for me at least) that all the good stuff has been covered in previous editions - but in C-Script. I cannot convert C-Script to Lite-C easily, I have tried but it takes so long.

Here's an idea, have a regular section in the magazine where a previous C-Script article is converted into Lite-C version. I would really appreciate this.

Alternatively, there could be a new forum section to cover this , what do ya think ?

Thanks
Posted By: George

Re: A 'Old C-Script articles converted to Lite-C section' - 10/14/08 19:42

I guess that I could convert some of the old snippets if I see that this interests more users.
Posted By: dracula

Re: A 'Old C-Script articles converted to Lite-C section' - 10/15/08 07:55

Thanks George, I see lots of new users asking the same sort of questions (including myself) and I don't see any point in confusing them with C Script

Thanks again
Posted By: Michael_Schwarz

Re: A 'Old C-Script articles converted to Lite-C section' - 10/15/08 14:17

Because many users also still have A6 with C-Script, for them Lite-C will be confusing as much as C-Script is for Lite-C Users.
Posted By: dracula

Re: A 'Old C-Script articles converted to Lite-C section' - 10/15/08 14:25

So you don't think it is a good idea ?

Have you actually bothered to read the initial post properly ? It asks for a seperate section where old code is converted to new Lite-C. The old code is still there. There would be no confusion.


Posted By: Michael_Schwarz

Re: A 'Old C-Script articles converted to Lite-C section' - 10/15/08 14:35

yes i did read. it was an answer to "I don't see any point in confusing them with C Script" and the fact that you have been massively spamming around to promote this thread.
Posted By: dracula

Re: A 'Old C-Script articles converted to Lite-C section' - 10/15/08 14:37

massively spamming ?
Posted By: Vadim647

Re: A 'Old C-Script articles converted to Lite-C section' - 10/15/08 19:15

I think, it's a good idea.
+es: happy days for litec users - easier conversion
-es: George will have additional work to do :P
Posted By: sadsack

Re: A 'Old C-Script articles converted to Lite-C section' - 10/16/08 00:18

Ha Ha Ha, I just have to smile over this. Now let me see here..... the people that run this forum sell this program that we paid for.
So when we have problems.... we are told to come here for help. Hum... let me see here.....yes, so we do come for help after we paid good money for this program and we get this.

Quote:
Because many users also still have A6 with C-Script, for them Lite-C will be confusing as much as C-Script is for Lite-C Users.


That is to bad, it they have A6 and can't tell c-script from lite-c then they better buy A7. We paid for A7 just like they paid for A6. wake up A7 it going take over sooner or later. It is time the forum stop living in the past and more to to lite-c. After A7 is done there will be a new one A8-9-23 we lite-c people here to stay and it time you know it.
renny
Posted By: falagar8

Re: A 'Old C-Script articles converted to Lite-C section' - 10/16/08 01:12


well,

fight, argue, yell
like Escape From New York.




or learn to get along together with separate versions or learn both. I'm learning A6 and C Script and go back to A7 version and Lite C.
Together as a team..."that sounds like a plan" wink


Posted By: sadsack

Re: A 'Old C-Script articles converted to Lite-C section' - 10/16/08 02:05

Can't we all get along!!!!!!!!!!
Posted By: falagar8

Re: A 'Old C-Script articles converted to Lite-C section' - 10/16/08 07:01

It would be good and nice if we did.....
but unfortunately human nature being what it is

I'll let others toot their whistle if they like




or even strut their stuff and ham it up




while I learn and enjoy 3D Game Studio.
And have fun too. smile




Posted By: dracula

Re: A 'Old C-Script articles converted to Lite-C section' - 10/16/08 07:57

According to George, Lite-C starts from about AUM 67. That means that there are 66 editions with C-Script. Some of those 66 AUMs contain fantastic articles that I couldn't easliy convert to Lite-C. These articles may never be covered again as George might want to move on to other things.

Surely, having a SEPERATE section where some classic articles are converted to LIte-C would be a helpful addition ?


Posted By: falagar8

Re: A 'Old C-Script articles converted to Lite-C section' - 10/16/08 16:11


thank you dracula,

for the helpful advice and information.
So, when I go back to A7 version and with Lite C
I'll know where to start with the tutorials, articles, and features concerning Lite C when using the ACKnet magazines.
I'm using a free trial version of A6 and C script.
Its in the book I bought called The Official Guide to 3DGameStudio by Michael Duggan. I bought from Amazon. And with 2 25 dollar Amazon gift certificates.

So, now you and everybody knows.
And why I'm starting back with A6 version and C script.
Posted By: dracula

Re: A 'Old C-Script articles converted to Lite-C section' - 10/16/08 17:48

Hi falagar8

I don't understand what point you are making ?
If you want to use A6 and C-Script, that's fine with me.
Posted By: sadsack

Re: A 'Old C-Script articles converted to Lite-C section' - 10/16/08 18:14

dracula,
I started on the level today.
As time goes by lite-c will be more in deman than c-script.
Posted By: Loopix

Re: A 'Old C-Script articles converted to Lite-C section' - 10/16/08 18:39

no...c-sript will never die whistle
Posted By: falagar8

Re: A 'Old C-Script articles converted to Lite-C section' - 10/17/08 00:35


@drac,

Loopix said it best.

And since I bought from Amazon.com the book "The Official Guide to 3D GameStudio" by Michael Duggan.
It comes with a free trial version of A6 3D GameStudio and C Script and some other pretty cool and nifty tools like Audacity, Gimp, and Gensurf.

So, I might as well start with C Script. Then when I become comfortable and proefficient with it
I will move on to A7 version and with Lite C.
So, eventually I will have 2 programming dialects under my belt. wink
Posted By: sadsack

Re: A 'Old C-Script articles converted to Lite-C section' - 10/17/08 00:39

When that happen you won't even talk to me any more,falagar8
Posted By: falagar8

Re: A 'Old C-Script articles converted to Lite-C section' - 10/17/08 01:57


haha smile

Not at all.
Plenty to talk about with 3d GameStudio and other subjects and topics too.
Like hyperdimensional physics, ancient civilizations, Paradox Brown and Lisa Randall too, isometrics and martial arts,lifting weights and working out, Martial Law and dictatorship picking up the pace in the US, more and further economic collapses and meltdowns, the coming World War III, etc.
Yet, just with 3d GameStudio alone..there is or will be a lot to discuss, talk and share.

cheers smile

and here are some 3d fractal pieces from my friend Daniel. They awe and weird me out.







the last one freaks me out cause it looks like the face or multidimensional faces of Sheltem. Who is the cybernetic renegade guardian from the Might and Magic game series.
Posted By: badapple

Re: A 'Old C-Script articles converted to Lite-C section' - 10/17/08 02:47

i use both a6 and the free lite c , right now i am converting one of my older a6 projects to lite c in the hopes of entering it in the fall 2008 contest , the conversion process can be a bit hard sometimes but , i am learning quite alot about the lite c language , now if i had had someone else do this for me , yes it would be converted but i would nt have learned from it. get my point , and hey if you run into something you just cant figure out , well , that is what this forum is for
Posted By: dracula

Re: A 'Old C-Script articles converted to Lite-C section' - 10/29/08 19:03

Hi badpole,

That's a fair point, I have converted several articles and I have learnt alot. The problem however, is that it is time consuming.

What I am really eager to learn about is the new T7 system. I hope that George will be covering it real soon.

Drac.
Posted By: Puppeteer

Re: A 'Old C-Script articles converted to Lite-C section' - 10/30/08 18:53

I only use c-script cause it roxXx <3
And i would be very happy to see some more c-script snippets even though i can do nearly everything on my own but CSCRIPT WILL NEVER DIE!

Btw:
falagar why do you spam pictures all the time? Oo
Posted By: dracula

Re: A 'Old C-Script articles converted to Lite-C section' - 10/30/08 20:36

Hi Puppeteer

Nobody wants C-Sript to die. More C-Script code is fine by me.
I just thought that some people might want to see certain C-Scripts converted to help them.

'Ebony and Ivory
Lived together in perfect harmony
Why o, why can't we'

Stevie Wonder & Paul MaCartney

(circa sometime in the past)

Posted By: falagar8

Re: A 'Old C-Script articles converted to Lite-C section' - 10/30/08 21:21


@puppeteer

you mean like this




although, I prefer eating Spam Lite
Less fat and less calories. wink






But Seriously Speaking, obviously you're wrong, confused and don'y understand
why I use and post pictures. But I give you some clues and hints. Hopefully, you can figure it out.

To hit home and reinforce what I say and post and even in reply to other peoples' posts. And to liven up this place up, which at times can be very stale, dreary, and very critical and negative a lot.
And sometimes this place can be dead or even impersonal, short of humor and common sense too. Sorta like a Zombie House with some zombies here


Posted By: WretchedSid

Re: A 'Old C-Script articles converted to Lite-C section' - 11/18/08 15:32

I can convert some of the old AUM articles to Lite-C...
Is someone interested in this?
Posted By: dracula

Re: A 'Old C-Script articles converted to Lite-C section' - 11/18/08 19:15

Hi Sylar,

The 3 weapon workshops AUM 58 59 & 60 please

61 looks interesting as well !!

Thanks smile

Drac.
Posted By: WretchedSid

Re: A 'Old C-Script articles converted to Lite-C section' - 11/18/08 21:14

Okay, here is the weapon workshop from AUM 58: http://www.zshare.net/download/51509274f423ba38/

The other two follow tomorrow.
Posted By: dracula

Re: A 'Old C-Script articles converted to Lite-C section' - 11/19/08 08:49

Sylar, thanks very much, you are my "Hero of the Month"

Great stuff

Drac. smile
Posted By: WretchedSid

Re: A 'Old C-Script articles converted to Lite-C section' - 11/19/08 16:09

No problem, here is the greande launcher (AUM60) http://www.zshare.net/download/51547624f2f0bb0e/

Edit: Here is the workshop from AUM 59: http://www.zshare.net/download/51548871af2e97ea/

Edit: An last but not least, here ist the script from AUM 61: http://www.zshare.net/download/51549351358e51cd/
Posted By: dracula

Re: A 'Old C-Script articles converted to Lite-C section' - 11/19/08 17:33

Thanks !

They work perfectly.

Drac.
Posted By: Quad

Re: A 'Old C-Script articles converted to Lite-C section' - 11/19/08 19:18

hey Drac,
i can convert some of them if i have freetime too. Just post your request here and i'll tell if i will convert.

@Sylar, you also may say that you started converting further requests here, so i dont start converting the ones you already converting.

-Quad.
Posted By: dracula

Re: A 'Old C-Script articles converted to Lite-C section' - 11/19/08 20:37

Hi Quad,

I am interested in the AI workshops and particles, I don't know where I saw them ?


Thanks

Drac.
Posted By: dracula

Re: A 'Old C-Script articles converted to Lite-C section' - 11/20/08 09:52

Hi Sylar/Quad

If you have the time, the AI workshops are:

**************************
AUM 55, 56 & 57.
**************************

These would be very appreciated, thanks



Drac.

Posted By: Pappenheimer

Re: A 'Old C-Script articles converted to Lite-C section' - 11/20/08 12:16

maybe, this conversions could be posted in the wiki - that's the easiest way to find them for other users.
Posted By: dracula

Re: A 'Old C-Script articles converted to Lite-C section' - 11/21/08 08:58

'other users' never expressed an interest

AUM 55, 56 & 57 please ??

Drac

Posted By: Quad

Re: A 'Old C-Script articles converted to Lite-C section' - 11/21/08 09:03

ill look in to 55,56,57
Posted By: dracula

Re: A 'Old C-Script articles converted to Lite-C section' - 11/21/08 10:36

Thanks Quad. smile

Drac.
Posted By: Quad

Re: A 'Old C-Script articles converted to Lite-C section' - 11/21/08 11:53

55-56-57 : http://rapidshare.com/files/165929959/lite-c.zip.html
Posted By: dracula

Re: A 'Old C-Script articles converted to Lite-C section' - 11/21/08 12:32

Thanks Quad.

56 & 57 worked perfectly

(workshop 55 needs the variable 'fired' declaring)
Posted By: Quad

Re: A 'Old C-Script articles converted to Lite-C section' - 11/21/08 13:04

oops forgot laugh

add #define fired skill11 to top
Posted By: dracula

Re: A 'Old C-Script articles converted to Lite-C section' - 11/21/08 13:39

Thanks.

My last request (for a while) is AUM 61, Moorhuhn (a bird shooting game featuring crow.mdl)

Thank you for your help and time, I am now on a verticle learning curve


Drac.
Posted By: Pappenheimer

Re: A 'Old C-Script articles converted to Lite-C section' - 11/21/08 22:47

Originally Posted By: dracula
'other users' never expressed an interest

AUM 55, 56 & 57 please ??

Drac


Be assured they will! wink And then it is nice when someone can tell them look at the wiki there's a section where are some of the codes of the AUM already transformed to lite-c.

The wiki was once created because this forum always was full of help and free code etc., but it was extremely difficult for beginners to find what they needed.

That's why it is a nice gesture when the person that gets so much help gives something back to the community, as well!
Posted By: Quad

Re: A 'Old C-Script articles converted to Lite-C section' - 11/22/08 01:31

Originally Posted By: dracula
Thanks.

My last request (for a while) is AUM 61, Moorhuhn (a bird shooting game featuring crow.mdl)

Thank you for your help and time, I am now on a verticle learning curve


Drac.


no change on resources, copy the code , save it as crow.c in to project directory:
Click to reveal..
Code:
////////////////////////////////////////////////////////
var dead_birds = 0;
var shot = 0;
VECTOR bullet_speed;
var bullets = 10; // number of bullets

//////////////////////////////////////////////////////////////

FONT* arial_font = "Arial#14b"; 

//////////////////////////////////////////////////////////////

BMAP* cursor_pcx = "cursor.pcx"; // cursor bitmap 

//////////////////////////////////////////////////////////////

SOUND* beep_sound = "beep.wav";
SOUND* enemyshot_snd = "enemyshot.wav";
SOUND* playershot_snd = "playershot.wav";
SOUND* enemydead_snd = "dead.wav";

//////////////////////////////////////////////////////////////

function move_bullet();
function remove_bullets();
function player_shoots();
function move_crows();
function kill_crows();

//////////////////////////////////////////////////////////////

STRING* moorhuhn_wmb = "moorhuhn.wmb";

STRING* bullet_mdl = "bullet.mdl";
STRING* crow_mdl = "crow.mdl";

///////////////////////////////////////////////////////////////

PANEL* cursor_pan=
{
	bmap = cursor_pcx;
	pos_x = 392; // (800 - 16) / 2
	pos_y = 292; // (600 - 16) / 2
	flags = OVERLAY | VISIBLE;
}

PANEL* info_pan= // displays the bullets and the number of birds that were shot
{
	pos_x = 0;
	pos_y = 0;
	digits = 10, 575, "Health:%.0f", arial_font, 1, 100; // player's health is always 100
	digits = 330, 575, "Bullets:%.0f", arial_font, 1, bullets;
	digits = 660, 575, "Bodies:%.0f", arial_font, 1, dead_birds;
	flags = VISIBLE;
}


////////////////////////////////////////////////////////////////

function main()
{
	video_mode = 7; // 800x600
	video_depth = 32; // 32 bits
	video_screen = 1; // start the game in full screen mode
	vec_zero(bullet_speed);
	level_load (moorhuhn_wmb);
}	

action my_player() // attach this action to the player
{
	player = my; // I'm the player
	set(my,INVISIBLE);// and I'm invisible - who cares?
	camera.x = player.x;
	camera.y = player.y;
	camera.z = player.z; // choose a convenient position for the player to get a good camera
	camera.pan = 90; // initial camera.pan position
	while (1) // as long as the player is alive
	{
		camera.tilt += 10 * mouse_force.y * time_step;
		camera.tilt = clamp (camera.tilt, -30, 30);
		//if (camera.tilt < -25) {camera.tilt += 1;}
		//if (camera.tilt > 25) {camera.tilt -= 1;}
		camera.pan -= 10 * mouse_force.x * time_step; 
		//if (camera.pan < 60) {camera.pan += 1;} // 90 - 30
		//if (camera.pan > 120) {camera.pan -= 1;} // 90 + 30
		camera.pan = clamp (camera.pan, 45, 135);
		if (mouse_left == 1 && bullets > 0 && shot==0)
		{
			player_shoots();
		}
		player.pan = camera.pan; // rotate the player too
		player.tilt = camera.tilt; // not just the camera
		if ((mouse_right == 1) && (bullets == 0)) // right click to reload the gun
		{
			bullets = 10;
			while (mouse_right == 1) {wait (1);}	
		}
		wait (1); 
	}
}

function player_shoots()
{
	shot=1;
	while (mouse_left == 1 && shot==1) {wait (1);}
	snd_play (playershot_snd, 70, 0);
	ent_create (bullet_mdl, player.x, move_bullet);
	bullets -= 1; // you have used a bullet
	shot=0;
}

function move_bullet()
{
	wait (1);
	if (my == NULL) {return;}
	my.emask = ENABLE_BLOCK | ENABLE_ENTITY;
	my.event = remove_bullets;
	set(my,PASSABLE);
	my.pan = you.pan;
	my.tilt = you.tilt;

	my.skill1 = 0;
	bullet_speed.x = 500*time_step;
	bullet_speed.y = 0;
	bullet_speed.z = 0;
	while (my.skill1 < 50)
	{
		if (my == NULL) {return;}
		if (my.skill1 < 0.1)  // don't collide with the creator
		{
			set(my,PASSABLE);
		}
		else	
		{
			reset(my,PASSABLE);
		}
		my.skill1 += 0.1 * time_step;
		c_move (me,bullet_speed, nullvector,GLIDE);
		wait (1);
	}
	ent_remove (my);
}

function remove_bullets()
{
	wait (1);
	ent_remove (my);
}

function generate_birds_startup()
{
	VECTOR temp;
	vec_zero(temp);
	wait (-1); // wait until the level is loaded
	while (1)
	{
		temp.x = -1000;
		temp.y = random (1000);
		temp.z = 100 + random (500);
		ent_create (crow_mdl, temp, move_crows);
		wait (-3); // generate a crow every 3 seconds
	}
}

function move_crows()
{
	my.emask = ENABLE_IMPACT;
	my.event = kill_crows;
	var crow_speed;
	crow_speed = 5 + random(5);
	while ((my.x < 1250) && (my.skill40 == 0))
	{
		my.x += crow_speed * time_step;
		ent_animate (me, "walk", my.skill42, ANM_CYCLE);	
		my.skill42 += 5 * time_step;
		wait (1);
	}
}

function kill_crows()
{
	my.skill40 = 1; // stop the crow
	set(my,INVISIBLE);
	my.emask = ~ENABLE_IMPACT; // can't be shot from now on
	my.event = NULL;
	dead_birds += 1;
	my.skill10 = 0;
	snd_play (enemydead_snd, 70, 0); 
	wait(-.5);
	ent_remove (my);
}


have fun
-Quad.
Posted By: dracula

Re: A 'Old C-Script articles converted to Lite-C section' - 11/22/08 08:34

Thank you Quad. Your contribution to this forum is outstanding

Drac.
Posted By: sadsack

Re: A 'Old C-Script articles converted to Lite-C section' - 12/05/08 01:22

Sylar and Quadraxas I would like to thank you very much for your code. Right of I see the code works in two ways. I see now how you lay out the code.
Thank you
renny
© 2024 lite-C Forums