Lite-C Workshop Tutoral #22 and 23 (Bones) is Broken.

Posted By: AlexH

Lite-C Workshop Tutoral #22 and 23 (Bones) is Broken. - 10/07/09 01:48

The example that comes with the Lite-C Workshop 22 lesson doesn't work properly.

It's a very simple script so I find it odd that it is failing. The model is supposed to walk continuously, when space is held it is supposed to rotate the turret on its underside back and forth.

When space is pressed, the model seems to stop completely, the turret rotates to it's angle limit then resumes walking, sometimes randomly spazzing out. Also, while the turret moves the right leg lifts up until walking resumes.

I suggest someone else try this?

Note: I have the trail version, but I assume all the workshops should work with it since it is the commercial level.
Posted By: George

Re: Lite-C Workshop Tutoral #22 and 23 (Bones) is Broken. - 10/07/09 07:30

I have just tested both workshops that deal with bones using the download link at the bottom of the "Online Tutorial". Everything works fine.
Posted By: AlexH

Re: Lite-C Workshop Tutoral #22 and 23 (Bones) is Broken. - 10/08/09 23:11

I just redownloaded and it seems to function differently (maybe I was missing something before).

However, the model functions fine for about 30 seconds, then starts bugging out. Wait at least 30 seconds see if it does the same to you, I will post a video to better illustrate if you need it.

Edit:
I just noticed it is playing all scenes of the mdl. Instead of just playing "walk", it plays all 3 sequentally.

The weird thing is, it plays "walk" for about 3 cycles then literally decides to ignore that argument and start playing all animations. Is this some weird trail-related trick?
Posted By: George

Re: Lite-C Workshop Tutoral #22 and 23 (Bones) is Broken. - 10/09/09 07:11

Are you sure that you have an action attached to the model? Also, make sure that you are using the latest engine version.
Posted By: AlexH

Re: Lite-C Workshop Tutoral #22 and 23 (Bones) is Broken. - 10/09/09 16:23

Please try this yourself. I'm using the exact code and model from the litec_samples.zip file.

I am using the trail version of the engine from the downloads page.

I'd also like to note: it is using a function (not by my design, this is how the code came) with a wait(1).

It has nothing to do with bones, the same problem occurs if you simply try to loop the animation, it fails after 2 loops or so.

I tried this on both my laptop (Vista 64x) and Desktop (XP 86x).
Posted By: Spirit

Re: Lite-C Workshop Tutoral #22 and 23 (Bones) is Broken. - 10/09/09 17:46

Its unlikely that the workshops work for everyone but you, so there must be some other explanation:
Originally Posted By: FAQ
Q: Help! Your Gamestudio software is very buggy. The camera behaves strange, collision detection doesn't work properly, and WED often can't start my level.
A: You might be the proud owner of a certain beta version that leaked to the warez scene: 6.20 or 7.05. Both were early beta versions and don't work reliably as you probably noticed. Sometimes the version number is patched for letting them appear as different versions (such as 7.07 or 7.70) . Please contact Support for getting a working, legal Gamestudio version. We won't prosecute you as long as you don't distribute the illegal version further, or publish anything created with it. If you do, it can become expensive ($900 per distributed copy, plus legal fees). If you're short on money, just download Gamestudio / lite-C - it's legal and free.

Posted By: AlexH

Re: Lite-C Workshop Tutoral #22 and 23 (Bones) is Broken. - 10/09/09 18:11

1. Download the trail from the downloads page.

2. Download the litec workshops from the download page.

3. Open the workshop 22 script.c

4. Run it in the SED.

I have tried this 3 times, on 3 different computers with the same, exact results.

It is the workshop + trail, not me.
Posted By: Pappenheimer

Re: Lite-C Workshop Tutoral #22 and 23 (Bones) is Broken. - 10/09/09 21:08

Did you try to run this with the free Lite-C version, too?
Just an idea.
Posted By: sadsack

Re: Lite-C Workshop Tutoral #22 and 23 (Bones) is Broken. - 10/09/09 23:42

Hi,
I just tryed c-lite file22 and 23, ran both file for 5 min.
I had no problem with them at all. Wrok just like they should.
here is the code from lesson22 paste that in and see if it works.
Code:

Code:
////////////////////////////////////////////////////////////////////////////////////
#include <acknex.h>
#include <default.c>

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

var walk_speed;
var turn_speed;

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

function bones_test()
{
	my.pan -= 180; // face the player
	while(1)
  	{
  		ent_animate(my, NULL, 0, 0); // reset all the animations
  		walk_speed += 1.5 * time_step; // increase walk_speed; 1.5 sets the speed
  		ent_animate(my, "walk", walk_speed, ANM_CYCLE); // animate the model (use "walk")
		if (key_space && (turn_speed < 100)) // space was pressed?
  			turn_speed += 10 * time_step; // then increase turn_speed
		if (!key_space && (turn_speed > 0)) // space isn't pressed?
  			turn_speed -= 10 * time_step; // then decrease turn_speed
  		if (turn_speed > 0) // got to turn?
  			ent_animate(my, "turn", turn_speed, ANM_ADD); // animate the model (use "turn")
   	wait(1);
  	}
}

function main()
{
	level_load ("");	// load an empty level
	wait(2); // wait until the level is loaded
	// and then now create the robot model at x = 400, y = 0, z = -50 quants
	ent_create("robot.mdl", vector(400, 0, -50), bones_test); 
}



I don't know what to tell you, that is very odd.
renny
Posted By: AlexH

Re: Lite-C Workshop Tutoral #22 and 23 (Bones) is Broken. - 10/10/09 02:22

Thank you for the replies, however, I have to ask: What is so hard to understand about what I'm saying?

You have to download the trail and test with that

How can it not work on 3 of my fully updated separate computers? (Vista 64, WinXP 32 Gateway, and another WinXP 32 HP).

Originally Posted By: Pappenheimer
Did you try to run this with the free Lite-C version, too?
Just an idea.

No I have not, I will try that, although if it does in fact run, that would indicate a problem with the trail.


Problem Confirmed
It works 100% with the free version, the trail version however has an issue with ALL calls to ent_animate after a certain amount of time. This should be looked at by a dev unless this was intentional to prevent people from using the trail as a product.
Posted By: Spirit

Re: Lite-C Workshop Tutoral #22 and 23 (Bones) is Broken. - 10/10/09 06:49

You're right, this indeed happens when you install the trial version and dont unlock it to a full version. It looks as if the trial version has an additional time limit. It does not happen with a normal version.

This is probably not intentional, therefore I'll report it to the bug forum.
© 2023 lite-C Forums