Mar 26 2007 | 3:58 am
Skip to the *** if you don't want to read what this patch does in context. After the *** will explain what I need done to the patch.
In my latest project, we built 2 robots who will help each other stay alive over a network. their life force starts out at 100% each, while events like interactions with the robots will increase its life, and events like stealing his toy and just plain passing of time will decrease its life.
in order to help each other stay alive, if one robot looses more life than the other, the other robot will give up some of its own life to pass over to the robot in need. this is done pretty much by averaging out their life numbers, and reassigning the averaged life to both robots.
This averaging happens at 40%, 30%, 20%, 10% and 5%.
When this averaging happens, some life is added to the robot with lesser life.... but on the next decrease in life, it's as if the add never happened.
If "His Life" remains at 100 the entire time, by the time "My Life" hits 40%, the averaging would make His Life 70% as well as My Life to 70%. But after that 70%, it just jumps back down to 39 instead of 69!!
***
Try this: open the patch, and make sure that you click the big green ON bang in the Life Sharing section. Also make sure that you click the 100 beside the "Make life equal to 100" on BOTH sides. Don't start the 2 metros near the top.
Now start with the left one, My Life. Right above the slider and the word LIFE, take that number box that says 100, and scroll it down. At 40, it will jump back up to 70. Then as you scroll down more, it goes to 69, 68. THIS IS WHAT I WANT IT TO DO ALL THE TIME!!
But, clearly I can't be scrolling the number box while the thing is running, so I figured I'd just add a metro that would decrease that number for me. But when the metro does it instead of me manually scrolling, after 40, it jumps up to 70, THEN BACK DOWN TO 39!!!! WHY??? It works when I do it manually, but not when the metro does it.
PLEASE, can you please give me any advice, or even try to fix the patch with your own additions that will make my patch behave with the metro as it does when you scroll it manually.
I will attach the patch as well as the TXT for it. If you played around with it and have any additions that make it work, please attach the new patch or TXT.
THANK YOU SO MUCH TO ANYONE WHO TRIES!!!!

• Mar 26 2007 | 3:59 am
here is the patch TEXT. it's also attached.
• Mar 26 2007 | 4:13 am
*cringe*
how long have you been using max? that patch is hellish, I think you need more experience using the program.
• Mar 26 2007 | 4:19 am
i've been using seriously it for maybe a week, thanks man.
• Mar 26 2007 | 4:21 am
well, yeah, i mean, work through the tutorials. thats about as helpful as I can be, trust me.
• Mar 26 2007 | 4:31 am
ok thats all fine and good. this assignment is due in a week - if you're so experienced with max, and i'm clearly awful at it, can't you at least see what i'm trying to do?
scrolling the box to decrement the number works. letting a metro decrement the number doesn't work.
easy to fix for a pro, right?
• Mar 26 2007 | 4:43 am
I know this isn't immediately helpful to you, but I'm curious. Was this assignment intended to be done in Max? I'm not saying it can't but done in max, surely it can. It just seems like an odd assignment to give in order to force you to learn Max/MSP in a week.
• Mar 26 2007 | 5:11 am
don't worry about it guys, i got it. i'm sorry i came.
• Mar 26 2007 | 5:13 am
You have the output of the number box going back to the incdec. Deleting that and also sending the initial "100" to the incdec made it work for me.
best,
Jeff
• Mar 26 2007 | 5:53 am
Glad you found a solution. Don't let this push you away from Max or the forum/list.
Are you using actual robots?
• Mar 26 2007 | 7:55 am
Quote: Jeff Kaiser wrote on Sun, 25 March 2007 23:13 ---------------------------------------------------- > You have the output of the number box going back to the incdec. > Deleting that and also sending the initial "100" to the incdec made it > work for me. > > best, > > Jeff
yes that is it.
it would have been better not to use incdec IMO. if you send -3 and make [+ ] with it, you also substract 3 from LIFE, no need to do "bang dec bang dec" to incdec.
unfortunatley there is no max manual for algebra yet, which is why it is right to ask for help in the forum ...
• Mar 26 2007 | 8:49 am
How long have you been posting on forums? That post is helliish and unhelpful, I think you need more experience over at AOL....
*wink*
On Mar 26, 2007, at 6:13 AM, jamez wrote:
> > *cringe* > > how long have you been using max? that patch is hellish, I think > you need more experience using the program.
v a d e //