Can I fix this?
Cyberdodo:
Quote from: magicmoon on 2007 March 11, 22:12:48
If you could get the mod to recognize the cans as a cup, then the Sims would at least put the can in the dishwasher instead of tromping all over the lot looking for a coffee table. My neat Sims will actually put the cup in the dishwasher after they place it on the coffee table. If we could bypass the coffee table, it would work out pretty well by coding it so all Sims clean up the cups rather than just the neat ones. In the mean time, I just put a coffee table near the machine.
Currently, I have the sims simply dropping the energy drink cans on the floor a few steps away from the machine after buying it. The can then has pie menu options of Drink and Clean Up. Also, I made Clean Up dispose of the can in the trash rather than wash it like a dish (makes more sense to me that way).
Quote from: magicmoon on 2007 March 11, 22:12:48
Too bad he didn't code in anything for a child to use the energy drink. On weekends I find that the children's energy gives out too early, making them sleepy by 7:00 or 7:30, whereas they do fine on the days that they go to school. But I can't find anything other than a nap that will give the small energy boost that I need for the kids. Is it possible to give a slight energy boost with the juice so that kids have a way to increase energy? As long as it is a small increment, adults won't get out of sync drinking it any more than if they helped themselves to a single cup of coffee.
Trying to add energy to juice isn't something I'd recommend, as that would require a global mod. However, in my version I've gotten rid of the redundancy of separate functions for different age groups. The only thing preventing children from buying energy drinks now is the flag settings for it in Pie Menu Functions.
Magicmoon:
OK. I guess what is confusing is that he had 2 Coke interactions, 2 chips, etc., except for the energy drink which only had the one. I thought that setting the child flag would cause it to crash because he didn't have corresponding actions.
So why did he do 2 of each, one for child and one for the rest?
And it sounds like you did pretty good with the cans thing. I keep trying to load in the game today, but I keep getting customer support calls. I'm going to try again now.
EDIT:
I just tried out your version in game. I gave the test Sims nothing but the vending machine to eat from. The chips and juice worked well. I don't think they chose cookies. But they threw away the empty bags just fine.
However, the energy drink has a problem. The Sim buys the drink then sets it on the floor without drinking it. Then that Sim or another one picks it up and disposes of it. Several cans were left on the floor and they could drink it only if I clicked on the can and issued the command to drink it.
It also threw an error while the Sim was trying to do something autonomous with the machine. It is attached. I tested in a clean neighborhood with the vending machine as the only custom content.
My windowed version I use for testing went into 800x600 mode again, so I couldn't see the energy bar of the Sims to verify how much of an energy boost they get when directed to drink it.
[attachment deleted by admin]
Cyberdodo:
Quote from: magicmoon on 2007 March 11, 23:57:55
However, the energy drink has a problem. The Sim buys the drink then sets it on the floor without drinking it. Then that Sim or another one picks it up and disposes of it. Several cans were left on the floor and they could drink it only if I clicked on the can and issued the command to drink it.
I did mention above that sims would drop the can after buying it, but I guess I wasn't clear this is what I meant :-\ Are the sims immediately cleaning up the can, before you can direct them to drink? If so, perhaps advertising on the Clean function is too high. Anyway, seemed like a good idea at the time, but in retrospect it would be better if I tried again to find a good way to get the sim to chug it directly.
Quote from: magicmoon on 2007 March 11, 23:57:55
It also threw an error while the Sim was trying to do something autonomous with the machine. It is attached. I tested in a clean neighborhood with the vending machine as the only custom content.
I'll take a closer look at the log tomorrow. Do you remember what the sim was trying to do? Going to the machine? Buying something? Was another sim using the machine at the time?
Anyway, thanks for testing ;D
Magicmoon:
I guess I didn't understand you correctly. I thought the Sim would drink the energy drink like usual and then place it on the ground. So I kept repeating the buying process trying to get it to work like that. While the Sim was busy buying and placing the cans on the ground, other Sims would throw them away. There was plenty of time for me to click on the can for it to be drunk, but I didn't realize that was the way you made it work. Then when I left the Sim alone, she threw away a can on her own. At that point I was hoping she would pick it up and drink it on her own, but I guess she saw it as trash. As I said, I couldn't see the energy bar so perhaps her energy was already maxed. The environment score was probably dropping as there were about 8 cans on the ground at that point.
Quote from: Cyberdodo on 2007 March 12, 03:44:47
I'll take a closer look at the log tomorrow. Do you remember what the sim was trying to do? Going to the machine? Buying something? Was another sim using the machine at the time?
I was directing one Sim to buy an energy drink and another Sim threw the error. I think he must have been trying to autonomously buy something from the machine.
Quote
Anyway, thanks for testing ;D
No, thank you for sharing your fix. Sorry I misunderstood. It still works better than my "fixed?" version.
Cyberdodo:
I'm having trouble making sense of that error log. It shows that the sim errored when cleaning up a can, apparently autonomously. But, the last 2 entries in the stack are routing functions to the vending machine. That makes it look like the sim was trying to dispose of the can into the vending machine, but that makes no sense...
??? I'm going to need help from someone More Awesome Than Me to figure that out.
In the meantime, I'll start working on some better error handling. Something along the lines of making the sim put the can down if they fail to throw it away, instead of dumping with an error. I should look into preventing more than 1 sim from using the machine at a time too.
Another, unrelated little tidbit of info - I removed the machine and custom can from my downloads folder and entered my test lot, causing the machine to revert into an endtable and the cans sitting on the floor to revert into esspresso cups. Right away, the cleanbot cleaned up the cups. Really makes me wonder how the cleanbot determines what it can clean up.
Navigation
[0] Message Index
[#] Next page
[*] Previous page