Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / add limb chain sequence error, cant tell what am i doing wrong

Author
Message
PAGAN_old
18
Years of Service
User Offline
Joined: 28th Jan 2006
Location: Capital of the Evil Empire
Posted: 16th Dec 2009 10:05
this is one of the first things i have learned and for some reason i still cant get it to work. maybe this is a problem everyone runs into.

it keeps giving me error that limbs should be added in chain sequence. I cant tell why, i followed all the examples in DBP i could find, i tried switching the numbers i know its definatley not a limb number problem.
Can anyone give me a hand?

dont hate people who rip you off,cheat and get away with it, learn from them
Veron
17
Years of Service
User Offline
Joined: 22nd Nov 2006
Location:
Posted: 16th Dec 2009 10:30
You're creating a new mesh and a new limb inside a loop...

PAGAN_old
18
Years of Service
User Offline
Joined: 28th Jan 2006
Location: Capital of the Evil Empire
Posted: 16th Dec 2009 10:41
oh snap

dont hate people who rip you off,cheat and get away with it, learn from them
PAGAN_old
18
Years of Service
User Offline
Joined: 28th Jan 2006
Location: Capital of the Evil Empire
Posted: 16th Dec 2009 12:23 Edited at: 16th Dec 2009 12:23
another question. The thing is i am triggering an event while inthe loop (button press) thats supposed to make an object a limb of another object. If i cant do it in a loop, how would i trigger this action from the loop? because i cant make a working button outside the loop

dont hate people who rip you off,cheat and get away with it, learn from them
Veron
17
Years of Service
User Offline
Joined: 22nd Nov 2006
Location:
Posted: 16th Dec 2009 12:33
Post the code that you have for the button and all the stuff that it does when you press it and I'll take a look.

PAGAN_old
18
Years of Service
User Offline
Joined: 28th Jan 2006
Location: Capital of the Evil Empire
Posted: 16th Dec 2009 13:03
my code is kinda long and very dirty Even sometimes have hard time understanding it myself. I am just interested in the overall idea of how this would be done, some pseudocode would be good enough.

basically i have some buttons loaded to the inside of the loop. I have them all in functions which have all the stuff that needs to be done when a certain buttton is pressed. I need one button when its pressed to make a certain objects limbs of another object.

so

this is kinda what my code looks like, a simplified version. i think i got all the limbnum stuff rightm, but i guess the problem is i got it in the loop. so it dosent work.

dont hate people who rip you off,cheat and get away with it, learn from them
Veron
17
Years of Service
User Offline
Joined: 22nd Nov 2006
Location:
Posted: 16th Dec 2009 14:12
Don't create the buttons inside the loop, just run the check to see if the button is clicked on/triggered in the loop. Then, once it's triggered, you could do something like this:



That will only execute the limb code once, despite being in a loop.

PAGAN_old
18
Years of Service
User Offline
Joined: 28th Jan 2006
Location: Capital of the Evil Empire
Posted: 16th Dec 2009 14:15 Edited at: 16th Dec 2009 14:41
ill try that.

but isnt your code showing the doing stuff for the limbs inside the loop? shouldnt that be outside of the loop?

dont hate people who rip you off,cheat and get away with it, learn from them
Veron
17
Years of Service
User Offline
Joined: 22nd Nov 2006
Location:
Posted: 16th Dec 2009 15:07
Yeah, but it'll only do it once, so really it's the same as having it outside of the loop.

PAGAN_old
18
Years of Service
User Offline
Joined: 28th Jan 2006
Location: Capital of the Evil Empire
Posted: 17th Dec 2009 18:07
ah ok. thanks

dont hate people who rip you off,cheat and get away with it, learn from them

Login to post a reply

Server time is: 2024-11-16 09:26:18
Your offset time is: 2024-11-16 09:26:18