2 registered members (AndrewAMD, ozgur),
1,421
guests, and 6
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Lite-C Workshop Tutoral #22 and 23 (Bones) is Broken.
#292786
10/07/09 01:48
10/07/09 01:48
|
Joined: Oct 2009
Posts: 33
AlexH
OP
Newbie
|
OP
Newbie
Joined: Oct 2009
Posts: 33
|
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.
Last edited by AlexH; 10/07/09 01:49.
|
|
|
Re: Lite-C Workshop Tutoral #22 and 23 (Bones) is Broken.
[Re: George]
#293053
10/08/09 23:11
10/08/09 23:11
|
Joined: Oct 2009
Posts: 33
AlexH
OP
Newbie
|
OP
Newbie
Joined: Oct 2009
Posts: 33
|
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?
Last edited by AlexH; 10/09/09 02:16.
|
|
|
Re: Lite-C Workshop Tutoral #22 and 23 (Bones) is Broken.
[Re: George]
#293161
10/09/09 16:23
10/09/09 16:23
|
Joined: Oct 2009
Posts: 33
AlexH
OP
Newbie
|
OP
Newbie
Joined: Oct 2009
Posts: 33
|
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).
Last edited by AlexH; 10/09/09 16:27.
|
|
|
Re: Lite-C Workshop Tutoral #22 and 23 (Bones) is Broken.
[Re: Spirit]
#293172
10/09/09 18:11
10/09/09 18:11
|
Joined: Oct 2009
Posts: 33
AlexH
OP
Newbie
|
OP
Newbie
Joined: Oct 2009
Posts: 33
|
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.
Last edited by AlexH; 10/09/09 18:14.
|
|
|
Re: Lite-C Workshop Tutoral #22 and 23 (Bones) is Broken.
[Re: Pappenheimer]
#293222
10/09/09 23:42
10/09/09 23:42
|
Joined: Aug 2008
Posts: 408 mi usa
sadsack
Senior Member
|
Senior Member
Joined: Aug 2008
Posts: 408
mi usa
|
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:
////////////////////////////////////////////////////////////////////////////////////
#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
I have A7 Commercial .............. Now I just need to learn how to use it
|
|
|
Re: Lite-C Workshop Tutoral #22 and 23 (Bones) is Broken.
[Re: sadsack]
#293242
10/10/09 02:22
10/10/09 02:22
|
Joined: Oct 2009
Posts: 33
AlexH
OP
Newbie
|
OP
Newbie
Joined: Oct 2009
Posts: 33
|
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 thatHow can it not work on 3 of my fully updated separate computers? (Vista 64, WinXP 32 Gateway, and another WinXP 32 HP). 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 ConfirmedIt 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.
Last edited by AlexH; 10/10/09 03:14.
|
|
|
Moderated by mk_1, Perro, rayp, Realspawn, Rei_Ayanami, rvL_eXile, Spirit, Superku, Tobias, TSG_Torsten, VeT
|