Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
3 registered members (AndrewAMD, Grant, Neb), 908 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Multipart model using ent_vertex - jcl/Doug (or anyone) please help! #2905
04/27/01 22:26
04/27/01 22:26
Joined: Mar 2001
Posts: 1,825
London, England
Keith B [Ambit] Offline OP
Expert
Keith B [Ambit]  Offline OP
Expert

Joined: Mar 2001
Posts: 1,825
London, England
Hi, I know I've posted and mailed about this before and I'm sorry to be a pain with it, but this is driving me crazy... I thought if I left it a while until I was more familiar with wdl it might come to me, but I still can't figure this out, and I've spent days on it. I'm trying to join two models using ent_vertex, so that the origin of one is attached to a particular vertex of the other. However, no matter what I try I cannot get rid of the lag when the character jumps - and the lag is only visible when he jumps. As I want to create a multipart model where the origin of the head is joined to the top vertex of the torso's neck (eg.), it would look pretty silly if the head sank into the character's shoulders everytime he jumped! Oh, and I've read everything in the manual about avoiding lag and tried everybody's suggestions in other posts (thanks!) - and I've done numerous searches, but all the posts about this seem to end before the problem is solved. This is the code I'm using:

var position[3];

function vertices(vertex) // updates the position of the vertex...
{
while(1)
{
ent_vertex(position,vertex);
wait(1);
}
}

function stay_in_place()
{
while(1){

vec_set(my.x,position.x);
vec_set(my.pan,you.pan);
my.invisible=off;
wait(1);}
}

If you paste this into the office.wdl and then put:

anim_jump_ticks = 15; // slow down jump animation to see lag more clearly

vertices(364); // back belt vertex of warlock.mdl
create(<blow.mdl>,nullvector,stay_in_place);

into the player_client() function immediately after the "create(<staff.mdl>,nullvector,attach_entity);" line, you should see what I mean. You can download the blow.mdl from http://vulcan.spaceports.com/~lethargy/blow.MDL (you'll have to right-click and Save As... - it's just a little cube for test purposes).

Actually, there's another bizarre problem with this code which seems to make no sense at all. I cut and pasted the vertices() and stay_in_place() functions from below the player_client() function to above it, and then when I ran the game the character was below the floor! So I cut and pasted the code back into its original position, but still I had the same problem - even though it had been working perfectly before. Even weirder, I then saved the file, exited WED and restarted and the level was fine. I exited again and restarted and again the character was below the floor. Wha??? Any ideas?

Anyway, if anybody could solve this or tell me exactly why I'm an idiot for missing something obvious, I'd be really grateful.

Thanks,
Keith

[This message has been edited by Ambit (edited 27 April 2001).]


Re: Multipart model using ent_vertex - jcl/Doug (or anyone) please help! #2906
04/29/01 01:17
04/29/01 01:17
Joined: Mar 2001
Posts: 1,825
London, England
Keith B [Ambit] Offline OP
Expert
Keith B [Ambit]  Offline OP
Expert

Joined: Mar 2001
Posts: 1,825
London, England
Ugh... another day spent on this and still no joy... It's something to do with the vertices() function, because if I cut that out and just put vec_set(my.pos,you.pos); in the stay_in_place() function instead of using the ent_vertex variable, there's no lag at all. But obviously that's only attaching the origins, which is no use for what I want to do... Anybody?
Thanks.

Re: Multipart model using ent_vertex - jcl/Doug (or anyone) please help! #2907
04/29/01 08:46
04/29/01 08:46
Joined: Mar 2001
Posts: 1,825
London, England
Keith B [Ambit] Offline OP
Expert
Keith B [Ambit]  Offline OP
Expert

Joined: Mar 2001
Posts: 1,825
London, England
Someone has *got* to have mastered this... And the lag isn't just when the character jumps afterall, it's all the time. Please, anybody who has successfully used ent_vertex to join a multipart character - and there must be somebody - tell me what I am doing wrong and you are a god... Feel free to abuse me for conversing with myself in a post, just help before I go completely insane!!!

Well, sorry for keeping this post alive, but I'm sure everyone has got stuck on a piece of WDL and felt like pulling all their hair out at some point or another...

Balding slowly,
Keith

[This message has been edited by Ambit (edited 29 April 2001).]


Re: Multipart model using ent_vertex - jcl/Doug (or anyone) please help! #2908
04/30/01 08:03
04/30/01 08:03
Joined: Mar 2001
Posts: 1,825
London, England
Keith B [Ambit] Offline OP
Expert
Keith B [Ambit]  Offline OP
Expert

Joined: Mar 2001
Posts: 1,825
London, England
At the rist of sounding desperate - actually, what's the risk, I *am* sounding desperate - somebody please heeelllllppp!!! Somebody *must* have successfully created multipart models using ent_vertex. Beg, beg, beg.
Thanks for your patience,
A completely slapheaded Keith

Re: Multipart model using ent_vertex - jcl/Doug (or anyone) please help! #2909
04/30/01 18:07
04/30/01 18:07

A
Anonymous
Unregistered
Anonymous
Unregistered
A



Patience, please. There were other posts on this forum by other people describing the same problem. We will take care of it soon. We'll examine whether it's an engine or a script bug, and provide a solution in both cases here on the forum.

Re: Multipart model using ent_vertex - jcl/Doug (or anyone) please help! #2910
04/30/01 18:16
04/30/01 18:16
Joined: Mar 2001
Posts: 1,825
London, England
Keith B [Ambit] Offline OP
Expert
Keith B [Ambit]  Offline OP
Expert

Joined: Mar 2001
Posts: 1,825
London, England
Thanks. Sorry for the hassle, I'm not trying to be rude - it's just that the command is fundamental to what I'm working on and I've spent a lot of time trying to fix it. I did check all of the other messages about this, but seeing as the problem was first reported over four months ago, I figured someone must have resolved it by now. So do you mean that the problem is on your list of things to look at?
Thanks again,
Keith

[This message has been edited by Ambit (edited 30 April 2001).]

[This message has been edited by Ambit (edited 30 April 2001).]


Re: Multipart model using ent_vertex - jcl/Doug (or anyone) please help! #2911
05/01/01 16:48
05/01/01 16:48

A
Anonymous
Unregistered
Anonymous
Unregistered
A



I can now confirm that the one frame time lag was indeed an engine bug. It will be fixed in the official release of the 5.10 version. An example for using ent_vertex will be included in the office level.

Re: Multipart model using ent_vertex - jcl/Doug (or anyone) please help! #2912
05/01/01 18:04
05/01/01 18:04
Joined: Mar 2001
Posts: 1,825
London, England
Keith B [Ambit] Offline OP
Expert
Keith B [Ambit]  Offline OP
Expert

Joined: Mar 2001
Posts: 1,825
London, England
Thanks a lot for checking it out so quickly and sorting it out - I can stop frying my brain with trigonometry for the workaround I was working on now that I know it will be fixed.

Thanks again for the great support, this is really good news.
-Keith




Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1